Practical Program Examples - 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 (FX
6.

Practical Program Examples

6.1
Example of Sending/Receiving 16-Bit Buffer Length Data
In this example, the 16-bit buffer length data is sent and received between the 232IF and equipment with the
terminal specifications. In this example, ASCII codes stored in the data registers D201 to D205 in the PLC are
sent to the external equipment, and the data received from the external equipment is stored to data registers
D301 to D304 in the PLC.
1. System configuration
FX
Series
3U
2. Example of setting buffer memory
Suppose that each buffer memory not described here is set to the initial value.
1) Communication format <BFM #0>
Bit
b0
Data length
b1
Parity
b2
b3
Stop bit
b4
b5
Baud rate
b6
b7
b8
Control line
b9
b10
CR and LF addition
b11
Absence/presence of check
b12
sum and ASCII-Hexadecimal
b13
conversion
Send/receive data buffer data
b14
length
b15
Undefined
b15
0
0
0
0
0
2) Command <BFM #1>
M0
b0: Sending/receiving enable (ER ON)
M1
b1: Sending command
M2
b2: Receiving complete flag reset command
M3
b3: Error reset
3) Maximum number of receivable bytes <BFM #2>
8 bytes
-232IF)
2N
PO W E R
S D
R D
+
FX
-232IF
2N
Contents
b8 b7
0
0
0
0
1
0
0
1
1
0
9
6.1 Example of Sending/Receiving 16-Bit Buffer Length Data
Cross cable
Personal computer, etc.
Setting
(1) : 8-bit
(1,1) : Even
(1) : 2-bit
(1001) : 19200 bps
(00) : Not provided
(00) : Not provided
(00) : Not provided
 Item to specify 16-bit data
(0) : 16-bit
b0
1
1
1
F
(009F
)
H
6 Practical Program Examples
G-33
A
B
C
D
E
F
G
H
I
Apx.A

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents