Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 431

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Data Movement Instructions
Flags
Example
00001
7-17-3 BLOCK TRANSFER – XFER(70)
Limitations
Description
Flags
Indirectly addressed DM word is non-existent. (Content of *DM word is
ER:
not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when all zeros are transferred to D.
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.
#F8C5
1 1 1 1 1 0 0 0 1 1
DM 0010
0 0 0 0 0 1 1 1 0 0
Ladder Symbols
XFER(70)
@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.
S
3 4 5
S+1
3 4 5
S+2
3 4 2
S+N
6 4 5
ER:
N is not BCD
S and S+N or D and D+N are not in the same data area.
Address Instruction
@MVN(22)
00000
LD
#F8C5
00001
@MOV(21)
DM 0010
0
0 0 1 0 1
1
1 1 0 1 0
IR, SR, AR, DM, HR, TC, LR, #
N
IR, SR, AR, DM, HR, TC, LR
S
D
IR, SR, AR, DM, HR, TC, LR
2
1
2
2
Section
Operands
00001
#
F8C5
DM
0010
Operand Data Areas
N: Number of words (BCD)
S: Starting source word
D: Starting destination word
D
3 4 5
2
D+1
3 4 5
1
D+2
3 4 2
2
D+N
6 4 5
2
7-17
413

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?

Table of Contents