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 8 of 15

EasyCoder E4 Direct Protocol 2.01 Programmer's Guide: Chapter 6: Setting Up the Printer

Pages 46 to 60 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 46

Chapter 6

Setting Up the Printer 1. Layout Mode/ Immediate Mode

The EasyCoder E4 Printer can operate in Immediate Mode or Layout Mode. In Immediate Mode, layouts and variable data fields are disabled. In Layout Mode, layouts and variable data fields are enabled (see chapter 4.8). The printer default is Immediate Mode. INPUT ON

INPUT ON sets SYSVAR(18) to 0 and enables the use of layouts and variable data (Layout Mode). INPUT OFF

INPUT OFF restores SYSVAR(18) to its value before the INPUT ON command was received and disables the use of layouts and variable data (Immediate Mode, default).

2. IN/OUT Channel Setup

The printer will receive and transmit data on the standard serial communication channel "uart1:". If you use parallel communication, two-way communication will be lost and the printer will not be able to echo any data back to the host or return any other data. It is possible to select different channels manually as standard IN and standard OUT channels, using the SETSTDIO command. SETSTDIO <IN channel>, <OUT channel>

<IN channel> and <OUT channel> can be individually specified as: 0 automatic port switching (Default) 1 "uart1:" serial communication channel 4 "centronics:" parallel communication channel (IN channel only) Example: SETSTDIO 0,1 ↵

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

45

Page 47

Chapter 6 Setting Up the Printer

3. Date and Time

The printer's CPU board is, as standard, provided with an internal clock/calendar without battery backup, i.e. the setting will be lost when the printer is turned off. The CPU board may optionally be fitted with a real-time clock circuit (RTC). The RTC is battery backed-up and will keep running even when the printer is turned off. If no RTC is installed and you try the read the date or time before the internal clock has been set, an error will occur (error 1010 “Hardware Error”). Once either time or date has been set, the internal clock will work until next power off or reboot. If only time has been set, by default the current date will be Jan 01 1980 and if only date has been set, by default the clock will start running at 00:00:00. The following commands are used to set the clock/calendar: DATE$ = "<YYMMDD>"

<YYMMDD> the current date in the standard format, where YY = Year, last two digits MM = Month, two digits DD = Day, two digits. Note that the input data must be enclosed by double quotation marks. Example: DATE$ = "000101" ↵ TIME$ = "<HHMMSS>"

<HHMMSS> the current time in the standard format, where HH = Hour (00–24) MM = Minute (00–59) SS = Second (00–59) Note that the input data must be enclosed by double quotation marks. Example: TIME$ = "131548" ↵

46

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

Page 48

Chapter 6

4. Date and Time Format

Setting Up the Printer

The formats for printing dates and time in connection with the commands DATE$("F"), DATEADD$("F"), TIME$("F") and TIMEADD$("F") (see chapter 6.5) can be specified by the commands FORMAT DATE$ and FORMAT TIME$. With both these commands, you should enter characters representing the various types of information. The order and number of the characters decides the format. You can also include separating characters like periods, slashes, colons, etc. Note that the input string must be enclosed by double quotation marks. FORMAT DATE$ "<string>"

Y M D Default:

Year Month Day YYMMDD

Examples: FORMAT DATE$ "YYYY.MM.DD" ↵ 2000.01.01 gives e.g.

FORMAT DATE$ "DD/MM/YY" ↵ 01/01/00 gives e.g.

FORMAT TIME$ "<string>"

H h M S P p Default:

The date and time formats as well as the names of months and weekdays are not saved in the printer's battery backed-up memory, but must be transmitted to the printer after each powerup.

Hour in 24-hour cycle (one digit per H; rightjustified) Hour in 12-hour cycle (one digit per h; rightjustified) Minute (one digit per M; right-justified) Second (one digit per S; right-justified) AM/PM (uppercase) in 12-hour cycle (one character per P; left-justified) am/pm (lowercase) in 12-hour cycle (one character per p; left-justified) HHMMSS

