Reading The Error Log - Omron C200HW-CORT21-V1 Operation Manual

Canopen slave unit
Table of Contents

Advertisement

Reading the error log

5-4

Reading the error log

IORD message structure
Example
74
Control code #0000
The error log can be read with the IORD instruction. The following figure
shows the IORD message structure.
word n
Number of new error codes
since the last access to the
log [BCD]
word n+1
Error code 1
word n+2
Error code 2
word n+24
Error code 24
word n+25
Error code 25
Word n in the message structure indicates how many new errors have
occurred since the last time the error log was read. Word n will not count any
further than 9999 new errors. Only the 25 most recent errors are stored in the
error log.
The message length specified in the source information of the IORD
instruction must lie within the range 1 ~ 26. If a length greater than 26 is
specified, the Unit will respond with a negative acknowledge and the error
code 0360 is stored in the error log. It is recommended to always read the
entire log (26 words), and check the number of new errors at word n.
The following example shows how the entire error log is read and copied to
DM0400-DM0425. Note that the C200H syntax of the IOWR instruction is
used.
11.01
Read_Log
range: 0000 ~ 9999
IORD (-)
#0000
Control code = #0000
#1026
Mach.No.1, message length 26 words
DM0400
Destination of message
255.06
RSET
EQ_FLAG
11.01
Read_Log
Section 5-4

Advertisement

Table of Contents
loading

Table of Contents