January 2012 9.11 Data Transfer by PLC 1803
Module 9107 Read from receiving buffer
You must first assign the interface to the PLC and initialize it with Module
9100.
Module 9107 reads two ASCII characters from the receive buffer to one of the
two interfaces and codes them to a binary value.
You can specify an offset that corresponds to the position of the byte to be
read in a binary block read by Module 9106. The contents of the receiving
buffer are retained and can be read by Modules 9104 and 9106.
Can only be called in a submit job or spawn job!
Call:
PS B/W/D/K <>Interface>
0: RS232
1: RS422
PS B/W/D/K <>Offset of byte to be read in binary block>
CM 9107
PL B/W/D <>Binary value read>
Error recognition:
Marker Value Meaning
NN_GenApiModule
Error (M4203)
0 Receiving buffer was read
1 Error code in NN_GenApiModuleErrorCode
(W1022)
NN_GenApiModule
ErrorCode (W1022)
1 Incorrect interface or incorrect byte number
11 Illegal character
12 String too long or offset too large
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