FX Series Programmable Controlers Applied Instructions 5
5-18
5.2.3 MOV (FNC 12)
Operation:
The contents of the source device (S) is copied to
the destination (D) device when the control input is
active. If the MOV instruction is not driven, no
operation takes place.
5.2.4 SMOV (FNC 13)
Operation 1:
This instruction copies a specified number of di
its
from a 4 di
it decimal source (S) and places them at
a specified location within a destination (D) number
(also a 4 di
it decimal). The existin
data in the
destination is overwritten. The decimal manipulation mode is available to all FX and FX
2C
units.
Ke
:
m
1
- The source position of the 1st di
it to be moved
m
2
- The number of source di
its to be moved
n- The destination position for the first di
it
Note: The selected destination must NOT be smaller than the quantit
of source data.
Di
it positions are referenced b
number: 1= units, 2= tens, 3= hundreds, 4=thousands.
Mnemonic Function
Operands
Program steps
SD
MOV
FNC 12
Move
Moves data from
one stora
e area
to a new stora
e
area
K, H,
KnX, KnY, KnM, KnS,
T, C, D, V, Z
KnY, KnM, KnS,
T, C, D, V, Z
MOV, MOVP:
5 steps
DMOV,
DMOVP:
9 steps
Mnemonic Function
Operands
Program steps
m
1
m
2
nS D
SMOV
FNC 13
(Shift move)
Takes elements of
an existin
4 di
it
decimal number
and inserts them
into a new 4 di
it
number
K, H
Note: available
ran
e 1 to 4.
K, H,
KnX, KnY,
KnM, KnS,
T,C,D,V,Z
K, H,
KnY, KnM,
KnS,
T,C,D,V,Z
SMOV,
SMOVP:
11 steps
Ran
e 0 to 9,999 (deci-
mal) or 0 to 9,999 (BCD)
when M8168 is used -
see note opposite
X0
MOV
H0050
D 10
[ S ] [ D ]
o
e:
s
ns
ruc
on
as a spec
a
pro
ramm
n
ec
n
que w
c
a
ows
o m
m
c
e
operation of newer applied instructions when used with older pro
rammin
tools. See pa
e
1-5 for more details.
X0
SMOV D 1 K 4
[ S ] [ D ]
K 2 D 2 K 3
nm1 m2