PLCopen Motion Control The function block executes an automatic zero balance. This function block may only be used for zero overlap valves. VAR_INPUT Enable: BOOL:=FALSE; EnableOnMoving: BOOL:=FALSE; OffsetLimit: LREAL:=0.0; Tn: LREAL:=0.0; Threshold: LREAL:=0.1; Filter: LREAL:=0.1; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR VAR_OUTPUT Error: BOOL; ErrorID: UDINT; Active: BOOL; Limiting: BOOL; Done: BOOL; END_VAR Enable : This input controls the activity of the compensation. EnableOnMoving : This input controls the activity of the compensation. Tn : [s] The integral action time of the compensation. This is the time for a change by 10 V. Values greater than 100 s are recommended.
Threshold : [V] Parameter for the Done signal. Filter : [s] Parameter for the Done signal. OffsetLimit : [V] The value in fZeroCompensation is limited to this value. Error : The occurrence of an error is indicated here. ErrorID : An encoded indication of the cause of the error is provided here. Active: Indicates that the function block actively adjusts the value of fZeroCompensation in ST_TcHydAxParam [ } 93] . Limiting : Indicates that the value of fZeroCompensation in ST_TcHydAxParam [ } 93] has reached the limit specified by OffsetLimit. Done : Indicates leveling out of the offset compensation. Axis : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred.
Purpose of the function block If a hydraulic cylinder is drifting when the position controller is switched off (kP=0.0), or if there is a permanent lag error relative to the target when the position controller is active, this can be corrected by using a zero overlap valve with offset compensation. A hydraulic cylinder stops when it is in equilibrium of forces. In the simplest case (cylinder with identical surfaces, no external forces by gravity or a process) this equilibrium is fulfilled, if the same pressure acts on both surfaces. For a differential cylinder, the pressures must be proportional to the inverse of the surfaces. Any external forces must be included.
In order to achieve the required pressure conditions, a proportion of the system pressure is required as pressure difference. In the case of a zero overlap valve, this is defined by the pressure gain characteristic. Another possible reason for an offset is a difference between the hydraulic zero point of the valve and the logical zero point of the output hardware. These are unavoidable manufacturing tolerances. Therefore, a small valve excitation with up to ±0.5 V is required. Refer to the data sheets provided by the valve and hardware manufacturers for further information. PLC Library Hydraulics 110 Version: 1.4