Error Codes - Omron CJ1W-CT021 Operation Manual

High-speed counter units
Hide thumbs Also See for CJ1W-CT021:
Table of Contents

Advertisement

Error codes

5-2

Error codes

Reporting errors
General Setting:
n+17
General Setting:
n+18
General Setting:
n+19
Error History Log File
General Setting:
n+1
136
The errors that can occur at the Unit are divided in 6 categories: DM-configuration
errors, IOWR-instruction errors, overflow/underflow errors, Preset error, Interrupt-
FIFO full error and System errors. Every error is assigned a unique error code.
The error code consists of two words (error code 1 and error code 2). At the occur-
rence of an error:
the corresponding error code is transferred to words n+17 (=error code 1) and
n+18 (=error code 2) of the Special I/O Unit Area in CIO-memory
the corresponding error code is stored inside the High-speed Counter Unit
the Global Error bit in CIO is set (n+19 / bit 00)
the ERC-LED is turned ON
15 14 13 12 11 10 9
8
15 14 13 12 11 10 9
8
15 14 13 12 11 10 9
8
After you have cleared the error:
words n+17 (=error code 1) and n+18 (=error code 2) are reset
the Global Error bit in CIO is reset (n+19 / bit 00)
the ERC-LED is turned OFF
Every error category requires its own unique action to clear them (refer to the next
sections for information on clearing errors of different categories).
Up to a maximum of 30 errors can be logged in chronological order inside the
High-speed Counter Unit, constituting the Error History Log File. If multiple errors
are active at the same time every error (-code) can be read sequentially into CIO
(n+17, n+18) by using the Read Next Error bit. Every next error is read from the
Error History Log File at the rising edge of the Read Next Error bit. If you attempt
to read an error after the last error in the list has been read, the value of zero will
be returned. Now you can scroll through the same error list again from the next ris-
ing edge of the Read Next Error bit.
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
Section 5-2
Error Code 1
Error Code 2
Global Error bit:
0 = No error exists
1 = Error(s) has/have occurred
Read Next Error
0→1 = Read Next Error

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents