Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7232
Chapter 2 Program Instructions
SETPFSVAR
Field of Application
Statement for registering variable to be saved at power failure.
Syntax SETPFSVAR<sexp>[,<nexp>]
<sexp> is the name of a numeric or string variable (uppercase
characters only).
<nexp> is the size in bytes of a string variable (compulsory).
Remarks
When a program is loaded, it is copied to and executed in the printer’s
temporary memory ("tmp:"). Should an unexpected power failure occur,
the printer tries to save as much data as possible in the short time available
before all power is lost. To minimize the risk of lose important variable values
at a power failure, you can register numeric and string variables to be saved.
There is 2176 bytes (incl. overhead) available for this purpose.
However, should the power failure occur while the printer is printing, there
will not be any power left to save the current variables.
When you register a string variable, you must also specify its size in bytes.
Related instructions are GETPFSVAR, DELETEPFSVAR, and LIST-
PFSVAR.
Examples
Example with string variable:
100 IF QA$="" THEN QA$="Hello":QA%=LEN(QA$)
110 SETPFSVAR "QA$",QA%
Example with numeric variable:
200 SETPFSVAR"QCPS%"