Delta Electronics Programmable Logic Controller DVP-PLC User Manual
Page 576
![background image](/manuals/75807/576/background.png)
10 Application Instructions API 200-249
DVP-PLC Application Manual
10-2
D
1
0
=500
Slope=168
Destination value
Source value
Offset=-4
Program Example 2:
1. Assume
S
1
= 500, S
2
= -168, S
3
= 534. When X10 = On, SCAL instruction will be executed and obtain the
proportional value at D10.
2. Equation: D0 = (500 Ч -168) ч 1,000 + 534 = 450
X10
SCAL
K500
K-168
K534
D10
Offset=534
D
S =500
1
0
Slope=-168
Destination value
Source value
Remarks:
1. This instruction is applicable for known slope and offset. If slope and offset are unknown, use SCLP instruction for
the calculation.
2. S
2
has to be within the range -32,768 ~ 32,767. If S
2
falls without the range, use SCLP instruction for the
calculation.
3. When using the slope equation, please be aware that the max. source value must > min. source value, but it is
not necessary that max. destination value > min. destination value.
4. If the value of D > 32,767, D = 32,767; if the value of D < -32,768, D = -32,768.
5. Only ES_V6.2, SA/SX_V1.6, SC_V1.4, EH2/SV_V1.0 and versions above support this instruction. EH series
MPU does not support this instruction.