beautypg.com

HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 628

background image


01.98

TNC 407/TNC 415/TNC 425

4 PLC Modules

7-167

4.8.6 Transmit Binary Data across Data Interface (Module 9105)

Module 9105 transmits a block of binary values from the Word RAM of the PLC to one of the two
serial interfaces. The transfer is in the form of ASCII coded hexadecimal values, so every byte in the
source block makes 2 ASCII characters at the serial interface.

Constraints:
- The interface must be assigned to the PLC and initialized by Module 9100 before Module 9105 is

called.

- Module 9105 only operates within the scope of a Submit Job.

Possible errors::
- The call parameters are outside the permitted range (0..1 for the interface, 0..1023 for the start of

the binary block, 0..63 for the length of the binary block).

- The interface is not assigned to the PLC.
- The module was not called from a Submit Job.
- The transmit buffer is not empty.
- Because of its length the binary block cannot be read from the specified address (start+length >

1024).

- A transmit error was detected when the transmission was initialized.

Call:

PS

B/W/D/K

PS

K/B/W/D

PS

K/B/W/D

CM

9105

Error status after call: M3171 =

0: Hexadecimal string is transmitted
1: Error condition see above

4.8.7 Receive Binary Data across Data Interface (Module 9106)

Module 9106 reads a block of binary values from one of the two serial interfaces to the Word RAM
of the PLC. The transfer is in the form of ASCII coded hexadecimal values, so every 2 ASCII
characters from the serial interface make 1 byte in the binary block. The length of the read binary
block is returned as the initial variable.

Constraints:
- The interface must be assigned to the PLC and initialized by Module 9100 before Module 9106 is

called.

- Module 9106 only operates within the scope of a Submit Job.