beckhoff TS4100 — 5.8.7 FB_CTRL_SERVO_MOTOR_OUT

PLC-API Behaviour of the output: VAR_INPUT VAR_INPUT fIn : FLOAT; (* controller output = SERVO_MOTOR_OUT input [ fCtrlOutMin ... fCtrlOutMax ] *) bUpperLimitSwitch : BOOL; bLowerLimitSwitch : BOOL; fManSyncValue : FLOAT; bSync : BOOL; eMode : E_CTRL_MODE; END_VAR fIn : control value of the controller in the interval [ fCtrlOutMin ... fCtrlOutMax ] (controller output). bUpperLimitSwitch : limit switch: TRUE if the upper stop is reached. bLowerLimitSwitch : limit switch: TRUE if the lower stop is reached. fManSyncValue : input with which the internal state of the current motor position can be adjusted, or whose value is adopted in manual mode. bSync :

a rising edge at this input sets the internal motor position, which must correspond to the actual position, to the value fManSyncValue. eMode : input that specifies the operation mode [ } 16] of the function block. For synchronization with the current valve position, this function block has the mode "eC- TRL_MODE_SYNC_MOVEMENT". In this mode, the output for closing the valve is set until the valve is closed safely. The function block is then synchronized with this valve position. Once the synchronization process is completed, "eCTRL_STATE_ACTIVE" mode is automatically activated! VAR_OUTPUT VAR_OUTPUT bOutBitPos : BOOL; (* PWM output bit *) bOutBitNeg :

BOOL; (* PWM output bit *) fActualState : FLOAT; (* Actual state of the motor [ 0% ... 100%] *) eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR bOutBitPos : Output required to drive the motor in a positive direction. bOutBitNeg : Output required to drive the motor in a negative direction. TS4100 133 Version: 1.1