62
UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1
Chapter 8 File Handling
Files, including font files and images files, can be removed from
the RAM memory or from an inserted DOS-formatted memory card:
KILL "<filename>|CARD1:<filename>|CARD2:<filename>"
The name of the file must correspond exactly to the name returned
when using a
FILES
,
IMAGES
or
FONTS
command and be en-
closed by double quotation marks. Since files will be removed from
the RAM memory by default, it is not necessary to specify
"RAM:"
.
If the file name is preceded by
"CARD1:"
or
"CARD2:"
, the file
will be removed from the inserted memory card.
KILL
cannot be used to remove images from the printer's volatile
memory.
You can copy a file to the RAM memory (
"RAM:"
) or to a DOS-
formatted memory card (
"CARD1:"|"CARD2:"
). You cannot copy
to or from the ROM memory (
"ROM:"
). You can also use the
COPY
command to give the copy a new name.
COPY "[CARD1:|CARD2:]<original name>" [,"[CARD1:|CARD2:]<new name>"]
The filename can be up to 30 characters. Since files will be copied
to the RAM memory by default, it is not necessary to specify
"RAM:"
.
Example:
COPY "CARD1:Logo.1","LOGO.1"
↵
Binary files, e.g. font files, can be downloaded to the printer's RAM
memory using the
FILE&
LOAD
command. Before the transfer can
be performed, the printer must be set up for two way communica-
tion
1
.
FILE& LOAD"<file name>",<file size>
<file name>
the name (including the drive) you want to
assign to the file, e.g. "CARD1:MYFILE.TXT".
<file size>
the size in bytes of the original file in the host.
Upon receiving this command, the printer waits for the specified
number of bytes to be received with a 25 second timeout between
characters.
2. Removing
Images, Files and
Fonts,
cont'd.
3. Copying Files
4. Downloading
Binary Files
1
Suggested serial port setup:
Baudrate: 9600
No parity
8 bits per character
1 stop bit
RTS/CTS enabled
XON/XOFF:
Data to Host disabled.
XON/XOFF:
Data from Host disabled.