10: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
10-28
FC5A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y-B1268
Receive Status
Designate a data register, D0-D1998, D2000-D7998, or D10000-D49998, as a device to store the receive status informa-
tion including a receive status code and a user communication error code.
Receive Status Code
Receive
Status Code
Status
Description
16
Preparing data receive
From turning on the start input for a RXD instruction to read the receive for-
mat, until the RXD instruction is enabled by an END processing
32
Receiving data
From enabling the RXD instruction by an END processing, until incoming 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 for user communica-
tion receive instruction cancel flag, such as M8022 or M8023
If the receive status code is other than shown above, an error of receive instruction is suspected. See User Communica-
tion Error Code on page 10-32.
Receive Data Byte Count
The data register next to the device 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 a device for receive status.
D200
Receive status
D201
Receive data byte count
User Communication Receive Instruction Cancel Flag
Special internal relays for user communication receive instruction cancel flag are used to cancel all RXD instructions for
each port. While the MicroSmart has completed receive format and is ready for receiving incoming data, turning on the
user communication receive instruction cancel flag cancels all RXD instructions for each port. This function is useful to
cancel receive instructions only, without stopping the MicroSmart.
To make the cancelled RXD instructions active, turn off the flag and turn on the input to the RXD instruction again.
Device
Address
Description
CPU
Stopped
Power
OFF
Remarks
M8022
User Communication Receive Instruction Cancel Flag (Port 1)
Cleared
Cleared
M8023
User Communication Receive Instruction Cancel Flag (Port 2)
Cleared
Cleared
M8033
User Communication Receive Instruction Cancel Flag (Port 3)
Cleared
Cleared
M8145
User Communication Receive Instruction Cancel Flag (Port 4)
Cleared
Cleared
M8146
User Communication Receive Instruction Cancel Flag (Port 5)
Cleared
Cleared
M8147
User Communication Receive Instruction Cancel Flag (Port 6)
Cleared
Cleared
Reserved in all-in-one CPU
M8170
User Communication Receive Instruction Cancel Flag (Port 7)
Cleared
Cleared
Slim CPU only
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]