Omron CJ - INSTRUCTIONS Reference Manual page 1062

Table of Contents

Advertisement

3. Instructions
Clearing the Most Serious Non-fatal Error
When CIO 0.03 is ON in the following example, FAL(006) will clear the most serious non-fatal error that
has occurred and reset the error code in A400. If the cleared error was originally generated by
FAL(006), the corresponding Executed FAL Number Flag and the FAL Error Flag (A402.15) will be
turned OFF.
0.03
M
Generating a Non-fatal System Error
When CIO 0.00 is ON in the following example, FAL(006) will generate a CPU Bus Unit Setup Error for
unit number 1. In this case, dummy FAL number 10 is used and the corresponding value (000A hex) is
stored in A529.
1. The specified error code (0400) 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 CPU Bus Unit Setup Error Flag (A402.03) and CPU Bus Unit Setup Error Flag for unit number 1
(A427.01) will be turned ON.
4. The CPU Unit's ERR Indicator will flash.
5. A message (CPU BU ST ERR 01) will be displayed at the Programming Console indicating that an
error has occurred with CPU Bus Unit 1.
0.00
N
S
A529CH
S: D200
D201
1024
Set N to 0 to clear errors.
0
Set M to 0000, another constant between
#0000
0200 and FFFE, or a word address to
clear the most serious non-fatal error.
(In this case, M is set to 0000.)
MOV
#000A
A529
FAL
10
D200
Matching
values
000A
Error code: 0400 (CPU Bus Unit Setup Error)
0400
Error unit number: 1
0001
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents