Sending/Receiving 8-Bit Buffer Length Data - 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.2

Sending/Receiving 8-Bit Buffer Length Data

In this example, the 8-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 D209 in the PLC are
sent to the external equipment, and the data received from the external equipment is stored to data registers
D301 to D308 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
b12
Absence/presence of check sum and ASCII-
b13
Hexadecimal conversion
b14
Send/receive data buffer data length
b15
Undefined
b15
0
1
0
4
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
4) Header and terminator <BFM #4 to 11>
BFM #4 and 8 (sending header and receiving header): 02
BFM #6 and 10 (sending terminator and receiving terminator): 03
-232IF)
2N
PO W E R
S D
R D
+
FX
-232IF
2N
Contents
b8 b7
0
0
0
0
0
1
0
0
1
0
9
6.2 Sending/Receiving 8-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
(1) : 8-bit
b0
1
1
1
1
F
(409F
)
H
(STX)
H
(ETX)
H
6 Practical Program Examples
 Item to specify 8-bit data
G-37
A
B
C
D
E
F
G
H
I
Apx.A

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents