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

Example:
If the "Positions-transfer" key is pressed in the operating mode "Positioning with manual entry" , a
linear NC-block with all three principal coordinates (X, Y, Z) is to be generated.
66
CASE W272
;Interrogate - operating mode
.
.
.
70
CM 3
;Positioning with manual entry
.
.
.
75
ENDC
.
.
.
1102
EM
;End main program
1103
LBL 3
;Operating mode: Positioning with manual entry
1104
L M10
;Key simulation active?
1105
SN M2896
;No, then disable "Positions-transfer" key
1106
L M2182
;Disabled key operated?
1107
CMT 31
;Yes, then call key simulation
1108
EM
1109
LBL 31
;Key simulation
1110
L M10
;Key simulation active?
1111
R M2896
;Yes, then enable "Positions-transfer" key
1112
SN M10
;Otherwise set key simulation active
1113
CASE B200
;Perform single-step
1114
CM 130
;Key L(line)
1115
CM 131
;Key X
1116
CM 132
;Key "Position-transfer"
1117
CM 133
;Key Y
1118
CM 132
;Key "Position-transfer"
1119
CM 134
;Key Z
1120
CM 132
;Key "Position-transfer"
1121
CM 135
;Key "END-BLOCK"
1122
CM 141
;Reset key simulation
1123
ENDC
1124
EM
1125
LBL 130
;L(ine)
1126
L K60
;Key-code for L(ine)
1127
= W102
1128
CM 136
;Simulate key
1129
EM
1103
LBL 131
;X
1131
L K109
;Key-code for X
1132
= W102
1133
CM 136
;Simulate key
1134
EM
1135
LBL 132
;"Position-transfer"
1136
L K100
;Key-code for "Position-transfer"
1137
= W102
1138
CM 136
;Simulate key
1139
EM