5
Categories and Use of Basic Application Instructions
DVP-PM Operation Instruction
5-26
API Mnemonic
Operands
Function
13
SMOV P
Shift Move
Controllers
20PM
10PM
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX
KnY
KnM KnS T C D E F
S
*
*
*
*
*
*
*
*
*
m
1
* *
m
2
* *
D
*
*
*
*
*
*
*
*
n
*
*
SMOV, SMOVP: 11 steps
Operands:
S
: Source device
m
1
: Start digit to be moved from source device
m
2
: Number of digits to be moved
D
:
Destination device
n
: Start digit of the destination device for the moved digits
Explanation:
1.
This instruction is able to re-allocate or combine data.
When the instruction is executed,
m
2
digits of contents
starting from digit
m
1
(from high digit to low digit) of
S
will be sent to
m
2
digits starting from digit
n
(from high
digit to low digit) of
D
2. When SMOV is used as 16-bit instruction, Z device cannot be adopted; when SMOV is used as 32-bit
instruction, V device cannot be adopted.
3.
When specifying the bit device of KnX(Y/M/S), the starting No. should be a multiple of 16 in octal or decimal
format. For example, K1X0, K4Y20 (octal); K1M0, K4S16 (decimal).
4.
M1168 is used for designating SMOV working mode. When M1168 = ON, the instruction is in BIN mode. When
M1168 = OFF, the instruction is in BCD mode.
Points to note:
1.
The range of
m
1
: 1 – 4
2.
The range of
m
2
: 1 –
m
1
3.
The range of
n
:
m
2
– 4
Program example 1:
1.
When M1168 = OFF (in BCD mode) and X0 = ON, the 4
th
(thousand) and 3
rd
(hundred) digit of the decimal
value in D10 start to move to the 3
rd
(hundred) and 2
nd
(ten) digit of the decimal value in D20. 10
3
and 10
0
of
D20 remain unchanged after this instruction is executed.
2.
When the BCD value exceeds the range of 0 ~ 9,999, PLC detects an operation error and will not execute the
instruction. M1067, M1068 = ON and D1067 stores the error code OE18 (hex).
Summary of Contents for DVP-10PM
Page 1: ......
Page 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Page 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Page 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Page 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Page 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Page 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Page 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...