17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

COMSET<br />

Chapter 2 Program Instructions<br />

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

the buffer of a specified communication channel.<br />

Syntax COMSET,,,,,<br />

1 1 2 3 4 2<br />

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

1<br />

1 = "uart1:"<br />

2 = "uart2:"<br />

3 = "uart3:"<br />

4 = "centronics:"<br />

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

1<br />

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

2<br />

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

3<br />

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

4<br />

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

2<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 according<br />

to your instructions. Such background reception has priority over any ON<br />

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 DEVICES<br />

statement.<br />

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

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

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

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

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

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

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

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

condition 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 string, the<br />

transmission will be interrupted. The max. number of characters also decides<br />

how much of the memory will be allocated to the buffer.<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 43

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

Saved successfully!

Ooh no, something went wrong!