octal number

  • Thread starter Thread starter Phil Hunt
  • Start date Start date
P

Phil Hunt

I have been asked to send a Oct(6) to a com port. How do I represent that
number ? Is there a shorthand for it ?
Thanks
 
I have been asked to send a Oct(6) to a com port. How do I represent
that number ? Is there a shorthand for it ?

Most likely a binary 6 is enough if you are truly talking to a COM port. If
you are tlaking to something else through the COM port, then you need to
find what it is actually expecting (6 in octal or a string representation).
More than likely a 6 represented in binary is good enough in this case.

Peace and Grace,


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Thanks. will find out.


Gregory A. Beamer said:
Most likely a binary 6 is enough if you are truly talking to a COM port.
If
you are tlaking to something else through the COM port, then you need to
find what it is actually expecting (6 in octal or a string
representation).
More than likely a 6 represented in binary is good enough in this case.

Peace and Grace,


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Is 6 the only value you have to send? If so, then this is the same as
decimal 6 or hexadecimal 6. If you need to convert other ranges of values,
then you will need some code -- there are samples available online.

Dick

--
Richard Grier, Consultant, Hard & Software 12962 West Louisiana Avenue
Lakewood, CO 80228 303-986-2179 (voice) Homepage: www.hardandsoftware.net
Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004, Revised July
2006.
 
Back
Top