The text of a manual · part 4 of 15
EasyCoder E4 Direct Protocol 2.01 Programmer's Guide: Chapter 4: Label Design, pages 17 to 24
Pages 17 to 24 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 17
Chapter 4
Label Design 1. Introduction
Field Types A label layout is made up of a number of fields. There are five different types of field: • Text Field
A text field consists of a single line of text.
• Bar Code Field
A bar code field consists of a single bar code, with or without a bar code interpretation in human readable characters.
• Image Field
An image field is a picture, drawing, logo or other type of illustration in bitmap format.
• Box Field
A box field is a square or rectangular papercoloured area surrounded by a black border line. If the border is sufficiently thick, the whole area may appear black.
• Line Field
A line field is a black line that goes either along or across the paper web. A short but thick line can look like a black box.
There are no restrictions, other than the size of the memory, on the number of fields on a single label. Box Field Bar Code Field (with interpretation)
Text Field
ABC
Line Field
Image Field
16
Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1
Page 18
Chapter 4
2. General Formatting Commands
Label Design
Origin The positioning of all printable objects on the label, i.e. text fields, bar code fields, images, boxes, and lines, uses a common system. The starting point (called the origin) is the point on the paper that corresponds to the innermost active dot on the printhead at the moment when printing is started. The location of the origin is affected by the following factors: • Position across the paper web (X-axis): The position of the origin in the X-axis is determined by the XSTART value in Setup Mode. • Position along the paper web (Y-axis): The position of the origin in the Y-axis is determined by the STARTADJ and STOPADJ values in Setup Mode and by any FORMFEED command executed before the current PRINTFEED command or after the preceding PRINTFEED. Coordinates Starting from the origin, the X-axis runs across the paper web from left to right (as seen when facing the printer) and the Y-axis runs along the paper web from the printhead towards the back of the printer. Units of Measurement The unit of measurement is always “dots”, i.e. all measures depend on the density of the printhead. The EasyCoder E4 has an 8 dots/ mm printhead, i.e. a dot is 1/8 mm = 0.125 mm = 0.00492" or 4.92 mils. Insertion Point The insertion point of any printable object is specified within the coordinate system by means of PRPOS|PP. The coordinates must be selected so the field fits completely inside the printable area. PRPOS | PP <x-coordinate>,<y-coordinate>
<x-coordinate> <y-coordinate> Default value: Reset to default by:
the distance in dots along the x-axis from the origin to the insertion point the distance in dots along the y-axis from the origin to the insertion point PRPOS 0,0 PRINTFEED|PF
Example: PP 100, 200 ↵
Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1
17
Page 19
Chapter 4 Label Design
2. General Formatting Commands, cont'd.
Alignment Once the insertion point is specified, you must also decide which part of the object should match the insertion point. For example, a text field forms a rectangle. There are 8 anchor points along the borders and one in the centre, numbered 1–9 as shown in this illustration. The desired anchor point is specified by means of the ALIGN command. ALIGN | AN <anchor point>
<anchor point> Default value: Reset to default by:
is a number from 1 – 9 1 PRINTFEED|PF
Example: AN 1 ↵ ALIGN|AN will place the lower left corner of the text field at the insertion point specified by PRPOS. Refer to the illustration below for detailed information on the anchor points for various types of printable objects.
18
Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1
Page 20
Chapter 4
2. General Formatting Commands, cont'd.
Label Design
Direction Intermec Direct Protocol allows printing in four directions. You can rotate the printable object clockwise around the anchor point/ insertion point with a 90° increment (0°, 90°, 180°, or 270°) by means of a DIR command: DIR <direction>
<direction> Default: Reset to default by:
is a number from 1 – 4 (DIR 1 = 0°; DIR 2 = 90°; DIR 3 = 180°; DIR 4 = 270°) 1 PRINTFEED|PF
Example: DIR 3 ↵ DIR rotates all following printable fields so that they are printed across the paper web and upside down with respect to the way the paper is fed out of the printer. This illustration summarizes the three general formatting commands PRPOS|PP, ALIGN|AN and DIR:
Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1
19
Page 21
Chapter 4 Label Design
3. Text Field
A text field consists of one or more alphanumeric characters on the same line (max 1,800 characters). Intermec Direct Protocol cannot wrap text to a new line, but each line must be specified as a separate text field. Intermec Direct Protocol has been extended to allow characters from any national character set, such as Chinese, Cyrillic and Hebrew, to be included in a text field. In this section we will discuss the commands required to control the format of text fields containing characters from the default character set, Roman 8 (see chapter 11.1). The Direct Protocol commands related to printing characters from other character sets are discussed in chapters 6.11 and 9.2. In addition to the general formatting commands, PRPOS, ALIGN, and DIR (see chapter 4.2), a text field can contain the following commands: • Font (typeface) • Font Size (in points) • Font Slant (in degrees) • Magnification • Normal Image/Inverse Image Select a Font The FONT command specifies the file name of the scalable font to use and the height and the italic angle with which the characters will be printed. FONT | FT "<font file name>" [,<font size>,<font slant>]
<font file name> <font size> <font slant> Default: Reset to default by:
the name of a Speedo or TrueType font file, and must be enclosed by double quotation marks. the height of the characters in points (a point is a standard typographic unit, equal to 1/72 inches/0.352 mm). the italic angle of the characters in degrees; a positive value slants the characters clockwise away from the vertical. "Swiss 721 BT", size 12p, slant 0° PRINTFEED|PF
Before using any of the standard fonts OCR-A BT, OCR-B 10 Pitch BT or Zapf Dingbats BT, you must select a special character set for that font by means of a NASC command (see chapters 6.11, 9,2 and 11.1). Before switching back to any other font than those mentioned above, you must specify the original character set again by means of a new NASC command. 20
Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1
Page 22
Chapter 4
3. Text Field, cont'd.
Label Design
The three font parameters can be specified separately using the following commands: FONT | FT "<font file name>" FONTSIZE | FS <font size> FONTSLANT | FL <font slant>
For each parameter, the value specified by these commands will be used in all text fields on the current label, until a new value is specified. Standard EasyCoder E4 printers contain the following 15 font files: • Century Schoolbook BT • Dutch 801 Roman BT • Dutch 801 Bold BT • Futura Light BT • Letter Gothic 12 Pitch BT • Monospace 821 BT • Monospace 821 Bold BT • OCR-A BT (use NASC "OCR-A.NSC) • OCR-B 10 Pitch BT (use NASC "OCR-B.NSC) • Prestige 12 Pitch Bold BT • Swiss 721 BT (default font) • Swiss 721 Bold BT • Swiss 721 Bold Condensed BT • Zapf Dingbats BT (use NASC "ZAPF.NSC) • Zurich Extra Condensed BT For examples of the above fonts, see chapter 11.2. Previous EasyCoder printers contained bitmapped fonts, i.e. fonts scaled with a fixed size and slant1. To provide backward compatibility, the EasyCoder E4 provides FONT commands to select the equivalent combinations of font file name, size and slant:
1
/. Since the height of these fonts were specified in dots, not points, the point sizes in the table indicate the nearest value expressed as a whole number (integer) of points and is thus not 100% correct.
“Old” EasyCoders "SW020BSN" "SW030RSN" "SW050RSN" "SW060BSN" "SW080BSN" "SW120BSN" "MS030RMN" "MS050RMN" "MS060BMN" "OB035RM1"
EasyCoder E4 "Swiss 721 Bold BT",6,0 "Swiss 721 BT",9,0 "Swiss 721 BT",14,0 "Swiss 721 Bold BT",17,0 "Swiss 721 Bold BT",23,0 "Swiss 721 Bold BT",34,0 "Monospace 821 BT",9,0 "Monospace 821 BT",14,0 "Monospace 821 Bold BT",17,0 "OCR-A BT",8,0
Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1
21
Page 23
Chapter 4 Label Design
3. Text Field, cont'd.
Set Font Magnification Fonts can be magnified 1 - 4 times independently with regard to height and width by means of a MAG command. MAG <height mag>,<width mag>
<height mag> <width mag> Default: Reset to default by:
the magnification factor 1,2,3 or 4 times with regard to height. the magnification factor 1,2,3 or 4 times with regard to width. 1,1 PRINTFEED|PF
Specifying both a font height and two magnification parameters allows the user to control both the height and the aspect ratio of printed characters. For example, to specify Swiss 721 Roman at 12 points with double width, use: FONT "Swiss 721 BT",12,0 MAG 1,2 To specify Swiss 721 Roman at 12 points with a height:width ratio of 2:3, use: FONT "Swiss 721 BT",6,0 MAG 2,3 Select Normal/Inverse Printing
NORIMAGE INVIMAGE
Normally, text is printed in black without any background (NORIMAGE). Using INVIMAGE, the printing can be inversed so that the paper gives the colour of the characters, whereas the background will be black. The size of the background is decided by the font size and slant. A NORIMAGE statement is only needed when changing back from INVIMAGE printing. NORIMAGE | NI INVIMAGE | II
Default: Reset to default by:
22
NORIMAGE PRINTFEED|PF
Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1
Page 24
Chapter 4
3. Text Field, cont'd.
Label Design
Summary To create a text field, the following formatting commands must be given (in most cases default values may substitute missing parameters). Input data to the field is explained chapter 4.9, printing commands are explained in chapter 5.2, and the use of national character sets is explained in chapters 6.11 and 9.2. Purpose X/Y Position Alignment Direction Font Font Size
Command PRPOS | PP ALIGN | AN DIR FONT | FT FONTSIZE | FS
Font Slant
FONTSLANT | FL
Magnification
MAG
Appearance
INVIMAGE | II NORIMAGE | NI
Default Remarks 0,0 Number of dots 1 Select AN 1 – 9 1 Select DIR 1 – 4 “Swiss 721 BT”, 12, 0 12 Can be added to FONT command 0 Can be added to FONT command 1,1 Height 1–4, Width 1–4 off White-on-black print on Black-on-white print
Examples: PP 200,500:AN 7:DIR 2: FT "Futura Light BT",15,10:MAG 2,2:II ↵ PP 50,300:NASC "OCR-A.NSC": FT "OCR-A BT":PT "This is OCR-A": PP 50,50:NASC 1: FT "Futura Light BT",15,10: PT "This is Futura Light" ↵
Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1
23