02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter —Program Instructions<br />

COMSET ON<br />

Purpose Statement emptying the buffer and turning on background data reception<br />

on the specified communication channel.<br />

Syntax COMSETON<br />

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

1 = "uart1:"<br />

2 = "uart2:"<br />

3 = "uart3:"<br />

4 = "centronics:"<br />

5 = "net1:"<br />

6 = "usb1:"<br />

7 = "uart4:"<br />

8 = "uart5"<br />

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

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

It allows you to open any of the communication channels for background<br />

data reception with an empty buffer, provided the communication parameter<br />

for the channel has already been set up by a COMSET statement.<br />

When the reception has been interrupted by the reception of an end character,<br />

an attention string or the max. number of characters, the buffer can<br />

be emptied and the reception reopened by issuing a new COMSET ON<br />

statement.<br />

Example In this example, the COMSET ON statement on line 30 is used to open<br />

"uart1:" for background reception. After the buffer has been read, it is<br />

emptied and the reception is reopened by a new COMSET ON statement<br />

in the subroutine on line 2020:<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 COMSET 1 OFF<br />

.....<br />

.....<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 <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong>

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

Saved successfully!

Ooh no, something went wrong!