Examples: FORMAT TIME$ "HH:MM:SS" ↵ 14:15:37 gives e.g.

FORMAT TIME$ "HH.MM" ↵ 14.15 gives e.g.

FORMAT TIME$ "hh.MM.SS p" ↵ 2.15.37 p gives e.g.

FORMAT TIME$ "hh.MM PP" ↵ 2.15 PM gives e.g.

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

47

Page 49

Chapter 6 Setting Up the Printer

4. Date and Time Format, cont'd.

In many cases, you may prefer to have the names of months and weekdays printed in plain text rather than as a number. There are two commands which allow you to assign names in any language to months and weekdays: NAME DATE$<No. of month>,"<name of month>"

<No. of month> <name of month>

1–12. the desired name enclosed by double quotation marks.

The name of the month will be printed according to the format specified by FORMAT DATE$ and will be left justified. NAME WEEKDAY$<No. of weekday>,"<name of weekday>"

<No. of weekday> 1 (Monday) – 7 (Sunday). <name of weekday> the desired name enclosed by double quotation marks. Default: Full English names, e.g. Monday.

5. Separators

1

/. If you transmit a FORMAT INPUT command containing separators identical to any of the separators already stored in the printer's memory, an error will occur unless you first enter Immediate Mode. The separators are saved in the printer's flash memory.

48

When transmitting variable input data to a predefined layout, the string must contain certain separating characters. By default, you should use <STX> as start-of-text separator, <CR> as field separator and <EOT> as end-of-text separator. However, the FORMAT INPUT command allows you to select other characters as separators if the default separators for some reason cannot be produced or will interfere with the host computer system. Simply insert the desired separator characters (enclosed by double quotation marks) into the FORMAT INPUT command. Avoid using characters like XON/XOFF or ENQ/ACK, which may interfere with the communication between printer and host. You must first leave Layout Mode by means of an INPUT OFF command, change the separators using a FORMAT INPUT command and then enter Layout Mode again by means of an INPUT ON command1. FORMAT INPUT "<start separator>","<end separator>","<field separator>"

Example: INPUT OFF ↵ FORMAT INPUT "#","&",CHR$(13) ↵ INPUT ON ↵

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

Page 50

Chapter 6

6. Counters

Setting Up the Printer

You can create counters for use in text and bar code fields (see chapters 4.3 and 4.4). The counters are global, i.e. the same counter can be used in many different labels and layouts, but will be incremented/decremented on any PRINTFEED operation, regardless of label. Thus, if you want to use a counter for a specific layout only, you must not use it in any other layout. Each counter is designated by means of a number. Alpha counters are restricted to A–Z; numeric counters have no practical limit. The type of counter is decided by the type of start, stop or reset value. There are various commands for creating a counter and specifying its characteristics: • Start Value • Number of Digits • Number of Copies Before Update • Incrementation/Decrementation • Stop Value • Restart Value Note that input data must be enclosed by double quotation marks. Start Value COUNT& "START", <counter number>,"<start value>"

<start value> Default:

is the first value to be printed (positive or negative). Negative values are indicated by a leading minus sign (-). 1 or A

Number of Digits COUNT& "WIDTH", <counter number>,"<number of digits>"

<number of digits> adds leading zero characters up to the specified number of digits. Must only be used in numeric counters. Default: 1 Number of Copies Before Update COUNT& "COPY", <counter number>,"<number of copies>"

<number of copies> sets the quantity of copies to be printed before the counter is incremented or decremented. Default: 1

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

49

Page 51

Chapter 6 Setting Up the Printer

6. Counters, cont'd.

Incrementation/Decrementation

Note that counters are not saved in the printer's flash memory, but must be transmitted to the printer after each power-up.

<decr. value>

COUNT& "INC", <counter number>,"<incr. value>|<decr. value>"

<incr. value>

Default:

sets the value by which the counter should be incremented. sets the value by which the counter should be decremented. Decrementation is indicated by a leading minus sign (-). 1

