PLCopen Motion Control If the movement algorithm reports an error code while the movement is being executed, the function block responds with Error and ErrorID :=the movement algorithm's error code. If completion of the movement is prevented by the activity of another function block, the function block responds with CommandAborted . InVelocity is set when the motion algorithm reaches the required velocity. A negative edge at Execute clears all the pending output signals. If, while the movement is still active, Execute is set to FALSE, execution of the movement that had started continues unaffected.
The signals provided at the end of the movement ( Error , ErrorID, CommandAborted, InVelocity ) are made available for one cycle. 4.2.16 MC_Stop_BkPlcMc (from V3.0) The function block cancels a current axis motion and monitors the stop operation. NOTE! The stop operation initiated by this function block cannot be interrupted by other function blocks. A function block MC_Halt_BkPlcMc should be used to enable an axis restart during a stop operation. VAR_INPUT Execute: BOOL; Deceleration: LREAL; (ab/from V3.0.5) Jerk: LREAL; (ab/from V3.0.5) RampTime: LREAL; (ab/from V3.0.5) BufferMode: MC_BufferMode_BkPlcMc:=Aborting_BkPlcMc; (ab/from V3.0.8) END_VAR VAR_OUTPUT Busy: BOOL; Done: BOOL; Error:
BOOL; ErrorID: UDINT; Active: BOOL; CommandAborted: BOOL; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR Execute : A positive edge at this input ends a movement being carried out by the axis. Deceleration : [mm/s 2 ] The deceleration to be applied. Jerk : [mm/s 3 ] The jerk to be applied. RampTime : [s] The required stopping time. BufferMode : Reserved. This input is provided in preparation for a future build. It should currently either not be assigned or assigned the constant Aborting_BkPlcMc. (from V3.0.8) Busy : Indicates that a command is being processed. Done : This indicates successful processing of the operation. Error : The occurrence of an error is indicated here. ErrorID :
An encoded indication of the cause of the error is provided here. Active: Indicates that a command is being processed. PLC Library Hydraulics 66 Version: 1.4