Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 746
Chapter 2 Program Instructions
COMSET
Field of Application
 Statement setting the parameters for background reception of data to the 
buffer of a specifi ed communication channel (see COMBUF$).
Syntax COMSET<nexp
1
>,<sexp
1
>,<sexp
2
>,<sexp
3
>,<sexp
4
>,<nexp
2
>
<nexp
1
>  is one of the following communication channels:
 1 = "uart1:"   
 2 = "uart2:"
 3 = "uart3:" 
 4 = "centronics:"
 5 = "net1:"
 6 = "usb1:"
<sexp
1
> specifi es the start of the message string (max. 12 char).
<sexp
2
> specifi es the end of the message string (max. 12 char).
<sexp
3
> specifi es characters to be ignored (max. 42 char).
<sexp
4
> specifi es the attention string (max. 12 char).
<nexp
2
>  specifi es the max. number of characters to be received. 
Enter a value ≥1. (If <nexp2> = 0, the fi rst  character 
will be lost.)
Remarks
 Data can be received by a buffer on each of the communication channels 
without interfering with the running of the current program. At an appropriate 
moment, the program can fetch the data in the buffer and use them according 
to your instructions. Such background reception has priority over any 
ON KEY GOSUB statement. 
 Related instructions are COMSTAT, ON COMSET GOSUB, COMSET ON, 
COMSET OFF, COM ERROR ON/OFF, and COMBUF$.
 The  communication  channels  are  explained  in  connection  with  the 
DEVICES statement.
 The start and end strings are character sequences which tells the printer when 
to start or stop receiving data. Max. 12 characters, may be "".
 It is possible to make the printer ignore certain characters. Such characters 
are specifi ed in a string, where the order of the individual characters does 
not matter. Max. 42 characters, may be "".
 The attention string interrupts the reception. Max. 12 characters, may be "".
 The length of  the afore-mentioned COMSET  strings are checked before 
they are copied into the internal structure. If any of these strings are too long, 
Error 26, “Parameter too large” will occur.
 When the printer has received the specifi ed maximum number of characters, 
without previously having encountered any end string or attention string, the 
transmission will be interrupted. The maximum number of characters also 
decides how much of the memory will be allocated to the buffer.