Stop Value COUNT& "STOP", <counter number>,"<stop value>"

<stop value> Default:

sets the value after which the counter should start all over again at the RESTART value. 2, 147, 483, 647 or Z

Restart Value COUNT& "RESTART", <counter number>,"<restart value>"

<restart value> Default:

7. Label-Taken Sensor sets the value at which the counter should start all over again after having exceeded the STOP value. 1 or A

All printers are fitted with a label-taken sensor (LTS) which detects if there is a label left in the printer's outfeed slot and holds up printing until the label has been removed. This facility is especially useful for batch printing. You can enable or disable this function by means of the following command. The setting is saved in the printer's flash memory. By default, LTS is disabled. LTS& ON | OFF

8. Feed Key

Feed on the EasyCoder E4 is used to initiate a PRINTFEED operation. You can enable or disable this function by means of the following command. The setting is saved in the printer's flash memory. By default, the Print key is disabled. PRINT KEY ON | OFF

50

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

Page 52

Chapter 6

9. Memory Formatting

Setting Up the Printer

By formatting the printer's memory, you will erase all files stored in the RAM memory without affecting the current setup. You can also format a RAM-type memory card inserted in the printer's PCMCIA slot to MS-DOS format. Be careful not to use this command unintentionally! FORMAT "<device>"[,<No. of entries>[,<No. of bytes>]]

<device> <No. of entries> <No. of bytes>

10. Input Data Preprocess

"RAM:", "CARD1:" or "CARD2:" used for "CARD1:" and "CARD2:"; it specifies the number of entries in the root directory (Default 208). used for "CARD1:" and "CARD2:"; it specifies the number of bytes per sector (Default 512 bps).

All input data to the printer arrives in binary form via the standard IN channel (default "uart1:"). Characters are transmitted in ASCII format, which will be preprocessed by the printer's software according to any MAP commands. The MAP command is used to modify a character set, or to filter out undesired characters on a specified communication channel by mapping them as Null (ASCII 0 dec). If no character set meets your requirements completely (see NASC below), select the set that comes closest and modify it using MAP commands. Mapping will not be saved at power-up or reboot. MAP [<device>],<original ASCII value>, <desired ASCII value>

<device> either 1 = Serial channel "uart1:" or 4 = Parallel channel "centronics:" <orig. ASCII value> the value of the character according to the selected character set (see NASC below). <des. ASCII value> the new ASCII value you want to assign to the character. Example: You want to use the Roman 8 character set and 7- bit communication. However, you need to print £ characters which are not included in the 7-bit part of the Roman 8 character set (see chapter 3.2). However, you do not need the $ character. Then remap the £ character (ASCII 187 dec.) to the value of the $ character (ASCII 36 dec.). MAP 36,187 ↵

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

51

Page 53

Chapter 6 Setting Up the Printer

11. Character Set Selection

The NASC command is used to select a character set that decides how the various characters will be printed. This command makes it possible to adapt the printer to various national standards. By default, characters will be printed according to the Roman 8 character set. Most resident character sets are illustrated in chapter 11.1. For information on how to create user-defined character sets, refer to chapter 9.2. Sets marked with € in the list below supports the Euro currency sign. NASC <char. set no.> | <"file name">

<char. set no.> 1 33 34 39 44 46 47 49 81 240 241 351 850 851 852 855 857 862 1250 1251 1252 1253 1254 1255 1256 1257 -1 -2 <"file name">

52

