Fatal PLC error handling
Section 6-4
91
By default, the error history is empty and sub-index 0 indicates 0 errors. As
soon as an error occurs and an emergency message is sent out, the
Emergency Error Code (byte 0 and 1 in the emergency message) and
corresponding EMCY trigger (byte 5 in the emergency message) are copied
in the error code structure at sub-index 01h. The Error count (byte 3 in the
error code structure) at the same sub-index is incremented by one
There are two scenarios when the next error occurs.
•
The next error is a different error, i.e. a type of error that is not yet logged
in the error history:
The previous error(s) are shifted down in the list (moved to a higher sub-
index) and the current error is added at sub-index 01h.
•
The next error has occurred before and is already in the error history:
Only the Error count (byte 3) of the entry with the same Emergency Error
code and EMCY trigger is incremented by one.
Note that sub-index 0 is always updated to the number of errors in the error
history at the moment that a new entry is added.
Clearing the error history
The error history can be cleared by writing ‘0’ to sub-index 00h.
6-4
Fatal PLC error handling
The C200HW-CORT21-V1 informs the CANopen network when a fatal PLC
error has occurred. A fatal PLC error stops the execution of the ladder
program and resets the complete IR area.
Bit IR n.00 has to be set to enable the CANopen communication. When a
fatal PLC error occurs, IR n.00 is reset, and the Unit will transmit an
emergency message:
EEC
= FF00h (device specific)
ER
= 81h or 91h (bits 7 and 1 are set)
Comm Err
= Unchanged
Device Err
= 01h or 03h (bit 0 is set)
EMCY trigger = 20h
When IR n.00 is set again, another emergency message is transmitted to
indicate that the error has been resolved:
EEC
= 0000h
ER
= Unspecified. Depends on other possible errors.
Comm Err
= Unspecified. Depends on other possible errors.
Device Err
= 00h or 02h (bit 0 is cleared)
EMCY trigger = 20h
Note
If bit IR n.00 is set while the host PLC is in MONITOR- or RUN mode, the
C200HW-CORT21-V1 will also send the emergency messages if the host
PLC is switched between MONITOR / RUN mode and PROGRAM mode.
Switching between these modes also clears the IR area (provided that the
I/O status hold bit, SR252.12, is not set).
Refer to the Operation manual of your PLC system for more details.
Содержание 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: ......