E_TcMcHomingType (from V3.0)

The constants listed here are used to identify the referencing method of the axes.

Syntax

TYPE E_TcMcHomingType :(
iTcMc_HomingOnBlock,
iTcMc_HomingOnIndex,
iTcMc_HomingOnSync,
iTcMc_HomingOnMultiSync,
iTcMc_HomingOnExec
);
END_TYPE

Values

Name

Description

iTcMc_HomingOnBlock

The axis is moved in the direction specified by ST_TcHydAxParam.bEnc_RefIndexPositive with ST_TcHydAxParam.fEnc_RefIndexVelo. If no movement is detected over a period of 2 seconds, the fixed stop (block) is considered to have been reached. The actual value for the axis is set to the value of the reference position.

iTcMc_HomingOnIndex

The axis is moved in the direction specified by ST_TcHydAxParam.bEnc_RefIndexPositive with ST_TcHydAxParam.fEnc_RefIndexVelo. The axis is stopped if the referencing cam (bit 5, dwTcHydDcDwRefIndex) is detected in ST_TcHydAxRtData.nDeCtrlDWord. It is then moved with ST_TcHydAxParam.fEnc_RefSyncVelo in the direction specified by ST_TcHydAxParam.bEnc_RefSyncPositive until the referencing cam has again been left. The actual value for the axis is set to the value of the reference position.

iTcMc_HomingOnSync

The axis is moved in the direction specified by ST_TcHydAxParam.bEnc_RefIndexPositive with ST_TcHydAxParam.fEnc_RefIndexVelo. The axis is stopped if the referencing cam (bit 5, dwTcHydDcDwRefIndex) is detected in ST_TcHydAxRtData.nDeCtrlDWord. It is then moved with ST_TcHydAxParam.fEnc_RefSyncVelo in the direction specified by ST_TcHydAxParam.bEnc_RefSyncPositive until the referencing cam has again been left. The encoder's hardware latch is then activated, and the axis is moved on until the latch becomes valid. After the axis has stopped, the actual value for the axis is set to a value that is calculated from the reference position and from the distance covered since the encoder's sync pulse was detected.

iTcMc_HomingOnMultiSync

The actual value of the axis is immediately set to the value of the reference position.

iTcMc_HomingOnExec

The hardware latch of the encoder is activated. The axis is moved with ST_TcHydAxParam.fEnc_RefSyncVelo in the direction specified by ST_TcHydAxParam.bEnc_RefIndexPositive, until the latch has become valid twice. If the end of path is detected before two sync pulses were detected, the process is repeated in the opposite direction. If this does not succeed either, the homing is aborted. Otherwise the current actual position is determined from the distance of the sync pulses and the fEnc_BaseDistance.