beckhoff TS4100 — 5.5.15 FB_CTRL_TuTg

PLC-API eState : State of the function block. eErrorId : Supplies the error number [ } 16] when the bError output is set. bError : Becomes TRUE, as soon as an error occurs. VAR_IN_OUT VAR_IN_OUT stParams : ST_CTRL_SERVO_MOTOR_SIMULATION_PARAMS; END_VAR stParams : Parameter structure of the function block. This consists of the following elements: TYPE ST_CTRL_SERVO_MOTOR_SIMULATION_PARAMS: STRUCT tCtrlCycleTime : TIME := T#0ms; (* controller cycle time [TIME] *) tTaskCycleTime : TIME := T#0ms; (* task cycle time [TIME] *) fMovingRangeMin : FLOAT := 0; (* min position in the moving range, e.g. 0° *) fMovingRangeMax : FLOAT := 0; (* max position in the moving range, e.g. 360° *) tMovingTime :

TIME := T#0ms; (* time to move from the min to the max *) tDeadTime : TIME := T#0ms; (* wait dead time before starting the movement *) END_STRUCT END_TYPE tCtrlCycleTime : Cycle time with which the control loop is processed. This must be greater than or equal to the TaskCycleTime. The function block uses this input value to calculate internally whether the state and the output values have to be updated in the current cycle. tTaskCycleTime : Cycle time with which the function block is called. If the function block is called in every cycle this corresponds to the task cycle time of the calling task. fMovingRangeMin : Minimum position of the simulated actuator. fMovingRangeMax :

Maximum position of the simulated actuator. tMovingTime : The time required to move the simulated actuator from one stop to the other. tDeadTime : Dead time of the simulated actuator. Requirements 5.5.15 FB_CTRL_TuTg The function block provides a TuTg transfer element (a dead time delay element) in the functional diagram. TS4100 103 Version: 1.1 Development environment Target system type PLC libraries to be linked TwinCAT v2.8 PC (i386) TcControllerToolbox.lib