Справочник Пользователя для Mitsubishi Electronics FX

Скачать
Страница из 382
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 digits
from a 4 digit decimal source (S) and places them at
a specified location within a destination (D) number
(also a 4 digit decimal). The existing data in the
destination is overwritten. The decimal manipulation mode is available to all FX and FX
2C 
units.
Key:
m
- The source position of the 1st digit to be moved
m
- The number of source digits to be moved
n- The destination position for the first digit
Note: The selected destination must NOT be smaller than the quantity of source data.
Digit positions are referenced by number: 1= units, 2= tens, 3= hundreds, 4=thousands.
Mnemonic
Function 
Operands
Program steps
S
D
MOV
FNC 12
(Move)
Moves data from
one storage area
to a new storage
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
n
S
D
SMOV
FNC 13
(Shift move)
Takes elements of
an existing 4 digit
decimal number
and inserts them
into a new 4 digit
number
K, H
Note: available
range 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
Range 0 to 9,999 (deci-
mal) or 0 to 9,999 (BCD) 
when M8168 is used - 
see note opposite
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
X0
MOV H0050 D 10
[ S ]
[ D ]
Note: This instruction has a special programming technique which allows it to mimic the
operation of newer applied instructions when used with older programming tools. See page
1-5 for more details.
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
X0
SMOV D 1 K 4
[ S ]
[ D ]
K 2 D 2 K 3
n
m1 m2