Delta Electronics — 6.3.2 Explanation of Data Conversion Instructions

AS Series Programming Manual _6 Example 3 1. Suppose the value in S 1 is 500.0, the maximum source value in D0 is 3000.0, the minimum source value in D2 is 200.0, the maximum destination value in D4 is 500.0, and the minimum destination value in D6 is 30.0. When X0.0 is ON, SM685 is set to ON, the instruction DSCLP calculates the scale value and stores it in D10. 2. The operation equation: D10=[(500.0–200.0)Ч(500.0–30.0)]ч(3000.0–200.0)+30.0=80.35 80.35 is rounded off to the nearest whole digit, and becomes 80.0. 80.0 is stored in D10. 6-114