Character set Remarks Roman 8 (default) € French € Spanish € Italian € English € Swedish € Norwegian € German € Japanese Latin (romají) € Microsoft Hebrew [not documented] Microsoft Arabic [not documented] Portuguese € MS-DOS Latin 1 MS-DOS Greek 1 MS-DOS Latin 2 MS-DOS Cyrillic MS-DOS Turkish MS-DOS Hebrew [not documented] Windows Latin 2 (Central Europe) € Windows Cyrillic (Slavic) € Windows Latin 1 (ANSI) € Windows Greek € Windows Latin 5 (Turkish) € Windows Hebrew [not documented] Windows Arabic [not documented] Windows Baltic Rim € PCMAP ANSI € one of the following names, or the name of a userdefined character set file "OCR-A.NSC" [OCR-A BT] "OCR-B.NSC" [OCR-B 10 Pitch BT] "ZAPF.NSC" [Zapf Dingbats BT]

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

Page 54

Chapter 6

11. Character Set Selection, cont'd.

Setting Up the Printer

Suppose you order the printer to print the character ASCII 124 dec. ASCII 124 will generate the following: • |, according to the Roman 8 character set, • ù, according to the French character set • ñ, according to the Spanish set, etc. In general, the Western European (Latin) character sets (numbers 2 to 81 and number 351) are the same, with the exception of the few national characters. Each of the remaining character sets are specific to a limited number of languages, and should be used in conjunction with fonts for those languages. A special case is the standard fonts OCR-A BT, OCR-B 10 Pitch BT and Zapf Dingbats BT. Before using any of these fonts for the printing of text or bar code interpretations, you must switch to their respective character sets, and switch back again to the original character set before selecting another font. Choose the character set which best matches your data equipment and printout requirements. If any of the characters in this set do not have the ASCII value that you require, the MAP command can be used to assign that character to a different ASCII value (see chapter 6.10). The NASC setting is not reset by PRINTFEED|PF, nor by turning the printer off. Once a NASC command has been issued, it affects the printed appearance of characters in any subsequent text field, but not in those text fields which have already been processed and stored in the print buffer. The NASC setting can be changed several times in one label, which allows labels to be multilingual. Similarly, the NASC setting determines the appearance of the human readable portion of bar codes. The pattern of the bars in a bar code is determined by the ASCII values of the input data, and so is not affected by the NASC setting. User-defined character sets can be created and stored in the printer, and separate commands exist to control the appearance of Asian characters. These are discussed in chapter 9.2.

12. Printer Reboot Note that counters and error messages will be lost and a number of commands will be reset to default.

As an alternative to turning the printer off and on with the main switch, you can issue a REBOOT command. Any data or layout in the working memory that has not been saved will be deleted and the buffers will be emptied. REBOOT

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

53

Page 55

Chapter 6 Setting Up the Printer

13. Verbosity Level

The verbosity level controls the amount of information to be returned from print to host: SYSVAR (18) = <value>

<value> = -1 <value> = 0 <value> = 1 <value> = 2 <value> = 4 <value> = 8

All levels enabled (Default) No verbosity (Recommended for best performance) Echo received characters "Ok” after correct command lines Echo input characters from communication port Error after failed line

Bits can be combined, so e.g. SYSVAR(18)=3 means both “Echo received characters” and “Ok after correct command lines”.

14. Error Message Types

Four types of error messages can be selected: SYSVAR (19) = <value>

<value> = 1 <value> = 2 <value> = 3 <value> = 4

15. Error Handling

<string>, e.g. Invalid font (Default) Error <number> <string>, e.g. Error 19 Invalid font E<number>, e.g." E19” Error <number>, e.g.“Error 19

By default, the Intermec Direct Protocol error handler handles four error conditions: • Out of paper • Head lifted • Out of transfer ribbon • Next label not found All other errors are ignored unless specified by an ERROR command. When an error occurs, the standard IN channel is flagged as busy and the Power LED changes from Green to Red. The message specified for the error by the ERROR command is sent to the standard OUT channel. In the case of the four error conditions listed above, a standard message in English will be sent to the host computer if no other message is specified by an ERROR command. When an error occurs, press Feed to acknowledge the error, then correct it, either in setup or physically, e.g. by changing the transfer ribbon.

54

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

Page 56

Chapter 6

15. Error Handling, cont'd.

Setting Up the Printer

