Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 1020

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Sample program
Generating a User-defined Error
When CIO 0.00 is ON in the following example, FALS(007) will generate a fatal error with FAL number
31 and execute the following processes.
1. The FALS Error Flag (A401.06) will be turned ON.
2. The corresponding error code (C11F) will be written to A400.
3. The error code and the time/date that the error occurred will be written to the Error Log Area (A100
through A199).
4. The ERR Indicator on the CPU Unit will be lit.
5. The ASCII message in D100 to D107 will be displayed at the Peripheral Device.
Note If a message is not required, specify a constant for S.
0.00
M
Note A400 will contain the error code of the most serious of all of the errors that have occurred, including non-fatal
and fatal system errors, as well as errors generated by FAL(006) and FAL(007).
Generating a Non-fatal System Error
When CIO 0.00 is ON in the following example, FALS(007) will generate a Too Many I/O Points Error
(too many Expansion Racks connected, 9 Racks in this case). In this case, dummy FAL number 10 is
used and the corresponding value (000A hex) is stored in A529.
1. The specified error code (80E1) will be written to A400 if it is the most serious error.
2. The error code and the time/date that the error occurred will be written to the Error Log Area (A100
through A199).
3. The Too Many I/O Points Flag (A401.11) will be turned ON.
4. The CPU Unit's ERR Indicator will light and PLC operation will stop.
5. A message (TOO MANY I/O PNT) will be displayed at the Programming Console indicating that a
Too Many I/O Points Error has occurred.
0.00
FALS
N
S
A529CH
000A
S:
80E1
D200
A009
1
D20
CS/CJ/NSJ Series Instructions Reference Manual (W474)
31
D100
M: D100
M:
4C
4F
D101
57
20
D102
56
4F
D103
4C
54
D104
41
47
45
00
D105
D106
D107
MOV
#000A
A529
10
D200
Matching
values
Error code: 80E1 (Too Many I/O Points Error)
Number of Expansion Racks: 9
MESSAGE
LOW VOLTAGE
Disregarded
3. Instructions
3
983

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents