03-11-2013 06:27 AM
if i have a numbers like 163, 150,143 like this a three numbers how can I join them and form a hexa decimal number. please kindly reply
03-11-2013 07:37 AM - edited 03-11-2013 07:38 AM
03-11-2013 07:38 AM
It's not clear to me how you convert the decimal into hex. Can you be more precise?
Here's my guess in the dark:
03-11-2013 11:10 PM
not like this. In my motor encoder the encoder will give the position as three decimal numbers of byte length one. so if it gives 150 , 160, 170. Then how can I get the original decimal number which it meant through these numbers. Please kindly help me.
03-12-2013 02:52 AM
03-12-2013 04:15 AM
i need it as a single number not like parts with commas as a single 64 bit decimal. Yoo understand I think
03-12-2013 04:30 AM
Hi perumpadapu,
do you need your number as "163150143" ("single number not like parts with comma") or (as demonstrated above) as "10720911" after joining the bytes?
Yoo understand I think
Nope, you still doesn't give the expected result!
Again: WHAT IS THE EXPECTED RESULT?
03-12-2013 04:30 AM - edited 03-12-2013 04:31 AM
Hi!
The example I provided does exactly what you need, then.
it joins 3 single byte numbers into a 32 bits integer (adding a 0 high byte).
The join order may be wrong but can easily be fixed....
Regards,
Marco
03-12-2013 05:35 AM
I need
as like this
0
195
50
hexa decimal numbers corresponds to 50,000 the decimal number.
I need such a conversion. How we can do it
can you please reply
03-12-2013 05:39 AM - edited 03-12-2013 05:40 AM
Hi perumpadapu,
as has been shown to you by Marco you should try JoinNumbers for that task:
Your given numbers result in 49970, just a little bit off from your 50000. When there are different conversion rules you have to study your manual...