DecimalNum=((OctalNum DIG 2)*64)+((OctalNum DIG 1)*8)+(OctalNum DIG 0)
Sometimes it's fun just hanging around to watch the pain....
oh... and if you now wish to transmit three sets of three Binary digits with leading zero's (in the form 000-000-000 - per your original post) then do the same thing...
SEROut BIN3(DecimalNum DIG 2),"-",BIN3(DecimalNum DIG 1),"-",BIN3(DecimalNum DIG 0)
Melanie
Bookmarks