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

EasyCoder E4 Direct Protocol 2.01 Programmer's Guide: Chapter 4: Label Design, pages 33 to 40

Pages 33 to 40 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 33

Chapter 4 Label Design

7. Line Field

A line can be printed in right angles along or across the paper according to the print direction. In addition to the general formatting commands, PRPOS, ALIGN and DIR, a line field is specified by a single command. Set Size of the Line The size of the line is specified with regard to length and line weight (thickness). PRLINE | PL <length>,<line thickness>

<length> <line thickness> Default:

the length of the line in dots along the selected direction. the line weight in dots. No

Summary To create a line field, the following formatting commands must be given (in most cases default values may substitute missing parameters). Printing commands are explained in chapter 5.2. Purpose X/Y Position Alignment Direction Line size

Command PRPOS | PP ALIGN | AN DIR PRLINE | PL

Default 0,0 1 1 n.a.

Remarks Number of dots Select ALIGN 1 – 9 Select DIR 1 – 4 Length and line thickness in dots

Example: PP 100,100:AN 1:DIR 4:PL 200,10 ↵

32

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

Page 34

Chapter 4

8. Layout Commands

Label Design

Start Layout Recorder The LAYOUT INPUT command clears the printer's working memory, starts the layout recorder and allows you to assign a name to the layout. LAYOUT INPUT "<layout name>"

<layout name> up to 30 characters enclosed by double quotation marks.

Example: LAYOUT INPUT "Shipping Label" ↵ Assign Input Variables to Fields The layout may consist of both fixed fields and fields for variable information. In the layout, you must give a reference to each text, bar code or image field intended to receive variable data, so that the input data can be inserted into the correct field. The variable VAR<n>$ is used to indicate variable input, where <n> specifies the number of the field. The first variable input data block will be entered into the field containing VAR1$, the second block with VAR2$, etc. Fixed data and variable data can be combined in the same field. See also chapter 4.9. VAR<n>$

<n> the number of the field. There is no practical limit to the number of fields.

Examples: PT VAR1$ ↵ (text field with variable input) PT "Price: ";VAR2$ ↵ (text field with fixed & variable input) PB VAR3$ ↵ (bar code field with variable input) PM VAR4$ ↵ (image field with variable input) Save the Layout After completing the layout, save it in the printer's RAM memory, turn off the layout recorder and clear the printer's working memory by means of a LAYOUT END command. The layout can then be copied or killed like any other file, see chapter 3.13. LAYOUT END

Example: LAYOUT END ↵

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

33

Page 35

Chapter 4 Label Design

9. Printable Data Commands

Select a Layout Before any variable data can be transmitted to a preprogrammed layout, the layout must be selected by means of a LAYOUT RUN command. LAYOUT RUN "<layout name>"

<layout name> the name given to the layout in the LAYOUT INPUT command and must be enclosed by double quotation marks.

Example: LAYOUT RUN "Shipping Label" ↵ Transmit Variable Data to a Layout After having selecting a layout using a LAYOUT RUN command, you can transmit the variable data to their respective layout fields: • The transmission starts with a start-of-text separator. • Then comes a block of data to the field containing VAR1$. • A field separator separates the blocks of data. • Next block goes to the field containing VAR2$. • A field separator separates the blocks of data and so on. • The last block must also end with a field separator. • The end of transmission is indicated by an End-of text separator. By default, the following separators should be used: • Start separator: STX (ASCII 02 dec) • Field separator: CR (ASCII 13 dec) • End separator: EOT (ASCII 04 dec) All separators can be changed by means of INPUT ON/OFF and a FORMAT INPUT command, see chapter 6.5. <STX> <Input data to VAR1$> <CR> <Input data to VAR2$> <CR>.....<EOT>

Input data must not be enclosed by double quotation marks. Example: INPUT ON ↵ LAYOUT RUN "Shipping Label" ↵ <STX> Abcdefg <CR>123456789 <CR> <EOT> INPUT OFF is default, so you must issue the command INPUT ON before using LAYOUT RUN.

34

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

Page 36

Chapter 4

9. Printable Data Commands, cont'd.

Label Design

Input Data to Text Fields Input data is inserted into a text field using a PRTXT command. You can add various types of data to a text field: • Plain text, by typing e.g. "Abcdefgh" or "012345" • Variable input data, using variables e.g.VAR1$ • Counter values, e.g. CNT1$ • Current date, using DATE$ or DATE$("F") • Current time, using TIME$ or TIME$("F") • The weekday of the current or specified date, using WEEKDAY$ • The number of the current or specified date, using WEEKNUMBER • An offset date, using DATEADD$ or DATEADD$("F") • An offset time, using TIMEADD$ or TIMEADD$("F") You can combine different types of data in a single PRTXT command. The different parts are separated by semicolons (;). Note that plain text must be enclosed by double quotation marks. PRTXT | PT "<input data>"[;"<input data>"...]

