17: USER COMMUNICATION INSTRUCTIONS
OPENNET CONTROLLER USER’S MANUAL 17-21
Receive Status
Designate a data register, D0 through D7998, as an operand to store the receive status information including a receive sta-
tus code and a user communication error code.
Receive Status Code
If the receive status code is other than shown above, an error of receive instruction is suspected. See User Communication
Error Code on page 17-25.
Receive Data Byte Count
The data register next to the operand designated for receive status stores the byte count of data received by the RXD
instruction. When a start delimiter, end delimiter, and BCC are included in the received data, the byte counts for these
codes are also included in the receive data byte count.
Example: Data register D200 is designated as an operand for receive status.
User Communication Receive Instruction Cancel Flag
Special internal relays M8022 and M8023 are used to cancel all RXD1 and RXD2 instructions, respectively. While the
OpenNet Controller has completed receive format and is ready for receiving incoming data, turning on M8022 or M8023
cancels all receive instructions for RS232C port 1 or port 2, respectively. This function is useful to cancel receive instruc-
tions only, without stopping the OpenNet Controller.
To make the cancelled RXD instructions active, turn off the flag and turn on the input to the RXD instruction again.
Receive
Status Code
Status Description
16 Preparing data receive
From turning on the start input for a RXD instruction to read the
receive format, until the RXD instruction is enabled by an END pro-
cessing
32 Receiving data
From enabling the RXD instruction by an END processing, until incom-
ing data is received
48 Data receive complete
From receiving incoming data, until the received data is converted and
stored in data registers according to the receive format
64 Receive instruction complete
All data receive operation is completed and the next data receive is
made possible
128
User communication receive
instruction cancel flag active
RXD instructions are cancelled by special internal relay M8022 or
M8023
D200
Receive status
D201
Receive data byte count
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com