HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual
Page 342

LBL
331
PLW
-
D28
PSW
EM
PLC Positioning to adjacent grid spacing
LBL
340
;PLC positioning on grid spacing
CM
350
;nearest grid spacing
PLW
=
D540
;new nominal position
L
W966
;MP4220.3 read feed rate
=
W566
;feed rate axis 4 (MP4220.3)
L
M1
;M1 =1
S
M2707
;start PLC positioning axis 4
EM
LBL
350
;calculate nearest grid spacing
LN
M2208
;programmable with MP4310.1
JPT
351
L
D44
;nominal grid value (ref value)
-
D36
;left grid point
PSW
;left difference
CM
390
;absolute amount
L
D44
-
D40
;right grid point
PSW
;right difference
CM
390
;absolute amount
PLW
=
D0
;right difference
PLW
;left difference
>
D0
;compare
JPT
353
;load right grid point
JPF
354
;load left grid point
LBL
351
;determine direction with preset value from MP
L
M3
;traverse direction for PLC positioning
XO
M2209
;programmable with MP4310.1
JPF
353
;load right grid point
JPT
354
;load left grid point
EM
LBL
353
;load right grid spacing for PLC positioning
PS
D40
;right nominal grid value
EM
LBL
354
;load left grid spacing for PLC positioning
PS
D36
;left nominal grid value
EM