S1: Data source. S2: Slope, unit: 0.001. S3: Offset. D: Destination device.
The operation equation in the instruction: D = (S1 × S2) ÷ 1000 + S3
To obtain the values in S2 and S3, users have to use the slope equation and the
offset equation below first, and then round off the results to the nearest whole digit.
The final 16-bit value are entered into S2 and S3.
The slope equation: S2 = [(maximum destination value – minimum destination
value) ÷ (maximum source value –maximum source value)] × 1000
The offset equation: S3 = minimum destination value –maximum source value ×
S2 ÷ 1000
The output curve is as shown below: