EL C Pro g rammi ng Manu al
F O R MORE INFORM AT ION VISIT: WWW.E ATON.COM MN05003003E
2-18
Decimal value in ELC operation is attached with a “K”, e.g. K100 indicates the value 100 in
Decimal format.
Exception:
When a constant K is used with bit devices X, Y, M, S, the value specified after K
indicates the groups of 4-bit units, which forms a digit(4-bit), byte(8 bit), word(16bit), or
double word(32-bit) data, e.g. K2Y10, K4M100, representing Y10 ~ Y17 and
M100~M115.
4.
BCD (Binary Coded Decimal)
BCD format uses 1 Decimal digit to represent a 4 bit value, so that 16 consecutive data bits
can be represented by a 4-digit decimal value. Used mainly for reading values from DIP
switches or sending data to 7-segement displays
5.
Hexadecimal Number, HEX
ELC applies Hexadecimal operation in situations below:
z
For use of operand in API instructions, e.g. MOV H1A2B D0
。
(H value)
z
Constant H:
Hexadecimal value in ELC operation is attached with an “H”, e.g. H100 indicates the value
100 in Hex format.
Reference Table:
Binary
(BIN)
Octal
(OCT)
Decimal (K)
(DEC)
BCD
(Binary Code Decimal)
Hexadecimal (H)
(HEX)
For ELC
internal
operation
No. of X, Y
relay
Constant K, No. of
registers M, S, T, C,
D, E, F, P, I
For DIP Switch and
7-segment display
Constant H
0000 0
0
0000
0
0001 1
1
0001
1
0010 2
2
0010
2
0011 3
3
0011
3
0100 4
4
0100
4
0101 5
5
0101
5
0110 6
6
0110
6
0111 7
7
0111
7
1000 10
8
1000
8
1001 11
9
1001
9
1010 12
10
0000
A
1011 13
11
0001
B
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...