TouchProbe evaluation, application interface and inversion motor mounting position

Question:
What has to be considered in case of application interface to the touch probe evaluation und inverted motor mounting position?

Answer:
If the motor mounting position and the mounting position of the position encoder are different, the registered position difference of the TP evaluation has to be inverted, before it is transmitted to the interface variable g_dnUserActLastScan_p.
Even if the mounting position is set correctly in codes C3000 and C3001 and if the user interface has been applied, this inversion has additionally to be executed manually; it is not executed automatically in the template!

The variable g_MCTRL_dnActIncLastScan  contains the position difference between the detecting of the touch probe signal and the start of the evaluated task.

Example for consideration of the encoder- and motor mounting position during transmitting the position difference:

IF Basicparameter.bInvertMotor <> Basicparameter.bInvertEncoder THEN
     g_dnUserActLastScan_p :=-g_MCTRL_dnActIncLastScan;

ELSE
     g_dnUserActLastScan_p :=g_MCTRL_dnActIncLastScan;

END_IF

Note: The user interface to the TouchProbe evaluation is available in the template positioner as of V3.3.

URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/200707081/1/
Kontaktformular