06.08.2013 Views

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.8 Module 9040: Transfer coordinate values to the PLC<br />

Module 9040 transfers axis coordinates for all the NC axes to the PLC. Actual value, nominal value,<br />

reference value, servo lag and distance-to-go can be transferred. The values are loaded in the format<br />

1/1000 mm or 1/1000°, beginning at the given target address, in five Doublewords for the X, Y, Z,<br />

and 4th axes.<br />

Module call:<br />

PS K/B/W/D Target address for axis coordinates<br />

PS K/B/W/D Coordinate type<br />

0 = Actual value<br />

1 = Nominal value<br />

2 = Reference value<br />

3 = Servo lag<br />

4 = Distance-to-go<br />

CM 9040<br />

Regardless of whether individual axes are disabled by MP10, the values for all axes will always be<br />

read in. The coordinate value for an axis is undefined until the reference point for this axis has been<br />

passed over.<br />

If the transfer is incorrect, marker M3171 will be set.<br />

4.9 Data transfer by the PLC<br />

The modules described in this section enable the PLC to transfer data via the RS-232-C/V.24 or<br />

RS-422/V.11 data interfaces (see Chapter "Data Interface" for transfer parameters).<br />

The PLC assigns and enables the data interfaces with modules 9100 and 9101. The current status<br />

of the data interface is interrogated by module 9102.<br />

The transmitting and receiving buffers for the PLC are both 128 characters long. Each STRING<br />

terminates in an END character in the transmitting or receiving buffer and therefore a STRING can<br />

contain a maximum of 127 characters. Modules 9105 and 9106 can be used to transfer a block of<br />

binary values (bytes) from the word memory.<br />

Example: Transferring a binary block<br />

➞ B126<br />

.<br />

.<br />

11111010<br />

10000001<br />

.<br />

.<br />

.<br />

= $ FA<br />

= $ 81<br />

When transferring binary data from address<br />

B126 in word memory, the ASCII characters "F",<br />

"A", "8", "1" etc. are transmitted in succession via<br />

the interface.<br />

When binary data are transferred, every byte<br />

contains two ASCII characters. Therefore the<br />

transmitting and receiving buffers are 63 bytes<br />

long.<br />

8/95 <strong>TNC</strong> <strong>360</strong> 4 PLC Modules 7-109

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!