Chapter 6 Applied Instructions
6-103
D
S
1
0
=500
=3000
=200
=30
=500
Source value
Maximum
source value
Minimum
source value
Maximum destination
value
Minimum destination
value
Destination value
Example 2:
1. Suppose the value in S
1
is 500, the maximum source value in D0 is 3,000, the minimum
source value in D1 is 200, the maximum destination value in D2 is 30, and the minimum
destination value in D3 is 500. When X0.0 is ON, the instruction SCLP is executed, and the
scale value is stored in D10.
2. The operation equation: D10=[(500–200)×(30–500)]÷(3,000–200)+500=449.64
449.64 is rounded off to the nearest whole digit, and becomes 450. 450 is stored in D10.