User`s manual
FX communication
RS instruction 9
9-15
9
9.4 Example Program
9.4.1 Personal Computer
When a programmable controller is connected to a personal computer, and data send/receive is
performed by the programmable controller
1 ) System configuration
Use a communication cable suitable to the arrangement of connector pins of the personal
computer used. (For the representative wiring, refer to chapter 2.)
2 ) Communication format
If the communication format of the commercial communication software used cannot realize
the following setting, set the programmable controller in accordance with the commercial
communication software.
(The communication format in this example is set as follows.)
3 ) Operation
Data length 8 bit
Parity Even
Stop bit 2 bit
Baud rate 9,600 bps
Header None
Terminator None
Control line Normal mode 1
Protocol No protocol
Receive
Send
FX
2N
-232-BD FX
2N
Power ON
Receiving data
from personal
computer
Sending data to
personal computer
PLC and personal computer are turned ON.
When PLC is in RUN status, PLC can receive data from
personal computer.
When operating program of personal computer, data is sent to
D0 in PLC. This data value is A$ (40) in program. At this time,
data (D0, D1) moves to D10, D11 in the PLC.
After moving data, PLC sends data (D10, D11) to the personal
computer. When receiving data from the PLC, the personal
computer displays the data.
*
$
#
(
+
)
,