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
DVP-20PM Application Manual
5-138
X0
SCLP
K500
D0
D10
X0
MOV
MOV
MOV
MOV
K3000
K200
K30
K500
D0
D1
D2
D3
Source value
Maximum
source value=3000
Minimum
source value=200
Destination value
Maximum destination
value=30
Minimum destination
value=500
S
1=500
D
0
Suppose S
1
is D100, the value in D100 is F500, the maximum source value in
D0 is F3000, the minimum source value in D2 is F200, the maximum
destination value in D4 is F500, and the minimum destination value in D6 is
F30. When X0 is ON, M1162 is set to ON, the instruction DSCLP is executed,
and a scale is stored in D10.
Equation: D10=[(F500–F200)×(F500–F30)]÷(F3000–F200)+F30=F80.35
F80.35 is rounded to the nearest integer, and becomes F80. F80 is stored in
D10.
X0
DSCLP D100
D0
D10
X0
DMOVR
DMOVR
F3000
F200
F500
F500
F30
D0
D2
D4
D6
DMOVR
DMOVR
DMOVR
D100
SET
M1162
Additional
rema
rk
16-bit instruction: The value in S
1
is in the range of the minimum source value
and the maximum source value, i.e. the value in S
1
is in the range of -32,768 to
32,767. If the value in S
1
exceeds the minimum source value/the maximum
source value, the minimum source value/the maximum source value will be
used.
32-bit instruction: The integer in S
1
is in the range of the minimum source value
and the maximum source value, i.e. the integer in S
1
is in the range of
-2,147,483,648 to 2,147,483,647. If the integer in S
1
exceeds the minimum
source value/the maximum source value, the minimum source value/the
maximum source value will be used.
32-bit instruction: The floating-point value in S
1
is in the range of the minimum
source value and the maximum source value, i.e. the floating-point value in S
1

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals