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

Note:
– The positions which are given are relative to the machine datum (MP960.x).
– Software limit switches are not considered.
– Tool compensations are not calculated.
– The path compensation must be terminated before a PLC positioning.
– PLC positioning is not displayed in the test graphics.
Example: PLC positioning of the Z-axis
A PLC positioning in the Z-axis is to be initiated with the M-function M70. The target position is
stored in the machine parameter MP4210.2. The feed for the PLC positioning is defined in machine
parameter MP4220.2
.
.
.
67
L M0
68
ON M0
69
S M2496
;decoded M-code output (M1900 to M1999)
70
S M2719
;Word processing (incompatible with TNC 155/355)
71
L M1970
;M-function M70?
72
A M2045
;change signal M-function?
73
AN M4
;edge marker
74
CMT 110
;load position and feed
75
S M2706
;activate PLC positioning Z axis
76
S M4
;edge marker
77
L M1970
;M-function M70?
78
A M2045
;change signal M-function?
79
AN M2706
;PLC positioning Z axis done
80
S M2482
;acknowledgement M-function done
81
LN M2045
;no M-function?
82
R M2482
;acknowledgement reset
83
R M4
;edge marker reset
.
.
.
1210
EM
;main program end
1211
LBL 110
;load Z position and feed rate
1212
L D776
;load target position from MP4210.2
1213
= D536
;target position PLC positioning Z axis
1214
L W964
;load feed from MP4220.2
1215
= W564
;feed PLC positioning Z axis
1216
EM