Communication Setting For Rs2 Instruction - Mitsubishi Electric FX3U-232-BD User Manual

Melsec-f fx series programmable controllers data communication edition
Table of Contents

Advertisement

FX Series PLC User's Manual - Data Communication Edition
Non-Protocol Communication (RS/RS2 Instruction)

10.6.2 Communication setting for RS2 instruction

The following devices are used in the communication setting.
When using communication port ch0, set D8370.
When using communication port ch1, set D8400.
When using communication port ch2, set D8420.
1. D8370, D8400 and D8420 (communication format)
By setting values to D8400 or D8420, the data length, parity, baud rate, etc. can be set.
The table below shows the contents of D8400 and D8420.
Bit No.
b0
b1
b2
b3
b4
b5
b6
b7
b8
b9
b10
b11
b12
b13
*3
b14
Control proce-
b15
dure (CR, LF)
*1.
In RS2 instruction, up to four headers and up to four terminators can be set.
*2.
The control line is not available in FX
*3.
Make sure to set as "0" when using non-protocol communication.
*4.
When executing non-protocol communication using RS2 instruction, add the sum check code after the
terminators.
Make sure to set the terminators when adding the sum check code.
To set the communication type, use the following program.
M8002
Initial pulse
D8120 = [
F-86
Name
Data length
b2, b1
(0, 0): Not provided
Parity
(0, 1): Odd
(1, 1): Even
Stop bit
b7, b6, b5, b4
(0, 0, 1, 1): 300
Baud rate
(0, 1, 0, 0): 600
(bps)
(0, 1, 0, 1): 1200
(0, 1, 1, 0): 2400
Header
Terminator
b12, b11, b10
(0, 0, 0): Not provided <RS-232C interface>
Non-
(0, 0, 1): Standard mode <RS-232C interface>
protocol
Control line
(0, 1, 0): Interlink mode <RS-232C interface>
commu-
(0, 1, 1): Modem mode <RS-232C interface>
nication
(1, 1, 1): Communication in accordance with RS-485
*2
Sum check
Protocol
CR, LF: Not used (Format 1)
FNC 12
MOV
b15
0001
1100
1000
1
C
8
10 When Combined with Another Communication
10.6 Communication Setting Method Using Sequence Program
Contents
0 (bit = OFF)
7-bit
1-bit
b7, b6, b5, b4
(0, 1, 1, 1): 4800
(1, 0, 0, 0): 9600
(1, 0, 0, 1): 19200
(1, 0, 1, 0): 38400
Not provided
Not provided
<RS-485/RS-422 interface>
Not added
Not used
, FX
PLCs when ch0 is used. Set "(1, 1, 1)".
3G
3GC
H1C86
D8400
Parity
Stop bit
b0
Baud rate
0110
]
Protocol
6
Header
Terminator
Control line
1 (bit = ON)
8-bit
2-bit
Provided
Provided
*4
Added
Used
CR, LF: Used (Format 4)
Data length
Even
1-bit
9600 bps
Non-protocol
Not provided
Not provided
Communication in
accordance with RS-485
*1
*1
7-bit

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents