Expansion Dm Read - Xdmr - Omron SYSMAC C200HS Operation Manual

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Special Instructions
Example
00001
5-25-14 EXPANSION DM READ – XDMR(––)
XDMR(––)
N
S
D
Limitations
Description
Precautions
Flags
290
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(––)
#0010
DM 0010
DM 0000
DM 0010
DM 0011
DM 0012
DM 0013
DM 0014
DM 0015
DM 0016
DM 0017
DM 0018
DM 0019
Ladder Symbols
@XDMR(––)
N
S
D
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.
When the execution condition is OFF, XDMR(––) is not executed. When the exe-
cution 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.
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.
ER:
The specified expansion DM words are non-existent. Make sure that
the specified words have been allocated to expansion DM. Refer to
7-1-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.
Address Instruction
00000
LD
00001
@SRCH(––)
0000
9898
FFFF
9797
AAAA
9595
1414
0000
0000
FFFF
Operand Data Areas
N: Number of words
IR, SR, AR, DM, HR, TC, LR, #
S: First expansion DM word
IR, SR, AR, DM, HR, TC, LR, #
D: First destination word
IR, SR, AR, DM, HR, LR
Section 5-25
Operands
00001
#
0010
DM
0010
DM
0000
DM 0000
FFFF
DM 0001
0012

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents