Hey...
You will ultimately be controlling the speed of the motor via a proportional directional control valve.
By giving the valve some current, via the controller, it will begin to open and oil will flow to the motor. As the motor begins to turn, it will see some resistance and the torque will begin to rise, until there is enough torque to start the door moving. As discussed previously, you will also need to apply additional torque to accelerate the door. How quickly this all happens is dependent on the ramp rate that you set and the ramp rate is how quickly the current increases to move the spool.
This is where you need to careful with the amount of power you make available and what pressure you limit the system to. A high rate of torque rise will create a proportional increase in pressure. You need to ensure that the pressure control is close to the motor. If it is at the pump, the relief may open before the motor reaches full torque during acceleration and the door may slow or even stop. A slower rate of torque rise will be easier to handle in terms of pressure. Again, as discussed, power is a function of pressure and flow. So the slower they rise, the better. That said, if the system needs to have a high torque rise to work properly, so be it...just make sure you have enough power available and position the pressure control correctly.
While this is all going on, the controller will be looking at the motor speed and the door position and based on the parameters in the control algorithm, will being to modulate the command signal to achieve the steady state condition. The success of the attempted modulation will be largely dictated by the type of control.
In terms of pressure, you need to make sure you have enough to achieve the required max torque + the full system pressure drop between the outlet of the pump and the fluid reservoir. It is all additive. The maximum speed of the motor should be a function of the pump displacement x motor angular velocity. If you limit flow at the top speed, you will be wasting money and energy. I'd suggest setting the system up to give full spool stroke for max speed and just let the pump do the rest.
Max flow (M^3/sec) x Max Pressure (Pa) = Max hydraulic power
Add at least 15% for mechanical and volumetric efficiency losses to get the max system power requirement.
If you provide enough pressure and flow to be able to achieve the required results, you just need to work out the control. The control theory is a completely different story. Let us know if you need further details on exactly how PID (Proportional Intergral Differential) works.
Hesitate to ask further questions, there is much more to this than we have covered above (all posts).
Cheers
Adrian