The ERROR command activates error-handling for the specified error type and allows you to write an error message, which will be transmitted back to the host computer (according to selected verbosity and type of error message, see chapters 6.13 and 6.14): ERROR <error number>, "<error message>"

<error number> <error message> error number (see chapter 12.1) text string enclosed by double quotation marks. Maximum 33 characters

Example:

ERROR 43,"MEMORY OVERFLOW" ↵

Six error conditions are always handled without having to be activated by an ERROR command. The Power LED turns red and the printer sends a message back to the computer on the serial channel. • 1005 Out of paper The printer waits for the printhead to be lifted and lowered, then the error is cancelled. • 1022 Head lifted The printer waits for the printhead to be lowered, then a formfeed is performed. If the error stopped a print operation, the operation will be restarted automatically. • 1027 Out of transfer ribbon (if thermal transfer printing is selected) The printer waits for a ribbon to be loaded. If the error stopped a print operation, the operation must be restarted. • 1058 Transfer Ribbon fitted (if direct thermal printing is selected) The printer waits for the ribbon to be removed. To clear the error cobdition and go on, press the Feed key.

Note that error handling and error messages specified by ERROR commands are not saved in the printer's battery backedup memory, but must be transmitted to the printer after each power-up.

• 1059 Cutter does not respond (paper jam in cutter) The printer waits for the paper jam to be cleared. To clear the error cobdition and go on, press the Feed key. • 37 Cutter device not found (cutter not connected) The printer waits for a cutter to be connected. To clear the error cobdition and go on, press the Feed key.

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

55

Page 57

Chapter 6 Setting Up the Printer

16. Break in Batch Printing

When printing large batches of labels, it is useful to be able to stop printing, for example, if an error is detected. You can stop printing via any serial communication channel. Two commands allow you to issue a BREAK command: • BREAK specifies an individual break interrupt character for each serial communication channel • BREAK ON/OFF enables/disables break interrupt and deletes the break character for the corresponding devices. BREAK <device>,<break char.>

<device> = 1 <device> = 4 <break char.>

"uart1:" serial communication channel (default) "centronics:" parallel communication channel (IN channel only) is the ASCII decimal value of the desired break character. (default on both channels: ASCII 03 dec.)

BREAK <device> ON | OFF

<device> Default:

17. Printer Setup the same parameter as in the BREAK command. Communication channels disabled

The parameters in SETUP mode determine how the printer works. There are three ways to change the printer's setup: • Setup strings • Setup files • Bar Code Wand The various setup parameters are described in the EasyCoder E4 Installation and Operation manual. Setup Strings Setup strings allow you to change individual setup parameters directly from the host: SETUP "<setup string>"

<setup string>

56 a string of data according to the special syntax listed below and enclosed by double quotation marks.

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

Page 58

Chapter 6

17. Printer Setup, cont'd.

Setting Up the Printer

In the syntax description below, characters separated by vertical bars indicate alternatives, n–nnnnn indicate variable numeric input and underscored space characters indicate compulsory space characters:

