2.
The operation equation: D0=(500×168)÷1,000+(-4)=80
Destination value
Offset=-4
Example 2:
1.
Suppose the values in S
the instruction SCAL is executed, and the scale value is stored in D10.
2.
The operation equation: D10=(500×-168)÷1,000+534=450
Additional remark:
1.
Only when the slope and the offset are known can the instruction SCAL be used. If the slope
and the offset are unknown, users are suggested to use the instruction SCLP to perform the
D
Slope=168
S
=500
0
1
, S
, and S
are 500, -168, and 534 respectively. When X0.0 is ON,
1
2
3
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Sourc e value
6 - 9 9