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

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

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

Chapter —Program Instructions<br />

SETPFSVAR<br />

Purpose Statement for registering variable to be saved at power failure.<br />

Syntax SETPFSVAR[,]<br />

is the name of a numeric or string variable (uppercase characters<br />

only).<br />

is the size in bytes of a string variable (max. 230).<br />

Remarks When a program is loaded, it is copied to and executed in the printer’s<br />

temporary memory ("tmp:"). Should an unexpected power failure occur,<br />

the printer tries to save as much data as possible in the short time available<br />

before all power is lost. To minimize the risk of lose important variable<br />

values at a power failure, you can register numeric and string variables to<br />

be saved. There is 2176 bytes (incl. overhead) available for this purpose.<br />

However, should the power failure occur while the printer is printing, there<br />

will not be any power left to save the current variables.<br />

When you register a string variable, you must also specify its size in bytes.<br />

The variable name is limited to a length of twenty characters.<br />

Note: The EasyCoder PD41 lacks power-fail signal, and thus it cannot save<br />

variables at unexpected power failures.<br />

Related instructions are GETPFSVAR, DELETEPFSVAR, and<br />

LISTPFSVAR.<br />

Examples Example with string variable:<br />

100 IF QA$="" THEN QA$="Hello":QA%=LEN(QA$)<br />

110 SETPFSVAR "QA$",QA%<br />

Example with numeric variable:<br />

200 SETPFSVAR"QCPS%"<br />

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

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

Saved successfully!

Ooh no, something went wrong!