17: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
17-16
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
User Communication Receive Instruction Dialog Box in WindLDR
Selections and Operands in Receive Instruction Dialog Box
Receive Format
Receive format, designated by source operand 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 format 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.
S1 (Source 1)
Designating Data Register as S1
When a data register is designated as source operand S1, receive digits and conversion type must also be designated. The
received data is divided into a block of specified receive digits, converted in a specified conversion type, and stored to the
designated data register. Conversion types are available in ASCII to Binary, ASCII to BCD, and no conversion.
When repeat is designated, received data is divided, converted, and stored into data registers as many as the repeat cycles,
starting with the designated data register. Repeat cycles can be up to 99.
Type
TXD
Transmit instruction
RXD
Receive instruction
Port
Port 1
Receive user communication through por t 1 (RXD1)
Port 2
Receive user communication through por t 2 (RXD2)
S1
Source 1
Enter the receive format in this area.
The receive format can include a star t delimiter, data register to store incoming data, 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 through D1298 or D2000 through D7998.
The next data register stores the byte count of received data.
Receive
Format
Operand
Receive
Digits
(Bytes)
Conversion Type
Repeat
BCC Calculation
Calculation
Start
Position
Skip
Bytes
Data Register
D0-D1299
D2000-D7999
1-4
1-5
1-2
A: ASCII to Binar y
B: ASCII to BCD
–: No conversion
1-99
—
—
—
Start Delimiter
00h-7Fh (FFh)
—
No conversion
—
—
—
—
End Delimiter
00h-7Fh (FFh)
—
No conversion
—
—
—
—
BCC
—
1-2
A: Binar y to ASCII
–: No conversion
—
X: XOR
A: ADD
C: Add-2comp
M: Modbus ASCII
M: Modbus RTU
1-15
—
Skip
—
—
—
—
—
—
1-99
Содержание FC4A-C10R2
Страница 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...
Страница 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...
Страница 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...
Страница 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...
Страница 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...
Страница 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...
Страница 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...
Страница 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...
Страница 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...
Страница 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...
Страница 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...
Страница 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...
Страница 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...