HEIDENHAIN TNC 306 Technical Manual User Manual
Page 169

3/97
TNC 406/TNC 306
4 Gap control
4-69
Example: Read 8 Markers:
Eight Markers are to be read starting from Marker M1800.
Marker states: 0 0 0 1 1 1 1 0
Generator protocol:
<SYNC> <Number
n
> <ID character> <Hi-byte no.> <Low-byte no.>
<BCC>
Generator transmits:
CA 03 00 07 08 0C
PLC transmits:
ACK or NAK
PLC protocol:
<SYNC> <Number
n
> <ID character> <Hi-byte no.> <Low-byte no.>
<00..FF> <BCC>
PLC transmits:
CA 04 00 07 08 1E 14
Generator transmits:
ACK or NAK
Example: Reset a Marker
Marker 1800 is to be reset.
Generator protocol:
<SYNC> <Number
n
> <ID character> <Hi-byte no.> <Low-byte no.>
<00..FF> <BCC>
Generator transmits:
CA 04 02 07 08 00 09
PLC transmits:
ACK or NAK
Example: Read Bytes
Five bytes are to be read starting with Byte 22 (B22=1F, B23=07, B24= 2A, B25=11, B26=00).
Generator protocol:
<SYNC> <Number
n
> <ID character> <Hi-byte no.> <Low-byte no.>
<Number of data bytes> <BCC>
Generator transmits:
CA 04 04 00 16 05 13
PLC transmits:
ACK or NAK
PLC protocol:
<SYNC> <Number
n
> <ID character> <Hi-byte no.> <Low-byte no.>
<Byte 1> < > <....> <Byte 5> <BCC>
PLC transmits:
CA 08 04 00 16 1F 07 2A 11 00 3B
Generator transmits:
ACK or NAK
Example: Load Bytes
Three bytes (B100, B101 and B102) are to be loaded into the 3 bytes starting with B22.
Generator protocol:
<SYNC> <Number
n
> <ID character> <Hi-byte no.> <Low-byte no.>
<Byte 1> < > <Byte 3> <BCC>
Generator transmits:
CA 06 06 00 16 64 65 66 71
PLC transmits:
ACK or NAK