Omron C200HE User Manual

Page of 564
315
Example
In the following example, the 10 word range from DM 0010 to DM 0019 is
searched for addresses that contain the same data as DM 0000 (#FFFF). Since
DM 0012 contains the same data, the EQ Flag (SR 25506) is turned ON and
#0012 is written to DM 0001.
@SRCH(––)
DM 0010
#0010
00001
DM 0000
Address
Instruction
Operands
00000
LD
00001
00001
@SRCH(––)
#
0010
DM
0010
DM
0000
DM 0010
0000
DM 0011
9898
DM 0012
FFFF
DM 0013
9797
DM 0014
AAAA
DM 0015
9595
DM 0016
1414
DM 0017
0000
DM 0018
0000
DM 0019
FFFF
DM 0000
FFFF
DM 0001
0012
5-25-14 EXPANSION DM READ – XDMR(––)
S: First expansion DM word
IR, SR, AR, DM, HR, TC, LR, #
N: Number of words
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
@XDMR(––)
N
S
D
D: First destination word
IR, SR, AR, DM, HR, LR
XDMR(––)
N
S
D
Limitations
N must be BCD between 0001 and 3000.
S must be BCD between 7000 and 9999.
S and S+N–1 must be in the same data area, as must D and D+N–1.
Description
When the execution condition is OFF, XDMR(––) is not executed. When the
execution condition is ON, XDMR(––) copies the contents of expansion DM
words S through S+N–1 to the destination words D through D+N–1.
Precautions
The Expansion DM area must be set in the PC Setup before it can be used in
programming. Do not exceed the set range of the Expansion DM area.
Execution of XDMR(––) is given priority whenever a power interruption occurs.
Flags
ER:
The specified expansion DM words are non-existent. Make sure that
the specified words have been allocated to expansion DM. Refer to
7-2-15 UM Area Allocation for details.
Indirectly addressed DM word is non-existent. (Content of 
DM word is
not BCD, or the DM area boundary has been exceeded.)
N is not BCD between 0001 and 3000.
S is not BCD between 7000 and 9999.
Special Instructions
Section 5-25