Simulating System Errors - Omron CJ2 CPU UNIT SOFTWARE User Manual

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

10 CPU Unit Functions

10-7-9 Simulating System Errors

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
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 operands (S and S+1) of FAL(006) or
FALS(007). Indicate a non-fatal error for FAL(006) and a fatal error for FALS(007).
To simulate more than one system error, specify the same value at A529 for the first operand, and use
more than one FAL(006) or FALS(007) instruction with a different second operand.
Precautions for Correct Use
Precautions for Correct Use
This function is used to check if detection is operating correctly in applications by simulating an
error to be detected in the CPU Unit. When the system is in operation, disable this function by
deleting the FAL(006) or FALS(007) instruction or by always inputting an OFF (P_Off) signal as
the input condition.
Auxiliary Area Flags and Words
Name
FAL/FALS Number for System Error
Simulation
Example for a Battery Error
Execution condition
a
10-78
Address
A529
Set a dummy FAL/FALS number to use to simulate 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) in D00010.
#00F7
D00010
Generate a battery error using
FAL
FAL number 100.
100
D00010
Operation
CJ2 CPU Unit Software User's Manual

Advertisement

Table of Contents
loading

Table of Contents