beautypg.com

HEIDENHAIN TNC 335 Technical Manual User Manual

Page 243

background image


4-146

TNC 360

8 Key Simulation

8/95

Marker

Function

Key code

Set

Reset

M2918

MAGN

inhibit

122

PLC

PLC

M2919

START

inhibit

123

PLC

PLC

Example:

If the "Position 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

1130

LBL 131

;X