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.

COMSET<br />

<strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong><br />

Chapter —Program Instructions<br />

Purpose Statement setting the parameters for background reception of data to the<br />

buffer of a specified communication channel (see COMBUF$).<br />

Syntax COMSET,,,,,<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 />

specifies the start of the message string (max. 12 char).<br />

specifies the end of the message string (max. 12 char).<br />

specifies characters to be ignored (max. 42 char).<br />

specifies the attention string (max. 12 char).<br />

specifies the max. number of characters to be received. Enter a<br />

value ≥1. (If = 0, the first character will be lost.)<br />

Remarks Data can be received by a buffer on each of the communication channels<br />

without interfering with the running of the current program. At an appropriate<br />

moment, the program can fetch the data in the buffer and use them<br />

according to your instructions. Such background reception has priority<br />

over any ON KEY GOSUB statement.<br />

Related instructions are COMSTAT, ON COMSET GOSUB, COMSET<br />

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

The communication channels are explained in connection with the DEVI-<br />

CES statement.<br />

The start and end strings are character sequences which tells the printer<br />

when to start or stop receiving data. Max. 12 characters, may be "".<br />

It is possible to make the printer ignore certain characters. Such characters<br />

are specified in a string, where the order of the individual characters does<br />

not matter. Max. 42 characters, may be "".<br />

The attention string interrupts reception. Max. 12 characters, may be "".<br />

The length of the afore-mentioned COMSET strings are checked before<br />

they are copied into the internal structure. If any of these strings are too<br />

long, Error 26, “Parameter too large” will occur.<br />

When the printer has received the specified maximum number of characters,<br />

without previously having encountered any end string or attention<br />

string, the transmission will be interrupted. The maximum number of<br />

characters also decides how much of the memory will be allocated to the<br />

buffer.

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

Saved successfully!

Ooh no, something went wrong!