Imov (Indirect Move) - IDEC FC4A-C10R2 User Manual

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

IMOV (Indirect Move)

IMOV(W)
S1(R)
*****
Applicable CPU Modules
FC4A-C10R2/C
FC4A-C16R2/C
X
Valid Operands
Operand
S1 (Source 1)
S2 (Source 2)
D1 (Destination 1)
D2 (Destination 2)
For the valid operand number range, see pages 6-1 and 6-2.
Internal relays M0 through M1277 can be designated as D1. Special internal relays cannot be designated as D1.
When T (timer) or C (counter) is used as S1, S2, or D2, the operand data is the timer/counter current value. When T (timer)
or C (counter) is used as D1, the operand data is the timer/counter preset value which can be 0 through 65535.
Either source operand S2 or destination operand D2 does not have to be designated. If S2 or D2 is not designated, the
source or destination operand is determined by S1 or D1 without offset.
Make sure that the source data determined by S1 + S2 and the destination data determined by D1 + D2 are within the valid
operand range. If the derived source or destination operand is out of the valid operand range, a user program execution
error will result, turning on special internal relay M8004 and the ERR LED on the CPU module.
Valid Data Types
W (word)
I (integer)
X
Example: IMOV
IMOV(W)
S1 –
D20
I0
D20 + C10 → D10 + D25
Source operand S1 and destination operand D1 determine the type of operand. Source operand S2
and destination operand D2 are the offset values to determine the source and destination oper-
ands.
If the current value of counter C10 designated by source operand S2 is 4, the source data is deter-
mined by adding the offset to data register D20 designated by source operand S1:
D(20 + 4) = D24
If data register D25 contains a value of 20, the destination is determined by adding the offset to
data register D10 designated by destination operand D1:
D(10 + 20) = D30
As a result, when input I0 is on, the data in data register D24 is moved to data register D30.
S2
D1(R)
*****
*****
*****
FC4A-C24R2/C
X
X
Function
Base address to move from
Offset for S1
Base address to move to
Offset for D1
When a bit operand such as I (input), Q (output), M (internal relay), or R (shift register) is
designated as the source or destination, 16 points are used. When repeat is designated for a
bit operand, the quantity of operand bits increases in 16-point increments.
When a word operand such as T (timer), C (counter), or D (data register) is designated as the
source or destination, 1 point is used. When repeat is designated for a word operand, the
quantity of operand words increases in 1-point increments.
S2
D1 –
C10
D10
D25
« FC4A M
S1 + S2 → D1 + D2
D2
REP
When input is on, the values contained in operands desig-
**
nated by S1 and S2 are added to determine the source of
data. The 16-bit data so determined is moved to destina-
tion, which is determined by the sum of values contained
in operands designated by D1 and D2.
FC4A-D20K3/S3
X
I
X
X
X
D2
REP
S
U
'
M
ICRO
MART
SER
S
ANUAL
9: M
OVE
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
X
Q
M
R
T
C
D
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
»
I
NSTRUCTIONS
Constant
Repeat
1-99
1-99
D20
D21
D22
D23
D24
6450
D25
20
6450
D30
4
C10
9-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents