Omron CJ2 - 02-2010 User Manual page 191

Cj2 cpu unit software
Table of Contents

Advertisement

• The current bank is specified for an indirect EM address in BIN mode and the specified words contains 8000
to FFFF Hex (example: @EC_00001 contains #8000)
• An IR register containing the internal memory address of a bit is used as a word address or an IR containing
the internal memory address of a word is used as a bit address.
• If Instruction Errors are set to Stop Operation in the PLC Setup, then operation will stop (fatal error)
and the "Illegal Access Error Flag" (A295.10) will turn ON if an illegal access error occurs and the
AER Flag turns ON.
Additional Information
The Access Error Flag (P_AER Flag) will not be cleared after a task is executed. If Instruction
Errors are set to Continue Operation, this Flag can be monitored until just before the END(001)
instruction to see if an illegal access error has occurred in the task program. (The status of the
final P_AER Flag after the entire user program has been executed will be monitored if the AER
Flag is monitored on the CX-Programmer.)
Other Errors
Illegal Instruction Errors
Illegal instruction errors indicate that an attempt was made to execute instruction data other than
that defined in the system. This error will normally not occur as long as the program is created with
CX-Programmer.
In the rare even that this error does occur, it will be treated as a program error, operation will stop
(fatal error), and the Illegal Instruction Flag (A295.14) will turn ON.
User Program Area Overflow Errors
User program area overflow errors indicate that an attempt was made to execute instruction data
stored beyond the last address in the user program area defined as program storage area. This
error will normally not occur as long as the program is created with CX-Programmer.
In the rare even that this error does occur, it will be treated as a program error, operation will stop
(fatal error), and the UM Overflow Flag (A295.15) will turn ON.
Additional Information
If the Error Flag (P_ER) or Illegal Access Error Flag (P_AER) turns ON, it will be treated as a
program error and it can be used to stop the CPU Unit from running. Specify operation for pro-
gram errors in the PLC Setup.
Program Errors
Program error
No END Instruction
Error During Task Execu-
tion
Instruction Processing
Error (P_ER Flag ON) and
Stop Operation set for
Instruction Errors in PLC
Setup
CJ2 CPU Unit Software User's Manual
Description
An END instruction is not present in the pro-
gram.
No task is ready in the cycle.
No program is allocated to a task.
The corresponding interrupt task number is
not present even though the execution condi-
tion for the interrupt task was met.
The wrong data values were provided in the
operand when an attempt was made to exe-
cute an instruction.
5 Understanding Programming
Related flags
The No END Flag (A295.11) turns
ON.
The Task Error Flag (295.12) turns
ON.
The ER Flag turns ON and the
Instruction Processing Error Flag
(A295.08) turns ON if Stop Opera-
tion set for Instruction Errors in
PLC Setup.
5
5-101

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents