Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
5.4 Network Dedicated Instruction
5.4.31 ERRRD instruction
5-241
ZP_ERRRD
5
MODULE DEDICATED
INSTRUCTION
ZP_ERRRD
Control Data
Program Example
The following program reads the open error code of the connection 1.
(The I/O signals of the Ethernet module are X/Y00 to X/Y1F)
[Structured ladder/FBD]
Device Item Setting data Setting range Setting side
[0]
System area
––
[1]
Completion status
The instruction completion status is stored.
0 : Normal completion
Other than 0 : Error completion (error code)
System
[2]
Read information
specification
Specify the error information to be read.
0 : Initial error code
1 to 16 : Open error code of the corresponding
connection
0,
1 to 16
User
[3]
Read target information
specification
Specify the target error information to be read.
0000H: Latest error information
0000
H User
[4]
Error information
The read error information is stored.
0000H : No error
Other than 0000
H : Error code
System
[5]
to
[7]
System area
––
s
s
s
s
s
s
s
Sets open
error code
Turns execution
flag ON
Sets latest error
information
Turns execution
flag OFF
Error completion
Stores error code
Normal completion
Stores error
information
Reads error
information