5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-26
API
Applicable model
20PM
13
SMOV
P
P
Transferring digits
Bit device Word device
X Y M S K H KnX KnY KnM KnS T C D V Z
S
* * * * * * * * *
m1
* *
m2
* *
D
* * * * * * * *
n
* *
Note: The instruction supports V devices and Z devices. (If the 16-bit
instruction is used, Z devices can not be used. If the 32-bit
instruction is used, V devices can not be used.)
Please refer to specifications for more information about device
ranges.
If KnX/KnY/KnM/KnS is used, it is suggested that X/devices/Y
devices/M device numbers/S device numbers should start from a
number which is a multiple of 16 in the octal numeral system or in
the decimal numeral system, e.g. K1X0 (octal numeral system),
K4SY20 (octal numeral system), K1M0 (decimal numeral system),
and K4S16 (decimal numeral system).
16-bit instruction (11 steps)
SMOV
Continuity
instruction
SMOVP
Pulse
instruction
32-bit instruction
─ ─ ─ ─
Flag: M1168
Explanation
S: Data source; m
1
: Start digit which will be transferred from the source device;
m
2
: Number of digits which will be transferred; D: Data destination; n: Start
digit where the source data is stored in the destination device
The value used by the instruction is a binary-coded decimal value (M1168 is
OFF).
The value used by SMOV is a binary-coded decimal value. When the
instruction is executed, the m
2
digits of the four-digit binary-code decimal value
in S which start from the m
1
th
digit of the four-digit binary-code decimal value in
S are transferred to the m
2
digits of the four-digit binary-code decimal value in
D which starts from the n
th
digit of the four-digit binary-code decimal value in D.
The value used by the instruction is a binary value (M1168 is ON).
When the instruction is executed, the m
2
digits of the four-digit decimal value in
S which start from the m
1
th
digit of the four-digit decimal value in S are
transferred to the m
2
digits of the four-digit decimal value in D which starts from
the n
th
digit of the four-digit decimal value in D.
m
1
is in the range of 1 to 4.
m
2
is in the range of 1 to m
1
. (It can not be greater than m
1
.)
n is in the range of m
2
to 4. (It can not be less than m
2
.)