MC_Home

Reference point travel of the axis is commanded with the MC_Home FB. How an axis reacts to this command basically depends on the type of homing operation. This is specified in the MDS axis (achsmdsX.lis) by the element P-AXIS-00299 (kenngr.homing.homing_type).

The additional "CamSignal" input can specify the signal to adopt the homing position. Normally the signal source of the "CamSignal" input is the reference cam signal of the drive.

Blockdiagramm

Parameters of the FB

VAR_IN_OUT

Variable name

Data type

Description

axis

AXIS_REF

Axis reference

VAR_INPUT

Variable name

Data type

Description

Execute

BOOL

Homing is commanded on a rising edge at the input.

CamSignal

BOOL

Signal to command adoption of the homing position. For further application notes, see Section 2.8.1.

VAR_OUTPUT

Variable name

Data type

Description

Done

BOOL

When TRUE, homing is completed and the axis is in “Standstill” state.

CommandAborted

BOOL

TRUE indicates that the command was aborted by another command.

Error

BOOL

Is TRUE when an error occurs in the FB.

ErrorID

WORD

Error code.

General behaviour of the FB