Delta DVP-ES2 — 3.8 Detailed Instruction Explanation

DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming 202 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: Destination value Source value Max. source value Min. 3-486 Mnemonic Operands Function Controllers SCAL P Proportional calculation ES2/EX2 SS2 SA2 SX2 SE Type OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F SCAL,SCLAP: 9 steps S 1 * * * S 2 * * * S 3 * * * D * PULSE 16-bit 32-bit ES2 / SS2 SA2/ SX2 ES2/ SA2/ ES2/ EX2 SS2 SA2/ SE SX2 SS2 SX2 EX2 SE EX2 SE D Max. Destina e value Min. destinat