03-30-2013 01:05 AM
i'am in a difficult situation. I have motor which provides me the number of steps moved as three numbers of length one byte.I 'am attaching the program with this message. Here the commands from index 2-4 outputs will provide the number of steps moved. But these are numbers with a single byte length(<256). So how can I get the corresponding decimal number from these three single byte length numbers. please reply
03-30-2013 03:34 AM
HI perumpadapu,
that's what you posted:
No message, no bytes, nothing that helps to answer your question...
You probably have heard this before: RTFM! Read the manual of your device, as it should note how to interprete those 3 bytes. Once you know that it should be easy to convert the bytes into some "decimal" (INT?, UINT?, SGL?, DBL?)...
03-30-2013 09:15 AM
Without knowing what motor you are using, I'm guessing that you probably need to use the Join Numbers to combine the bytes into a U32. The other option is to use the Type Cast function.
04-02-2013 04:56 AM