17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

COMSET OFF<br />

Chapter 2 Program Instructions<br />

Field of Application Statement turning off background data reception and emptying the<br />

buffer of the specified communication channel.<br />

Syntax COMSETOFF<br />

is one of the following communication channels:<br />

1 = "uart1:"<br />

2 = "uart2:"<br />

3 = "uart3:"<br />

4 = "centronics:"<br />

Remarks This statement is closely related to COMSET, ON COMSET GOSUB,<br />

COMSTAT, COMSET ON, COM ERROR ON/OFF and COMBUF$.<br />

The COMSET OFF statement closes the reception and empties the buffer of<br />

the specified communication channel.<br />

Example In this example, the COMSET OFF statement is used to close "uart1:" for<br />

background reception and empty the buffer:<br />

1 REM Exit program with #STOP&<br />

10 COMSET1,"#","&","ZYX","=",50<br />

20 ON COMSET 1 GOSUB 2000<br />

30 COMSET 1 ON<br />

40 IF A$ "STOP" THEN GOTO 40<br />

50<br />

.....<br />

.....<br />

COMSET 1 OFF<br />

1000 END<br />

2000 A$= COMBUF$(1)<br />

2010 PRINT A$<br />

2020 COMSET 1 ON<br />

2030 RETURN<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 45

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!