PLCopen Motion Control 4.4.1.4 MC_AxCtrlStepperDeStall_BkPlcMc The function block monitors the motion of a stepper motor axis, which is operated with an encoder. NOTE! It is essential to use a real encoder (not an encoder emulation based on pulse counting of an output terminal) in order to ensure correct function of this function block. NOTE! The application of such a function block can result in stalling (torque discontinuity). It therefore cannot be assumed that the velocity is constant. VAR_INPUT EnableAcc: BOOL:=FALSE; EnableDec: BOOL:=FALSE; Reset: BOOL:=FALSE; UseKL2531State: BOOL:=FALSE; ResetRefOnError: BOOL:=FALSE; FirstAuxParamIdx:INT:=0; VeloLimit: LREAL:=0.0; LimitFilter:
LREAL:=0.0; UpdateFilter: LREAL:=0.0; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR VAR_OUTPUT Active: BOOL; Activated: BOOL; Error: BOOL; ErrorID: UDINT; END_VAR EnableAcc, EnableDec : These inputs determine whether the monitoring may intervene during the acceleration and braking phases. Reset : This input controls the activity of the controller. UseKL2531State : If TRUE is transferred here, the function block evaluates ST_TcPlcDeviceInput [ } 104] .bTerminalState. ResetRefOnError : If TRUE is transferred here, the function block clears the reference flag of the axis. FirstAuxParamIdx : Here a range in the Axis_Ref_BkPlcMc [ } 67] .
ST_TcHydAxParam [ } 93] .fCustomerData can be activated as parameter interface. VeloLimit : The threshold for the velocity deviation, from which the stall situation is detected. LimitFilter : The time over which an excessive velocity deviation must be present continuously for the stall situation to be detected. UpdateFilter : The time constant, with which the velocity control value in the function block is adjusted to the actual velocity. Active : Indicates that a stall situation was detected. PLC Library Hydraulics 121 Version: 1.4