AH500 Motion Control Module Manual value–Minimum source value) + Minimum destination value If the value in S 1 is greater than the maximum source value, the value in S 1 will be equal to the maximum source value. If the value in S 1 is less than the minimum source value, the value in S 1 will be equal to the minimum source value. After input values and parameters are set, an output curve will be gotten.
destination value–Minimum destination value)ч(Maximum source Destination value Source value Maximum source value Minimum source value Suppose the value in S 1 is 500, the maximum source value in D0 is Example 1 3,000, the minimum source value in D1 is 200, the maximum destination value in D2 is 500, and the minimum destination value in D3 is 30. When X0.0 is ON, the instruction SCLP is executed, and a scale is stored in D10. Equation: D10=[(500–200)Ч(500–30)]ч(3,000–200)+30=80.35 80.35 is rounded to the nearest integer, and becomes 80. 80 is stored in D10.
Destination value Maximum destination value=500 Minimum destination value=30 D Source value Maximum source value=3000 Minimum source value=200 S 1 =500 0 5-120 D Maximum d S1 Minimum de X0.0 MOV K3000 D0 MOV K200 D1 MOV K500 D2 MOV K30 D3 X0.0 SCLP K500 D0 D10 SCLP K500 D0 D10 MOV K3000 D0 MOV K200 D1 MOV K500 D2 MOV K30 D3