Program - Omron CJ - 09-2009 Operation Manual

Programmable controllers
Table of Contents

Advertisement

Auxiliary Area
Address
Name
Words
Bits
A298 to
All

Program

A299
Address
Where Pro-
gram Stopped
A300
All
Error Log
Pointer
A301
All
Current EM
Bank
A302
A30200
CPU Bus Unit
to
Initializing
A30215
Flags
A330 to
A33000
Special I/O
A335
to
Unit Initializ-
A33515
ing Flags
A336
A33600
Units
to
Detected at
A33616
Startup
(Racks 0 to 3)
(CJ1-H and
CJ1M CPU
Units only)
608
Function
These words contain the 8-digit binary program
address of the instruction where program execution
was stopped due to a program error.
When an error occurs, the Error Log Pointer is incre-
mented by 1 to indicate the location where the next
error record will be recorded as an offset from the
beginning of the Error Log Area (A100 to A199).
00 to 14 hexadecimal
The Error Log Pointer can be cleared to 00 by turning
A50014 (the Error Log Reset Bit) from OFF to ON.
When the Error Log Pointer has reached 14 (20 deci-
mal), the next record is stored in A195 to A199 when
the next error occurs.
This word contains the current EM bank number in 4-
digit hexadecimal. The current bank number can be
changed with the EMBC(281) instruction.
0000 to 000C hexadecimal
These flags are ON while the corresponding CPU
Bus Unit is initializing after its CPU Bus Unit Restart
Bit (A50100 to A50115) is turned from OFF to ON or
the power is turned ON.
Bits 00 to 15 correspond to unit numbers 0 to 15.
Use these flags in the program to prevent the CPU
Bus Unit's refresh data from being used while the
Unit is initializing. IORF(097) and FIORF(225) (CJ1-
H-R CPU Units only) cannot be executed while an
CPU Bus Unit is initializing.
0: Not initializing
1: Initializing
(Reset to 0 automatically after initialization.)
These bits are turned OFF automatically when initial-
ization is completed.
These flags are ON while the corresponding Special
I/O Unit is initializing after its Special I/O Unit Restart
Bit (A50200 to A50715) is turned from OFF to ON or
the power is turned ON.
The bits in these words correspond to unit numbers 0
to 95 as follows:
A33000 to A33015: Units 0 to 15
A33100 to A33115: Units 16 to 31
----
A33500 to A33515: Units 80 to 95
Use these flags in the program to prevent the Special
I/O Unit's refresh data from being used while the Unit
is initializing. Also, IORF(097) and FIORF(225) (CJ1-
H-R CPU Units only) cannot be executed while a
Special I/O Unit is initializing.
0: Not initializing
1: Initializing
(Reset to 0 automatically after initialization.)
These bits are turned OFF automatically when initial-
ization is completed.
The number of Units detected on each Rack is stored
in 1-digit hexadecimal (0 to A hex).
Rack 0: A33600 to A33603
Rack 1: A33604 to A33607
Rack 2: A33608 to A33611
Rack 3: A33612 to A33615
Example: The following would be stored if Rack 0
had 1 Unit, Rack 1 had 4 Units, Rack 2 had 8 Units
and Rack 3 had 10 Units:
A336 = A 8 4 1
Appendix C
Status
Status
Write timing/
after
at star-
Related flags,
mode
tup
settings
change
Cleared
Cleared
(A294 contains the task
number of the task
where program execu-
tion was stopped.)
Retained Retained Refreshed when error
occurs.
A50014
Cleared
Cleared
---
Retained Cleared
Written during initializa-
tion
A50100
Retained Cleared
A50200 to A50715
Retained Cleared
Not supported by
CJ1@-CPU@@ CPU
Units.

Advertisement

Table of Contents
loading

Table of Contents