ST_HomingOptions

The data structure extends the function block MC_Home with additional input parameters.

TYPE ST_HomingOptions :
STRUCT
    ClearPositionLag : BOOL;
    SearchDirection  : MC_Direction := MC_Direction.MC_Undefined_Direction;
    SearchVelocity   : LREAL;
    SyncDirection    : MC_Direction := MC_Direction.MC_Undefined_Direction;
    SyncVelocity     : LREAL;
    ReferenceMode    : E_EncoderReferenceMode := E_EncoderReferenceMode.ENCODERREFERENCEMODE_DEFAULT;
END_STRUCT
END_TYPE

Name

Type

Default

Description

ClearPositionLag

BOOL

 

Only works if MC_HomingMode = MC_Direct.
Can optionally be used to set the set and actual positions to the same value. In this case the lag error is cleared.

SearchDirection

MC_Direction

MC_Undefined_Direction

The search of the calibration cam can be done in positive or negative direction of travel. If nothing is specified, the search is performed in the positive direction of travel.

SearchVelocity

LREAL

 

Axis velocity at which the calibration cam is searched.

SyncDirection

MC_Direction

MC_Undefined_Direction

The search of the sync pulse can be done in positive or negative direction of travel. If nothing is specified, the search is performed in the positive direction of travel.

SyncVelocity

LREAL

 

Axis velocity at which the sync pulse is searched for.

ReferenceMode

E_EncoderReferenceMode

 

Parameterizes which signal is used for the sync pulse search.