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.

CLL<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for partial or complete clearing of the print image buffer.<br />

Syntax CLL []<br />

optionally specifies the field from which the print image buffer<br />

should be cleared.<br />

Remarks The print image buffer is used to store the printable image after processing<br />

awaiting the printing to be executed. The buffer can be cleared, partially or<br />

completely, by the use of a CLL statement:<br />

- CLL partially clears the buffer from a specified field to the end of<br />

the program. The field is specified by a FIELDNO function.<br />

Partial clearing is useful in connection with print repetition. To avoid<br />

superfluous reprocessing, one or several fields can be erased from the buffer<br />

and be replaced by other information, while the remaining parts of the label<br />

are retained in the buffer.<br />

Note that there must be no changes in the layout between the PRINTFEED<br />

and the CLL statements, or else the layout will be lost. Also note that partial<br />

clearing always starts from the end, i.e. the fields which are executed last<br />

are cleared first.<br />

- CLL (without any field number) clears the buffer completely.<br />

When certain error conditions have occurred, it is useful to be able to clear<br />

the print image buffer without having to print a faulty label. Should the error<br />

be attended to, without the image buffer being cleared, there is a risk that<br />

the correct image will be printed on top of the erroneous one on the same<br />

label. It is therefore advisable to include a CLL statement in your errorhandling<br />

subroutines, when you are working with more complicated<br />

programs, in which all implications may be difficult to grasp.<br />

Examples Partial clearing:<br />

Two labels are printed, each with two lines of text. After the first label is<br />

printed, the last line is cleared from the print image buffer and a new line is<br />

added in its place on the second label:<br />

10 PRPOS 100,300<br />

20 FONT "Swiss 721 BT"<br />

30 PRTXT "HAPPY"<br />

40 A%=FIELDNO<br />

50 PRPOS 100,250<br />

60 PRTXT "NEW YEAR!"<br />

70 PRINTFEED<br />

80 CLL A%<br />

90 PRPOS 100,250<br />

100 PRTXT "BIRTHDAY!"<br />

110<br />

RUN<br />

PRINTFEED<br />

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

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

Saved successfully!

Ooh no, something went wrong!