In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tdodds wrote: Hi, I have a project where I am gathering and reporting data from several ModBus devices using RS485. I have the hardware working just fine, but these devices report some of their values in 32-bit signed-integer or 32-bit floating-point. Is there a subroutine that I can adopt to convert these values into ASCII strings (hopefully in SX-B)? In my site search I found a routine for 16 bit numbers (BIN16DEC) and that works just fine for the 16bit registers, but offhand I can't visualize a way to expand it to handle these large numbers (a one in the 31st position has to report as ASCII 1,073,741,824 !) and it has to also handle the sign bit. Thanks for the help. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=453571 Need assistance? Send an email to the Forum Administrator at sysadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2010 (http://www.dotNetBB.com)