Website for machine experts
Decimal/binary conversion
NC FAQ1005
Question:
How can I get the binary number for a decimal number, such as 33, without too much calculation?
Answer:
You can use the Windows pocket calculator for this. After you open the calculator, choose the "Scientific" option from the "View" menu. In Windows 7, select the "Programmer" view.
If you now enter a decimal value (such as 33), and then click "Bin", the value will be shown as a binary number (in this case 100001).
For an example of how to read out a machine parameter as a decimal value with the iTNC 530, convert it to a binary number, and save it to a table, follow the link below to view a sample program from our NC Solutions database.
Link:
Resolving decimal values into binary values