The text of a manual · part 11 of 26
User's Manual: 4630 and 4830 Bar Code Printers, pages 101 to 110
Pages 101 to 110 of 252
The original document is the PDF (1.6 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 4830
Page 101
FG 9pt Italic
*1233*Designing Labels Using IPL Commands
5
Editing Label Formats and Working With Fields In addition to understanding the different types of printable fields on the printer, you need to know how to arrange them to define or change the format of a label. The following sections use examples to describe the commands that position, size, rotate, and edit label fields. For a complete list of all programming commands, see Chapter 6, “Intermec Printer Language Commands.” Whenever you create a format, the printer automatically creates a humanreadable field zero (H0) along with it. The printer creates the H0 field with all field parameters set to the default setting. You can only delete field zero after you create one or more other fields. You cannot delete the last field in a format. The defaults for the H0 field are: Command
Definition o0,0;
Field origin is 0,0.
f0;
Field direction is horizontal with respect to the label motion from printer.
h2;
Field height magnification is two.
w2;
Field width magnification is two.
c2;
Selects the 10 x 14 standard font.
b0;
Selects no border around human-readable field.
r0;
Selects horizontal orientation of characters.
d0,30;
You enter variable data in Print mode. The maximum number of characters you can enter into this field is 30.
When creating a new format field, it is not possible to specify field zero as anything other than human-readable field zero (H0) without creating another field first. For example, you cannot make field zero a bar code field by doing the following: <STX><ESC>P;E1;F1;B0;<ETX>
To make field zero a bar code field, you have to delete human-readable field 0 and then define bar code field 0. To do this, you must create a temporary field (L1) before you delete human-readable field zero (H0): <STX><ESC>P;E1;F1;L1;D0;B0;D1;<ETX>
5-15
Page 102
4630 and 4830 Bar Code Label Printers User’s Manual
This table describes each command in the string: Command
Definition
<ESC>P;
Enters Program mode
E1;
Erases format 1
F1;
Creates format 1
L1;
Creates line field (temporary field)
D0;
Deletes field zero
B0;
Creates bar code field zero
D1;
Deletes field 1
When numbering the fields in a format, it is important to remember to give every field a different number. Never use a field number more than once. You can have up to 200 fields numbering from 0 to 199. The importance of field numbering comes into play when you are in Print mode and are entering data into the label format. At this point, you can only identify the fields by a number, not by what type of field. Also keep in mind that you enter data into fields according to their numeric value if you use a <CR> to separate the data. In other words, the first string of data you enter goes into the lowest numbered field, the second string of data you enter goes into the next lowest numbered field, and so on.
Editing Existing Fields If you make a mistake in a label format, you may not have to download the entire format again depending on the severity of the mistake. You can change a specific field in a format by sending a command in Program mode. You can modify just the incorrect format field(s) instead of having to download the entire format again. The printer uses a field pointer to point to the field that you are going to modify when the printer is in Program mode. The pointer continues to point to the most recently selected field until you select a different format or field.
5-16
Page 103
FG 9pt Italic
*1233*Designing Labels Using IPL Commands
5
Use the following format as an example. Assume you have downloaded the following format to the printer: Commands
Description
<STX><ESC>P<ETX>
Enters Program mode
<STX>E3;F3;<ETX>
Erases format 3, Create format 3
<STX>H0;o160,200;f0;c0;d0,16;h1;w1;<ETX>
Creates field H0
<STX>H1;o160,240;f0;c0;d0,16;h1;w1;<ETX>
Creates field H1
<STX>H2;o160,300;f0;c2;d0,14;h1;w1;<ETX>
Creates field H2
<STX>H3;o160,380;f0;c2;d0,16;h1;w1;<ETX>
Creates field H3
<STX>B4;o160,0;f0;c0,1;h100;w2;d0,11;i0;p@;<ETX>
Creates field B3
<STX>R;<ETX>
Saves and exits to Print mode
Download the following command string to change field 3 to h2;w2; and thereby change the height to 2 dots: <STX><ESC>P;F3;H3;h2;w2;R;<ETX>
The following table describes each command in this string: Command
Description
<ESC>P
Enters Program mode
F3;
Accesses format number 3 from memory
H3;
Accesses field 3 h2;
Sets the height to 2 dots w2;
Sets the width to 2 dots
R;
Returns to Print mode
Note: The <STX> and <ETX> commands mark the beginning and end of a message. The semicolon (;) is the command terminator. All commands in Program mode must end with this terminator except the last command in a message.
Deleting Fields It is possible to delete any field from a format except for the last field. You can use the following command string to delete field 3 from format 4. <STX><ESC>P;F4;D3;R;<ETX>
5-17
Page 104
4630 and 4830 Bar Code Label Printers User’s Manual
The following table describes each command in this string: Command
Description
<ESC>P;
Enters Program mode
F4;
Accesses format 4
D3;
Deletes field 3
R;
Returns to Print mode
Positioning Fields Using the IPL command language to position fields is the trickiest part of designing labels. Since you cannot tell exactly how the field looks until it prints, you may need to make several test prints before you get the field positioned correctly. For all types of fields, you determine the print position by defining the coordinates of the upper left corner of the unrotated field. The field origin is the upper left corner of an unrotated field. To define the coordinates of the field origin, you use the origin command (oX,Y) where o is the command that specifies origin, X is the distance from the left side of the label, and Y is the distance from the top of the label. The X and Y coordinates of the field origin are measured in dots. There are 300 dots per inch, or 12 dots per millimeter. To position a field to print approximately 0.5 inch (13 mm) from the left side and 1 inch (25 mm) from the top of your label, the origin command is o150,300. Direction of media from printer
A Second HR Field B *BC FIELD*
C A = o150,150 B = o150,300
5-18
C = o150,450 D = o600,150
Page 105
FG 9pt Italic
*1233*Designing Labels Using IPL Commands
5
Rotating Fields You can rotate any type of printable field in increments of 90 degrees counterclockwise around the field origin. To position a rotated field, you should keep in mind that the field origin remains on the corner where it was before you rotated the field. If you rotate a field 90 degrees counterclockwise, the origin that was at the upper left corner is now at the lower left corner. Use the field direction command fn to define the field rotation. See Chapter 6, “Intermec Printer Language Commands,” for more information. To rotate a field 90 degrees, you must position the lower left corner of the rotated field.
•
To rotate a field 180 degrees, you must position the lower right corner of the rotated field.
•
To rotate a field 270 degrees, you must position the upper right corner of the rotated field.
ABCDE
•
ABCDE
ABCDE
ABCDE
Scaling Fields You can determine the size of a field by the font or graphic you use and the field magnification factors you apply. The human-readable fonts and bar code symbologies have default sizes, and the user-defined character fields print as large as you design them (up to the maximum), but you can scale each of these fields even further by using magnification commands.
5-19
Page 106
4630 and 4830 Bar Code Label Printers User’s Manual
Magnifying Fonts and Character Fields The internal fonts in the printer already have sizes associated with them. For example, the letters in font c0 are 7 dots wide by 9 dots high, with a 1-dot gap between characters. If you design a field that prints 10 letters in font c0, the field will be 158 dots wide by 18 dots high. Note: The default magnification for a field is 2x2. By applying magnification factors (h for height and w for width) you can increase a field’s height or width. If you increase the height to 4 (h4) for the field described above, the field height doubles, and the final field prints 158 dots wide by 36 dots high. If you change the height magnification to h6, the field height triples, and the field prints 158 dots by 72 dots. Increasing the width of a text field to 4 (w4) makes each letter in the field twice as wide. If you did this to the example text field, with field height h2, the final field would print 318 dots wide by 18 dots high.
Magnifying Bar Code Fields You can also use height and width command to modify bar code fields, but the commands do not behave the same as with human-readable fields. For bar code fields, the height magnification is the actual dot height of the bar code. If you choose a height magnification of h20, the height of the bar code field will be 20 dots. Printing narrow bar codes conserves space on each label as well as media. However, if you plan to scan bar codes from a distance, you may need to magnify the bar code widths. The width magnification factor for bar code fields refers to the width of the narrowest element of the bar code. The minimum bar code width is 2.5 mil for drag mode only. When you specify a narrow element width of w3, the width of the narrowest element in the symbology is 3 dots wide. The spaces and large element widths grow according to preset ratios for each symbology. Note: You can only print a bar width of 1 if you are printing in drag mode. If you select a width of 1 in picket mode, the printer defaults to 2. The default height for bar code fields is 50 dots, and the default width for narrow elements is 1 dot. You can magnify bar code fields to print up to 9999 dots high, with a narrow element of up to 999 dots wide, but it requires special equipment to scan a bar code that wide. Note: If you are using the POSTNET symbology, follow the rules for magnifying fonts.
5-20
Page 107
FG 9pt Italic
*1233*Designing Labels Using IPL Commands
5
Designing Pages A page is a collection of one or more formats that you combine to print at the same time. This feature is helpful when you need to print several different labels for application at once. For example, you may need to attach one type of label to a product, and a different label to its container. With the page printing capability, you can print both labels at the same time. Being able to print pages of several formats at once also allows you to print labels on media rolls that have different sizes and shapes of labels already precut. When you group label formats into a page, you assign the formats to positions designated by the letters a through z. You can print the formats used in pages independent of each other. The format example at the end of this chapter shows how to create a page that contains five different formats.
Creating User-Defined Graphics When you create user-defined graphics (user-defined characters, or UDCs) for the 4630 or 4830 printer, they need to be in six bits per byte format. To use the UDC in a format, you must first define a graphic field using the IPL command Un[,name]. For help using this command (User-Defined Character Field, Create/Edit), see Chapter 6, “Intermec Printer Language Commands.” Eight bits (0 through 7) compose every byte, but the printer only uses bits 0 through 5 to map the image. You must always set bit 6 (the seventh bit) to 1 so you can download data to the printer. 7-bit hosts reserve bit 7 (the eighth bit) for parity and compatibility. Please refer to “Creating User-Defined Fonts” later in this chapter for an illustrated example of creating a six bits per byte font. To download a six bits per byte graphic 1. Draw the graphic on graph paper. For example,
2. Change the graph paper drawing into a pattern of ones (square is filled) and zeros (square is empty).
5-21
Page 108
4630 and 4830 Bar Code Label Printers User’s Manual
3. Starting from the top row, divide each vertical column into groups of six digits. (If the bottom group has less than six digits, add zeros to this group until it also has six.) The six digits in each group are the six bits that you download in a byte of data. The top digit of each group is bit 0, the bottom digit is bit 5. 4. Add a 1 in the bit 6 position, and then add a 0 in the bit 7 position so that each group now has eight digits. (Eight digits complete the byte.) 5. Starting with the first group of 8 bits in the first column, reverse the order of each group so that bit 0 is now last and bit 7 is first. Work from the top of each column to the bottom. Each eight-digit group is now a binary representation of an ASCII character. 6. Translate each eight-digit group into an ASCII character according to the full ASCII chart in Appendix A, “Printer Reference.” 7. Download the graphic so that each column is represented by a command string. Here is the format for the diamond shape graphic in six bits per byte format with ASCII characters.
5-22
Command
Definition
<STX><ESC>P<ETX>
Enter Program mode
<STX>G2,diamond;x15;y15;<ETX>
Create UDC bitmap 2 (diamond), 15 rows by 15 columns
<STX>u0,@B@;<ETX>
Define column 0
<STX>u1,@E@;<ETX>
Define column 1
<STX>u2,`H@;<ETX>
Define column 2
<STX>u3,PP@;<ETX>
Define column 3
<STX>u4,H`@;<ETX>
Define column 4
<STX>u5,D@A;<ETX>
Define column 5
<STX>u6,B@B;<ETX>
Define column 6
<STX>u7,<DEL><DEL>G;<ETX>
Define column 7
<STX>u8,~CB;<ETX>
Define column 8
<STX>u9,|CA;<ETX>
Define column 9
<STX>u10,xc@;<ETX>
Define column 10
<STX>u11,pS@;<ETX>
Define column 11
<STX>u12,`K@;<ETX>
Define column 12
<STX>u13,@G@;<ETX>
Define column 13
<STX>u14,@B@;<ETX>
Define column 14
<STX>R;<ETX>
Save and exit to Print mode
Page 109
FG 9pt Italic
*1233*Designing Labels Using IPL Commands
5
After downloading the graphic to the printer, download the following format to see how the graphic prints. A label similar to the one following the format prints: Command
Definition
<STX><ESC>P<ETX>
Enter Program mode
<STX>E4;F4<STX>
Create format 4
<STX>U1;o1050,650;c2;w20;h20;<ETX>
Create graphic field 1, origin of 1050,650, use graphic 2, and magnify it by a factor of 20
<STX>R;<ETX>
Save and exit to Print mode
<STX><ESC>E4<ETX>
Select format 4
<STX><ETB><ETX>
4630U-40
5-23
Page 110
4630 and 4830 Bar Code Label Printers User’s Manual
Creating User-Defined Font Each data byte represents six bits in the bitmap. The following example lists the command and data required to define a font with the two characters “$” (t36) and “i” (t105). The maximum size for each font character is 4 x 4 inches (1600 x 1600 dots). It is possible to define up to 100 characters. To download a six bits per byte format 1. Draw the character on graph paper. 2. Change the graph paper drawing into a pattern of ones and zeros. u0 o o o o I o I I I I 6 digits
6 digits
2 digits
I I I I I
I I I I o o I o o I o o I I I o I I I o o o o o o o o I I o o I I o o o I I I o o o o
I I I I I I I I I I I I
I I I I I I I I I I I I I I u9 o o o o I I I o I
I
I
I o o I I o o o o o o o o I I I o I
I
I o o I o o I o o I I I
I I
I I I I
I I o I o o o o 4630U-41
3. Starting with the first column, divide each vertical column into groups of six digits. (If the bottom group has less than six digits, add zeros to this group until it also has six.) The six digits in each group are the six bits that you download in a byte of data. The top digit of each group is bit 0, and the bottom digit is bit 5.
5-24