beckhoff TS4100 — 5.8.7 FB_CTRL_SERVO_MOTOR_OUT

PLC-API fActualState : Current motor setting over the range [ fCtrlOutMin ... fCtrlOutMax ] in which the motor is currently positioned. 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_OUT_PARAMS; END_VAR stParams : Parameter structure of the function block. This consists of the following elements: TYPE ST_CTRL_SERVO_MOTOR_OUT_PARAMS: STRUCT tCtrlCycleTime : TIME := T#0ms; (* controller cycle time [TIME] *) tTaskCycleTime : TIME := T#0ms; (* task cycle time [TIME] *) tMovingTime : TIME; (* time to move from closed (e.g.

0%) to open (e.g. 100%)*) tSignalExtension : TIME; (* output signal extension time *) tAdditionalMoveTimeAtLimits : TIME; (* add these moving time to ensure that the limits are reached*) tMinWaitTimeBetweenDirectionChange: TIME; (* wait time between pos and neg output pulses and vice versa *) tMinimumPulseTime : TIME; (* minimum output pulse length *) bMoveOnLimitSwitch : BOOL; bStopAdditionalMoveTimeIfInputValueIsChanged : BOOL; (* if an additional move on the limits is active, this will be stopped if the input value is changed *) fCtrlOutMax : FLOAT := 100.0; (* controller output to move to the max limit *) fCtrlOutMin :

FLOAT := 0.0; (* controller output to move to the min limit *) 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. tMovingTime : The time required to move the actuator from one stop to the other. tSignalExtension :

Signal extension by which each output pulse is extended in order to compensate for the dead time. tAdditionalMovingTimeAtLimits : Signal extension, which is additionally output for safe reaching of the limits, if the actuator is to be moved to +/-100%. Only effective if bMoveOnLimitSwitch is FALSE. tMinWaitTimeBetweenDirectionChange : Minimum waiting time between positive and negative output pulses. tMinimumPulseTime : Minimum length of an output pulse. bMoveOnLimitSwitch : If TRUE, then when the control value is either fCtrlOutMin or fCtrlOutMax a signal will continue to be output until the corresponding limit switch is reached. bStopAdditionalMoveTimeIfInputValueIsChanged :

If this flag is TRUE, movement of the valve to the end position, which is triggered by "Additional Moving Time At Limits", is stopped, if an input value is specified that does not match the end position. If this flag is FALSE and the input value matches an end position, the valve always safely moves to the end position first, before it can move to a different valve position. TS4100 134 Version: 1.1