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
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...