Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 748
Chapter 2 Program Instructions
COMSET OFF
Field of Application
 Statement  turning off background  data reception  and  emptying  the 
buffer of the specifi ed communication channel.
Syntax COMSET<nexp>OFF
<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 ON, COM ERROR ON/OFF, and COMBUF$. 
 The COMSET OFF statement closes the reception and empties the buffer 
of the specifi ed communication channel.
Example
 In this example, the COMSET OFF statement is used to close "uart1:" for 
background reception and empty the buffer:
  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










