![K'Nex Education 79018 User Manual Download Page 34](http://html2.mh-extra.com/html/knex-education/79018/79018_user-manual_3078674034.webp)
34
Calculating the Decimal equivalent
If an output is to be switched On the bit for the output is set to 1, if it’s to be left Off it is set to 0.
The decimal is created from the byte created by setting the bits for turning the outputs on.
The table below indicates the bit pattern and decimal values for the byte when one output is to be
turned on at a time.
Bit 8
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Byte
Decimal value
Output
0
0
0
0
0
0
0
0
00000000
0
All off
0
0
0
0
0
0
0
1
00000001
1
1 on
0
0
0
0
0
0
1
0
00000010
2
2 on
0
0
0
0
0
1
0
0
00000100
4
3 on
0
0
0
0
1
0
0
0
00001000
8
4 on
0
0
0
1
0
0
0
0
00010000
16
5 on
0
0
1
0
0
0
0
0
00100000
32
6 on
0
1
0
0
0
0
0
0
01000000
64
7 on
1
0
0
0
0
0
0
0
10000000
128
8 on
To control multiple outputs add together the decimal value for each output to be switched on and use
the total as the Binary Output value.
Example: To switch both Outputs 3 and 7 On the binary value will be 68 (64 + 4 = 68).
The Process symbol
•
If Selection isn’t already active, click to select.
•
Click on the Process icon, move the mouse into the edit area and click to fix in place.
•
In the selection panel click on either the Wait, Procedure or Make (Level 2 only) button.
•
Make your selection from the panel.
•
Click on OK to enter the completed command into the process symbol.
back to Table of Contents