![background image](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489321.webp)
300
Diagnostic Functions
Section 6-7
6-7-5
Simulating System Errors
This function is supported only by the CS1-H, CJ1-H, or CJ1M CPU Units.
FAL(006) and FALS(007) can be used to intentionally create fatal and non-
fatal system errors. This can be used in system debugging to test display
messages on Programmable Terminals (PTs) or other operator interfaces.
Use the following procedure.
1,2,3...
1.
Set the FAL or FALS number to use for simulation in A529. (A529 is used
when simulating errors for FAL(006) and FALS(007).
2.
Set the FAL or FALS number to use for simulation as the first operand of
FAL(006) or FALS(007).
3.
Set the error code and error to be simulated as the second operation (two
words) of FAL(006) or FALS(007). Indicate a nonfatal error for FAL(006)
and a fatal error for FALS(007).
To simulate more than one system error, use more than one FAL(006) or
FALS(007) instruction as described above.
Auxiliary Area Flags and Words
Example for a Battery Error
Note Use the same methods as for actual system errors to clear the simulated sys-
tem errors. Refer to the CS-series Operation Manual or the CJ-series Opera-
tion Manual for details. All system errors simulated with FAL(006) and
FALS(007) can be cleared by cycling the power supply.
6-7-6
Disabling Error Log Storage of User-defined FAL Errors
This function is supported only by the CS1-H, CJ1-H, or CJ1M CPU Units.
The PLC Setup provides a setting that will prevent user-defined FAL errors
created with FAL(006) and time monitoring for FPD(269) from being recorded
in the error log (A100 to A199). The FAL error will still be generated even if
this setting is used and the following information will also be output: A40215
(FAL Error Flag), A360 to A391 (Executed FAL Numbers), and A400 (Error
Code.
Name
Address
Operation
FAL/FALS Number
for System Error
Simulation
A529
Set a dummy FAL/FALS number to use to simu-
late the system error.
0001 to 01FF Hex: FAL/FALS numbers 1 to 511
0000 or 0200 to FFFF Hex: No FAL/FALS number
for system error simulation.
MOV
&100
A529
a
MOV
#00F7
D00010
FAL
100
D00010
Execution condition
Set FAL number 100 in A529.
Set error code for battery error
(#00F7) in D00010.
Generate a battery error using FAL
number 100.
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...