61
UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1
Chapter 8 File Handling
Chapter 8
File Handling
There are a number of commands for reading the printer's memory
and returning the information to the host. This requires a working
two-way serial communication (see
SETSTDIO
in chapter 6.1):
? FRE (1)
Returns the number of free bytes in the printer's RAM memory.
FONTS
Returns the names and size of all fonts files stored in the printer's
memory, followed by a list of the bitmapped fonts retained for
compatibilty with other EasyCoder printers (see chapter 4.3). It also
returns information on the total memory used.
IMAGES
Returns the names of all image files (in .PCX format) stored in the
printer's memory. It also returns information on the total memory
used.
FILES ["<RAM:>|<ROM:>|<CARD1:>|<CARD2:>"]
Returns the names of all the files in the printer's RAM memory by
default, if no storage device is specified, or optionally in the ROM
memory (
"ROM:"
) or in an inserted DOS-formatted memory card
(
"CARD1:|CARD2:"
).It will also return information on the size
of each file and the total number of used bytes in the RAM memory.
When images are loaded using
IMAGE
LOAD
, they can either be
loaded into the printer's volatile memory or as a file into the RAM
memory. Images loaded into the volatile memory are removed us-
ing
REMOVE
IMAGE
. Images loaded into RAM are removed using
KILL
.
REMOVE
↔
IMAGE "<name>"
The name of the image must correspond exactly to the name re-
turned when using the
IMAGES
command and be enclosed by dou-
ble quotation marks.
1. Reading the
Printer Memory
2. Removing
Images, Files and
Fonts