11-06-2009 02:02 PM
11-06-2009 02:42 PM
The documentation says that the command 0x is followed by 4 bytes of ASCII data (so is this a character, I mean each ASCII data a charater?), hence here in this example, 0x followed by 30313230 in hex (0120 ASCII). You are right there. But, the 0120 implies that there is 12% elevation, 0100 is 10%, 0140 is 14% etc. But, having 0120, 0140 etc in decimal would make more sense at this point I guess.
Q) how to determine what I am getting are characters? The documentation says I get ASCII codes..
V
11-06-2009 02:46 PM
Ok. What I get from the read buffer is 0120. Sorry. Does this change anything? How do I use this 0120 to get 0120 decimal?
V
11-06-2009 03:03 PM
11-10-2009 02:16 PM
Thanks! Smercurio_fc... ur last reply was very helpful.
Another question regarding case structures. Can I use "Use default if unwired" if I need a value out of just one case out of a case structure? What would that default value be? Would it pertain to the Default case of the structure or something else?
V
11-10-2009 02:30 PM
11-10-2009 04:42 PM
Also, how do I do the reverse of your previous conversion. like 120 decimal number to 0120 ASCII string or 120 decimal number to 30 31 32 30 hex ASCII string.
V
11-10-2009 04:45 PM
I mean i get how to convert to decimal string 120, But how do I get the additional zero in the beginning to make it 4 bytes as 0120 rather than 120 which will be 3 bytes in my application.
V
11-10-2009 04:48 PM
Sorry for posting as three separate messages.... I am concatenating a "0" infront of the "120" string. Is there a better way is my questin 🙂 Sorry for multiple posts... I didnt know how to delete my previous posts....
V
11-10-2009 04:54 PM