7 Communication Using MC Protocol
51
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.3 Message Formats and Control Procedures
2) When an external device writes data to the PLC
a) Area C indicates transmission from the external device to the PLC.
b) The program of the external device is generated so that the data is transmitted sequentially from left to
right. (For example: in case of area C, data should be sequentially sent starting from the header.)
When the PLC receives a command message from an external device, it completes processing of the data in
area A/C, then sends a response message and waits for the next command message (neutral state).
7.3.2
Message format and control procedure
This section explains the message format and control procedure.
1) Message format
This section explains the message format for transmission between the Ethernet adapter and an external
device.
The communication data consists of "header" and "application data" as shown below.
a) Header
The header for TCP/IP or UDP/IP is used. The user does not need to specify it; the Ethernet adapter
attaches it.
b) Application data
The application data is largely divided into "subheader" and "text" as shown below.
- The subheader represents command/response and the setting value is predetermined.
- The text contains the request data (command) and response data (response) for each function and
this data is determined by the prescribed format (for a more detailed description, refer to Section 7.5
and later).
c) Format in the application data field
- Communication in ASCII code
- Communication in binary code
External
device side
(Command message)
PLC side
Header
Subheader
PC No.
Monitoring timer
Area C
Header
Subheader
Co
m
pl
et
e c
od
e
(Response message)
Header
Application data
Application data
External
device
side
PLC side
Subheader
Text (command)
2 bytes
Differs depending
on function
2 bytes
Differs depending on
function and
normal/abnormal
completion
Subheader
Text (response)
Application data
Application data
External
device
side
Subheader
Text (command)
1 byte
Differs depending
on function
PLC side
1 byte
Differs depending on
function and
normal/abnormal
completion
Subheader
Text (response)
Application data
Summary of Contents for FX3U-ENET-ADP
Page 1: ...FX3U ENET ADP USER S MANUAL ...
Page 2: ......
Page 6: ... 4 Safety Precautions Read these precautions before use MEMO ...
Page 161: ......