
5 Error Processing, Maintenance and Inspection
5-4
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
5-2
Error codes
z
Reporting errors
Errors occurring in the High-speed Counter Unit are divided into the following 4 types.
• Allocated DM area setting error
• Overflow/underflow error
• Preset error
• System error
There is an error code for each error. These error codes are made up of error code 1 and error code
2.
If an error occurs, the state becomes as follows.
• The corresponding error code is transferred to the error code 1 and 2 variables below.
• The error code is stored in the error list in the High-speed Counter Unit.
• Global Error variable below changes to ON (1).
• The ERC indicator on the front of the Unit lights up.
When the cause of an error is eliminated, the state becomes as follows.
• The error code 1 and 2 variables are cleared.
• Global Error variable goes OFF (0).
• The ERC indicator on the front of the Unit goes out.
The method for eliminating an error depends on the error type. (The method for eliminating each
type of error is given on the pages that follow.)
z
Error List File
Up to 30 errors that occurred are recorded in the error list in the high-speed Counter Unit in the
order they occurred.
If multiple errors occurred at the same time, the error is stored in "*_ErrCode1" (error code1) and
"*_ErrCode2" (error code 2) when the [Read Next Error] variable below is changed from 0 to 1.
When the [Read Next Error] variable changes to TRUE (from 0 to 1) again, the next error can be
read out.
When an error is read out after the information of the final error is read out, the value 0 is returned to.
When the [Read Next Error] bit changes to TRUE (from 0 to 1) again, the same error list can be
scrolled through.
Variable names
Type
Name
Function
*_GlblErr
BOOL
Global Error
1: Shows that one or more error has
occurred. These error codes are stored in
the error list in this Unit.
0: Normal
*_ErrCode1
WORD
Error Code 1
Error code 1
*_ErrCode2
WORD
Error Code 2
Error code 2
Содержание CJ1W-CT021
Страница 10: ...Manual Structure 8 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492...
Страница 38: ...Revision History 36 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492...
Страница 190: ...Appendicies A 18 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492...
Страница 191: ...Index 1 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 I Index...
Страница 194: ...Index 4 CJ series High speed Counter Units Operation Manual for NJ series CPU Unit W492 Index...
Страница 195: ......