Download MELSEC-ST CC-Link Head Module User`s Manual
Transcript
8
COMMANDS
8.2.3
Error history read request (Command No.: 8102H/0102H)
Data size
Cw
4 words (8 bytes)
Cr
4 words (8 bytes)
This command reads the error history of the head module.
(1) Values set to "Cw" Command execution area
Table 8.13 Values set to "Cw" Command execution area
g"Cw" Command
Setting value
execution area
Cw.0
Fixed to 0000H. (slice position No. of the head module.)
Cw.1
Set a command No.(8102H/0102H) to be executed. (Hexadecimal)
Cw.2
Fixed to 0000H. (Any other value is treated as 0000H.)
Cw.3
(2) Values stored in "Cr" Command result area
The command execution result data vary depending on the data (normal completion
or failure) in
Cr.0(15-8)
.
(a) When completed normally ("Cr.0(15-8)" Command execution result is 00H.)
Table 8.14 Values stored in "Cr" Command result area (When completed normally)
"Cr" Command result
Result details
area
[For execution of command No.8102H]
The command execution result and slice position No. in hexadecimal are stored in the high and low bytes
respectively as shown below.
b15
b8 b7
Cr.0(15-8)
Command execution result
b0
Cr.0(7-0)
00H: Normally completed
Cr.0
Slice position No.
00H: Head module
[For execution of command No.0102H]
The command execution result and start slice No. in hexadecimal are stored in the high and low bytes
respectively as shown below.
b15
b8 b7
Cr.0(15-8)
Command execution result
b0
Cr.0(7-0)
00H: Normally completed
Cr.1
Start slice No.
00H: Head module
The executed command No. (8102H/0102H) is stored. (Hexadecimal)
The error code of the latest error occurred in the head module is stored. (Hexadecimal) (
Cr.2
Section 9.7.2
Error code list)
If no error is detected, 0000H is stored.
Cr.3
8 - 20
The error code of the preceding error occurred in the head module is stored. (Hexadecimal) (
Error code list)
8.2 Commands
8.2.3 Error history read request (Command No.: 8102H/0102H)
Section 9.7.2