beckhoff TS4100 — 5.5.14 FB_CTRL_SERVO_MOTOR_SIMULATION (only on a PC system)

PLC-API 5.5.14 FB_CTRL_SERVO_MOTOR_SIMULATION (only on a PC system) The behavior of an actuator can be simulated with this function block. Behavior of the output: VAR_INPUT VAR_INPUT bMovePos : BOOL; bMoveNeg : BOOL; fManSyncValue : FLOAT; bSync : BOOL; eMode : E_CTRL_MODE; END_VAR bMovePos : Input that moves the simulated actuator in the positive direction. bMoveNeg : Input that moves the simulated actuator in the negative direction. fManSyncValue : Input with which the simulated motor position can be set, or the value to which movement takes place in manual mode. bSync : A rising edge at this input sets the simulated motor position to the value fManSyncValue. eMode :

Input that specifies the block's operating mode [ } 16] . VAR_OUTPUT VAR_OUTPUT fMotorPositon : FLOAT; (* [ fMovingRangeMin ... fMovingRangeMax ] *) fMotorState : FLOAT; (* [ 0 ... 100 ] *) bUpperLimitSwitch : BOOL; bLowerLimitSwitch : BOOL; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR fMotorPosition : Simulated motor position in the range [ fMovingRangeMin ... fMovingRangeMax ]. fMotorState : Simulated motor position in the range [ 0 … 100.0 ]. bUpperLimitSwitch : Simulated limit switch at the actuator's positive stop. bLowerLimitSwitch : Simulated limit switch at the actuator's negative stop. TS4100 102 Version: 1.1