Omron CS1G/H-CPUxxH Instructions Manual page 983

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Other Instructions
Description
1,2,3...
Flags
Precautions
Examples
962
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.
There are up to 13 banks (0 to C) available in the EM Area and there are
32,768 words (E00000 to E32767) in each bank. EM addresses can be identi-
fied 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 = 0 to C), to indicate addresses in a particular EM bank.
Name
Label
Error Flag
ER
The following table shows relevant flags in the Auxiliary Area.
Name
Current EM Bank
A301
The current EM bank number changed in a cyclic task is retained when oper-
ation 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 com-
pleted.
An error will occur if the specified EM bank has been registered as file mem-
ory in the PLC Setup.
When CIO 000000 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.
Operation
ON if N isn't within the range 0000 to 000C.
ON if N specifies a non-existent EM bank number.
(This error will occur if the specified EM bank has been
registered as file memory in the PLC Setup.)
OFF in all other cases.
Address
Contains the current EM bank number in hexa-
decimal (0000 to 000C).
Section 3-31
Operation

Advertisement

Table of Contents
loading

Table of Contents