7-17
Section
Data Movement Instructions
413
Flags
ER:
Indirectly addressed DM word is non-existent. (Content of
*
DM word is
not BCD, or the DM area boundary has been exceeded.)
EQ
:
ON when all zeros are transferred to D.
Example
The following example shows @MVN(22) being used to copy the complement of
#F8C5 to DM 0010 when IR 00001 goes from OFF to ON.
@MVN(22)
#F8C5
DM 0010
00001
Address
Instruction
Operands
00000
LD
00001
00001
@MOV(21)
#
F8C5
DM
0010
0 0 0 0 0 1 1 1 0 0
1 1 0 1 0
DM 0010
1 1 1 1 1 0 0 0 1 1
0 0 1 0 1
#F8C5
0
1
7-17-3
BLOCK TRANSFER – XFER(70)
N
: Number of words (BCD)
IR, SR, AR, DM, HR, TC, LR, #
S
: Starting source word
IR, SR, AR, DM, HR, TC, LR
Ladder Symbols
Operand Data Areas
D
: Starting destination word
IR, SR, AR, DM, HR, TC, LR
XFER(70)
N
S
D
@XFER(70)
N
S
D
S and S+N must be in the same data area, as must D and D+N.
DM 6144 to DM 6655 cannot be used for D.
When the execution condition is OFF, XFER(70) is not executed. When the
execution condition is ON, XFER(70) copies the contents of S, S+1, ..., S+N to
D, D+1, ..., D+N.
2
D
3 4 5
1
D+1
3 4 5
2
D+2
3 4 2
2
D+N
6 4 5
2
S
3 4 5
1
S+1
3 4 5
2
S+2
3 4 2
2
S+N
6 4 5
Flags
ER:
N is not BCD
S and S+N or D and D+N are not in the same data area.
Limitations
Description
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...