MC_Home (FB)

FUNCTION_BLOCK MC_Home

This function block commands the axis to perform the search-home sequence.

../../../../../../_images/plcopen.png

The details of the homing sequence are specified on the homing page of the axis object. The input Position is used to set the absolute position when reference signal is detected. This function block completes at Standstill if it was started in Standstill.

Note

MC_Home is a generic function block that performs a system-specific homing procedure, which can be constructed by StepHoming function blocks as specified in folder “MC Homing”.

InOut:

Scope

Name

Type

Comment

Input

Execute

BOOL

Start the motion at rising edge.

Position

REAL

[u] Absolute position when the reference signal is detected.

BufferMode

MC_BufferMode

Not supported, default mcABORTING used

Output

Done

BOOL

Reference known and set successfully.

Busy

BOOL

The FB is not finished and new output values are to be expected.

Active

BOOL

Indicates that the FB has control on the axis.

CommandAborted

BOOL

Command is aborted by another command.

Error

BOOL

Signals that an error has occurred within the function block.

ErrorID

ERROR_ID

Error identification.

Inout

Axis

AXIS_REF

Reference to the axis.