3 module 9102: interface status – HEIDENHAIN TNC 335 Technical Manual User Manual
Page 490

8/95
TNC 360
4 PLC Modules
7-111
4.9.3 Module 9102: Interface status
Module 9102 reports all relevant status information about the data interfaces in bit-encoded form.
The "Interface ready" information is not updated until the interface is assigned to either the PLC or
the NC. If the interface is not assigned, the module reports the status that was valid prior to the last
interface enable.
Module call:
PS K/B/W/D Interface
0 = RS-232-C/V.24
(1 = RS-422/V.11)
CM 9102
PL B/W/D
The status of the interface is bit-encoded and filed into the addressed storage area
from the STACK.
The following states are possible:
Bit 0 = 1 The interface is assigned to the NC.
Bit 1 = 1 The interface is assigned to the PLC.
Bit 2 = 1 The interface is ready.
Bit 3 = 1 The transmitting buffer is empty.
Bit 4 = 1 A transmit error has occurred.
Bit 5 = 1 The receiving buffer is full.
Bit 6 = 1 A receive error has occurred.
Bit 7 = 1 The character for end of text (<EXT> or defined in MP5201.2) was received, i.e.
the interface is no longer ready to receive.
All higher-order bits in the STACK are deleted, combinations are possible.
Marker M3171 is set if the call parameters of the module are outside the permitted range.