IDEC FC4A-C10R2 User Manual page 294

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

17: U
C
SER
OMMUNICATION
User Communication Receive Instruction Dialog Box in WindLDR
Selections and Operands in Receive Instruction Dialog Box
TXD
Type
RXD
Port 1
Port
Port 2
S1
Source 1
D1
Destination 1
D2
Destination 2
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)
Receive
Format
D0-D1299
Data Register
D2000-D7999
Start Delimiter
00h-7Fh (FFh)
End Delimiter
00h-7Fh (FFh)
BCC
Skip
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.
17-16
I
NSTRUCTIONS
Transmit instruction
Receive instruction
Receive user communication through port 1 (RXD1)
Receive user communication through port 2 (RXD2)
Enter the receive format in this area.
The receive format can include a start delimiter, data register to store incoming data, end
delimiter, BCC, and skip.
Receive completion output can be an output or internal relay.
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
Operand
Digits
(Bytes)
1-4
1-5
1-2
1-2
« FC4A M
Conversion Type
Repeat
A: ASCII to Binary
B: ASCII to BCD
1-99
–: No conversion
No conversion
No conversion
A: Binary to ASCII
–: No conversion
S
U
'
M
ICRO
MART
SER
S
ANUAL
Calculation
BCC Calculation
X: XOR
A: ADD
C: Add-2comp
1-15
M: Modbus ASCII
M: Modbus RTU
»
Skip
Start
Bytes
Position
1-99

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents