Ibmv (indirect bit move) – IDEC MicroSmart User Manual
Page 226

9: M
OVE
I
NSTRUCTIONS
9-8
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
IBMV (Indirect Bit Move)
Applicable CPU Modules
Valid Operands
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 S2 or D2, the timer/counter current value is read out.
Make sure that the last source data determined by S1+S2 and the last 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 execu-
tion error will result, turning on special internal relay M8004 and ERR LED on the CPU module.
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.
Examples: IBMV
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 operands.
As a result, when input I0 is on, the ON/OFF status of internal relay M15 is moved to output Q44.
FC4A-C10R2/C
FC4A-C16R2/C
FC4A-C24R2/C
FC4A-D20K3/S3
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
—
—
—
—
X
Operand
Function
I
Q
M
R
T
C
D
Constant
Repeat
S1 (Source 1)
Base address to move from
X
X
X
X
—
—
X
0 or 1
1-99
S2 (Source 2)
Offset for S1
X
X
X
X
X
X
X
0-65535
—
D1 (Destination 1)
Base address to move to
—
X
▲ X — — X
—
1-99
D2 (Destination 2)
Offset for D1
X
X
X
X
X
X
X
0-65535
—
S1 + S2
→ D1 + D2
When input is on, the values contained in operands des-
ignated by S1 and S2 are added to determine the source
of data. The 1-bit data so determined is moved to desti-
nation, which is determined by the sum of values con-
tained in operands designated by D1 and D2.
IBMV
S1(R)
*****
S2
*****
D1(R)
*****
D2
*****
REP
**
S1 –
M10
I0
IBMV
S2
D10
D1 –
Q30
SOTU
REP
D2
C5
M10
+ D10 → Q30 + C5
M27
M10
M17
M20
M15
5th from M10
Q47
Q30
Q37
Q40
12th from Q30
Q44
If the value of data register D10 designated by source operand
S2 is 5, the source data is determined by adding the offset to
internal relay M10 designated by source operand S1.
If the current value of counter C5 designated by destination oper-
and D2 is 12, the destination is determined by adding the offset
to output Q30 designated by destination operand D1.