Data Movement Instructions - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

7-17 Data Movement Instructions

7-17-1 MOVE - - MOV(21)
Limitations
Description
Precautions
Flags
Example
00000
7-17-2 MOVE NOT - - MVN(22)
Limitations
Ladder Symbols
MOV(21)
@MOV(21)
S
D
DM 6144 to DM 6655 cannot be used for D.
When the execution condition is OFF, MOV(21) is not executed. When the
execution condition is ON, MOV(21) copies the content of S to D.
Source word
TC numbers cannot be designated as D to change the PV of the timer or counter.
You can, however, easily change the PV of a timer or a counter by using
BSET(71).
ER:
Indirectly addressed DM word is non-existent. (Content of
not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when all zeros are transferred to D.
The following example shows @MOV(21) being used to copy the content of
IR 001 to HR 05 when IR 00000 goes from OFF to ON.
0 1 1 1 0 0 1 1 1 0
IR 000
HR 05
0 1 1 1 0 0 1 1 1 0
Ladder Symbols
MVN(22)
@MVN(22)
S
D
DM 6144 to DM 6655 cannot be used for D.
IR, SR, AR, DM, HR, TC, LR, #
S
D
Bit status
not changed.
Address Instruction
@MOV(21)
00000
LD
001
00001
@MOV(21)
HR 05
0
0 0 1 0 1
0
0 0 1 0 1
IR, SR, AR, DM, HR, TC, LR, #
S
D
Section
7-17
Operand Data Areas
S: Source word
D: Destination word
IR, SR, AR, DM, HR, LR
Destination word

DM word is
Operands
00000
001
HR
05
Operand Data Areas
S: Source word
D: Destination word
IR, SR, AR, DM, HR, LR

Advertisement

Table of Contents
loading

This manual is also suitable for:

Srm-v2Cpm1aCpm2aSrm1Cpm2c

Table of Contents