Position Triggers – TML Programming Details

A position trigger is a position value with which the actual position is continuously compared. The compare result is shown in the Status Register High (SRH). If the actual position is below a position trigger, the corresponding bit from SRH is set to 0, else it is set to 1.

In total there are 4 position triggers. Their status is shown in SRH bits 4 to 1. The position triggers are set in the following TML parameters:

POSTRIGG1 – for  Position Trigger 1

POSTRIGG2 – for  Position Trigger 1

POSTRIGG3 – for  Position Trigger 1

POSTRIGG4 – for  Position Trigger 1

You can change at any moment the value of a position trigger.

The actual position that is compared with the position triggers is:  

The Load position feedback (TML variable APOS_LD) for configurations with position sensor
The position reference (TML variable TPOS – Target position) in the case of steppers controlled in open-loop

 

Remark: The position triggers can be used to monitor the motion progress. If this operation is done from a host, you may program the drive/motor to automatically issue a message towards the host, each time when the status of a position trigger is changed.

See also:

Position Triggers – Related TML Instructions and Data

TML Description