Example Program; Personal Computer - Mitsubishi Electric MELSEC FX Series User Manual

Programmable logic controllers
Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FX communication
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.)
Data length
Parity
Stop bit
Baud rate
Header
Terminator
Control line
Protocol
3 ) Operation
Power ON
Receiving data
from personal
computer
Sending data to
personal computer
R e ce ive
S e n d
8 bit
Even
2 bit
9,600 bps
None
None
Normal mode 1
No protocol
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.
F X
-2 3 2 -B D
F X
2 N
2 N
RS instruction 9
9
#
$
(
)
+
,
*
9-15

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rs-232cRs-422Rs-485

Table of Contents