MC_AxRtCheckSyncDistance_BkPlcMc (from V3.0)

MC_AxRtCheckSyncDistance_BkPlcMc (from V3.0) 1:

The function block checks for an invalid path (distance) after leaving the cam during homing.

MC_AxRtCheckSyncDistance_BkPlcMc (from V3.0) 2: Inputs

VAR_INPUT
    MaxDistance:    LREAL;
    MinDistance:    LREAL;
    MaxIndexWidth:  LREAL;
END_VAR

Name

Type

Description

MaxDistance

LREAL

[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

LREAL

[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

LREAL

[mm] This parameter is used to specify the minimum distance that must be traveled to leave the referencing cam. (from V3.0.20)

MC_AxRtCheckSyncDistance_BkPlcMc (from V3.0) 3: Inputs/outputs

VAR_INOUT
    Axis:           Axis_Ref_BkPlcMc;
END_VAR

Name

Type

Description

Axis

Axis_Ref_BkPlcMc

Here, the address of a variable of type Axis_Ref_BkPlcMc should be transferred.

MC_AxRtCheckSyncDistance_BkPlcMc (from V3.0) 4: Outputs

VAR_OUTPUT
    Active:         BOOL;
    Exceeded:       BOOL;
END_VAR

Name

Type

Description

Active

BOOL

Indicates that the axis has left the cam has and expects the zero pulse of the encoder.

Exceeded

BOOL

Indicates that the axis has travelled more than MaxDistance after leaving the cam, without detection of 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:

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 function block and a coded Error Code should be used here.

MC_AxRtCheckSyncDistance_BkPlcMc (from V3.0) 5:

Monitoring for MinDistance and MaxDistance can be suppressed by setting the respective parameter to 0.0.