User manual

Toolbox 32 User Manual 1.47d www.cse-semaphore.com/mykingfisher
Page
203
Appendix - Hexadecimal Numbers
Hexadecimal is a numbering scheme similar to decimal but instead of counting from 0 to 9, hexadecimal
counts from 0 to 15. The hexadecimal, decimal and binary equivalents are shown below.
Hex Decimal Binary Hex Decimal Binary
0 0 0000 8 8 1000
1 1 0001 9 9 1001
2 2 0010 A 10 1010
3 3 0011 B 11 1011
4 4 0100 C 12 1100
5 5 0101 D 13 1101
6 6 0110 E 14 1110
7 7 0111 F 15 1111
In Kingfisher RTUs, the mask value is a 4 digit hexadecimal value corresponding to channels 1 to 16. The
mask used to enable one channel (or bit) only is as follows:
Ch1 0001 Hex Ch9 0100 Hex
Ch2 0002 Hex Ch10 0200 Hex
Ch3 0004 Hex Ch11 0400 Hex
Ch4 0008 Hex Ch12 0800 Hex
Ch5 0010 Hex Ch13 1000 Hex
Ch6 0020 Hex Ch14 2000 Hex
Ch7 0040 Hex Ch15 4000 Hex
Ch8 0080 Hex Ch16 8000 Hex
To enable more than one channel at a time, the mask value must have each of the required channels set
ON.
Examples:
To Enable
Channels
Use Hex
Number
Binary Equivalent
1, 2, 3 0007 0000 0000 0000 0111
1, 16 8001 1000 0000 0000 0001
1, 7, 8, 13 10C1 0001 0000 1100 0001
Hexadecimal numbers are specified in Kingfisher RTUs using the format 16#xxxx where xxxx is the
hexadecimal number and can be 1 to 4 digits long.