Omron C200H-ASC11 Manual page 237

Ascii units
Hide thumbs Also See for C200H-ASC11:
Table of Contents

Advertisement

Details of BASIC Commands
wait
Syntax:
WAIT
Statement. Specifies a time-out for the statement following the
Description:
<wait string> specifies the waiting time, after which a time-out will occur. It has the format "
Remarks:
[<mm>:]<ss>.<t>" where :
<mm> specifies minutes, valid range is [00...59]. This field is optional.
<ss> specifies seconds, valid range is [00...59]. This field is mandatory.
<t> specifies tenths of seconds, valid range is [0...9]. This field is mandatory.
<line number> specifies the program line to continue execution after a time-out has occurred. It
can be any valid BASIC line number in the range : [1...65535]. If the line number specified does
not exist then an "UNDEFINED LINE NUMBER" error (code B008) will occur.
If an illegal wait time is specified an "ILLEGAL FUNCTION CALL" error (code B005) will
occur.
The
within the specified time then program execution will continue as normal. If not then execution of
the monitored statement will terminate and execution will continue.
If <line number> is specified then, in the event of a time-out, execution will continue at the
specified line number. If not then execution will continue with the statement immediately
following the monitored statement.
The
INPUT
WHILE
If another BASIC interrupt occurs while the
subroutine will be executed. The
executed.
Examples:
> 10 WAIT "00:1.5", 100
> 20 INPUT A$
> 30 PRINT "HELLO ";A$
> 40 END
> 100 PRINT "TOO LATE..."
> 110 END
> RUN
? TOO LATE...
See also:
228
<wait string> [, <line number>]
statement monitors the statement that immediately follows it. If it finishes execution
WAIT
statement can be used to monitor the following statements:
WAIT
,
$,
,
INPUT
LINE INPUT
PC READ
.
,
,
PC WRITE
PC QREAD
statement is active, that BASIC interrupt
WAIT
timer will be paused while the interrupt subroutine is being
WAIT
Section
statement.
WAIT
,
,
and
PC QWRITE
PRINT
LPRINT
7-6
,
,
FOR

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200h-asc21C200h-asc31

Table of Contents