Examples: PT "Price: $1.99" ↵ PT "Price: ";VAR1$;" per dozen" ↵ PT "Box No. ";CNT15$;" Packed: ";DATE$ ("F") ↵ PT WEEKDAY$(DATE$);", ";DATE$("F") ↵ PT "Week Number ";WEEKNUMBER(DATE$) ↵ PT "Expiry date: ";DATEADD$ (30,"F") ↵ Input Data to Bar Code Fields Input data is inserted into a bar code field using a PRBAR command. You can add the same types of data to a bar code field as to a text field, so long as the type of data (e.g. numeric/alphanumeric) and the number of characters, etc. comply with the bar code specification. You can combine different types of data in a single PRBAR command. The different parts are separated by semicolons (;). Note that alphanumeric input must be enclosed by double quotation marks. PRBAR | PB <input data>[;<input data>...]

Examples: PB "71543";VAR5$ ↵ PB "Intermec" ↵ PB DATE$;TIME$ ↵

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

35

Page 37

Chapter 4 Label Design

9. Printable Data Commands, cont'd.

Input Data to Image Fields An image can be selected either by name in plain text (e.g. "ROM:GLOBE.1"), or in the form of a variable (e.g. VAR1$), (see also chapter 4.5). Note that plain text input must be enclosed by double quotation marks. PRIMAGE | PM <image name>

Examples: PM VAR5$ ↵ PM "LOGO.2" ↵ Input Data from Counters By means of a COUNT& command, various counters can be created (see chapter 6.6). You can read the present value of a counter and use it as input data by including a reference to the counter in the PRTXT or PRBAR commands in the form of a variable. CNT <Counter No.>$

<Counter No.> the number assigned to the counter in the COUNT& command.

Example: PT "Label number: ";CNT1$ ↵ PB CNT2$ ↵ Input Data from the Printer's Clock/Calendar

A real-time clock circuit is an optional extra on the EasyCoder E4. If the optional RTC is not fitted, the date and time will be lost when the printer is switched off. Use the DATE$ and TIME$ commands to reset the clock and calendar.

36

The printer's clock/calendar can be used to provide input data for text and bar code fields by including any of the following in the PRTXT or PRBAR commands: • DATE$ • DATE$("F") • TIME$ • TIME$("F") • WEEKDAY$ • WEEKNUMBER • DATEADD$ • TIMEADD$

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

Page 38

Chapter 4

9. Printable Data Commands, cont'd.

Label Design

DATE$

Returns the current date according to the printer's calendar in the standard format YYMMDD, where YY is the last two digits of the year, MM is the number of the month (01–12) and DD is the number of the day (01–31). Example: PT DATE$ ↵ DATE$ ("F")

Returns the current date according to the printer's calendar in the format specified by FORMAT DATE$ (see chapter 6.4). Example: PT DATE$("F") ↵ TIME$

Returns the current time according to the printer's clock in the standard date format HHMMSS, where HH is the hour (00–24), MM is the minute (00–59) and SS is the second (00–59). Example: PT TIME$ ↵ TIME$ ("F")

Returns the current time according to the printer's clock in the format specified by FORMAT TIME$ (see chapter 6.4). Example: PT TIME$("F") ↵ WEEKDAY$ ("<date>")

Returns the name of the weekday in plain text according to NAME WEEKDAY$ (see chapter 6.4) from a given date or the current date. <date> can be specified in the standard format "YYMMDD" or by a DATE$ command.

Examples: PT WEEKDAY$("000101") ↵ PT WEEKDAY$(DATE$) ↵

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

37

Page 39

Chapter 4 Label Design

9. Printable Data Commands, cont'd.

WEEKNUMBER ("<date>")

Returns the weeknumber from a given date or the current date. <date> can be specified in the standard format "YYMMDD" or by a DATE$ command.

Examples: PT WEEKNUMBER("000101") ↵ PT WEEKNUMBER(DATE$) ↵ DATEADD$ (["<original date>",]<number of days>[,"F"])

Adds or subtracts a certain number of days to the current date or optionally to a specified date. <original date>

<number of days>

<"F"> optional; it is entered in the standard date format "YYMMDD". Note that the original date must be enclosed by double quotation marks. the number of days to be added to or subtracted from the current date or, optionally, the date specified by <original date>. In case of subtraction, the <number of days> should be preceded by a minus sign (-). an optional flag specifying that the result should be returned in the format specified by FORMAT DATE$ instead of the standard format YYMMDD.

Example: PT DATEADD$("000101",-15,"F") ↵

38

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

Page 40

Chapter 4

9. Printable Data Commands, cont'd.

Label Design

TIMEADD$ (["<original time>",]<number of sec's>[,"F"])

Adds or subtracts a certain number of seconds to the current time or optionally to a specified moment of time. <original time>

<number of secs>

<"F"> optional; it is entered in the standard date format "HHMMSS". Note that the original time must be enclosed by double quotation marks. the number of seconds to be added to or subtracted from the current time or, optionally, the moment of time specified by <original time>. In case of subtraction, the <number of secs> should be preceded by a minus sign (-). an optional flag specifying that the result should be returned in the format specified by FORMAT TIME$ instead of the standard format HHMMSS.

Example: PT TIMEADD$("123026",100,"F") ↵

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

39