beckhoff TF4100 — 4.2.1.7.7 FB_CTRL_SERVO_MOTOR_OUT

PLC API For synchronization with the current valve position, this function block has the mode eCTRL_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 bOutBitPos : BOOL; bOutBitNeg : BOOL; fActualState : FLOAT; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR Outputs Inputs/ outputs VAR_IN_OUT stParams : ST_CTRL_SERVO_MOTOR_OUT_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_SERVO_MOTOR_OUT_PARAMS:

STRUCT tCtrlCycleTime : TIME := T#0ms; tTaskCycleTime : TIME := T#0ms; tMovingTime : TIME; tSignalExtension : TIME; tAdditionalMoveTimeAtLimits : TIME; tMinWaitTimeBetweenDirectionChange : TIME; tMinimumPulseTime : TIME; bMoveOnLimitSwitch : BOOL; bStopAdditionalMoveTimeIfInputValueIsChanged : BOOL; fCtrlOutMax : FLOAT := 100.0; fCtrlOutMin : FLOAT := 0.0; END_STRUCT END_TYPE TF4100 147 Version: 2.2.4 Name Type Description bOutBitPos BOOL Output required to drive the motor in a positive direction. bOutBitNeg BOOL Output required to drive the motor in a negative direction. fActualState FLOAT Current motor position in the range [fCtrlOutMin ...

fCtrlOutMax] in which the motor is currently located. eState E CTRL STATE _ _ State of the function block eErrorId E CTRL ERROR _ _ CODES Supplies the error number [} 173] when the output bError is set. bError BOOL Becomes TRUE, as soon as an error occurs. Name Type Description stParams ST CTRL _ _ SERVO MOTOR _ _ OUT PARAMS _ Parameter structure of the function block