
Originally Posted by
kevlar129bp
Hello all,
Code:
' Wait until the character “B” AND board address is received serially on porta.0
serin2 serialinput,84,[WAIT ("B",board)]
if board <> boardAddr then goto start
' Wait until the character “R” is received serially on porta.0 and put next character into B1
SERIN SerialInput,N9600,["R"],relay
' Wait until the character “S” is received serially on porta.0 and put next character into B2
SERIN SerialInput,N9600,["S"],stat
Chris
I think you will need to change the statements as shown below
Code:
' Wait until the character “B” AND board address is received serially on porta.0
SERIN2 serialinput,84,[WAIT ("B",DEC2 board)]
if board <> boardAddr then goto start
' Wait until the character “R” is received serially on porta.0 and put next character into B1
SERIN2 SerialInput,84,["R"],DEC2 relay
' Wait until the character “S” is received serially on porta.0 and put next character into B2
SERIN2 SerialInput,84,["S"],DEC2 stat
Here I am assuming the B??R??S?? each gets a 2 digit decimal value
Bookmarks