1798 HEIDENHAIN Technical Manual MANUALplus 620
Module 9102 Status of data interface
Module 9102 reads the status information about an interface in bit-coded 
form.
The information "interface ready" is updated when the interface is assigned to 
the PLC or NC. If the interface is not assigned, the module reads the last valid 
status.
Call:
PS B/W/D/K <>Interface>
0: RS232
1: RS422
CM 9102
PL B/W/D <>Interface status>
–1: Error code in NN_GenApiModuleErrorCode (W1022)
Bit 0: Interface is assigned
Bit 1: Interface is assigned to the PLC
Bit 2: Interface is ready
Bit 3: Transmit buffer is empty
Bit 4: Error during transmission
Bit 5: Receive buffer is full
Bit 6: Error in reception
Bit 7: ETX was received (not ready to receive)
Bit 8: Internal buffer from Module 9113 contains characters
Error recognition: 
Marker Value Meaning
NN_GenApiModule
Error (M4203)
0 Status read
1 Error code in NN_GenApiModuleErrorCode 
(W1022)
NN_GenApiModule
ErrorCode (W1022)
1 Incorrect interface