9 - 5
MELSEC-F
WHEN COMMUNICATING DATA USING THE MC PROTOCOL
9
9 - 5
2) When writing data to the local station PLC from the external device side
(b) Communication in binary code
1) When reading data from the local station PLC at the external device side
External device side
PLC side (Command message)
Text (Command)
(Data name)
Header
Subheader
PC No.
Monitoring
timer
Character area C
PLC side
External device side (Response message)
(Normal completion)
Header
Subheader
Complete code
Text (Response)
The contents and arrangement of the data items in
the text differs according to the function to use.
See the sections explaining functions found in
Subsection 9.3.2 and after for details
(Abnormal completion)
Text (Response)
Header
Subheader
Complete code
Abnormal code
When complete code
5B
H
is returned
Exists only when the complete code is "5B."
(Example)
H
H
L
L
-
-
F
F
A
0
0
0
0
2
30
H
30
H
30
H
30
H
32
H
46
H
46
H
41
H
H
L
8
2
0
0
30
H
30
H
32
H
38
H
32
H
32
H
38
H
30
H
30
H
31
H
35
H
42
H
H
H
L
L
8
5
2
1
2
0
0
B
External device side
PLC side (Command message)
(Data name)
(Example)
Header
Subheader
PC No.
Monitoring
timer
Text (Command)
Character area A
The contents and arrangement of the data items in
the text differs according to the function to use.
See the sections explaining functions found in
Subsection 9.3.2 and after for details
L
H
00
H
FF
H
0A
H
00
H
PLC side
External device side (Response message)
(Normal completion)
(Abnormal completion)
Text (Response)
Header
Subheader
Complete code
00
H
80
H
Character area B
When complete code
5B
H
is returned
Exists only when the complete code is "5B."
Text (Response)
Header
Subheader
Complete code
80
H
00
H
12
H
5B
H
Abnormal code