beautypg.com

3 status of data interface (module 9102) – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 625

background image


7-164

TNC 407/TNC 415/TNC 425

4 PLC Modules

01.98

Call:

PS

B/W/D/K

CM

9101

Error status after call: M3171 =

0: Interface assignment was cancelled
1: Error condition see above

4.8.3 Status of Data Interface (Module 9102)

Module 9102 reads all the relevant status information about one of the two serial interfaces in bit-
coded form.

Constraints:
- The information "interface ready" is only updated when the interface is assigned to either the PLC

or the NC. If the interface is not assigned, the Module reads the status which was valid before the
last interface enable (whether by PLC or NC).

- Module 9102 can also be called from the cyclical PLC program section.

Possible errors:
- The call parameter for interface selection is outside the permitted range (0..1).

Call:

PS

B/W/D/K

CM

9102

PL

B/W/D


Bit 0: Interface is assigned
1: Interface is assigned to PLC
2: Interface is ready (see above)
3: Transmit buffer is empty
4: Transmit error
5: Receive buffer is full
6: Receive error
7: ETX was received (not ready to receive)

Error status after call: M3171 =

0: Status was read
1: Wrong call parameter