Delta DVP-ES2 User Manual
Page 570
D V P - E S 2 / S X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l – P r o g r a m m i n g
3 - 4 5 4
API
Mnemonic Operands
Function
202
SCAL P
Proportional
calculation
Controllers
ES2/EX2 SS2 SA2
SE
SX2
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S
K H
KnX
KnY KnM KnS T C D E F
S
1
* *
*
S
2
*
*
*
S
3
*
*
*
D
*
SCAL,SCLAP: 9 steps
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
Operands:
S
1
: Source value S
2
: Slope (unit: 0.001) S
3
: Offset D: Operation result
Range of operands S
1
, S
2
, S
3
: -32768~32767.
Explanations:
1.
SCAL instruction performs a proportional calculation according to the internal slope equation.
2. Operation
equation
in the instruction: D = (S
1
× S
2
) ÷ 1000 + S
3
3.
Users have to obtain S
2
and S
3
(decimals are rounded up into 16-bit integers) by using the
slope and offset equations below.
Slope equation: S
2
= [(max. destination value – min. destination value) ÷ (max. source value –
min. source value)] × 1,000
Offset equation: S
3
= min. destination value – min. source value × S
2
÷ 1,000
4.
The output curve is shown as the figure:
D
Min. destination value
Max. Destination value
Destination value
Source value
Max.
source value
Min.
source value