... I will be setting up the controls to apply a pressure to an axle bushing ....
[The hardware in question:]
IFM PN7671 - Pressure Sensor
Rexroth 4WE6G6X/EW110N9K4/62 - Directional Valve
Details needed.
Does the pressure sensor measure the pressure being applied to the axle, or does it measure the hydraulic line pressure? How much pressure are you trying to apply to the axle, for how long, and how do you know you succeeded ?
As others have pointed out, this "pressure sensor" is merely a switch, providing "I see|don't see pressure", but not indicating how much more or less than its setting is at. There is no way to make a PID loop work with this kind of set-up.
The valve, when energized, puts hydraulic fluid from the pump into the hydraulic line (presumably extending some sort of shaft which is what is applying pressure to the axle). When de-energized, opens the hydraulic line back to the sump, relieving whatever hydraulic pressure is in the line. Will that cause the shaft to retract, or is there a second valve that will be opened to use the hydraulic pump to drive the shaft in the reverse direction ?
If you read deeply into the kinds of questions we're asking, the mistake you're making is you're trying to answer "How do I control this?" rather than "What am I controlling?".
Forget about the "how" for the moment: PID, PWM, sequence-of-operations. None of that matters until you have a clear picture of the pieces that you have to play with, and what "success" looks like.
The hydraulic subcontractor will do all the hard work for you. But you need from them an I/O list so you can then spec out the appropriate PLC. You'll also need some P&IDs (Process and Instrumentation Diagrams if you didn't know, being new; not to be confused with PID - proportional, integral, derivative control) that shows loosely what the physical layout of the system you're trying to control.
Once you have those, then you can start working on
trying to figure out what non-hydraulic components are gonna be needed to adequately control it.
Questions there may include:
- How does the axle get to where it needs to be? How does the PLC know that its there?
- How does the axle leave, and how do we prevent it from leaving before the pressure-thing is done? What is the next axle doing while we're squashing the current one? How does the PLC know that?
- What kind of safety system is needed to halt the pressure-applying thing in case there's someone's arm instead of the axle that's having pressure applied?
- Are you designing the electrical panel/enclosure for the PLC? What kind of power distribution do you need?
Visualize the process in your minds eye first. Watch it work mentally. THEN figure out how to control it.
How would a super-strong human apply pressure to the axle?
Unlike a human, the PLC has no eyes, ears, nor touch. So how does the PLC know what's going on (inputs)?
Unlike a human, the PLC has no muscles. So what are it's "muscles" -- the valves and pumps (outputs)?
There are always two questions to ask:
How does the PLC know?
What should it do if something goes wrong? (then see the first question to ask, "How does the PLC know something is wrong?")
Good luck!