The text of a manual · part 12 of 32
4400 Bar Code Label Printer User's Manual, pages 111 to 120
Pages 111 to 120 of 318
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 4400
Page 111
6 Designing Labels and Using Commands
Page 112
Page 113
HelvC NugFont
Co d e 39 Designing Labels and Using Commands
6
This chapter describes how to use the printer’s command set when designing labels. In addition, there are several examples of label formats containing different field types.
Introduction to Label Design The 4400 printer is designed to print labels in formats consisting of fields that may contain lines, boxes, graphics, bar codes, and text in many orientations. You can use the printer to design labels that are easy to read, contain accurate information, and conserve media by using space efficiently. If you have never designed labels before, it may take some practice to design ones that meet all your requirements. An alternative to using the command set and downloading formats with communications programs is Intermec’s PrintSet, described later in this chapter.
Label Formats Before printing a label, you must specify a label format and send data to fill in the designated fields in the format. The format defines where and how the data appears on the label. A label format is composed of several different fields that contain dimensions and terms used to map the information printed on a label. For example, if you want to print a number on a label, the format indicates the location, font, size, and orientation of the number. Note: Whenever a format is created, a human-readable field zero (H0) is automatically created along with it. It is created with all field parameters at default and can be deleted only after one or more fields are created. An example of a simple label format accompanied by sample data is shown on the following page. This example shows how format and data strings appear before being downloaded. The mnemonics represent control codes (such as <STX> for start of message). These mnemonics can be translated into hex or ASCII control characters using the table in the Appendix. The line breaks are to make the program easier to read and do not represent carriage returns.
Sample Format <STX><ESC>c<ETX> <STX><ESC>P<ETX> <STX>E4;F4;<ETX> <STX>H0;o120,50;f0;c2;h2;w1;d0,30;<ETX> <STX>B1;o120,220;c0,1;h50;w1;i0;d0,11;p@;<ETX> <STX>R<ETX>
6-3
Page 114
4400 Bar Code Label Printer User’s Manual
Sample Data <STX><ESC>E4<ETX> <STX><CAN><ETX> <STX>THIS IS THE SIMPLE SAMPLE<CR><ETX> <STX>SAMPLE<ETX> <STX><ETB><ETX>
Label Printed With Sample Format and Data
SAMPLE SAMPLE
4400-73
Communicating With the Printer To send a label format to the 4400, you must go through a process called downloading. Downloading is the universal term that describes the transfer of information from a computer to any connected peripheral device (a printer, a reader, etc.). Uploading describes the transfer of data from your printer to your PC or host. There are several ways to download information. You can either download from a terminal on your host or from a PC. Many different methods may be used from either platform.
6-4
Page 115
HelvC NugFont
Co d e 39 Designing Labels and Using Commands
6
Using the PrintSet Software Use the PrintSet application software to easily configure your printer from your PC. You can upload the current configuration settings, modify them, and then download them to the 4400 printer. PrintSet also lets you: • download graphics and fonts (including TrueType).
• print test labels.
• allocate memory.
• download configuration files.
For help using PrintSet, refer to the online helpportion of the application software.
Using the Printer Command Set If you are not using PrintSet, you can create labels by downloading formats and data created with the printer command set. See Chapter 7 for a complete list of commands and their descriptions. The example on the previous page uses several commands from the printer command set. The commands in the printer command set can perform many functions and activate any feature of the 4400 printer. The method you use to download the commands is up to you. If you do not use PrintSet, try some of the options listed on the following pages.
Downloading Commands Using DOS To download commands using DOS, you must connect the printer to the serial port on your PC using the correct Intermec cable (see Chapter 2). Next, configure the serial port using the DOS Mode command. From the DOS prompt, type in a command similar to the following (replace COM1: with the serial port used): C:\MODE COM1: 96,E,7,1,N
The DOS Copy or Print commands commonly use the hardware flow control (Ready/Busy) communication protocol. To use this protocol, the printer must be in Ready/Busy mode (which is the factory default configuration). Note: If you do not set the hardware flow control protocol, the file you want to download must be less than the input buffer of the printer (2K). However, you can use the DOS Copy or Print commands for large files if you enable hardware flow control by configuring the printer for XON/XOFF protocol and make the proper pin connections. Enter the commands into a text file using a text editor or a word processor. Make sure that you save the file as an ASCII text file. See your DOS user’s manual for more information.
6-5
Page 116
4400 Bar Code Label Printer User’s Manual
Send the file to the printer using the following DOS commands: COPY (filename) COM1: PRINT (filename):
where filename is the name of your text file. The copy command copies the file to serial port 1 (COM1) of your PC. The print command sends your text file to LPT1 (unless redirected). Using the DOS Copy command you can create files that you can store on your PC, and then modify and download them several times. For example, if your first attempt at a label format does not work, you can return to the text editor and change the commands, and then download the format again. By using this method, you eliminate the need to retype command strings that you decide to change. For an example of how to use a word processor to recreate ASCII characters, here is the same label format shown in two different ways.
Sample Format <STX><ESC>c<ETX> <STX><ESC>P<ETX> <STX>E3;F3;<ETX> <STX>H0;o120,50;f0;c0;h2;w1;d0,30;<ETX> <STX>B1;o170,220;f0;c0,1;h50;w1;i0;d0,11;p@;<ETX> <STX>R<ETX>
Keystrokes to Enter Sample Format From a Word Processor Alt-02 Alt-27 c Alt-03 Alt-02 Alt-27 P Alt-03 Alt-02 E3;F3; Alt-03 Alt-02 H0;o120,50;f0;c0,1;h50;w1;i0;d0,11;p@;Alt-03 Alt-02 B1;o170,220;f0;c0,1;h50;w1;i0;d0,11;p@;Alt-03 Alt-02 R Alt-03
Note: When ASCII decimal equivalents are entered in a word processor, they are displayed on the screen as characters.
Downloading Commands Using Readable Protocol/Command Characters If it is difficult for you to edit or transmit command files containing control characters, you may want to utilize the new readable protocol/command characters feature. To use the readable characters feature, type the ASCII characters in as a string. Angle brackets around ASCII strings are used to represent these characters. For example, if you want to enter the ASCII mnemonic for Start of Text, type the control character out as a readable character string <STX>. The printer automatically detects whether you are using control characters or readable protocol/command characters by the start of text (<STX>) character.
6-6
Page 117
HelvC NugFont
Co d e 39 Designing Labels and Using Commands
6
All characters in a message must be in the same form as the start of text (<STX>) character. For example, if you include control characters in a message that begins with the readable protocol/command character <STX>, they are thrown away. Using readable characters may consume more space and time, but it has the distinct advantage of displaying everything on the screen in readable characters.
Downloading Commands Using PC Communications Programs or Host Terminals Other ways to download commands to your printer are through a PC communications program, a terminal emulation program, or from a host terminal. In any of these situations, the commands you enter through the keyboard will be sent immediately to the printer in real time. The only drawback of using these programs is that mistakes are sent to the printer in real time as well. If you make an error while entering commands, you must retype the command string. This inconvenience can be overcome for the most part by keeping your command strings short. Design your formats as combinations of many short command strings rather than in one long string. The following examples demonstrate two ways a format can be downloaded using PC communications programs.
Breaking the Format Into Separate Lines This example shows the format divided into separate lines, each of which starts with the <STX> (start of message) command and ends with the <ETX> (end of message) command. When the printer receives the <ETX> command, it returns a positive or negative response, depending on whether it received a valid message. Since an <ETX> follows each line, only one line needs to be retyped if the printer detects a mistake. <STX><ESC>P<ETX> <STX>E3;F3;<ETX> <STX>H0;o81,100;f0;c0;d0,16;h1;w1;<ETX> <STX>H1;o81,120;f0;c0;d0,16;h1;w1;<ETX> <STX>H2;o81,150;f0;c2;d0,14;h1;w1;<ETX> <STX>H3;o81,190;f0;c2;d0,16;h1;w1;<ETX> <STX>B4;o81,0;f0;c0,1;h50;w1;d0,11;i0;p@;<ETX> <STX>R<ETX>
6-7
Page 118
4400 Bar Code Label Printer User’s Manual
Sending One Long String of Commands This next example shows the same format typed as one long string of commands, using the <STX> and <ETX> characters only at the beginning and end of the entire format. This method calls for fewer keystrokes, but if you make a mistake anywhere, you must retype the entire format. <STX><ESC>P;E3;F3;H0;o81,100;f0;c0;d0,16;h1;w1;H1;o81,120;f0;c0; d0,16;h1;w1;H2;o81,150;f0;c2;d0,14;h1;w1;H3;o81,190;f0;c2;d0,16; h1;w1;B4;o81,0;f0;c0,1;h50;w1;d0,11;i0;p@;R<ETX>
Using ASCII Control Characters With many communications or terminal emulation software, you create the commands by using the equivalent ASCII control characters. For example, <ETX> is entered as Ctrl-C. A table listing the ASCII control characters is located in the Appendix. The following example is the format shown earlier with the command mnemonics replaced by ASCII control characters. Hold down the Ctrl key on your keyboard and type the letter as shown to create the printer command. Ctrl-B <ESC>P Ctrl-C Ctrl-B E3;F3; Ctrl-C Ctrl-B H0;o81,100;f0;c0;d0,16;h1;w1; Ctrl-C Ctrl-B H1;o81,120;f0;c0;d0,16;h1;w1; Ctrl-C Ctrl-B H2;o81,150;f0;c2;d0,14;h1;w1; Ctrl-C Ctrl-B H3;o81,190;f0;c2;d0,16;h1;w1; Ctrl-C Ctrl-B B4;o81,0;f0;c0,1;h50;w1;d0,11;i0;p@; Ctrl-C Ctrl-B R Ctrl-C
Switching Between Print Mode and Program Mode Before you download information to the printer, you must be in the correct operating mode. Download printer commands in either Print mode or Program mode as follows: •
Use Program mode to define formats, pages, fonts, and characters. The command to enter Program mode is: <STX><ESC>P<ETX> To ensure correct downloading, you may want to send this command every time you download formats, even if you think the printer is already in Program mode. If the printer is in Program mode, this command is ignored.
6-8
Page 119
HelvC NugFont
•
Co d e 39 Designing Labels and Using Commands
6
Use Print mode to download data and print labels. The command to enter Print mode is: <STX>R<ETX> This command can be entered before each set of data or at the end of every format. If the printer is in Print mode already, this command is ignored. Note: Besides being used to pass data, Print mode is also used to download configuration commands that are used for setting certain printer features to your specifications and for enabling options. For example, you use configuration commands to emulate an Intermec 8636 or 8646 printer or to change the character set.
Understanding Label Design Components Label formats are combinations of several different fields that determine where and how different types of data appear in the label design. The fields on a label may differ in size, location, orientation, and data type. Once the fields in a format are defined, data can be passed into the fields and then printed. A field is defined to hold a certain data type. You can define bar code fields, human-readable fields, graphic fields, lines, boxes, or interpretive fields. You must define the data you plan to print on your label as a field in the label format. The fields on your label can differ both in the data and in the way the data is displayed. For example, your label could show one number printed as a bar code and a different number printed in large black letters. The bar code field is a different kind of field than the large black lettered field. Each field type gives you options on how you want your data to be interpreted. Most of the options are in bar code fields (what type of bar code) and humanreadable fields.
6-9
Page 120
4400 Bar Code Label Printer User’s Manual
Bar Code Fields You can print bar codes in any of the symbologies listed below. A full description of each bar code symbology can be found in the Appendix. Symbology
Characters per Inch
Code 39
7.00
Code 2 of 5 Interleaved 2 of 5
12.69
Codabar
9.23
Code 128
18.46
Code 93
11.28
UPC/EAN
14.50
Code 49
49.0*
Code 16K
37.0*
Code 11
11.28
Code One† PDF 417† Maxicode† *0.719 inches high by 0.690 inches wide, 8 rows †2D symbologies have variable sizes. See the Appendix for details.
Character Fields and Fonts Human-readable fields can be printed in any one of the printer’s internal fonts. These fonts can be resized or rotated by using the appropriate commands. There are two kinds of fonts available in the printer, bitmap or outline fonts. Bitmapfonts distort much easier when they are magnified. Outline fonts, rather than being defined as a matrix of dots and blanks, are defined by vectors and curves and hold their smooth shape better when enlarged. You may want to keep this in mind for scaling purposes. The following figure shows the difference between enlarged outline and bitmap fonts. The printer contains the following internal fonts. The following figures show the fonts listed next to the corresponding command, in numerical order. The font set includes:
6-10
•
Four standard bitmap fonts measured in dot sizes (5x7, 7x9, 7x11, and 10x14).
•
Six standard bitmap fonts measured in point sizes (8, 10, 12, 16, 20, and 24).
•
Nine bold bitmap fonts in point sizes (6, 8, 10, 12, 16, 20, 24, 30, and 36).