TwinCAT PLC Library Hydraulics - Version 1.4 — 4.4.7.2 MC_AxRtFinish_BkPlcMc (from V3.0)

PLCopen Motion Control MaxDistance : [mm] This parameter is used to specify the maximum permitted distance that may be traveled between the referencing cam and reaching of the zero pulse. MinDistance : [mm] This parameter is used to specify the minimum distance that must be traveled between the referencing cam and reaching of the zero pulse. MaxIndexWidth : [mm] This parameter is used to specify the minimum distance that must be traveled to leave the referencing cam. (from V3.0.20) Axis : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred. Exceeded :

Indicates that the axis has travelled more than MaxDistance after leaving the cam, without detection of the zero pulse of the encoder. Active: Indicates that the axis has left the cam has and expects the zero pulse of the encoder. Behavior of the function block The function block detects the part of the homing, in which the axis searches for the zero pulse of encoder, thereby monitoring the distance travelled. Two problems can be detected during this process: The axis travels MaxIndexWidth , without that the falling edges of the referencing cam being detected. The axis travels MaxDistance , without a zero pulse being detected.

The zero pulse is detected, before the axis has traveled MinDistance . Any problems that are detected are indicated with Exceeded . If this is to lead to an axis error, the application must specify a corresponding change of state. An MC_AxRtGoErrorState_BkPlcMc [ } 178] function block and a coded Error Code [ } 236] should be used here. NOTE! Monitoring for MinDistance and MaxDistance can be suppressed by setting the respective parameter to 0.0. 4.4.7.2 MC_AxRtFinish_BkPlcMc (from V3.0) This function block adapts the control value that has been generated to the special features of the particular axis.

An MC_AxRtFinishLinear_BkPlcMc [ } 176] function block should be used if a characteristic curve linearisation is required. VAR_OUTPUT Error: BOOL; ErrorID: UDINT; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR 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. Behaviour of the function block The function block investigates the axis interface that has been passed to it every time it is called. A number of problems can be detected and reported during this process:

If one of the pointers has not been initialised the function block reacts with Error and with ErrorID :=dwTcHydErrCdPtrPlcMc or dwTcHydErrCdPtrMcPlc. PLC Library Hydraulics 175 Version: 1.4