7 Communication Using MC Protocol
49
FX
3U
-ENET-ADP User's Manual
1
Introduc
tion
2
Specifi
cation
3
Sy
stem
Configurati
on
4
Ins
tal
lation
5
Wi
rin
g
6
Introduction of
Functi
on
s
7
C
omm
uni
cation
U
sing
M
C
Protocol
8
The O
perati
on
of G
X
W
ork
s2
9
Troubl
es
hooti
ng
A
Li
st of S
peci
al
Dev
ices
7.2 Data Communication Function
7.2.3
Access Timing on the PLC Side
The following diagram illustrates the access timing on the PLC side when an external device accesses the
PLC via the Ethernet adapter.
1) A command message is transmitted from the external device to the PLC side.
2) Upon receiving a command message from the external device, the Ethernet adapter on the PLC side
sends a data read/write request to the PLC according to the content of the command.
3) The PLC reads/writes data according to the request from the external device at the time of executing the
sequence program's END instruction, and passes the processing result to the Ethernet adapter.
4) Upon receiving the processing result from the PLC, the Ethernet adapter sends a response message
including the processing result to the external device that originated the request.
*1.
The ACK response shown in the diagram is sent/received between the Ethernet adapter and the
external device respectively when access via the Ethernet adapter is performed by TCP/IP
communication. It is different from the response to the processing requested by the external device in
the command message (the processing result).
When access via the Ethernet adapter is performed by UDP/IP, the ACK response indicated by *1 is
not sent.
Regarding the scan time of the PLC
• While the PLC is performing a required command, access command to the Ethernet adapter and the PLC
is processed during every END processing.
(The scan time becomes longer according to the amount of time it takes to process the command.)
• When multiple external devices issue access requests to the Ethernet adapter at the same time, the
processing requested from the external devices may have to wait for multiple END processing executions
depending on the timing of the requests.
7.2.4
PLC setting for performing data communication
Set the following contents in GX Works2, write parameters to the main unit, and turn OFF and ON the power
of the Ethernet adapter (PLC) to enable data communication using the MC protocol.
1) Operational settings (Refer to Section 6.6, Section 8.1)
2) Open settings (Refer to Section 6.11, Section 8.2)
*1
*1
STEP 0
END
STEP 0
END
STEP 0
END
STEP 0
END
External device
Read/write command
(command)
Ethernet adapter
ACK
ACK
Reply to the command
(response)
4)
1)
3)
2)
PLC
END processing
END processing
END processing
Processing of the command from the external device
Содержание FX3U-ENET-ADP
Страница 1: ...FX3U ENET ADP USER S MANUAL ...
Страница 2: ......
Страница 6: ... 4 Safety Precautions Read these precautions before use MEMO ...
Страница 160: ...154 FX3U ENET ADP User s Manual Revised History Revised History Date Revision Description 2 2012 A First Edition ...
Страница 161: ......