TwinCAT PLC Library Hydraulics - Version 1.4 — 4.2.10 MC_Home_BkPlcMc (from V3.0)

PLCopen Motion Control 4.2.10 MC_Home_BkPlcMc (from V3.0) This function block starts and monitors the homing of an axis. VAR_INPUT Execute: BOOL; Position: LREAL; HomingMode: MC_HomingMode_BkPlcMc; CalibrationCam: BOOL; 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 homing is initiated by a positive edge at this input. Position : [mm] The reference position. HomingMode : Specifies the method [ } 91] to be used. CalibrationCam : This can be used for direct transfer of the referencing index (cam). 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 homing is indicated here. CommandAborted : Abortion of homing is indicated here. Error : The occurrence of an error is indicated here. ErrorID : An encoded indication of the cause of the error is provided here. Axis : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred.

Behavior of the function block The function block is activated by a positive edge at Execute , and investigates the axis interface that has been passed to it. A number of problems can be detected and reported during this process: Homing can only be started from a stationary condition without errors. If that is not the case, the function block will react by asserting Error with ErrorID :=dwTcHydErrCdNotStartable or with the error code that is passed to it. If the axis is already in a fault state, or if it is in the process of carrying out a stop operation, it responds with Error and ErrorID :=dwTcHydErrCdNotReady.

If one of the velocities stated in the axis parameters is too small (less than 1% of the reference velocity) the function block responds with Error and ErrorID :=dwTcHydErrCdSetVelo. PLC Library Hydraulics 57 Version: 1.4