beckhoff TF4100 — 4.2.1.7.9 FB_CTRL_STEPPING_MOTOR_OUT

PLC API Outputs VAR_OUTPUT bOutBitPos : BOOL; bOutBitNeg : BOOL; nActualStep : DINT; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR VAR_IN_OUT stParams : ST_CTRL_STEPPING_MOTOR_OUT_PARAMS; END_VAR Inputs/ outputs stParams consists of the following elements: TYPE ST_CTRL_STEPPING_MOTOR_OUT_PARAMS: STRUCT tCtrlCycleTime : TIME := T#0ms; tTaskCycleTime : TIME := T#0ms; tOnTime : TIME; tOffTime : TIME; nMaxMovingPulses : DINT; nMinMovingPulses : UINT := 0; bHoldWithOutputOn : BOOL; nAdditionalPulsesAtLimits : DINT; bMoveOnLimitSwitch : BOOL; fCtrlOutMax : FLOAT := 100.0; fCtrlOutMin : FLOAT := 0.0; END_STRUCT END_TYPE TF4100 152 Version:

2.2.4 Name Type Description bOutBitPos BOOL Output required to drive the motor in a positive direction. bOutBitNeg BOOL Output required to drive the motor in a negative direction. nActualStep DINT Actual step at which the motor is positioned. 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 STEPP _ _ ING MOTOR _ _ OUT PARAMS _ Parameter structure of the function block