Module 9040: transfer coordinate values to the plc, Data transfer by the plc, 9 data transfer by the plc – HEIDENHAIN TNC 335 Technical Manual User Manual
Page 488

8/95
TNC 360
4 PLC Modules
7-109
4.8 Module 9040: Transfer coordinate values to the PLC
Module 9040 transfers axis coordinates for all the NC axes to the PLC. Actual value, nominal value,
reference value, servo lag and distance-to-go can be transferred. The values are loaded in the format
1/1000 mm or 1/1000°, beginning at the given target address, in five Doublewords for the X, Y, Z,
and 4th axes.
Module call:
PS K/B/W/D
Target address for axis coordinates
PS K/B/W/D
Coordinate type
0 = Actual value
1 = Nominal value
2 = Reference value
3 = Servo lag
4 = Distance-to-go
CM 9040
Regardless of whether individual axes are disabled by MP10, the values for all axes will always be
read in. The coordinate value for an axis is undefined until the reference point for this axis has been
passed over.
If the transfer is incorrect, marker M3171 will be set.
4.9 Data transfer by the PLC
The modules described in this section enable the PLC to transfer data via the RS-232-C/V.24 or
RS-422/V.11 data interfaces (see Chapter "Data Interface" for transfer parameters).
The PLC assigns and enables the data interfaces with modules 9100 and 9101. The current status
of the data interface is interrogated by module 9102.
The transmitting and receiving buffers for the PLC are both 128 characters long. Each STRING
terminates in an END character in the transmitting or receiving buffer and therefore a STRING can
contain a maximum of 127 characters. Modules 9105 and 9106 can be used to transfer a block of
binary values (bytes) from the word memory.
Example: Transferring a binary block
11111010
➞ B126
.
.
.
10000001
= $ FA
= $ 81
.
.
.
.
When transferring binary data from address
B126 in word memory, the ASCII characters "F",
"A", "8", "1" etc. are transmitted in succession via
the interface.
When binary data are transferred, every byte
contains two ASCII characters. Therefore the
transmitting and receiving buffers are 63 bytes
long.