beautypg.com

HEIDENHAIN TNC 306 Technical Manual User Manual

Page 490

background image

1-2

TNC 406/TNC 306

1/98

Disabling of a group of NC keys by the PLC

PS B/W/D/K

0 : All keys

1-7 : 1st to 7th key group

CM 9183
PL B/W/D

0: Group of NC keys was disabled

-1: Group code > maximum value

M3171 = 0 if module execution was successful, 1 if not

Enabling of a group of NC keys by the PLC

PS B/W/D/K

0 : All keys

1-7 : 1st to 7th key group

CM 9184
PL B/W/D

0: Group of NC keys was enabled

-1: Group code > Maximum value

M3171 = 0 if module execution was successful, 1 if not

The groups of keys are arranged as follows:
0: All keys

1: ASCII keys

2: Soft keys

3: Cursor keys

4: Numerical keys

5: Operating mode keys

6: Block opening keys

7: Axis keys

Example: Disabling the operating mode keys

PS K+5

;Operating mode group

CM 9183

;Disable group of keys

PLW
= K+0

;If disabling OK

CMT ...

;Output acknowledgment

Example: Key simulation

If an existing PLC program is already using the key simulation, it can be quickly fixed with the
following code:

L M2813

;KEY STROBE LOCAL

CMT 790 ;SEND KEY CODE
EM

;END OF MAIN PROGRAM

LBL 790
L M980

;WAIT FOR PROCESSING

JPT 799

;KEY CODE ALREADY FIXED

PS W516 ;SEND KEY CODE
CM 9180
PL W240 ;RETURN CODE

L W240
< K+0
JPT 795

;ERROR

L W240

This manual is related to the following products: