Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 10 of 15

EasyCoder E4 Direct Protocol 2.01 Programmer's Guide: Chapter 8: File Handling

Pages 65 to 67 of 113, from EasyCoder E4 Direct Protocol 2.01 Programmer's Guide

The original document is the PDF (2.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Intermec E4

Page 65

Chapter 8

File Handling 1. Reading the Printer Memory

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) ? FRE (2)

Returns the number of free bytes in the printer's RAM memory (1) or the printer's Flash memory (2). 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 and size of all files in the printer's RAM memory (default) or optionally in the ROM memory ("ROM:") or in an inserted DOS-formatted memory card ("CARD1:|CARD2:"). It will also return the the total number of used bytes in the RAM memory.

2. Removing Images, Files, and Fonts

Using IMAGE LOAD, images can either be loaded as “images” into the printer's volatile memory or as “image files” into the RAM memory. Images are removed using REMOVE IMAGE, whereas image files are removed using KILL. Images downloaded with an “S” flag cannor be removed, see IMAGE LOAD in chapter 8.5. REMOVE↔IMAGE "<name>"

The name of the image must be enclosed by double quotation marks. Wildcards can be used, e.g. REMOVE IMAGE "*.prg", REMOVE IMAGE "test.*", or REMOVE IMAGE "*.*" 64

Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1

Page 66

Chapter 8

2. Removing Images, Files, and Fonts, cont'd.

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 "[<device>]<filename>"

The name of the file must correspond exactly to the name returned when using a FILES, IMAGES, or FONTS command and be enclosed 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. Wildcards can be used, e.g. KILL "*.prg", KILL "test.*", or KILL "*.*" KILL cannot be used to remove images from the printer's volatile memory.

3. Copying Files

You can copy a file to the RAM memory ("RAM:"), or to a DOSformatted memory card ("CARD1:"|"CARD2:"). Images can be copied to the cache memory ("CACHE").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 "[<source device>]<original name>" [,"[<dest. device>]<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" ↵

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.

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 communication1. If a file is downloaded under the name "Autoexec.bat", it will be used as a startup file. FILE& LOAD"<file name>",<file size>

<file name> <file size> the name (including the drive) you want to assign to the file, e.g. "CARD1:MYFILE.TXT". 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.

Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1

65

Page 67

Chapter 8 File Handling Image files in .PCX format can be downloaded to "RAM:", "CARD1:" or "CARD2:" using the IMAGE LOAD command. Before the transfer can be performed, the printer must be set up for two way communication1.

5. Downloading Image Files

IMAGE LOAD"<image name>",<file size>,"<flag>"

<file name> 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.

<file size> <flag> the name (optionally including the drive) you want to assign to the image, e.g. "LOGO.1" or "CARD2:LOGO.1". the size in bytes of the original .PCX file in the host. either "S" or an empty string "": S = the image will be saved in the battery backed-up part of the RAM memory; empty string ("") = the image will be saved in the volatile memory ("CACHE:") and will be deleted at next power-up.

Upon receiving this command, the printer waits for the specified number of bytes to be received with a 25 second timeout. We recommend that you add the extension .1 or .2 to the image name, so that you can tell which directions the image is suited for before you print it out, i.e.:

IMAGE.1 DIR 1

DIR 4

IMAGE.2

DIR 2

IMAGE.2

IMAGE.1 is suited for directions across the paper web, i.e. DIR 1 & DIR3. IMAGE.2 is suited for directions along the paper web, i.e. DIR 2 & DIR4.

DIR 3

IMAGE.1 Paper Direction 66

Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1