Indirect Em Addressing - Iems - Omron C200HX Operation Manual

Hide thumbs Also See for C200HX:
Table of Contents

Advertisement

Special Instructions
Example
00001
DM 7000 to DM 7099
DM 7000
DM 0010 to DM 0109
DM 0000
5-25-15 INDIRECT EM ADDRESSING – IEMS(––)
Limitations
Description
320
In the following example, the 100 word range from DM 7000 through DM 7099 is
copied to DM 0010 through DM 0109 when IR 00001 is ON.
@XDMR(––)
#0100
#7000
DM 0010
DM 9999
Ladder Symbols
IEMS(––)
@IEMS(––)
C
C must be 000, #E000, #E0B0, #E0B1, or #E0B2.
When executed with an ON execution condition, IEMS(––) changes the destina-
tion of indirect DM addressing (DM) to DM or the specified EM bank. The cur-
rent EM bank number can also be changed when indirect addressing is changed
to EM.
The destination for DM is switched to the DM area at the start of an interrupt
subroutine. It is also returned to the DM area at the beginning of each scan.
The following table shows the allowed values for C and their functions:
C
Switches the destination of DM to the DM area.
000
Switches the destination of DM to the current bank in the EM area.
#E000
Switches the destination of DM to the bank 0 in the EM area.
#E0B0
Switches the destination of DM to the bank 1 in the EM area.
#E0B1
Switches the destination of DM to the bank 2 in the EM area.
#E0B2
The content of DM 6031 indicates the current DM destination and the current
EM bank number as shown in the following table. Use DM 6031 in the ladder-dia-
gram program to determine if the contents of indirect DM addressing is the DM or
EM area. (Programming Devices cannot be used here because bits 08 to 15 will
always indicate the DM area when read from the Programming Device.)
Word
Bits 00 to 07
DM 6031
Current EM bank number (00 to 02)
Address Instruction
00000
LD
00001
@XDMR(––)
Operand Data Areas
000, #E000, or #E0B1 to #E0B3
C
IEMS(––) Operation
DM destination (00: DM; 80: EM)
Section 5-25
Operands
00001
#
0100
#
7000
DM
0010
DM 6143
C: Control word
Bits 08 to 15

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200hgC200he

Table of Contents