HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual
Page 341
Positioning on grid
L
M2051
;manual operation mode
O
M2052
;electronic handwheel mode
AN
M2
;axis 4 not in grid spacing
A
M2011
;axis 4 in position
AN
M2707
;axis 4 PLC positioning not active
CMT
340
;start PLC positioning axis on grid spacing
Grid not reached
L
M5
;controlled operation mode
AN
M2
;axis 4 not in grid spacing
AN
M2011
;axis 4 not in position
S
M3023
;PLC error message: error on "Automatic" mode
A
M2
;axis 4 in grid
A
M2011
;axis 4 not in position
R
M3023
;PLC error message reset
EM
LBL
330
Adjacent grid spacing relate to nominal axis position
PS
K + 8
;target address
PS
K + 3
;trailing error
CM
9041
;upload coordinate value
PS
K + 0
;target address
PS
K + 2
;REF value
CM
9041
;upload coordinate value
Calculate left and right grid
L
D12
;REF value axis 4
+
D20
;trailing error axis 4
=
D44
;nominal grid value
Left grid
L
D44
PSW
;load to stack
<
K + 0
CMT
331
;decrement by Hirth grid
PLW
;load to ACCU
/
D28
x
D28
;suppress residual spacing
=
D36
;left grid point
Right grid
L
D36
+
D28
=
D40
;right grid point
Save direction of traverse
L
M2163
;direction of traverse axis V
=
M3
;save to buffered marker
EM