HEIDENHAIN TNC 306 Technical Manual User Manual
Page 509

1-10
TNC 406/TNC 306
Update Information No. 11
3/97
• FN19
With FN 19 you can sent commands (also with data) to the PLC and receive resulting values. FN
19 is to be considered an expansion of the M functions.
Example:
FN19: PLC= +11 / +Q13 / Q77
11
= 1st parameter after D280
Q13
= 2nd parameter after D284
Q77
= 3rd parameter answer to PLC
During execution of FN19 the first parameter is transferred to D280, and the second parameter
(if programmed) to D284.
The strobe M2149 is set and the control waits for the acknowledgment M2611. After
an acknowledgment is recognized, the strobe M2149 is reset and the value from D512 (if the 3rd
parameter was programmed) is transferred to this Q parameter (result parameter), and the
program run is continued. The result can be evaluated in the subsequent NC stage.
Strobes and data in the PLC:
M2149
Strobe for FN19
Set/reset NC
M2611
Acknowledgment FN19
Set/reset PLC
D280
1st value for FN19
Must be programmed
D284
2nd value for FN19
Optional
D512
Return value from PLC
Optional
• Note: Change in the binary block format in an RND block
If an RND block has been used in an OEM cycle, the PLC chip must be remade!