beautypg.com

HEIDENHAIN TNC 335 Technical Manual User Manual

Page 492

background image


8/95

TNC 360

4 PLC Modules

7-113

4.9.5 Module 9106: Receive binary data via data interface

Module 9106 reads a block of binary data from the receiving buffer of an interface into the word
memory of the PLC. This process clears the receiving buffer.
The length of the received binary block is fed back as the output.

The appropriate interface must be assigned to the PLC with module 9100 before module 9106 is
called.

Module 9106 can only be run within a SUBMIT program.

Module call:

PS K/B/W/D

Interface

0 = RS-232-C/V.24
(1 = RS-422/V.11)

PS K/B/W/D

Address of first byte
in binary block
(Start address: 0 to 1023)

CM 9106
PL B/W/D

Length of binary block in bytes

If the module is incorrectly processed the block of binary data is not read into the word memory and
marker M3171 is set.

Potential errors:

- The call parameters of the module are outside the permitted range.
- The interface is not assigned to the PLC.
- The receiving buffer contains no data.
- The number of characters in the receiving buffer is uneven or greater than 126.
- The binary block cannot be stored at the specified address because it is too long (start address +

length > 1024).

- The data in the receiving buffer contain characters that cannot be interpreted as hexadecimal

values. Only the characters 0 to 9, A to F and control characters are permitted.