HEIDENHAIN TNC 306 Technical Manual User Manual
Page 125

3/97
TNC 406/TNC 306
1 Machine axes
4-25
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
.
.
L M0
ON M0
S M2719
;word processing
.
CASE B260
;M-code
.
CM 70
.
ENDC
LBL 70
CM 110
S M2706
;activate PLC positioning Z axis
LN 2706
;PLC positioning Z axis done
S M2482
;acknowledgment M-function done
LN M2045
;no M-function?
R M2482
;acknowledgment reset
EM
LBL 110
;load Z position and feed rate
L D776
;load target position from MP4210.2
= D536
;target position PLC positioning Z axis
L W964
;load feed from MP4220.2
= W564;feed PLC positioning Z axis
EM
M1970
M2045
M4
M2706
M2482
This manual is related to the following products: