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 nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-96
Program Example 2:
1.
D
valid range: 0<
n
≦
4, if
n
=0 or
n
>4, an error will occur.
2. When
n
=4, the maximum decoded data is 2
4
= 16 points.
3.
When X20 goes from OFF
→
ON, the data in D10 (b2 to b0) will be decoded and stored in
D20 (b7 to b0). The unused bits in D20 (b15 to b8) will be all set to 0.
4.
This example decodes the three lower bits in D10 and sets the appropriate bit in D20. The bit
number in D20 is determined by the value of the 3 low bits in D10. The content of the eight
upper bits of D20 are all set to 0.
5.
After the execution is completed, X20 is changed to OFF. The result in D20 remains.
DECOP
D10
K3
D20
X20
0
0
0
0
0
0
0
0
1 1
1
1
1
1
1
1
0
0 0
0
0
0 0
0
0
0
0
0
1
0 0
0
0
1
2
3
4
5
6
7
1
2
4
b15
b15
b0
b0
All be 0 (zero)
When 3 is specified
at b2 to b0 of D10
Result after decoding
When 3 is specified as effective
bits, 8 points are occupied.
b3 at the third position from
b0 turns ON and is set to 1
D10
D20
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...