PLCopen Motion Control NOTE! A value greater than 0 in FirstAuxParamIdx can be used to instruct the function block to use three consecutive values in the fCustomerData of the parameter structure as Tn, kP and PreSet. If the address of a suitable ARRAY[..] OF STRING() is entered in Axis.pStAxAuxLabels, the parameters are automatically assigned a name. Commissioning The four parameters kP , Tn , PreSet and WindupLimit enable the controller to be adapted to a range of different tasks. Initially 0.0 should be entered for Tn and Preset and 1.0 for WindupLimit . The controller now operates as a pure P controller.
Once a function block has started up and the controller is activated (Enable:=TRUE, Reset:=FALSE, SetPressure :=set value), the maximum applicable value for kP can be determined. Increase the value step-by-step, until an oscillation tendency becomes apparent. Use repeated deactivation and activation to check whether the controller is actually stable. In practice the value will be between around 0.1 and 0.5. The next parameter to be set is Tn . Initially, a relatively large value should be specified, e.g. 0.5. The actual pressure should now be regulated to the set value with large inertia, but fairly precisely. Now determine the maximum possible setting through step-by-step reduction.
Again, use repeated deactivation and activation to check whether the controller is actually stable. If there is a tendency to damped oscillation during activation, Tn is already set too low. The setting of WindupLimit does not directly influence the behavior of the controller. Rather, this parameter is used to influence the transition behavior. If the controller is able to build up the pressure immediately because the axis does not have to travel, the value of WindupLimit should be chosen such that the I component is not greater than three to four times the value that is required according to valve characteristics.
In this way the pressure regulation can be achieved significantly more quickly. If the axis still has some way to travel, a low value for this parameter will determine the motion of the axis until the working position is reached. If the parameter is chosen too low, the axis will move very slowly or even stop. On the other hand, a value that is too large will cause the axis to reach the working position with a rather high velocity, resulting in steep pressure increase. The resulting peak pressure can be significant. NOTE! If possible, activation of a pressure controller should be avoided, unless the axis is very close to its working position.
The value for PreSet can be used for two procedures. If the pressure regulator should continue the control value of another function block continuously, its control value can be specified for the calculation of PreSet . In this way it is possible to reduce or avoid step changes in the control value during activation of the controller. If the control value to be generated by the controller is known, a value that is close to this value can be specified as PreSet . In this way it is possible to reduce the time, which the I component requires to establish the control value. Since the P component is also active, a value should be set that is higher than the exact value. NOTE!
The ultimate aim when setting these parameters is to find a set of values that is appropriated for the task by making small changes and assessing the controller characteristics. PLC Library Hydraulics 117 Version: 1.4 Attention Control oscillations During commissioning the axis may be subjected to the full system pressure, or damped or undamped vibrations in a wide frequency range may occur. Appropriate measures must be taken, if there is a risk for the axis or its surroundings. In any case, measures should be taken to enable fast deactivation of the controls.