Hi,
I think it's "the usual" case of not treating the data the same way in both ends.
It looks to me like you are sending ASCII but you're treating the received data as binary/raw numbers.
If you send the decimal digit '1', store that in myArray[0] and later multiply that by 100 what you'll get is 4900 because 49 is the ASCII code for '1'.
To do what you want you can use ARRAYREAD with the DEC modifier or simply use the aproach you already have but "offset" the values to account for the ASCII encoding.
Code:
varResult = ((myArray[0]-48)*100) + ((myArray[1]-48)*10) + (myArray[2]-48)
Or you could subtract 48 when receiving the digits.
/Henrik.
Bookmarks