after drinking heavily I think I am getting this sorted out. I tried this part of code
read 38, Test.LowByte
read 39, Test.highbyte
and then used 'test' as a variable to SEROUT. If there is a better way to do this let me know
Thanks again
Toby
after drinking heavily I think I am getting this sorted out. I tried this part of code
read 38, Test.LowByte
read 39, Test.highbyte
and then used 'test' as a variable to SEROUT. If there is a better way to do this let me know
Thanks again
Toby
Tobias,
Try reading one variable at a time and see what's the value. Anyways I can see that you have in your program
PreOn = Stage10On
PreOff =Stage10Off
but you defined Stagexxxxx as word but defined PreOn and PreOff as bytes. This might be a problem if the Stagexxxxx variables go above 255. I would define PreOn and PreOff as words and see what happens.
Robert
Bookmarks