![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h-asc02/sysmac-c200h-asc02_operation-manual_742429061.webp)
51
<wait time> is the allowable time for the monitored statement to
be executed.
<line number> is any valid line number.
Example:
WAIT “10:30.5”,100
Remarks:
The delay time is set in the form MM.SS.F, where:
MM is the number of minutes up to 59
SS is the number of seconds
F is tenths of seconds.
The statement immediately following the WAIT statement is the monitored
statement. If execution of this statement is not completed within the set wait
time, program execution will branch to <line number>.
Interrupts invoked by the ON COM, ON KEY, ON PC, or ON ERROR state-
ments will not be recognized until after the WAIT statement or the monitored
statement has been processed.
The WAIT statement can monitor the following statements:
INPUT, INPUT$, LINE INPUT, PC READ, PC WRITE, PRINT, LPRINT,
PRINT USING, LPRINT USING
If a statement other than one of those listed above is specified to be moni-
tored by a WAIT statement, and if execution of that statement is not com-
pleted within the set time of the WAIT statement, an error will occur.
Program Example:
10
WAIT “10.0”, 100
20
PC READ “3I4”; A, B, C,
30
PRINT A, B, C
40
END
100
PRINT “PC ERR”
110
GOTO 40
Program Remarks:
This example will display the message “PC ERR” if the PC READ statement
is not executed within 10 seconds.
4-2-4
Device Control Statements
This section describes statements that control hardware and communica-
tions.
CLOSE Statement
Purpose:
To close a port
Format: CLOSE
[#<port>]
<port> is an integer (1 or 2).
Remarks:
If the port number is omitted, both ports will be closed.
Once the port has been closed, it cannot be used for data transfer until it is
opened again.
Be sure to execute the CLOSE statement to correctly end the output pro-
cess. CLOSE dumps any data remaining in the buffer from output operations.
It does not dump data from input operations.
BASIC Language
Section 4-2
Содержание SYSMAC C200H-ASC02
Страница 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Страница 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Страница 122: ...Appendix B Specifications 115 130 35 100 5 ...
Страница 167: ...Cat No W165 E1 04 Note Specifications subject to change without notice Printed in Japan Authorized Distributor ...
Страница 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...