Mitsubishi Electronics FX2C Home Theater Server User Manual


 
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
g
its
from a 4 di
g
it decimal source (S) and places them at
a specified location within a destination (D) number
(also a 4 di
g
it decimal). The existin
g
data in the
destination is overwritten. The decimal manipulation mode is available to all FX and FX
2C
units.
Ke
y
:
m
1
- The source position of the 1st di
g
it to be moved
m
2
- The number of source di
g
its to be moved
n- The destination position for the first di
g
it
Note: The selected destination must NOT be smaller than the quantit
y
of source data.
Di
g
it positions are referenced b
y
number: 1= units, 2= tens, 3= hundreds, 4=thousands.
Mnemonic Function
Operands
Program steps
SD
MOV
FNC 12
(
Move
)
Moves data from
one stora
g
e area
to a new stora
g
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
g
4 di
g
it
decimal number
and inserts them
into a new 4 di
g
it
number
K, H
Note: available
ran
g
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
g
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 ]
N
o
t
e:
Thi
s
i
ns
t
ruc
ti
on
h
as a spec
i
a
l
pro
g
ramm
i
n
g
t
ec
h
n
i
que w
hi
c
h
a
ll
ows
it
t
o m
i
m
i
c
th
e
operation of newer applied instructions when used with older pro
g
rammin
g
tools. See pa
g
e
1-5 for more details.
X0
SMOV D 1 K 4
[ S ] [ D ]
K 2 D 2 K 3
nm1 m2