What for a string and CR
Hi all!
I have a problem, i want ro reseve a string and a CR [noparse][[/noparse]enter] after that the program will go to "Check TAG"
The CR will tell my program that the sting input is over.
Also, i want to have a timeout funktion, so if the program has not reseve any information in 2 sec the program will go to "Error"
SERIN 16, Baud, ????
I have a problem, i want ro reseve a string and a CR [noparse][[/noparse]enter] after that the program will go to "Check TAG"
The CR will tell my program that the sting input is over.
Also, i want to have a timeout funktion, so if the program has not reseve any information in 2 sec the program will go to "Error"
SERIN 16, Baud, ????
Comments
tagstring VAR byte(10) ' can hold up to 10 chars
SERIN 16,Baudmode,2000,timout,[noparse][[/noparse]STR tagstring\10\13] ' end at 10 chars or CR, whichever first
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com