Mitsubishi FX3U-232-BD User Manual page 509

Fx3u series
Hide thumbs Also See for FX3U-232-BD:
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 ch1, set D8400.
When using communication port ch2, set D8420.
1. 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
Data length
b1
b2
b3
b4
b5
Baud rate
b6
b7
b8
b9
Terminator
b10
b11
Control line
b12
b13
Sum check
*1
b14
Control proce-
b15
dure (CR, LF)
*1.
Make sure to set as "0" when using non-protocol communication.
*2.
In RS2 instruction, up to four headers and up to four terminators can be set.
*3.
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 = [
Name
0 (bit = OFF)
b2, b1
(0, 0): Not provided
Parity
(0, 1): Odd
(1, 1): Even
Stop bit
b7, b6, b5, b4
(0, 0, 1, 1): 300
(0, 1, 0, 0): 600
(bps)
(0, 1, 0, 1): 1200
(0, 1, 1, 0): 2400
Header
b12, b11, b10
(0, 0, 0): Not provided <RS-232C interface>
Non-
(0, 0, 1): Standard mode <RS-232C interface>
protocol
(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
Protocol
CR, LF: Not used (Format 1)
FNC 12
H1C86
MOV
b15
0001
1100
1000
0110
1
C
8
10 When Combined with Another Communication
10.6 Communication Setting Method Using Sequence Program
Contents
7-bit
1-bit
b7, b6, b5, b4
(0, 1, 1, 1): 4800
(1, 0, 0, 0): 9600
(1, 0, 0, 1): 19200
Not provided
Not provided
<RS-485/RS-422 interface>
Not added
Not used
Data length
D8400
Parity
Stop bit
b0
Baud rate
]
Protocol
6
Header
Terminator
Control line
1 (bit = ON)
8-bit
2-bit
*2
Provided
*2
Provided
*3
Added
Used
CR, LF: Used (Format 4)
7-bit
Even
1-bit
9600 bps
Non-protocol
Not provided
Not provided
Communication in
accordance with RS-485
F-71
A
B
C
D
E
F
G
H
I
Apx.

Advertisement

Table of Contents
loading

Table of Contents