1800 HEIDENHAIN Technical Manual MANUALplus 620
Module 9104 Receive string through data interface
You must first assign the interface to the PLC and initialize it with Module 
9100.
Module 9104 reads a string from the receive buffer of a serial interface in a 
string memory and resets the receive buffer.
Can only be called in a submit job or spawn job!
Call:
PS B/W/D/K <>Interface>
0: RS232
1: RS422
PS K/B/W/D <>Number of the string in the string buffer>
CM 9104
Error recognition: 
Marker Value Meaning
NN_GenApiModule
Error (M4203)
0 String was received
1 Error code in NN_GenApiModuleErrorCode 
(W1022)
NN_GenApiModule
ErrorCode (W1022)
1 Incorrect interface or incorrect string number
12 String too long
14 Interface not assigned
16 Receiving buffer empty
18 Transmission error or input/output not ready
20 Module was not called in a spawn job or 
submit job