Andreas
07-24-2005, 03:06 PM
I have a stringvalue that I save in "SerString1" (Se below):
pw·VAR WORD
SerString1 VAR Byte(6)
SerString1(9)=0
SERIN Port,Baud,Main,2000,Main, [WAIT ("coord"), STR SerString1\5\"*", STR SerString2\5\"*", STR SerString3\5\"*"]
My question is, how can I put the whole value thats saved in "Serstring1" and put it into a "WORD" defined constant for example pw? See below
"SEROUT 15, ServoBaud+$8000,["!SC", 11, 0, pw.LOWBYTE, pw.HIGHBYTE,CR]"
I have tried almost everything but nothing seems to·be working.
I have tried·pw.HIGHBYTE = SerString1(0) but only the first Byte are shown. I need all bytes.
See my code if it helps
Please help me
Andreas
pw·VAR WORD
SerString1 VAR Byte(6)
SerString1(9)=0
SERIN Port,Baud,Main,2000,Main, [WAIT ("coord"), STR SerString1\5\"*", STR SerString2\5\"*", STR SerString3\5\"*"]
My question is, how can I put the whole value thats saved in "Serstring1" and put it into a "WORD" defined constant for example pw? See below
"SEROUT 15, ServoBaud+$8000,["!SC", 11, 0, pw.LOWBYTE, pw.HIGHBYTE,CR]"
I have tried almost everything but nothing seems to·be working.
I have tried·pw.HIGHBYTE = SerString1(0) but only the first Byte are shown. I need all bytes.
See my code if it helps
Please help me
Andreas