A command tera term analysis scenario
; Virtual serial port virtual two serial ports, tera term use serial port 2
; 115200 baud serial port 2 is provided, 500ms timeout; If OK is received from serial port to the return SUCCESS; ERROR if the reply is received Faile
; If a timeout is sent Timeouts.
Connect "/ C = 2 / BAUD = 115200"
timeout = 0
mtimeout = 500
the while. 1
the wait 'the OK' 'eRROR'
; the If timeout Occurs, transmits ": timeout."
IF Result = 0 the then
sendln "Timeouts"
; has Received, transmits ": error."
ELSEIF Result =. 1 the then
sendln " Success "
;" ERROR "has Received, transmits": Faile. "
ELSEIF the then Result = 2
Faile" sendln "
endif
endwhile