EasyManua.ls Logo

Delta DVP-20PM

Delta DVP-20PM
580 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5 Applied Instructions and Basic Usage
Example 1
When M1168 is OFF, the value used by SMOV is a binary-coded decimal
value. When X0 is ON, the two digits of the decimal value in D10 which start
from the fourth digit of the decimal value (the digit in the thousands place of the
decimal value) in D10 are transferred to the two digits of the decimal value in
D20 which start from the third digit of the decimal value (the digit in the
hundreds place of the decimal value) in D20. After the instruction is executed,
the digits in the thousands place of the decimal value (10
3
) and the ones place
of the decimal value (10
0
) in D20 will be unchanged.
If the binary-coded decimal value used is not in the range of 0 to 9,999, an
operation error will occur, the instruction will not executed, M1067 will be ON,
and the error code in D1067 will be 0E18 (hexadecimal value).
M1001
M1168
X0
SMOV D10 K4 K2 D20 K3
10
3
10
2
10
1
10
0
10
3
10
2
10
1
10
0
UnchangedUnchanged
Coversion
Transferrring digits
Coversion
D10 (16-bit binary value)
D10 (4-digit binary-coded decimal value)
D20 ( )16-bit binary value
D20 ( )4-digit binary-coded decimal value
Suppose the value in D10 is K1234, and the value in D20 is K5678. After the
instruction is executed, the value in D10 will be unchanged, and the value in
D20 is K5128.
Example 2
When M1168 is ON, the value used by SMOV is a is binary value. When the
instruction SMOV is executed, the binary values in D10 and D20 are not
converted into the binary-coded decimal values, and evey digit which is
transferred is composed of four bits.
Unchanged
Unchanged
Transferrring digits
D10 ( )16-bit binary value
4 digit
th
3 digit
rd
2 digit
nd
1 digit
st
4 digit
th
3 digit
rd
2 digit
nd
1 digit
st
D20 ( )16-bit binary value
M1000
M1168
X0
SMOV D10 K4 K2 D20 K3
Suppose the value in D10 is H1234, and the value in D20 is H5678. After the
instruction is executed, the value in D10 will be unchanged, and the value in
D20 is H5128.
DVP-20PM Application Manual
5-27

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals