Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7  49
Chapter 2 Program Instructions
COMSET ON
Field of Application
 Statement  emptying  the  buffer  and  turning  on  background  data 
reception on the specifi ed communication channel.
Syntax COMSET<nexp>ON
<nexp> is one of the following communication channels:
 1 = "uart1:"   
 2 = "uart2:"
 3 = "uart3:" 
 4 = "centronics:"
 5 = "net1:"
 6 = "usb1:"
Remarks
 This  statement  is  closely  related  to  COMSET,  ON  COMSET  GOSUB, 
COMSTAT, COMSET OFF, COM ERROR ON/OFF, and COMBUF$. It 
allows you to open any of the communication channels for background data 
reception with an empty buffer, provided the communication parameter for 
the channel has already been set up by a COMSET statement.
 When  the  reception  has  been  interrupted  by  the  reception  of  an  end 
character, an attention string or the max. number of characters, the 
buffer can be emptied and the reception reopened by issuing a new 
COMSET ON statement.
Example
 In  this example, the COMSET  ON statement on  line  30 is used  to open 
"uart1:" for background reception. After the buffer has been read, it is 
emptied and the reception is reopened by a new COMSET ON statement 
in the subroutine on line 2020:
  1   REM Exit program with #STOP&
  10   COMSET1,"#","&","ZYX","=",50
  20   ON COMSET 1 GOSUB 2000
  30   COMSET 1 ON
  40   IF A$ <> "STOP" THEN GOTO 40
  50   COMSET 1 OFF
  .....
  .....
  1000   END
  2000   A$= COMBUF$(1)
  2010   PRINT A$
  2020   COMSET 1 ON
  2030   RETURN










