Hi Henrik, thanks for the welcome and the information.
There are 8 bytes in the "string" sent as 8N1 so it's "Start 192 Stop" "Start 28 Stop"... (sorry for the clumsy formatting, I don't know how else to say it). So it's the last example you gave I think. From your example it seems that the first three bytes are "thrown away" and the array doesn't start to be filled until the the WAIT condition is met. In this case these initial values must be stored as well for the checksum calculation.
I had a similiar related problem in that I wanted to use the STR ArrayVar to send a string to a "serial LCD" (as you show in your example). The array contains numbers, not characters. If I filled the array with characters ("A","B","C") it worked fine. If a number (192,28,36,etc.) was in the array it was not displayed on the LCD as a decimal value. I know that when sending a number by itself with HSEROUT I use the modifier DEC but this doesn't work with STR so I resorted to a FOR/NEXT loop to send the data.
Thanks again.
Bookmarks