Move To Register: Movr(036) - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Data Movement Instructions

5-15-7 MOVE TO REGISTER: MOVR(036)

Ladder Symbol
(036)
MOVR
Variations
j MOVR(036)
Description
Precautions
Flags
Example
Operand Data Areas
S: Source
S
D
D: Destination
When the execution condition is OFF, MOVR(036) is not executed. When the
execution condition is ON, MOVR(036) copies the PC memory address of word
or bit S to the index register designated in D. The index register must be directly
addressed.
When S contains a timer or counter number, the PC memory bit address of the
timer or counter Completion Flag is copied to the index register. To access the
PC memory address of a timer or counter PV with an index register, move the PC
memory address of the timer or counter PV (#1000 or #1800) to an index register
with MOV(030)
If the index register contains a PC memory address for a timer/counter Comple-
tion Flag, a Transition Flag, or a Step Flag, the leftmost three digits indicate the
PC memory word address, and the rightmost digit indicates the bit.
Only direct addresses can be used for IR.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
EQ (A50006):
0000 was placed in the index register.
The following example demonstrates the difference between MOV(030) and
MOVR(036). In the first instruction line, MOVR(036) copies the PC memory ad-
dress of CIO 0020 to IR0 when CIO 000000 is ON. In the second instruction line,
MOV(030) copies the content of CIO 0020 to IR0 when CIO 000000 is ON.
0000
00
CIO 0020
0000
00
CIO 0020
1 2 3 4
$0014
CIO, G, A, T, C, DM
IR
IR0
1 2 3 4
0 0 1 4
$0014
(Address of Wd 0020)
IR0
MOV
1 2 3 4
(Address of Wd 0020)
Section 5-15
(036)
MOVR
0020
IR0
(030)
MOV
0020
IR0
181

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents