Rob,
I had previously nested the code, but simply changed it to separate statements to rule out that as being the cause. The strange thing is it was all working when the values were all bytes and not words.....The case statement is thus (I've removed nested IF THEN statements within the statement just in case that was causing the issue)
Bookmarks