Programming instructions

53
Intermec Fingerprint 6.13 – Programmer's Guide
6. FILE SYSTEM, cont'd.
1. Printer's Memory,
cont'd.
DOS-Formatted Memory Cards ("card1:")
A special case of the RAM memory is the DOS-formatted memory
card, which can be both read from and written to, just like RAM, but
is referred to as a special device ("card1:"). In order to retain its
content when the power to the printer is off, each SRAM memory
card is fitted with an internal battery.
Current Directory
“Current directory” means the directory the Fingerprint firmware
will use unless you specifically instruct it to use another directory.
By default, the current directory is "ram:".
To appoint another directory as current directory, use a CHDIR
statement.
Example:
Changing directory from the default directory ("ram:") to "rom:"
and back.
10 CHDIR "rom:"
. . . . .
90 CHDIR "ram:"
Checking Free Memory
You can check the size of the RAM memory and see how much free
memory space there is by issuing a FILES, FONTS, or IMAGES
statement in the immediate mode.
Another way is to use the FRE function to making a small
instruction, that returns the number of free bytes, for example:
? FRE(1) yields e.g.:
391248
Providing More Free Memory
In order to free more memory space in RAM, you can use a CLEAR
statement to empty all strings, set all variables to zero and reset all
arrays to default. If even more memory is required, you will have
to consider either to KILL some programs or files, or to REMOVE
some fonts or images stored in RAM. If the printer is not fitted with
a maximum size RAM memory, you could also fit more or larger
RAM packages after having made backup copies on the host.
Formatting Memory Cards or RAM Memory
A RAM-type memory card, inserted in the printer's optional
memory card adapter, can be formatted to MS-DOS format by
means of a FORMAT statement. FORMAT can also be used to
format the printer's RAM memory, i.e. erase all files in the storage
part of the RAM memory. No other data will be affected.