7 Communication Using MC Protocol
47
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.1 Data Codes for Communication
7. Communication Using MC Protocol
This chapter gives an overview of the MC protocol.
The frame type of MC protocol (data communication messages) used by the external device to access the
PLC via this product is equivalent to A compatible 1E frame.
7.1
Data Codes for Communication
This section explains the data codes used in communication between the Ethernet adapter and the external
device or the PLC.
1) The data codes used while communicating are listed below.
a) Ethernet adapter
External device
You can execute data communication by selecting "binary code" or "ASCII code" in GX Works2.
To switch between binary code/ASCII code, refer to Section 6.6.
2) When communicating using ASCII code, 1-byte binary code data is automatically converted into 2-byte
ASCII code data and then transmitted.
(Example)
7.2
Data Communication Function
The MC protocol is the abbreviated name of the MELSEC protocol that is a communication system for the
PLCs. Using this protocol, the external devices can read or write device data from/to the PLC via the Ethernet
adapter.
Any external devices on which application programs can be installed and which can send and receive data in
accordance with the MELSEC PLC protocol can access the PLC using MC Protocol.
L
H
H
Head device
Text (Command)
ACPU
monitoring
timer
PC
No.
Subheader
Header
Ethernet
(14bytes)
IP
(20bytes)
TCP
/
UDP
L
(Command message for A compatible 1E frame)
Number of
device points
00
H
0A
H
00
H
00
H
00
H
00
H
20
H
40
H
0C
H
00
H
FF
H
64
H
(Example)
Binary code data
15H
(One byte)
ASCII code data
31H, 35H
(Two bytes)
(Four bytes)
"1" , "5"
1234H
(Two bytes)
"4"
"3" ,
"2" ,
"1" ,
31H, 32H, 33H, 34H
Содержание 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: ......