SETUP "CONTRAST,5" SETUP "SER-COM,UART1,BAUDRATE,300|600|1200|2400|4800|9600|19200|38400" SETUP "SER-COM,UART1,PARITY,NONE|EVEN|ODD|MARK|SPACE" SETUP "SER-COM,UART1,CHAR_LENGTH,7|8" SETUP "SER-COM,UART1,STOPBITS,1|2" SETUP "SER-COM,UART1,FLOWCONTROL,RTS/CTS,ENABLE|DISABLE" SETUP "SER-COM,UART1,FLOWCONTROL,ENQ/ACK,ENABLE|DISABLE" SETUP "SER-COM,UART1,FLOWCONTROL,XON/XOFF,DATA_TO_HOST,ENABLE|DISABLE" SETUP "SER-COM,UART1,FLOWCONTROL,XON/XOFF,DATA_FROM_HOST,ENABLE|DISABLE" SETUP "SER-COM,UART1,NEW_LINE,CR/LF|LF|CR" SETUP "DETECTION,LSS_ADJUST,n|nnn" SETUP "DETECTION,FEEDADJ,STARTADJ,nnnn" SETUP "DETECTION,FEEDADJ,STOPADJ,nnnn" SETUP "SERVICE,MEDIA_SIZE,XSTART,nnn" SETUP "SERVICE,MEDIA_SIZE,WIDTH,nnnn" SETUP "SERVICE,MEDIA_SIZE,LENGTH,nnnn" SETUP "SERVICE,MEDIA_TYPE,LABEL_(w_GAPS)|TICKET_(w_MARK)|TICKET_(w_GAPS)| FIX_LENGTH_STRIP|VAR_LENGTH_STRIP" SETUP "SERVICE,PRINT_DEFS,HEAD_RESIST,nnn" SETUP "SERVICE,PRINT_DEFS,PAPER_TYPE,<name of paper or transfer ribbon>" SETUP "SERVICE,PRINT_DEFS,NEW_SUPPLIES,<encoded value>" SETUP "SERVICE,PERFORMANCE,NORMAL|HIGH" SETUP "SERVICE,TESTFEED,LENGTH,nn" SETUP "SERVICE,TESTFEED,GAP,nn" IMPORTANT! In the description of the setup file syntax above, compulsory space characters are indicated by underscore (_) characters to make it easier to see them. Do NOT enter the underscore characters but enter spaces character (ASCII 32 dec) instead! Communication buffers There are no setup parameters for setting the size of the input and output buffers of the serial channel "uart:". There are 16 buffers, each with a size of 492 bytes. These are shared between the input and output processes. Hence, if verbosity is disabled (SYSVAR(18)=0, see chapter 6.13), the input capacity is maximised.

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

57

Page 59

Chapter 6 Setting Up the Printer

17. Printer Setup, cont'd.

Setup files Two commands are used to set a printer up from a setup file: SETUP WRITE and SETUP. Use a setup string (as described above) to set up the printer. Then use the SETUP WRITE command to save the current printer setup to a file. SETUP WRITE "<filename>"

<filename> the full name of the setup file, including storage area, enclosed by double quotation marks.

You can then select the stored setup file, using the SETUP command. SETUP "<filename>"

<filename> the full name of the setup file, including storage area, enclosed by double quotation marks.

Examples: SETUP WRITE "setup1" ↵ SETUP "setup3" ↵ Bar Code Wand Setting up the printer with the Bar Code Wand does not involve using Intermec Direct Protocol. See the EasyCoder E4 Installation and Operation manual for details on using the Bar Code Wand to set up the printer.

18. Setting the LSS Threshold

The sensitivity of the LSS ( Label Stop Sensor) can be manually adjusted to detect gaps or black marks properly. Another way to do this is to issue a TESTFEED instruction, but that involves feeding out labels, which may be undesired in some cases. The detection range is 0 –31. Increase the value to make the LSS more sensitive and vice versa. The present threshold value will be returned on the serial channel using the instruction PRINT SYSVAR (8), also see chapter 7.6. SYSVAR (8) = <threshold value>

<threshold value>

58 is an integer in the range of 0–31.

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

Page 60

Chapter 6

19. Enabling/ Disabling Automatic Cutting

Setting Up the Printer

The standard EasyCoder E4 printers can optionally be fitted with a paper cutter that can cut non-adhesive paper strip or the backing paper between labels (no cutter is presently available for the EasyCoder E4 LinerLess model). As an alternative to issuing separate CUT instructions (see 5.1), you can enable or disable automatic cutting in connection with each PRINTFEED operation. By default, automatic cutting is disabled. The amount of paper to be fed out before automatic cutting and be pulled back afterwards can optionally be specified: CUT [<feed length>] ON | OFF

<feed length> is the desired length in dots.

The CUT ON/OFF setting is saved in the non-volatile flash memory and will therefore remain in effect even after a power off or reboot.

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

59