Simulating System Errors - Omron CJ - PROGRAMMING MANUAL 08-2008 Programming Manual

Programmable controllers
Hide thumbs Also See for CJ - PROGRAMMING MANUAL 08-2008:
Table of Contents

Advertisement

Diagnostic Functions
6-7-5

Simulating System Errors

1,2,3...
Name
Error Log Pointer
Error Log Pointer
Reset Bit
FPD Teaching Bit
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.
Note The CS1G/H-CPU@@ (-V1) and CJ1@-CPU@@ CPU Units do not support
this function.
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
Name
FAL/FALS Number
for System Error
Simulation
Example for a Battery Error
Execution condition
a
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.
Address
A300
When an error occurs, the Error Log Pointer is
incremented by 1 to indicate where the next error
record will be recorded as an offset from the
beginning of the Error Log Area (A100).
A50014
Turn this bit ON to reset the Error Log Pointer
(A300) to 00.
A59800
Turn this bit ON when you want the monitoring
time to be set automatically when FPD(269) is
executed.
Address
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.
Set FAL number 100 in A529.
MOV
&100
A529
Set error code for battery error
MOV
#00F7
(#00F7) in D00010.
D00010
Generate a battery error using FAL
FAL
100
number 100.
D00010
Section 6-7
Operation
Operation
339

Advertisement

Table of Contents
loading

Table of Contents