beckhoff TF4100 — 4.2.1.4.15 FB_CTRL_SERVO_MOTOR_SIMULATION

PLC API Outputs VAR_OUTPUT fMotorPositon : FLOAT; fMotorState : FLOAT; bUpperLimitSwitch : BOOL; bLowerLimitSwitch : BOOL; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR Inputs/ outputs VAR_IN_OUT stParams : ST_CTRL_SERVO_MOTOR_SIMULATION_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_SERVO_MOTOR_SIMULATION_PARAMS: STRUCT tCtrlCycleTime : TIME := T#0ms; tTaskCycleTime : TIME := T#0ms; fMovingRangeMin : FLOAT := 0; fMovingRangeMax : FLOAT := 0; tMovingTime : TIME := T#0ms; tDeadTime : TIME := T#0ms; END_STRUCT END_TYPE TF4100 113 Version:

2.2.4 Name Type Description fMotorPositon FLOAT Simulated motor position in the range [ fMovingRangeMin ... fMovingRangeMax ] fMotorState FLOAT Simulated motor position in the range [ 0 … 100.0 ] bUpperLimit Switch BOOL Simulated limit switch at the actuator's positive stop bLowerLimit Switch BOOL Simulated limit switch at the actuator's negative stop. 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 _ _ SIMULATION _ PARAMS Parameter structure of the function block