Omron CJ - INSTRUCTIONS Reference Manual page 1079

Table of Contents

Advertisement

Function
EMBC(281) changes the current EM (Extended Data Memory) bank to the one indicated by the EM
bank number (N). At the same time, the new EM bank number is output to A301.
Note
• The current EM bank number changed in a cyclic task is retained when operation is switched between
tasks. For example, if EMBC(281) is used in task 1 to change the current EM bank from bank B to bank
C, bank C will remain the current EM bank for all cyclic tasks even when operation is switched to task 2.
• The current EM bank number changed in an interrupt task is valid only during execution of the interrupt in
which it was changed. The previous EM bank number will be returned to once execution of the interrupt
task has been completed.
Hint
• There are banks available in the EM Area and there are 32,768 words (E00000 to E32767) in each
bank. EM addresses can be identified in the two following ways. EMBC(281) must be used to change
the current EM bank if the first method is used.
1) EM addresses can be specified without the bank number, i.e. E00000 to E32767, to indicate
addresses in the current EM bank.
2) EM addresses can be specified with the bank number, i.e. En_00000 to En_32767 (n = bank
number), to indicate addresses in a particular EM bank.
Example Programming
0.00
CS/CJ/NSJ Series Instructions Reference Manual (W474)
When CIO 0.00 turns ON in the following example, the current EM
bank number is changed to bank C and the new bank number
(000C hex) is output to A301.
3. Instructions
3
1041

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents