15.3.11 Program module COMPUTE SHORTEST PATH
The program determines the direction in which the tool magazine must move in order to reach the
search pocket number by the shortest path. The path is filed in marker M3042:
M3042 = 0: reverse
M3042 = 1: forward
Fetch search
pocket from data
stack to NOMREG
Divide number of
mag. pockets by
two and save to
MAGREG
Save absolute
value from
ISTREG-NOMREG
difference to
ABSREG
No
NOMREG >
ISTREG
Yes
No
ABSREG <
MAGREG
Yes
Magazine
M3042 = 1
forward
01.98
TNC 407/TNC 415/TNC 425
No
NOMREG <
ISTREG
Yes
No
ABSREG >
MAGREG
Yes
End
15 Tool changer
Magazine
M3042 = 0
reverse
4-257