10: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
10-16
FC5A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y-B1268
User Communication Receive Instruction Dialog Box in WindLDR
Selections and Devices in Receive Instruction Dialog Box
Type
TXD
Transmit instruction
RXD
Receive instruction
Port
Port 1 - Port 7
Receive user communication to port 1 (RXD1) through port 7 (RXD7)
S1
Source 1
Enter the receive format in this area.
The receive format can include a start delimiter, data register to store incoming data, constants, end
delimiter, BCC, and skip.
D1
Destination 1
Receive completion output can be an output or internal relay.
D2
Destination 2
Receive status register can be data register D0-D1998, D2000-D7998, or D10000-D49998.
The next data register stores the byte count of received data.
Receive Format
Receive format, designated by source device S1, specifies data registers to store received data, data digits for storing
data, data conversion type, and repeat cycles. A start delimiter and an end delimiter can be included in the receive for-
mat to discriminate valid incoming communication. When some characters in the received data are not needed, “skip”
can be used to ignore a specified number of characters. BCC code can also be appended to the receive format to verify
the received data. One RXD instruction can receive 200 bytes of data at the maximum.
Constants for verification can be included in the middle of the receive format when using CPU modules with system pro-
gram version 200 or higher.
S1 (Source 1)
Receive
Format
Device
Receive
Digits
(Bytes)
Conversion Type
Repeat
BCC Calculation
Calculation
Start
Position
Skip
Bytes
Delimiter
Data
Register
D0-D1999
D2000-D7999
D10000-D49999
1-4
1-5
1-2
A: ASCII to Binary
B: ASCII to BCD
–: No conversion
1-99
—
—
—
Hex
ASCII
Start
Delimiter
00h-FFh
1 to 5 bytes
—
No conversion
—
—
—
—
End
Delimiter
00h-FFh
—
No conversion
—
—
—
—
Constant for
Verification
00h-FFh
—
No conversion
—
—
—
—
BCC
—
1-2
A: Binary to ASCII
–: No conversion
—
X: XOR
A: ADD
C: Add-2comp
M: Modbus ASCII
M: Modbus RTU
1-15
—
Skip
—
—
—
—
—
—
1-99
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]