F-78
FX Series PLC User's Manual - Data Communication Edition
Non-Protocol Communication (RS/RS2 Instruction)
10 When Combined with Another Communication
10.6 Communication Setting Method Using Sequence Program
10.6 Communication Setting Method Using Sequence Program
In the setting method using a sequence program, transfer values to the communication format device (D8120,
D8400 or D8420).
This section explains related devices and the setting method using a sequence program.
10.6.1 Communication setting for RS instruction
The following device is used in the communication setting.
1. D8120 (communication format)
By setting values to D8120, the data length, parity, baud rate, etc. can be set.
The table below shows the contents of D8120.
*1. This setting is available only in FX
3G PLCs.
*2. Make sure to set as "0" when using non-protocol communication.
*3. When using the RS-485/RS-422 interface, only FX
1S, FX0N, FX1N, FX2N, FX3G, FX3U, FX1NC, FX2NC,
and FX
3UC PLCs are applicable.
Bit No. Name
Contents
0 (bit = OFF) 1 (bit = ON)
b0 Data length 7-bit 8-bit
b1
b2
Parity
b2, b1
(0, 0): Not provided
(0, 1): Odd
(1, 1): Even
b3 Stop bit 1-bit 2-bit
b4
b5
b6
b7
Baud rate
(bps)
b7, b6, b5, b4 b7, b6, b5, b4
(0, 0, 1, 1): 300 (0, 1, 1, 1): 4800
(0, 1, 0, 0): 600 (1, 0, 0, 0): 9600
(0, 1, 0, 1): 1200 (1, 0, 0, 1): 19200
(0, 1, 1, 0): 2400 (1, 0, 1, 0): 38400
*1
b8 Header Not provided
Provided (D8124) initial value: STX (02H)
b9 Terminator Not provided
Provided (D8125) initial value: ETX (03H)
b10
b11
Control line
Non-
protocol
commu-
nication
b11, b10
(0, 0): Not provided <RS-232C interface>
(0, 1): Standard mode <RS-232C interface>
(1, 0): Interlink mode <RS-232C interface>
(FX
2N whose version is Ver. 2.00 or later, FX3G, FX3U, FX2NC, and
FX
3UC)
(1, 1): Modem mode
<RS-232C interface, RS-485/RS-422 interface
*3
>
Com-
puter
link
b11, b10
(0, 0): RS-485/RS-422 interface
(1, 0): RS-232C interface
b12 Not applicable
b13
*2
Sum check Not added Added
b14
*2
Protocol Not used Used
b15
*2
Control procedure Format 1 Format 4