![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452664.webp)
3 . I n s t r u c t i o n S e t
M N 0 5 0 0 3 0 0 3 E F o r m o r e i n f o r m a t i o n v i s i t : w w w. e a t o n . c o m
3 - 4 9 5
D
1
Min. destination value
Max. Destination value
Destination value
Source value
Max.
source value
Min.
source value
Program Example 1:
1.
S
1
is 500, the Max. source value is D0=3000, the Min. source value is D1=200, the Max.
destination value is D2=500, and the Min. destination value is D3=30. When X0=On, the SCLP
instruction executes and the scaled value is stored in D10.
2.
Equation: D10 = [(500 –200)
×
(500–30)]
÷
(3000–200) +30=80.35. Rounding off the result
into an integer, D10 =80.
X0
SCLP
K500
D0
D10
X0
MOV
MOV
MOV
MOV
K3000
K200
K500
K30
D0
D1
D2
D3
D
S
1
0
=500
=30
=500
Source value
Destination value
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...