Reading the error log
Section 5-4
74
5-4
Reading the error log
Control code #0000
The error log can be read with the IORD instruction. The following figure
shows the IORD message structure.
IORD message structure
word n
Number of new error codes
since the last access to the
log [BCD]
range: 0000 ~ 9999
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.
Example
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
IORD (-)
Read_Log
#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
Содержание C200HW-CORT21-V1
Страница 2: ...C200HW CORT21 V1 CANopen Slave Unit OPERATION MANUAL OMRON Cat No W904 E2 2 ...
Страница 3: ......
Страница 4: ......
Страница 5: ......
Страница 6: ...C200HW CORT21 V1 CANopen Slave Unit Operation Manual Produced June 2001 ...
Страница 7: ...iv ...
Страница 9: ...vi ...
Страница 13: ...x ...
Страница 47: ...Performance Section 2 3 30 ...
Страница 85: ...Control and Status area Section 4 3 68 ...
Страница 113: ...Flow diagrams Section 6 6 96 ...
Страница 123: ...Maintenance Section 7 3 106 ...
Страница 133: ...116 ...
Страница 135: ...118 ...
Страница 139: ...122 ...
Страница 141: ......