E L C P r o g r a m m i n g M a n u a l
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 M N 0 5 0 0 3 0 0 3 E
3 - 4 9 6
Program Example 2:
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=30 and Min. destination value is D3=500. When X0=On, the SCLP
instruction executes and the scaled value is stored in D10.
2.
Equation: D10 = [(500 –200)
×
(30–500)]
÷
(3000–200) +500=449.64. Rounding off the result
into an integer, D10 =450.
X0
SCLP
K500
D0
D10
X0
MOV
MOV
MOV
MOV
K3000
K200
K30
K500
D0
D1
D2
D3
S
1=
500
D
0
=30
=500
Destination value
Source 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...