Data Movement Instructions
Flags
Precautions
Example
3-7-15 MOVE TIMER/COUNTER PV TO REGISTER: MOVRW(561)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
Operand Specifications
272
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
MOVR(560) cannot set the PLC memory addresses of timer/counter PVs.
Use MOVRW(561) to set the PLC memory addresses of timer/counter PVs.
The contents of an index register in an interrupt task is not predictable until it
is set. Be sure to set a register using MOVR(560) in an interrupt task before
using the register.
Any changes to the contents of an IR or DR made in an interrupt task will not
affect the contents of the register in a cyclic task.
When CIO 0.00 is ON in the following example, MOVR(560) writes the PLC
memory address of CIO 200 to IR0.
0.00
200
Sets the PLC memory address of the specified timer or counter's PV in the
specified Index Register. (Use MOVR(560) to set the PLC memory address of
a word, bit, or timer/counter Completion Flag in an Index Register.)
MOVRW(561)
S
D
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
D: Destination
The destination must be an Index Register (IR0 to IR15).
Area
CIO Area
Work Area
Holding Bit Area
Operation
OFF or unchanged
OFF or unchanged
OFF or unchanged
Internal I/O memory address
S: 200
D: IR0
S: Source (desired TC number)
D: Destination (Index Register)
Step program areas
OK
OK
S
---
---
---
Section 3-7
1 4
Internal I/O memory
address of CIO 200
1 4
MOVR(561)
@MOVR(561)
Not supported
Subroutines
Interrupt tasks
OK
D
Need help?
Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?
Questions and answers