Hi,
The likely reason for it not to work the way you have it is because you take the low byte of the word variable and shift it 8 bits to the right, "pushing" the actual value out. Just remove the >> 8 part of it and see if it works.
On the other hand, the manual says:Which is exactly what you're trying to do so you could simply specify the word size variable, no highbyte/lowbyte stuff needed if I understand correctly.If a word- or long-sized Value is specified, the bytes are sent highest byte first,
followed by the lower byte(s).
/Henrik.
Bookmarks