Omron CJ2 CPU UNIT SOFTWARE User Manual page 236

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

Advertisement

6 I/O Memory Areas
Directly Specifying EM Addresses
There are two ways to specify an EM address: the bank and address can be specified at the same time
or an address in the current bank can be specified. In general, we recommend specifying both the bank
and address at the same time.
Bank and Address Specification
With this method, the bank number is specified just before the address. For example, E2_10 speci-
fies address E10 in bank 2.
Current Bank Address Specification
With this method, just the address is specified. For example, E10 specifies address E10 in the cur-
rent bank.
• The current bank will be reset to 0 when the operating mode is changed from PROGRAM mode to
RUN/MONITOR mode, unless the IOM Hold Bit (A500.12) is ON.
• The current bank can be changed with EMBC(281) to access data in another bank.
• A301 contains the current EM bank number.
• The current bank is not changed as the program proceeds through cyclic tasks. For example, if
the current EM bank is changed to bank 2 in task 1, the current EM bank will still be bank 2 in task
2. The current bank will return to its original value (in the source cyclic task) if it has been changed
in an interrupt task.
6-30
CJ2 CPU Unit Software User's Manual

Advertisement

Table of Contents
loading

Table of Contents