TwinCAT PLC Library Hydraulics - Version 1.4 — 4.2.14 MC_MoveRelative_BkPlcMc (from V3.0)

PLCopen Motion Control The movement begins if these checks can be carried out without problems. To this end the motion algorithm is set to state iTcHydStateExtGenerated and the axis to state McState_Synchronizedmotion. The axis velocity is specified through JoyStick and ST_TcHydAxParam [ } 93] .fRefVelo. Changes in velocity are accompanied by ramp limitation to ST_TcHydAxParam [ } 93] .fMaxAcc. If the axis moves towards an active software limit switch, the velocity is limited, depending on the remaining distance, such that the limit switch is approached correctly.

A falling edge at Execute offset puts motion algorithm in state iTcHydStateTcDecP or iTcHydStateTcDecM and the axis in state McState_Standstill. If the axis is in motion at this point in time, it is decelerated with a stop ramp and assumes state iTcHydStateIdle. 4.2.14 MC_MoveRelative_BkPlcMc (from V3.0) This function block starts and monitors the movement of an axis. VAR_INPUT Execute: BOOL; Distance: LREAL; Velocity: LREAL; Acceleration: LREAL; Deceleration: LREAL; Jerk: LREAL; BufferMode: MC_BufferMode_BkPlcMc:=Aborting_BkPlcMc; (ab/from V3.0.8) END_VAR VAR_OUTPUT Busy: BOOL; Done: BOOL; CommandAborted: BOOL; Error: BOOL; ErrorID: UDINT; END_VAR VAR_INOUT Axis:

Axis_Ref_BkPlcMc; END_VAR Execute : The movement is initiated by a positive edge at this input. Distance : [mm] The distance to the target position of the movement in actual value units of the axis. Velocity : [mm/s] The required motion velocity in actual value units of the axis per second. Acceleration : [mm/s 2 ] The required acceleration in actual value units of the axis per square second. Deceleration : [mm/s 2 ] The required deceleration in actual value units of the axis per square second. Jerk : [mm/s 3 ] reserved. 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 : Successful processing of the movement is indicated here. CommandAborted : Abortion of the movement is indicated here. PLC Library Hydraulics 63 Version: 1.4