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-134
API
Applicable model
20PM
202
SCAL
P
P
Scale
Bit device Word device
X Y M S K H KnX KnY KnM KnS T C D V Z
S
1
S
2
S
3
D
Note: Please refer to specifications for more information about device
ranges.
16-bit instruction (9 steps)
SCAL
Continuity
instruction
SCALP
Pulse
instruction
32-bit instruction (7 steps)
Flag: None
Explanation
The values in S
1
, S
2
, and S
3
must be in the range of -32767 to 32767.
S
1
: Source device; S
2
: Slope (Unit: 0.001); S
3
: Offset; D: Destination device
Equation: D=(S
1
×S
2
)÷1000+S
3
To obtain the value in S
2
, users have to use the slope equation below, round
the result to the nearest integer, and get a 16-bit integer. To obtain the value in
S
3
, the users have to use the offset equation below, round the result to the
nearest integer, and get a 16-bit integer.
Slope equation: S
2
=[(Maximum destination value–Minimum destination
value)÷(Maximum source value–Minimum source value)]×1,000
Offset equation: S
3
= Minimum destination value–Minimum source
value×S
2
÷1,000
Output curve
D
S
1
Source value
Maximum source value
Minimum source value
Destination value
Maximum destination value
Minimum destination value
Example 1
Suppose the values in S
1
, S
2
, and S
3
are 500, 168, and -4 respectively. When
X0 is ON, the instruction SCAL is executed, and a scale is stored in D0.
Equation: D0=(500×168)÷1000+(-4)=80
X0
SCAL
K500
K168 K-4 D0

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals