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
Need help?
Do you have a question about the CJ2 CPU UNIT SOFTWARE and is the answer not in the manual?
Questions and answers
How do I retrieve fault codes from plc: CJ2M-CPU35
To retrieve fault codes from an Omron CJ2M-CPU35 PLC, use the following method:
1. Go online with the PLC using either:
- The known device and CPU type via the "Change PLC" dialog box, or
- Auto Online if the device and CPU type are unknown but connected via serial line.
2. Once online, select the menu option: PLC → Edit → Information.
3. This opens the PLC Information Dialog Box, where you can view information such as fault codes and unit version.
Additionally, check the Battery Error Flag (A402.04) and the ERR/ALM indicator on the CPU Unit, which may signal errors like low battery.
This answer is automatically generated