User`s manual
FX communication
FX
2N
-232IF 10
10-19
10
10.4 Example Program
10.4.1 Example of 16 Bits Data Communication
This system configuration describes an example in which 16-bit buffer length data is sent and
received between the equipment of the terminal specifications. In this example, the ASCII code
saved in the data registers D201 to D205 in the programmable controller sent to the counterpart
equipment, and the data received from the counterpart equipment is saved to the data registers
D301 to D304 in the programmable controller.
1 ) System configuration
2 ) Example setting buffer memories
The items not described here are set to the default respectively.
a ) Communication format <BFM #0>
FX
2N
programmable contraller FX
2N
-232IF
Personal computer
Cross cable
b15
0
0 0 0 0 0 0 0 0 1 0 0 1 1 1 1 1
b0
0
9 F
(009F
H
)
b8 b7
Bit Description Setting
b0 Data length (1): 8 bits
b1
b2
Parity (1, 1): Even
b3 Stop bit (1): 2 bits
b4
b5
b6
b7
Baud rate (1001): 19200 bps
b8
b9
Control line (0, 0): Not used
b10
b11
Addition of CR and LF (0, 0): Not added
b12
b13
Availability of check sum and
ASCII/HEX conversion
(0, 0): Not available
b14 Send/receive buffer data length (0): 16 bits
b15 Undefined
.
Specification item for
16-bit length