Mitsubishi — Chapter 10 Application Instructions API 202-313

10 Application Instructions API 202-313 X0 Destination value D Slope=168 Offset=-4 1 0 =500 S Source value 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 2. Equation: D0 = (500 Ч -168) ч 1,000 + 534 = 450 proportional value at D10. X10 Destination value D Offset=534 0 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 D = -32,768. 5. Only ES_V6.2, SA/SX_V1.6, SC_V1.4, EH2/SV/EH3_V1.0 and versions above support this instruction. EH series MPU does not support this instruction. DVP-PLC Application Manual 10-2 SCAL K500 K168 K-4 D0 SCAL K500 K-168 K534 D10 Slope=-168 S 1=500