beckhoff TS4100 — 5.8.9 FB_CTRL_STEPPING_MOTOR_OUT

PLC-API nActualStep : Actual step at which the motor is 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_STEPPING_MOTOR_OUT_PARAMS; END_VAR stParams : Parameter structure of the function block. This consists of the following elements: TYPE ST_CTRL_STEPPING_MOTOR_OUT_PARAMS: STRUCT tCtrlCycleTime : TIME := T#0ms; (* controller cycle time [TIME] *) tTaskCycleTime : TIME := T#0ms; (* task cycle time [TIME] *) tOnTime : TIME; (* impulse length *) tOffTime : TIME; (* delay between two impulses *) nMaxMovingPulses :

DINT; (* necessary pulses to move from closed to open or v. v. *) nMinMovingPulses : UINT := 0; (* min pulses to start movement *) bHoldWithOutputOn : BOOL; (* if TRUE then a ouput is on when no pulses are generated *) nAdditionalPulsesAtLimits : DINT; (* add these pulses to ensure that the limits are reached*) bMoveOnLimitSwitch : BOOL; 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. tOnTime : Pulse length. tOffTime : Pause length. nMaxMovingPulses : Pulses required to move from one limit to another. bHoldWithOutputOn : If this parameter is set to TRUE, then an output remains set when the drive is stationary. This will result in braking. nAdditionalPulsesAtLimits : Pulses that are additionally output to safely reach the limits. bMoveOnLimitSwitch :

If this is TRUE, then pulses are output when the control value is either 0% or 100% until a limit switch is reached. fCtrlOutMax : Control value for which the valve will be driven to 100%. fCtrlOutMin : Control value for which the valve will be driven to 0%. fMinCtrtlDeltaToStartMovement : Minimum difference in control value that must be exceeded in order to generate movement of the motor. TS4100 139 Version: 1.1