/LQH-HW Printers QMS® Code V™ Technical Reference Manual ™
LineJet™ Printers QMS® Code V™ Technical Reference Manual
Hewlett-Packard makes no representations or warranties of any kind regarding this material, including, but not limited to, implied warranties of merchantability and fitness for a particular purpose. Hewlett-Packard shall not be held responsible for errors contained herein or any omissions from this material or for any damages, whether direct, indirect, incidental or consequential, in connection with the furnishing, distribution, performance or use of this material.
Trademark Acknowledgements IBM is a registered trademark of the International Business Machines Corp. IGP, LinePrinter Plus, PGL and Printronix are registered trademarks of Printronix, Inc. QMS is a registered trademark and Code V is a trademark of Quality Micro Systems, Inc. Hewlett-Packard, HP and PCL are registered trademarks, and LineJet is a trademark of Hewlett-Packard Company. This product uses Intellifont Scalable typefaces and Intellifont technology.
Table of Contents 1 Overview............................................................... 11 About this Manual ...................................................................................11 Warnings and Special Information ...................................................11 The Code V Graphics Language ............................................................12 Features ...........................................................................................12 Modes of Operation............
Table of Contents Duplication, Horizontal .....................................................................45 Duplication, Horizontal (Version II)................................................... 47 Duplication, Vertical ......................................................................... 48 Duplication, Vertical (Version II) ....................................................... 52 Dynamic Form Commands ..............................................................
Table of Contents Setup Files Feature ........................................................................114 Shading ..........................................................................................114 Shading Mask ................................................................................116 Special Function Control Code Change .........................................118 Symbols, Creating Standard User Defined ....................................
Table of Contents Boxing the Alphanumeric Text ....................................................... 230 Creating Horizontal Lines ............................................................... 232 Creating More Alphanumeric Text ................................................. 232 Form Example ...................................................................................... 234 Page Layout Considerations .......................................................... 234 Planning the Form Layout .....
1 Overview About this Manual This manual is divided into chapters that contain all the information required to use the QMS Code V Emulation. Use this manual in conjunction with your printer User’s Guide and and PCL-II/LinePrinter Plus Technical Reference Manual for complete printer-IGP compatibility. Warnings and Special Information Information requiring special attention is indicated under special headings . Always read and comply with this information.
Chapter 1 The Code V Graphics Language The Code V Graphics Language Code V Graphics Language is an Intelligent Graphics Printing (IGP) software emulation designed for your LineJet™ printer. The IGP Code V emulation of the QMS Code V Version II programming language produces on-line forms, bar codes, and alphanumeric text-generation. Features On-Line Form and Label Generation makes it easy to create forms or labels with the “preprinted” look for each application.
Modes of Operation Multinational Character Sets provide you with many international character sets, 96 characters in length. The Multinational Character Sets also allow you to create your own character sets using characters defined in the Code V emulation software. Modes of Operation The Code V has two basic modes of operation: Normal and Graphics.
Chapter 14 1 The Code V Graphics Language
2 Commands Modes of Operation The Code V has two modes of operation: Normal and Graphics. In the Normal mode, the data stream passes unchanged to the printer until the Special Function Control Code (SFCC) and Graphics Mode Enable command are detected, indicating that special Graphics Mode functions follow. All of the printer standard features operate in the normal mode (such as the EVFU, plot, hex dump) and the printer responds to control codes.
Chapter 2 Code V Command Standards Code V Command Standards Many of the commands described in this chapter include an example to illustrate the application. Commas are used in the example commands to easily identify the various command parameters. Many of the example commands shown also require the Free Format command. Using the Free Format command in the examples more clearly identifies the data and command parameters.
Command Parameters The Code V buffer holds, and can process, approximately 64K characters in a single graphics command sequence. However, if a single command sequence exceeds the buffer capacity, you can use the Interrupt command (page 90). The Interrupt command breaks the command sequence and specifies where the sequence begins printing again. Command Parameters Most commands have a number of variable parameters for which input is required.
Chapter 2 Code V Command Standards If the Free Format command is used, host generated terminators are ignored and only the standard graphics command terminators are recognized. Refer to Table 2 for a list of the Standard Graphics Commands and appropriate page references where additional information is provided. Character Height, Width, and Intercharacter Spacing Alphanumeric height and width parameters include the intercharacter spacing, as shown in Figure 2.
Data Positioning Normal Mode In Code V Normal Mode, incoming data are checked by Code V software for the SFCC and the Graphics Mode Enable or the Enable Non-Graphics Free Format command, then passed to standard printer software. These "normal" (or "pass-through") data assume the standard 10 cpi print mode, and all other standard printer features function normally according to the configuration and programming of the printer.
Chapter 2 Command Codes Without explicit horizontal positioning commands, the horizontal print position constantly increases within the command sequence. Each command starts at the right edge of the previous command. Without explicit vertical positioning commands, the vertical print position for each command within a sequence is always at relative dot row 1 (the current physical position of the print mechanism resulting from printing the last sequence).
Graphics Mode Enable Commands Graphics Mode Enable Commands In order to enable the Graphics Mode, you must use the Graphics Mode Enable command. Table 1 summarizes the Graphics Mode Enable and Disable commands and the four alphanumeric commands, which are fully described on the referenced pages. After enabling the Graphics Mode, alphanumeric commands, standard graphics commands, or extended graphics commands are available. Table 1.
Chapter 2 Command Codes Standard Graphics Commands Standard graphics commands can be used any time the Code V is in the Graphics Mode. They set internal control values or are sent directly to the printer for processing. Standard graphics commands are summarized in Table 2 and fully described on the referenced pages. Note The Graphics Mode (Table 1) must be enabled before issuing a Standard Graphics command. Table 2.
Standard Graphics Commands Table 2.
Chapter 2 Command Codes Extended Graphics Commands Specific graphics functions (lines, boxes, alphanumerics, forms, bar codes, reverse printing, etc.) are available through commands sent as part of an extended graphics command sequence. Table 3 summarizes the extended graphics commands, which are fully described on the referenced pages. Extended commands must be used as part of an alphanumeric command sequence (after the Code V is in the Graphics Mode).
Extended Graphics Commands Table 3.
Chapter 2 Command Codes Alphanumerics Purpose Produces alphanumeric text in standard, rotated or inverted orientations. A reverse string order option is also available in the rotated and inverted orientations. Mode Graphics Format (cc) x ht wd jus data [(cc)G] (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. x Represents an Alphanumeric command.
Alphanumerics point between the first two digits and the third digit is automatically interpreted as dot rows. data Identifies data characters to print or a specific graphics command (such as one of the bar code commands, a horizontal tab command, etc.). (cc)G (Optional) Reverses the character data from the actual input order. This parameter is available only with the Rotated Counterclockwise command (E) or the Inverted Rotated Alphanumeric command (U).
Chapter 2 Command Codes Alphanumeric Examples The following sample commands in this section illustrate some applications for standard, rotated, and inverted alphanumeric features. (Note that the Free Format enable and disable commands, ^F and ^O, are used.
Alphanumerics Rotated Counterclockwise Alphanumerics: ^PY^-^F^^E06,04,000AaBb^E04,06,000AaBb^^O^-^PN^- ^PY^-^F^^E03,03,000I^E03,03,030G^E03,03,060P ^E03,03,060I^E03,03,030G^E03,03,000P^^O^-^PN^- Inverted Alphanumerics: ^PY^-^F^^U06,04,000AaBb^U04,06,000AaBb^^O^-^PN^- ^PY^-^F^^U03,03,000I^U03,03,030G^U03,03,060P ^U03,03,060I^U03,03,030G^U03,03,000P^^O^-^PN^- 29
Chapter 2 Command Codes ^PY^-^F^^U03,03,000IGP^U03,03,060PGI^^O^-^PN^- Alphanumerics Reverse String: ^PY^-^F^^E08,05,000IGP^E08,05,000PGI^G^^O^-^PN^- ^PY^-^F^^U06,04,000upside down^^U06,04,000upside down^G^^O^-^PN^- 30
Boxes Boxes Purpose Produces a variety of rectangular boxes. Mode Graphics with an Extended Graphics Command selected Format (cc) LB horz vert h v (cc) (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. LB The Box command. Enter LB. horz Defines the horizontal length of the box in tenth inches and dot columns. Enter a three-digit horizontal length value ranging from 000 through 999 to define a horizontal length of 00.0 through 99.
Chapter 2 Command Codes Comments Box drawing uses horizontal and vertical length parameters. Boxes are positioned on the page using an alphanumerics command sequence (such as horizontal tabs, the justification parameter, etc.). Consequently, an alphanumeric command must precede a Box command. The horizontal and vertical border thickness can also be specified in varying line thicknesses. Code V dot refers to a dot in 60 x 72 dpi resolution.
Carriage Return Carriage Return Purpose Terminates a command. Mode Graphics with a Standard Graphic Command selected Format (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. - The graphics CR mnemonic. Enter -. Comments The Graphics Mode carriage return (CR) performs the same function as a standard carriage return (hex 0D) when used to terminate a standard graphics command.
Chapter 2 Command Codes Example The following sample commands illustrate character height changes. (The Graphics Mode Enable command was previously sent to enable Graphics Mode but is not shown in the examples.
Character Width Character Width Purpose Specifies a new alphanumeric width. Mode Graphics with an Extended Graphics Command selected Format (cc) W wd (cc) (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. W The Character Width command. Enter W. wd Defines the new character width in tenth inches. Enter a two-digit width value ranging from 01 through 99 to define a character width of 0.1 through 9.9 inches.
Chapter 2 Command Codes The command sequence below also uses the Horizontal Tab (T012,5 and T017,5) command for character spacing. ^PY^^E10,10,000I^T012,5^W02G^T017,5^W25P^^PN^- ^PY^^U05,05,000DOWN^W01SIDE^W10UP^^PN^- c Character Type 36 Purpose Selects a character type or character per inch (cpi) density. Mode Graphics with a Standard Graphic Command selected Format (cc) @ C type(cc) data (cc)* (cc) Represents the Special Function Control Code (SFCC).
Character Type Comments The @C command can be used any time the Code V is in the Graphics Mode. Once a new character type is selected, all standard Graphics Mode text lines are printed in the selected type until another type is selected or the Code V returns to the Normal Mode. If another type is selected, it must be introduced on a separate line from the currently selected character type. Table 4. Character Type Codes Character Type Code Note Example Character Type Selected 05 Double High (.
Chapter 2 Command Codes Compressed Print Purpose Selects a compressed print font. Mode Graphics with a Standard Graphic Command selected Format (cc) #x (cc)- data (cc)* (cc) #0 (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. #x Specifies the compressed print font to use. For example, enter #2 for a 12 cpi font as shown in Table 5. Table 5.
Compressed Print (cc)#0 The command to terminate compressed printing. On a separate line, enter the SFCC for your Code V configuration immediately followed by #0 to terminate use of the compressed print font. (cc)- Graphics Mode CR. Enter the SFCC for your Code V configuration immediately followed by - to end the command sequence. Comments The Compressed Print command can be used any time the Code V is in the Graphics Mode to select one of the compressed print fonts.
Chapter 2 Command Codes #4: 15 cpi Compressed Print Font. The following command generates the uppercase alphabet with numbers 0-9 in the 15 cpi compressed print font. ^PY^^#4^-ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789^* ^#0^^PN^- #5: 17.65 cpi Compressed Print Font. The following command generates the uppercase alphabet with numbers 0-9 in the 17.65 cpi compressed print font.
Dark Print All data following the first KF command will print dark until the second KF command is encountered. The KF command is a part of the data contained in an alphanumeric command. When the alphanumeric command sequence is terminated, dark printing is also disabled. Reverse printing and shading or mask shading can be combined with dark printing to produce a variety of different shades. Example The following sample commands illustrate dark printing. Combining shading and dark print is also shown.
Chapter 2 Command Codes Descending Characters Purpose Prints descending lowercase characters one of two ways: 1) by extending below the print baseline with the command on, or 2) by raising the characters slightly to completely contain the descending characters above the print baseline with the command off. Mode Graphics with an Extended Graphics Command selected Format (cc) D data (cc) D (cc) (cc) Represents the Special Function Control Code (SFCC).
Descending Characters When the D command is turned on, the Code V automatically allows space for the descending characters whether or not descending characters are part of the data. The amount of space allowed is two dot rows per tenth inch of character height. This space produces a gap under the standard print baseline of nondescending characters. This space also produces a larger reverse print character image background area. Note Example The default setting for the D command is OFF.
Chapter 2 Command Codes Direct Printer Commands Purpose Sends Control Codes for special purposes directly to the ASCII emulation. Mode Graphics with a Standard Graphic Command selected Format See Table 6. Table 6. Direct Printer Commands Direct Command Hex Code Sent to the Printer ^! 01 ^” 02 ^# 03 (see note below) ^$ 04 ^% 05 ^& 06 ^’ 07 ^( 08 ^.
Dot Slew Dot Slew Purpose Changes the vertical print position by specifying a number of dot rows to advance the paper from the current print position. Mode Graphics with a Standard Graphic Command selected Format (cc) D n (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. D The Dot Slew command. Enter D. n Specifies the number of dot rows to advance (slew) the paper from the current print position.
Chapter 2 Command Codes (cc)- Graphics Mode CR used as a sequence terminator representing an end to the data. Enter the SFCC for your Code V configuration immediately followed by - to end the command sequence. data Represents the data to be repeated. Enter any valid Code V Graphics Mode command. Specific command sequences are input as part of the horizontal duplication data. These commands are then repeated as specified in the Horizontal Duplication command.
Duplication, Horizontal (Version II) Duplication, Horizontal (Version II) This command performs the same function as (cc)S described on page 45. The IREPH command can also operate within an Extended Graphics command. You must enable the Free Format command for this command to work properly. Purpose Defines both the number of times data is horizontally duplicated (repeated), and the horizontal spacing between each duplication.
Chapter 2 Command Codes (cc)IREPE The horizontal duplication end command. Enter the SFCC for your Code V configuration immediately followed by IREPE to end the horizontal duplication command. Comments Multiple IREPH/IREPE duplication loops can be used in a form and can also be nested. Vertical duplication loops (IREPV/ IREPE) can also be used in conjunction with IREPH. Each IREPH must have a corresponding IREPE.
Duplication, Vertical One Vertical Duplication command can be nested within a Vertical Duplication command. The total number of characters within the command sequence (including all repetitions) must be 256 characters less than the maximum size of the input buffer. (cc)Z(cc)- Mandatory Vertical Duplication command sequence terminator. Enter the SFCC for your Code V configuration immediately followed by Z, another SFCC, and - to end the Vertical Duplication command sequence.
Chapter 2 Command Codes Auto Increment/Decrement Vertical Duplication Purpose Updates increment and decrement data within a Vertical Duplication command sequence (page 48). Format (cc) Y start# inc/dec amount (cc)G (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. Y Specifies the Auto Increment/Decrement command. Enter Y to activate automatic update of repeated alphanumeric data fields.
Duplication, Vertical The terminator used in the Vertical Duplication command determines when each inner auto increment field of a nested repeat sequence is updated (incremented/decremented). If the (cc)Z(cc)- Vertical Duplication command terminator is used, each inner field is updated at the end of the repeat pass. For example, four fields within a repeat pass would all be updated together at the end of each repeat pass.
Chapter 2 Command Codes Example 2 The following example illustrates the same Vertical Duplication command but uses the different terminator for Auto Increment/ Decrement of numeric fields updated sequentially within the repeat. The ^* on the fourth line causes a line feed on which the second set of Invoice data is printed. Refer to the Free Format commands discussed on page 83 and page 85.
Duplication, Vertical (Version II) spacing Represents the amount of vertical spacing to separate each set of repeated data. Enter up to four numbers. The first, second and third digits represent vertical tenths, and the fourth digit represents vertical dots. If less than four digits are entered, zeros will automatically be inserted from left to right. Example: 0001 0012 0123 1234 (cc)G The universal terminator.
Chapter 2 Command Codes Dynamic Form Commands Purpose Permits an entire form or label to be sent to the Code V with variable data entered into specific locations on each form. Mode Graphics with a Standard Graphic Command selected Format (cc) B (cc)- data (cc)t (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. B Specifies the Dynamic Form command. Enter B to begin dynamic forms. (cc)- The Graphics Mode CR.
Dynamic Form Commands Dynamic Form Special Command Definitions The graphics carriage return, line feed, form feed, vertical tab, and universal terminator commands are interpreted differently when used within the Dynamic Form commands. These interpretations are described below. (CR) Carriage Return (^-). Fills the remainder of the current dynamic field with spaces. If this is the only input, the entire field is filled with spaces. (LF) Line Feed (^*).
Chapter 2 Command Codes Dynamic Form: Field Length Purpose Assigns a field length to each variable field in a boilerplate dynamic form. Format (cc) x length (cc) (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. x Specifies the Dynamic Form Field Length command. Enter [ or { to designate a field length follows. length Represents the field length.
Dynamic Form Commands Example The following example illustrates the Dynamic Form command. In the example, three variable fields are used: Price, Quantity, and Total. Following the command sequence, the dynamic data is sent to fill the variable fields. The special use of the CR command for dynamic forms is shown in the example with the dynamic data. ^PY^-^F^^B^-^M02,02,000Price^T0220^[005^^M02,02,002Quantity^T0220^[002^^M02,02,002Total^T0220^[006^-^*^*^] $1.5004$6.00^$1.0525$26.25 $8.
Chapter 2 Command Codes Dynamic Form: Copy Fields Purpose Duplicates specific fields or data within a form at the same time as the print job. Format (cc) C n copydata (cc)Z(cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. C Specifies the Dynamic Form Copy Fields command. Enter C to copy fields within the form. n Specifies the number of copies.
Dynamic Form Commands ^PY^-^F^^B^-^M02,02,000Price^T0160^[005^*^* ^C02^M01,01Quantity^T0100^[002 ^M01,01^T0170Total^T0250^[006^^*^Z^-^*^*^] $1.5004$06.00 10$15.00 $1.0525$26.25 50$52.50 $8.9502$17.90 ^* $8.95^, ^G ^O^-^PN^The dynamic data in the above example is defined below. A printout of the above program is shown. 1. $1.50 Price, 04 Quantity, $06.00 Total 2. 10 Quantity, $15.00 Total 3. $1.05 Price, 25 Quantity, $26.25 Total 4. 50 Quantity, $52.50 Total 5. $8.95 Price, 02 Quantity, $17.90 Total 6.
Chapter 2 Command Codes Dynamic Form: Repeat Purpose Repeats (duplicates) an entire form at the same time as the print job. Format (cc) R formdata (cc)Z(cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. R Specifies the Dynamic Form Repeat Form command. Enter R to repeat the boilerplate form. formdata Represents the dynamic form data.
Dynamic Form Commands Example The following example illustrates the Dynamic Form Repeat Form command. In the example, the Price field repeats with a five-digit field length. Following the Dynamic Form command sequence, the dynamic data with the repeat quantities is sent. The special use of the CR command for dynamic forms is shown in the example with the dynamic data. ^PY^-^F^^B^-^R^-^M00,00,000^T0160Price^[005^^*^*^Z^-^] 0003$1.50 0002$1.00 0001$8.
Chapter 2 Command Codes Electronic Vertical Format Unit (EVFU) Purpose To use the software-controlled vertical formatter, which allows you to program frequently used lines on forms and documents for efficient printing processes when merging operations (such as invoicing or payrolling). Mode Graphics with a Standard Graphics Command selected Format See Table 7. Table 7.
Electronic Vertical Format Unit (EVFU) The EVFU is loaded with a program of line identification codes, one code for each line of the form. The program includes a Start Load code to initiate the load routine, a series of line identification codes, and an End Load code. After the memory is loaded, a line identification code occurring in the data stream causes the EVFU to slew to the identified line. To clear the EVFU memory, send a Start Load code with no channel codes or End Load code.
Chapter 2 Command Codes The format for the form definition program sent from the host computer is as follows: 1. The EVFU Start Load code (^>) is sent first. The Code V must be in the Graphics Mode to load and use the EVFU in the Graphics Mode. 2. The Channel 2 code (^1) is sent twice to assign the first two lines of the form as fillers. Filler lines are not called by the print program. The same channel code can be used to assign all filler lines of the form. 3.
Emphasized Print Emphasized Print Purpose Selects emphasized (bold) character printing. Mode Graphics with a Standard Graphics Command selected Format (cc) @ E (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. @ Specifies one of the @ commands. Enter @ to begin an @ command function. E Specifies the Emphasized Print command. Enter E and all characters on the line are emphasized.
Chapter 2 Command Codes Emulation Switch Purpose Switch to a different emulation. Mode Graphics with a Standard Graphics Command selected Format (cc) IEMUL des (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. IEMUL The emulation switch command. des Three letter symbol to represent the emulation to switch to. Presently, PGL is the only choice available. (cc) Enter the SFCC for your Code V configuration.
Font, Selecting Default (Version II) Font, Selecting Default (Version II) Purpose Selects a default font. Mode Standard Graphics or Graphics with an Extended Graphics Command selected. When this command is executed as an Extended Graphics command, descender mode automatically turns on. Format (cc) IFONT,S, n (cc)G (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. IFONT,S, Specifies the IFONT command. Enter IFONT,S,.
Chapter 2 Command Codes Fonts, Rotatable Purpose Using special parameter values within any of the four alphanumeric commands described on page 26, you can specify four different fonts. Mode Normal resolution Graphics with an Extended Graphics Command selected. Format (cc) expand font jus data (cc)- Note (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration.
Fonts, Rotatable The 7 cpi font produces non-expandable characters 0.2-inch high and 0.15-inch wide with a 2-dot column intercharacter spacing at approximately 7 cpi. There is no rotated Optical Character Recognition (OCR) font available. You can select any specific font from any of the four alphanumerics commands using the Font Parameter (special combinations of the alphanumeric command height and width parameters) as described in Table 10. The Rot.
Chapter 2 Command Codes 12 cpi Font. The following command generates the uppercase alphabet with numbers 0-9 in 12 cpi: ^M00,01,000ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789^- 15 cpi Font. The following command generates the uppercase alphabet with numbers 0-9 in 15 cpi: ^M01,00,000ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789^- 7 cpi Font. The following command generates the uppercase alphabet with numbers 0-9 in 7 cpi: ^M00,00,000ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789^- Rotatable Font.
Fonts, Compressed Print Density Fonts, Compressed Print Density Purpose Defines the horizontal print density in characters per inch (cpi). Mode Graphics with an Extended Graphics Command selected Format (cc) S f data (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. S The Compressed Print Density command. Enter S. f Represents the Compressed Print Density font.
Chapter 2 Command Codes Examples The following examples illustrate the commands and print samples which generate the uppercase alphabet with numbers 09 in the available compressed print density fonts. Notice the height and width parameters of the alphanumeric command do not apply to the data specified for compressed print. f = 1 (10 cpi) ^PY^^M03,02,000^S1ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789^^PN^- f = 2 (12 cpi) ^PY^^M03,02,000^S2ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789^^PN^- f = 3 (13.
Form Feed f = 6 (OCR-A 10 cpi) ^PY^^M03,02,000^S6ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789^^PN^- f = 7 (OCR-B 10 cpi) ^PY^^M03,02,000^S7ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789^^PN^- f = 8 (12 cpi full-dot) ^PY^^M03,02,000^S8ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789^^PN^- f = 9 (15 cpi full-dot) ^PY^^M03,02,000^S9ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789^^PN^- Form Feed Purpose Performs a form feed (hex 0C) function to advance the paper to the next top of form when used to terminate a standard graphics command.
Chapter 2 Command Codes Form Length Purpose Defines the length of the form in total number of lines. Mode Graphics with a Standard Graphics Command selected Format (cc) L length (cc)or (cc) H length (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. L or H The Form Length command. If your Code V is configured with the PI line enabled, enter L. If your Code V is configured with the PI line disabled, enter H.
Forms Construction Forms Construction Purpose Produces vertical lines inside a box to construct forms. Mode Graphics with an Extended Graphics Command selected. Format (cc) LF horz vert h v line1 t line2 t (cc)G(cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. LF The Forms Construction command. Enter LF. horz Defines the horizontal length of the form in tenth inches and dot columns.
Chapter 2 Command Codes of 00.0 through 99.9 inches. Add a fourth digit ranging from 0 through 9 to specify 0 through 9 additional dot columns. The Code V automatically understands the decimal between the second and third digits for tenth inches and automatically interprets the fourth digit as dot columns. For example, entering 0126 specifies a 1.2-inch plus 6dot column position from the left edge or last vertical line position; entering 1016 specifies a 10.1-inch plus 6-dot column position.
Forms, Creating Dynamic (Version II) Example The following sample command illustrates forms construction. In addition to enabling the free format, an Alphanumerics command was sent for form positioning. ^PY^-^F^^M01,01,000 ^LF0500,0320,2,2,0123,1,0200,3,0090,1^G^^O^-^PN^- Forms, Creating Dynamic (Version II) This command operates similar to the Dynamic Form Commands described beginning on page 54. Purpose Creates a new dynamic form and stores it in memory under a specified name.
Chapter 2 Command Codes data The form data. Enter any number of valid Graphics or Extended Graphics command sequences. (cc)] Ends the form and all contents. Enter the specific SFCC for your Code V configuration followed by the right bracket to end the form. Forms, Deleting Dynamic (Version II) Purpose Deletes an existing dynamic form stored in memory under a specified name.
Forms, Listing Dynamic (Version II) Forms, Listing Dynamic (Version II) Purpose Lists all previously created forms, including the form size in bytes, used by each form name. Mode Graphics with an Extended Graphics Command selected Format (cc) IFORM,L (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. IFORM,L The command to list the forms in memory. Enter IFORM,L. (cc)G Terminator.
Chapter 2 Command Codes Example 1 The following sample command illustrates forms construction after loading the AIAG form from memory. ^PY^-^F^^IFORM,EAIAG.
Forms, Predefined (Version II) Example 2 The following sample command illustrates forms construction after loading the Primary Metals form from memory. ^IFORM,EMETALS.QMS^G D9ABAB37401C^+D9ABAB37401C^+ 51403^+51403^+ B1834001^+B1834001^+ 06-441001-6075906-441001-60759^+ 0072818^+0072818^+ 3812038120 3740137401 1^+1^+ .034^+ 44.000^+ COIL^+ GA SJ EX 6M61X^ TRIAL COIL^+ REF.
Chapter 2 Command Codes Example 3 The following sample command illustrates forms construction after loading the Odette form from memory. ^IFORM,EODETTE.
Forms, Resetting Dynamic (Version II) Forms, Resetting Dynamic (Version II) Purpose Resets dynamic form memory by deleting all forms stored in memory. Mode Graphics with an Extended Graphics Command selected Format (cc) IFORM,R (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. IFORM,R The command to reset forms memory. Enter IFORM,R. Comments Standard predefined forms will not be deleted from forms memory with this command.
Chapter 2 Command Codes Comments Some host systems automatically generate forms control codes such as CR or LF after a specific number of characters. These host generated forms control codes could prematurely terminate the graphics command sequence. The Free Format command allows the Code V to accept incoming data as one continuous stream even though the data stream may include host generated forms control codes. Free Format is available when the Code V is in the Graphics Mode.
Free Format Enable, Non-Graphics Free Format Enable, Non-Graphics Purpose Permits the Code V to override host-generated paper motion commands when not in Graphics Mode. Mode Normal Format (cc) PF (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. PF Specifies the Enable Non-Graphics Free Format command; enter PF. (cc)- Terminator.
Chapter 2 Command Codes Example The example below illustrates the use of the Enable NonGraphics Free Format command: ^PF^-(LF)(LF)(LF)(LF)^PY^-F^-^M02,02,100 data for form one ^*^X extraneous, unwanted host data^A^M01,01,000 more form one data ^-(LF)(LF)(LF)(FF)^PN^-^*^*(LF)(LF) ^PY^-^F^-^M02,02,000 data for form two, etc^In this example, all of the host-generated line and form feed commands, represented by (LF) and (FF), are ignored and paper motion is controlled by the Code V standard graphics format
Graphics Mode Enable Graphics Mode Enable Purpose Enables use of Graphics Mode commands. Mode Normal Format (cc) PY (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. PY Specifies the Graphics Mode Enable command; enter PY. (cc)- Terminator. Enter the SFCC for your Code V configuration immediately followed by - (the Graphics Mode CR) or other valid terminator.
Chapter 2 Command Codes Graphics Mode Disable Purpose Exits the Code V from Graphics Mode and returns to the Normal Mode. Mode Graphics Format (cc) PN (cc)- Example (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. PN Specifies the Graphics Mode Disable command; enter PN. (cc)- Terminator. Enter the SFCC for your Code V configuration immediately followed by - (Graphics Mode CR) or other valid terminator.
Ignore Data Ignore Data Purpose Instructs the Code V to ignore data until a (cc)A command is received. (See Comments below.) Mode Graphics with a Standard Graphics Command selected Format (cc) X data (cc)A Note (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. X Specifies the Ignore Data command. Enter X to ignore all subsequent characters until the Ignore Data command is disabled. data Represents the data.
Chapter 2 Command Codes Interrupt Purpose In cases where a single command sequence exceeds the buffer capacity, an interrupt can be used to break the command sequence and specify the position where the sequence begins printing again. Mode Graphics with or without an Extended Graphics Command selected Format (cc) I dis [(cc)-] Note (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. I Specifies the Interrupt command. Enter I.
Interrupt The I command can also be used for vertical positioning. Use the I command to skip to a new vertical position and print the data. Interrupt commands also can be included in a Vertical Duplication command sequence. Like the alphanumeric commands, the Interrupt command also enables extended graphics functions, if not already in an extended graphics sequence. To complete the printing of all interrupted command sequences, use ^I000^- or no ^I command in the last command sequence.
Chapter 2 Command Codes Justification, Vertical Purpose Specifies a lower vertical print position relative to the print position of the alphanumeric command. This feature is useful for positioning data within boxes or columns on a form. Mode Graphics with an Extended Graphics Command selected Format (cc) J jus (cc)- Note (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. J The Vertical Justification command. Enter J.
Justification, Vertical Example The following sample commands illustrate character justification changes.
Chapter 2 Command Codes Line Feed Purpose Performs a line feed (hex 0A) and a carriage return function when used to terminate a standard graphics command. Mode Graphics with a Standard Graphics Command selected Format (cc)* (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. * The graphics LF mnemonic. Enter *.
Line Spacing Line Spacing Purpose Selects a new line spacing in lines per inch (lpi). Mode Graphics with a Standard Graphics Command selected Format (cc) @ L newlpi (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. @ Specifies one of the @ commands. Enter @ to begin an @ command function. L Specifies the Line Spacing command. Enter L to change the line spacing. newlpi Represents the line spacing parameter.
Chapter 2 Command Codes Note Example Values above 20 (except 72) default to 18. Values selected but not shown on the table are rounded to the next higher value. For example, selecting a line spacing code of 05, would be rounded up to 06. The following example illustrates different line spacings. ^PY^-^F^Standard Characters in the Graphics Mode^* at the standard line spacing^* of 6 lines per inch.^* ^@L08^-Standard Characters in the Graphics Mode^* at the new line spacing^* of 8 lines per inch.
Lines, Dashed The LD command is ignored if the length parameter is zero plus zero dots. vert Defines the vertical length of the line in tenth inches and dot rows. Enter a three-digit vertical length value ranging from 000 through 999 to define a vertical length of 00.0 through 99.9 inches. Add a fourth digit ranging from 0 through 9 to specify 0 through 9 additional dot rows of length.
Chapter 2 Command Codes Example The following examples illustrate dashed lines. Note that changing the horizontal and vertical line length parameter values constructs a variety of dashed vertical and horizontal lines in varying line thicknesses. With horizontal lines, the horizontal length parameter actually specifies line length and the vertical length parameter determines line thickness.
Lines, Solid Lines, Solid Purpose Produces solid lines. Mode Graphics with an Extended Graphics Command selected Format (cc) LS horz vert (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. LS The Solid Line command. Enter LS. horz Defines the horizontal line length in tenth inches and dot columns. Enter a three-digit horizontal length value ranging from 000 through 999 to define a horizontal length of 00.0 through 99.9 inches.
Chapter 2 Command Codes Comments Line drawing is positioned by the parameters or commands of an alphanumerics command sequence (such as horizontal tabs, the justification parameter, etc.). Consequently, an alphanumerics command must precede a line drawing command. Using appropriate values for the horizontal and vertical line length parameters constructs a variety of vertical and horizontal lines in varying line thicknesses.
Logo Generation (Version II) Logo Generation (Version II) Purpose Provides eight pre-designed logos and symbols in different sizes and rotations totaling 14 options. Logo Generation is used in conjunction with the Pixel Expansion command described on page 103. Mode Graphics with an Extended Graphics Command selected Format (cc) ILOGO, value (cc)G (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. ILOGO, The Logo Generation command.
Chapter 2 Command Codes Comments The Pixel Expansion (IPEXP) command, described on page 103, may be used with all logos printed using the ILOGO command. Logos and symbols created using the z command (described on page 118) are still available and do not conflict with the ILOGO command. Do not use any alphanumeric-rotation commands with ILOGO symbols and logos. Example The following program and print sample illustrate how the copyright symbol (value 41 from Table 14) is called using the ILOGO command.
Pixel Expansion (Version II) Example 1 The following example of the command used in the Standard Graphic mode, will print A through F with C underlined. The hex 08 is the control code for a backspace. Note The “Control Code 08” setting for the LinePrinter+ emulation must be set to “Backspace” in order for the Code V to recognize the hex code. Refer to your User’s Guide for details.
Chapter 2 Command Codes (cc)G The required terminator for the IPEXP command. Enter the SFCC for your Code V configuration followed by a G to end the IPEXP command sequence. Comments Only use the IPEXP command in conjunction with graphics plotting and symbols which were created using the ILOGO command (page 101), the Plotting Graphics Q command (page 105), and the Symbols command (page 118).
Plotting Graphics (Columns) Plotting Graphics (Columns) Purpose Creates logos or other graphic patterns by plotting in dotaddressable columns. Plotting Graphics (Columns) replaces the “Logo” command from IGP-110/210/410. Do not confuse this graphics plot command, (cc)Q, with the odd dot plot command, (cc)Q, discussed on page 107.The Graphics Plot command is effective when an Extended Graphics Command is selected and plots in vertical data bytes (columns).
Chapter 2 Command Codes Summing the values determines the data for each column of the logo. Figure 3 shows the decimal value sums for each data byte (column) for the arrow pattern illustrated. Each byte was calculated first in decimal and then converted to the equivalent hexadecimal value (using the ASCII chart in Appendix A). These hexadecimal values are then entered in the data parameter for the Q command.
Plotting Graphics (Rows) Plotting Graphics (Rows) Purpose Allows you to address and print any individual dot position using odd and even dot plot commands. The odd and even dot plot addresses each dot position using a row method (as opposed to the column method created in Extended Graphics as described on page 105). Plotting Graphics (Rows) replaces the “Plot” command from IGP110/210/410. Do not confuse the graphics plot command, (cc)Q, with the odd dot plot command, (cc)Q, discussed below.
Chapter 2 Command Codes Even dot plot (high density plotting) is selected with the Even Dot Plot command, (cc)C data (cc)G. Even dot plot works in conjunction with the Odd Dot Plot command. The odd and even numbered dot columns are addressed to double the horizontal density. Plot Data Format You must define each byte for a complete line of data in plot format. Plot Data Byte Format explains how to define each byte along a data line.
Plotting Graphics (Rows) Byte/Character Column #1 Odd Dot Columns: - 1 3 5 7 9 11 8 7 6 5 4 3 2 1 Binary Pattern Decimal Value for the Row 1 11000100 196 C4 2 11000010 194 C2 3 11111111 255 FF 4 11111111 255 FF 5 11000010 194 C2 6 11000100 196 C4 Bit #: 128 Decimal Value: Dot Row - 64 32 16 08 04 02 01 Bit 7 and 8 may be “0” or “1” in Plot Mode. LSB Figure 4.
Chapter 2 Command Codes Reset Purpose Resets the Code V to the power-up configuration. Mode Graphics with a Standard Graphics Command selected Format (cc) @ R (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. @ Specifies one of the @ commands. Enter @ to begin an @ command function. R Specifies the Reset command. Enter R to reset the printer to the power-up configuration. (cc)- Graphics Mode CR.
Reverse Print Comments The R command is input as part of the data in one of the alphanumeric commands. The R command must be turned on and off by command. Any character data entered between the reverse print on and off commands is printed in reverse print. However, when the alphanumeric command sequence is terminated, reverse printing is also terminated. Shading (page 114) or shading mask (page 116) backgrounds are also available with the R command.
Chapter 2 Command Codes Scaling Purpose Selects a new line spacing and different horizontal by vertical (H x V) dot density from the standard 120 x 72 base density. (See Comments below.) Mode Graphics with a Standard Graphics Command selected Format (cc) @ M scale 00 (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the SFCC for your Code V configuration. @ Specifies one of the @ commands. Enter @ to begin an @ command function. M Specifies the Scaling command.
Scaling Table 15.
Chapter 2 Command Codes Setup Files Feature Purpose Allows the printer to be automatically configured on startup or reset using a specific setup file. Comments This file is stored in Flash Memory and contains any valid emulation command; e.g. load forms, select character. The file is loaded in memory once and remains until replaced. The file is replaced by overwriting with a new configuration or deleted by loading a null configuration file.
Shading Example The following sample commands illustrate shading.
Chapter 2 Command Codes Shading Mask Purpose Activates the shading feature with a specific shading mask. Mode Graphics with an Extended Graphics Command selected Format (cc) KL mask data (cc)KH (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. KL The Shading Mask command. Enter KL to turn on the shading mask feature. mask Represents the shading mask factor.
Shading Mask Example The following sample commands illustrate shading. Four mask shading factors are available to produce vertical stripes (KL00), horizontal stripes (KLFF), slanted stripes upper right to lower left (KL01), and slanted stripes upper left to lower right (KL04). For additional patterns, see Appendix B.
Chapter 2 Command Codes Special Function Control Code Change Purpose Changes the current Special Function Control Code (SFCC). Mode Graphics with a Standard Graphics Command selected Format (cc) N x (cc)(cc) Represents the current Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. N Specifies the SFCC Change command. Enter N. x Represents the new SFCC. Enter the ASCII character for the new SFCC.
Symbols, Creating Standard User Defined data The data required to define the symbol. Each dot row of a standard size symbol contains three character cells comprised of four dot rows each, which equals a total of 12 dots per row. Since the standard size symbol can only be 12 dot rows by 12 dot columns, the maximum number of character cells used to define a standard size symbol is 36 (12 dot rows X 3 character cells per row).
Chapter 2 Command Codes Table 17. Hex Codes and Dot Patterns ASCII Hex Value Binary Code 0 0000 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 9 1001 A 1010 B 1011 C 1100 D 1101 E 1110 F 1111 Example The following example illustrates the creation of the standard size Registered Trademark symbol defined for “a.” The symbol is 12 dot columns wide by 12 rows high.
Symbols, Creating Expanded User Defined Symbols, Creating Expanded User Defined Purpose To create specialized expanded symbols. An optional fill command can define large expanded symbols. Mode Graphics with an Extended Graphics Command selected Format (cc) z x ht wd data [f n pattern] (cc)G (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. z The Create Symbol command. Enter lowercase z. x Represents the symbol being defined.
Chapter 2 Command Codes (cc)G Terminator. Enter the SFCC for your Code V configuration immediately followed by G, the universal terminator, or another valid Graphics Mode command. If a syntax error occurs, or invalid data is entered in the command, the remaining data in the command sequence is ignored until a sequence terminator or SFCC is found. If the printer power is turned off the printer resets, and all expanded symbol data is deleted. Comments The zx command creates an expanded-size symbol.
Symbols, Printing Symbols, Printing Purpose Prints specialized Standard or Expanded sized symbols previously created using the zx commands described on page 118 and page 121, respectively. Mode Graphics with an Extended Graphics Command selected Format (cc) Z n (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. Z The Print Symbol command. Enter uppercase Z. n Represents the symbol to print. Refer back to Table 16.
Chapter 2 Command Codes Comments The standard alphanumeric command must be input prior to the Z command. The alphanumeric height and width parameters do not affect the symbol. Horizontal tabs and justification commands and parameters do affect symbol position. Specialized standard and expanded symbols are printable only in the horizontal orientation and are printed according to the size specification when the symbol was created.
Tab, Horizontal Tab, Horizontal Purpose Specifies a new horizontal print position relative to the left page margin. Mode Graphics with a standard or an Extended Graphics Command selected Format (cc) T dis [(cc)-] (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. T The Horizontal Tab command. Enter T. ^T as a Standard Graphics command sets a “permanent” left Graphics margin for the start of all Extended Graphics command sequences.
Chapter 2 Command Codes Examples The following sample shows an Extended Graphics command placed before and after the ^T command. Notice that the left margin changes: ^M1010ABC^^T0100^^M1010ABC^ABC ABC Permanent Left Margin The following sample commands illustrate horizontal tabs.
Tab, Vertical ^PY^^E05,05,000IGP^T025,5IGP^^PN^- ^PY^-^F^^U06,05,000UP^U03,03,070^T010,0SIDE^U05,05,000^T022,0DOWN^^O^-^PN^- Tab, Vertical Purpose Performs a vertical tab (VT, hex 0B) function to advance the paper to the next vertical tab position when used to terminate a Standard Graphics Command. Mode Graphics with a Standard Graphics Command selected Format (cc)+ (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration.
Chapter 2 Command Codes Underlined Print Purpose Selects underlined printing. Mode Graphics with a Standard Graphics Command selected Format (cc) @ U (cc)(cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. @ Specifies one of the @ commands. Enter @ to begin an @ command function. U Specifies the Underlined Print command. Enter U and all characters on the line are underlined.
Wait For Online Wait For Online Purpose Causes the Code V to discontinue processing data until you put the printer offline and then back online. Mode Graphics with a Standard Graphics Command selected Format (cc) @ W (cc)- Note (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. @ Specifies one of the @ commands. Enter @ to begin an @ command function. W Specifies the Wait For Online command.
Chapter 130 2 Command Codes
3 Bar Codes Overview A bar code is a graphic representation of alphanumeric characters. Bar codes are produced by entering a bar code command to the Code V in the Graphics mode using an Extended Graphics command. You can print the bar codes horizontally, vertically, with or without a human readable data field, with default bar/space ratios, or with variable ratios. The human readable data field may be printed using any of the Extended Graphics command fonts available with the (cc)S or (cc)IFONT commands.
Chapter 3 Overview For horizontal bar codes, the graphics height command specifies bar code height; for vertical bar codes, graphics width specifies bar code height. Bar code height/width parameters are specified in the two-digit Extended Graphics command. A decimal point is automatically interpreted between the first and second character digits. HEIGHT DATA FIELD (No readable data field) DATA FIELD (No Readable Data Field) HEIGHT Figure 5.
Bar Code Size/Height Requirements Bar Code Command Format Bar code commands are Extended Graphics commands which must occur within the Graphics Mode and must be introduced by an SFCC and one of the four alphanumeric commands (^M, ^V, ^E, and ^U). Data provided in the alphanumeric command sequence identifies specific height, width, and justification information used to define bar code length (height) and position. Complete alphanumeric command information is explained in the “Commands” chapter.
Chapter 3 Bar Code Command Format Standard Bar Code Command Format Default Ratio: (cc) dir p type data (cc)G Variable Ratio: (cc) dir p [9] [:] type [ratio] data (cc)G (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. dir Represents the direction of the bar code. Enter B for horizontal bar codes; enter C for vertical bar codes.
IBARC, (Version II) Bar Code Command Format IBARC, (Version II) Bar Code Command Format Default Ratio: (cc) IBARC, type, loc, data (cc)G Variable Ratio: (cc) IBARC, type, [R [D] ratio,] loc, data (cc)G When using the IBARC, bar code command format, the type code changes from a single alphanumeric value to a mnemonic as shown in Table 18.
Chapter 3 Bar Code Command Format current font as selected by the (cc)S or (cc)IFONT commands or the default font selected. This parameter is optional for POSTNET. data Represents the data to be bar coded. The maximum amount of data depends on which bar code has been selected from Table 18. (cc)G Terminates the bar code command. Enter the SFCC for your Code V configuration immediately followed by any valid command character or G, the universal sequence terminator.
IBARC, (Version II) Bar Code Command Format Example 4. Code 39 bar code rotated 270° with embedded printable data field. ^PY^-^E05,05,000^IBARC,C39,E,12345^G^-^PN^- Example 5. Code 39 bar code rotated 90° with no printable data field. ^PY^-^V05,05,000^IBARC,C39,N,12345^G^-^PN^- Example 6.
Chapter 3 Bar Codes Bar Codes When using standard bar code types (either (cc) B or (cc) C) select from the Standard Type Code column in Table 18. When using the IBARC bar code, select the appropriate type code from the IBARC Type Code column. Table 18.
IBARC, (Version II) Bar Code Command Format Table 18.
Chapter 3 Bar Codes Dark Print Dark print bar codes double strike the wide bars, resulting in darker looking bar codes. The extra darkness improves the Print Contrast Ratio (PCR) and effectively extends the life of the ribbon. (The PCR describes the difference of light reflection between bars and spaces as a measurement of light/dark contrast in order to judge when a printed bar code is not dark enough to be read accurately by a scanner.
Codabar Codabar The Codabar structure is shown in Figure 8 and described on the following pages. STARTING POSITION OPTIONAL READABLE DATA FIELD QUIET ZONE START CODE DATA FIELD LOWER GUARD BAND STARTING POSITION STOP CODE HEIGHT QUIET START ZONE CODE DATA FIELD STOP QUIET CODE ZONE LOWER GUARD BAND OPTIONAL READABLE DATA FIELD QUIET ZONE HEIGHT Figure 8. Codabar Structure Quiet Zone Quiet zones extend on both ends of the bar code to permit the scan to begin and end in a blank area.
Chapter 3 Bar Codes Standard Codabar Command Format Refer to page 135 for the IBARC, command format and definitions. Default Ratio: (cc) dir p D data (cc)G Variable Ratio: (cc) dir p [9] [:] D [ratio] data (cc)G (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. dir Represents the direction of the bar code. Enter B for horizontal bar codes; enter C for vertical bar codes. p Prints the optional readable data field.
Codabar ratio Note Optional parameter (used in conjunction with 9 above) representing the ratios for variable ratio bar codes. The default ratios are overridden by the variable ratio feature. The ratio data must be hexadecimal numbers from 0 through 9 or A through F; the Code V automatically checks the input for validity. If an invalid character is found in the ratio, an error message is generated. The Code V automatically checks ratio data for validity only within the allowable hexadecimal range.
Chapter 3 Bar Codes Table 20. Codabar Character Set Character Hex Character Hex 0 30 + 2B 1 31 - 2D 2 32 . 2E 3 33 / 2F 4 34 $ 24 5 35 : 3A 6 36 A* 41 7 37 B* 42 8 38 C* 43 9 39 D* 44 *A, B, C and D are start/stop codes only. Codabar Examples The following command generates the horizontal variable ratio Codabar bar code below. In the command sequence, Graphics Mode data is italicized and bar code data is boldface.
Codabar The following command generated the horizontal Codabar bar code below using OCR-B font, double the default ratio, and data of A2468B: ^PY^-^M10,10,000^KF^BB9D24681211A2468B^G^KF^-^PN^- The following command generated the vertical Codabar bar code below using standard 10 cpi font with the standard default ratio and data of A2468B: ^PY^-^M10,10,000^KF^CYDA2468B^G^KF^-^PN^- The following command generates the same vertical Codabar bar code described above, except that double the default ratio is u
Chapter 3 Bar Codes Code 39 The Code 39 structure is shown in Figure 9 and described on the following pages. STARTING POSITION QUIET ZONE START CODE OPTIONAL READABLE DATA FIELD FIELD DATA OPTIONAL CHECK DIGIT OPTIONAL CHECK DIGIT STARTING POSITION LOWER GUARD BAND QUIET START ZONE CODE DATA FIELD STOP QUIET CODE ZONE STOP CODE HEIGHT LOWER GUARD BAND OPTIONAL READABLE DATA FIELD QUIET ZONE HEIGHT Figure 9.
Code 39 Readable Data The optional readable data field provides a readable interpretation of the bar code data. Readable data is printed below the horizontal bar code symbol and to the left of a vertical bar code symbol. The lower guard band is provided when the readable data field is selected. Check Digit Code 39 Type C inserts the modulo-43 check digit into the bar code. This feature provides a means of verifying accurate scanning.
Chapter 3 Bar Codes If the : parameter is specified, the ratios are represented in printer dots instead of Code V dots (60 x 72 dpi). type Selects the bar code type. Code 39 types available are shown in Table 22. Enter the Type Code corresponding to the Code 39 type desired. Table 22.
Code 39 data The bar code data. Code 39 encodes from 1 through 40 characters from the Code 39 full ASCII Character Set shown in Table 23. (cc)G Terminates the bar code command. Enter the SFCC for your Code V configuration immediately followed by any valid command character or G, the universal sequence terminator. Table 23.
Chapter 3 Bar Codes Code 39 Examples The following command generates the horizontal default ratio Code 39 bar code shown below. In the command sequence, graphics mode data is italicized and bar code data is boldface. Refer to the “Commands” chapter for a detailed description of alphanumeric commands. ^PY^-^M10,10,000^KF^BYA$25NW20%^G^KF^-^PN^- ^PY^- enabled the graphics command sequence. ^M introduced the standard alphanumeric command. The character height selected was 1.
Code 39 The following command generated the vertical Code 39 bar code below using standard 10 cpi font, the standard default ratio, and data of $25: ^PY^-^M10,10,000^KF^CYB$25^G^KF^-^PN^- The following command generates the same vertical Code 39 bar code described above, except that double the default ratio is used: ^PY^-^M10,10,000^KF^CY9B248A$25^G^KF^-^PN^- 151
Chapter 3 Bar Codes Code 93 The Code 93 structure is shown in Figure 10 and described below. STARTING POSITION QUIET ZONE START CODE OPTIONAL READABLE DATA FIELD DATA FIELD OPTIONAL CHECK DIGIT OPTIONAL CHECK DIGIT STARTING POSITION LOWER GUARD BAND QUIET START ZONE CODE DATA FIELD STOP QUIET CODE ZONE STOP CODE HEIGHT LOWER GUARD BAND OPTIONAL READABLE DATA FIELD QUIET ZONE HEIGHT Figure 10. Code 93 Structure Quiet Zone Both ends of the bar code structure require blank quiet zones.
Code 93 Readable Data The optional readable data field provides a readable interpretation of the bar code data. Readable data is printed below the horizontal bar code symbol and to the left of a vertical bar code symbol. The lower guard band is provided when the readable data field is selected. Check Digit Code 93 inserts the modulo-43 check digit into the bar code. This feature provides a means of verifying accurate scanning.
Chapter 3 Bar Codes i Type code for Code 93. Enter i. ratio Optional parameter (used in conjunction with parameter 9) representing the ratios for variable ratio bar codes. The default ratios are overridden by the variable ratio feature. The ratio data must be hexadecimal numbers from 0 through 9 or A through F. The Code V automatically checks the input for validity. If an invalid character is found in the ratio, an error message is generated. Code 93 bar codes use eight-digit ratios.
Code 128 Code 128 Code 128 includes three subsets: A, B, and C. All contain the same bar patterns, except for the unique start character instructing the bar code reader which subset is being used. Special characters are available for switching between the subsets in order to generate the shortest possible bar code. The Code 128 structure is shown in Figure 11 and described below.
Chapter 3 Bar Codes Control codes, identified by a “greater than” (>) symbol, introduce special function control codes so that you can manually supply control codes to shift between subsets as described in the “Mode Selection” section, below. The bars and spaces vary in width from 1 through 4 modules. Each character consists of 3 bars and 3 spaces that total 11 modules. Readable Data The optional readable data field provides a readable interpretation of the bar code data.
Code 128 Manual Mode Operation In the manual mode, you are responsible for correct implementation of Code 128 in accordance with the Code 128 Standards Manual. The Code 128 character set is shown in Table 26. The Alternate column identifies the special subset switch characters that switch the Code V to the manual mode. These > characters are also horizontally aligned with functions also performed in an automatic mode. For example, >/ represents SI in subset A, o in subset B, and value 79 in subset C.
Chapter 3 Bar Codes Subset A. Subset A operates in the manual mode only. Subset A data characters include mostly normal printable ASCII characters which require no subset switching and can be entered directly. For example, the data ABC123 in subset A is input in the bar code command as: ^BNZ>7ABC123^. Switching to another subset will not generate a shorter bar code. Non-printable control codes in subset A can be generated by either: 1. using the subset B lowercase character equivalent from Table 26 2.
Code 128 If the : parameter is specified, the ratios are represented in printer dots instead of IGP dots (60 x 72 dpi). Z Type code for Code 128. Enter Z. ratio Optional parameter (used in conjunction with 9 above) representing the ratios for variable ratio bar codes. Default ratios are overridden by the variable ratio feature. The ratio data must be hexadecimal numbers from 0 through 9 or A through F; the Code V automatically checks the input for validity.
Chapter 3 Bar Codes Table 26. Code 128 and UCC/EAN-128 Character Set Value 160 Subset Subset Subset B C A Value Subset A Subset B Subset C Alternate 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 SP ! " # $ % & ’ ( ) * + ’ . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C SP ! " # $ % & ’ ( ) * + ’ .
Code 128 Code 128 Examples The following command generates the horizontal default ratio Code 128 bar code below in the automatic mode. In the command sequence, graphics mode data is italicized and bar code data is boldface. Refer to the “Commands” chapter for a detailed description of alphanumeric commands. ^PY^-^M10,10,000^KF^BNZABC123456^G^KF^-^PN^- ^PY^- enabled the graphics command sequence. ^M introduced the standard alphanumeric command. The character height selected was 1.
Chapter 3 Bar Codes The command below generates the following vertical Code 128 bar code with data of 123@25% in manual mode, subset A. ^PY^-^M10,10,000^KF^CNZ>7123@25%^G^KF^-^PN^- The command below generates the same vertical Code 128 bar code in the automatic mode, subset B. Because less than 4 consecutive numeric digits were provided in the data, no subset switching occurred, and the bar code remained in subset B.
EAN 8 EAN 8 The EAN 8 bar code is related to the Universal Product Code (UPC) group. EAN 8 can be printed with or without a 2- or 5-digit add-on data field, which is placed at the end of the bar code. The EAN 8 (European Article Number) bar code structure is shown in Figure 12 and described on the following pages.
Chapter 3 Bar Codes Readable Data The human readable data field provides a readable interpretation of the bar code data. Readable data is printed below the horizontal bar code symbol, and to the left of a vertical bar code symbol. Check Digit The modulo-10 check digit is calculated and inserted in the bar code symbol. The check digit provides the means to verify accurate scanning. Standard EAN 8 Command Format Refer to page 135 for the IBARC, command format and definitions.
EAN 8 If the : parameter is specified, the ratios are represented in printer dots instead of IGP dots (60 x 72 dpi). type Represents the bar code type. Enter U for standard EAN 8; enter o (lowercase alpha o) for EAN 8 plus a 2-digit add-on data field; enter p for EAN 8 plus a 5-digit add-on data field. ratio Optional parameter (used in conjunction with 9 above) representing the ratios for variable ratio bar codes. Default ratios are overridden by the variable ratio feature.
Chapter 3 Bar Codes EAN 8 Examples The following command generated the horizontal default ratio EAN 8 bar code below. In the command sequence, graphics mode data is italicized and bar code data is boldface. Refer to the “Commands” chapter for a detailed description of alphanumeric commands. ^PY^-^M10,10,000^KF^BYU2244595^G^KF^-^PN^- ^PY^- turned on the graphics command sequence. ^M introduced the standard alphanumeric command. The character height selected was 1.
EAN 13 EAN 13 The EAN 13 bar code is related to the Universal Product Code (UPC) group. EAN 13 can be printed with or without a 2- or 5-digit add-on data field, which is placed at the end of the bar code. The EAN 13 (European Article Number) bar code structure is shown in Figure 13 and described on the following pages.
Chapter 3 Bar Codes Data Field The bar code symbol uses a series of varying width bars and spaces to represent a limited character set (numbers 0-9 and Special Characters Start, Center, and Stop). The bars and spaces vary in width from 1 through 4 modules. Each character consists of 2 bars and two spaces that total 7 modules. The symbol coding of the left data field is different from the right data field to permit read direction sensing.
EAN 13 9 or : Optional parameter to select a variable ratio bar code. Enter the number 9 to select a variable ratio bar code. This feature overrides the default EAN 13 ratio 1:1:2:2:3:3:4:4. If the : parameter is specified, the ratios are represented in printer dots instead of IGP dots (60 x 72 dpi). type Represents the bar code type. Enter T for standard EAN 13; enter m for EAN 13 plus a 2-digit add-on data field; enter n for EAN 13 plus a 5-digit add-on data field.
Chapter 3 Bar Codes (cc)G Terminates the bar code command. Enter the SFCC for your Code V configuration immediately followed by any valid command character or G, the universal sequence terminator. EAN 13 Examples The following command generated the horizontal default ratio EAN 13 bar code below. In the command sequence, graphics mode data is italicized, and bar code data is boldface. Refer to the “Commands” chapter for a detailed description of alphanumeric commands.
German Interleaved 2/5 German Interleaved 2/5 The German Interleaved 2/5 bar code structure is shown in Figure 14 and described on the following pages. HEIGHT STARTING POSITION OPTIONAL READABLE DATA FIELD QUIET ZONE START CODE DATA FIELD OPTIONAL CHECK DIGIT STARTING POSITION OPTIONAL CHECK DIGIT LOWER GUARD BAND STOP CODE QUIET ZONE QUIET START ZONE CODE DATA FIELD STOP QUIET CODE ZONE LOWER GUARD BAND HEIGHT OPTIONAL READABLE DATA FIELD Figure 14.
Chapter 3 Bar Codes Readable Data The optional readable data field provides a readable interpretation of the bar code data. Bar code data is printed below the horizontal bar code symbol and to the left of a vertical bar code symbol. The lower guard band is provided when the readable data field is selected. Check Digit The modulo-10 check digit is automatically calculated and inserted in the bar code symbol. The check digit provides the means to verify accurate scanning.
German Interleaved 2/5 If the : parameter is specified, the ratios are represented in printer dots instead of Code V dots (60 x 72 dpi). type Represents the bar code type. Select one of the German Interleaved 2/5 bar code type codes shown in Table 30. Table 30.
Chapter 3 Bar Codes data The bar code data. German Interleaved 2/5 encodes either 11 or 13 characters. The characters available for the data field are 0 through 9 (hex 30 through 39). (cc)G Terminates the bar code command. Enter the SFCC for your Code V configuration immediately followed by any valid command character or G, the universal sequence terminator. German Interleaved 2/5 Examples The following command generates the horizontal default ratio German Interleaved 2/5 bar code shown below.
German Interleaved 2/5 The following command generated the 11-digit horizontal German Interleaved 2/5 bar code below using standard font, the default ratio, and data of 10518475232: ^PY^-^M05,05,000^KF^IBARC,POSTAGI,B,10518475232^G^KF^-^PN^- The following command generated the 13-digit vertical German Interleaved 2/5 bar code below using the .
Chapter 3 Bar Codes Identicon The Identicon bar code structure is shown in Figure 15 and described on the following pages. HEIGHT STARTING POSITION OPTIONAL READABLE DATA FIELD STARTING POSITION QUIET START ZONE CODE LOWER GUARD BAND DATA FIELD QUIET ZONE START CODE DATA FIELD STOP CODE QUIET ZONE STOP QUIET CODE ZONE LOWER GUARD BAND HEIGHT OPTIONAL READABLE DATA FIELD Figure 15.
Identicon Table 31. Identicon Symbol Coding Character Code 0 00110 1 10001 2 01001 3 11000 4 00101 5 10100 6 01100 7 00011 8 10010 9 01010 Start 110 Stop 101 Standard Identicon Command Format Refer to page 135 for the IBARC, command format and definitions. Default Ratio: (cc) dir p E data (cc)G Variable Ratio: (cc) dir p [9] [:] E [ratio] data (cc)G (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration.
Chapter 3 Bar Codes Table 32. Printable Data Field Fonts Font Gap p code Standard 10 cpi 3 dots Y OCR-A 3 dots O OCR-A .1-inch S OCR-B 3 dots B OCR-B .1-inch T None 9 or : N Optional parameter to select a variable ratio bar code. Enter the number 9 to select a variable ratio bar code. This feature overrides the default Identicon ratio, 1:1:3. If the : parameter is specified, the ratios are represented in printer dots instead of Code V dots (60 x 72 dpi). E Type code for Identicon.
Interleaved 2/5 Interleaved 2/5 The Interleaved 2/5 bar code structure is shown in Figure 16 and described on the following pages. HEIGHT STARTING POSITION OPTIONAL READABLE DATA FIELD QUIET ZONE START CODE DATA FIELD OPTIONAL CHECK DIGIT STARTING POSITION OPTIONAL CHECK DIGIT LOWER GUARD BAND STOP CODE QUIET ZONE QUIET START ZONE CODE DATA FIELD STOP QUIET CODE ZONE LOWER GUARD BAND HEIGHT OPTIONAL READABLE DATA FIELD Figure 16.
Chapter 3 Bar Codes Readable Data The optional readable data field provides a readable interpretation of the bar code data. Readable data is printed below the horizontal bar code symbol and to the left of a vertical bar code symbol. The lower guard band is provided when the readable data field is selected. Check Digit An optional check digit is inserted for type k and l bar codes. The optional check digit is automatically calculated and inserted in the bar code symbol.
Interleaved 2/5 If the : parameter is specified, the ratios are represented in printer dots instead of Code V dots (60 x 72 dpi). type Represents the bar code type. Select one of the Interleaved 2/5 codes shown in Table 34. Table 34.
Chapter 3 Bar Codes data The bar code data. Interleaved 2/5 encodes from 1 through 40 characters. The characters available for the data field are 0 through 9 (hex 30 through 39, respectively). If an odd number of characters are encoded, a leading zero is automatically inserted in the data field to change the number of characters to an even number. (cc)G Terminates the bar code command.
Interleaved 2/5 The following command generated the Interleaved 2/5 bar code below using OCR-B font, double the default ratio, and data of 2244595: ^PY^-^M10,10,000^KF^BB9L248A2244595^G^KF^-^PN^- The following command generates the vertical Interleaved 2/5 bar code below using standard 10 cpi font with the standard default ratio and data of 2244595: ^PY^-^M10,10,000^KF^CYK2244595^G^KF^PN^- 183
Chapter 3 Bar Codes MSI The MSI structure is shown in Figure 17 and described on the following pages. HEIGHT STARTING POSITION QUIET ZONE START CODE OPTIONAL READABLE DATA FIELD DATA FIELD CHECK DIGIT FIELD STARTING POSITION QUIET ZONE START CODE DATA FIELD STOP CODE OPTIONAL CHECK DIGIT QUIET ZONE LOWER GUARD BAND HEIGHT LOWER GUARD BAND STOP CODE QUIET ZONE OPTIONAL READABLE DATA FIELD Figure 17.
MSI Readable Data The optional readable data field provides a readable interpretation of the bar code data. Readable data is printed below the horizontal bar code symbol, and to the left of a vertical bar code symbol. The lower guard band is provided when the readable data field is selected. Check Digit The check digit provides the means of verifying accurate scanning.
Chapter 3 Bar Codes If the : parameter is specified, the ratios are represented in printer dots instead of IGP dots (60 x 72 dpi). type Represents the bar code type. As shown in Table 36, MSI Types F, G, H, I, and X are available. Enter the type code corresponding to the MSI bar code type desired. Table 36.
MSI data The bar code data. MSI encodes from 1 through 13 characters. The available characters for the data field are 0 through 9 (30 through 39 hex, respectively). (cc)G Terminates the bar code command. Enter the SFCC for your Code V configuration immediately followed by any valid command character or G, the universal sequence terminator. MSI Bar Code Examples The following command generates the horizontal default ratio MSI bar code shown below.
Chapter 3 Bar Codes The following command generates the vertical MSI bar code below using standard 10 cpi font, the standard default ratio, and data of 87654321: ^PY^-^M10,10,000^KF^CYF87654321^G^KF^-^PN^- The following command generates the same vertical MSI bar code above, except that double the default ratio is used: ^PY^-^M10,10,000^KF^CY9I224487654321^G^KF^-^PN^- 188
POSTNET POSTNET The POSTNET bar code structure is illustrated in Figure 18 and Figure 19 and described on the following pages. The POSTNET code can be a part of the address block and appear anywhere within a vertical 4-inch area across the length of the mail piece. The POSTNET bar code cannot use variable ratio and does not have a readable data field.
Chapter 3 Bar Codes QUIET ZONE STARTING POSITION Return Address Area 1/2" 4" START CODE ADDRESS BLOCK BAR CODE READ AREA BAR CODE DATA FIELD CHECK DIGIT STOP CODE QUIET ZONE Postage Area 1/2" NOTE: Illustration is not to scale. Figure 19.
POSTNET Quiet Zone The bar code structure requires a completely blank quiet zone which extends 4.75 inches from the right edge of the mail piece. In addition, a minimum quiet zone of 0.040-inch above and below the bar code data must also be provided. You must provide sufficient space for this zone. Start/Stop Code The start and stop codes are referred to as “framing bars” in POSTNET. The start and stop codes are each one tall bar, one identifying the leading and trailing end of the bar code.
Chapter 3 Bar Codes Standard POSTNET Command Format (cc) dir [N] * data (cc)G Default Ratio: Note (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. dir Represents the direction of the bar code. Enter B for horizontal bar codes. Enter C for vertical bar codes. N Provides a switch to turn off the readable data field. N or no input are the only options. * Type code for POSTNET. Enter *. data The bar code data.
Royal Mail Royal Mail The Royal Mail bar code, like POSTNET, is used for mailing applications. However, the bar code can encode full addresses on labels. Royal Mail bar codes are similar to POSTNET in terms of bar space and width, but have four different types of bars (Full Height, Ascender, Descender, and Tracker), whereas POSTNET only has two bar types (Tall and Short).
Chapter 3 Bar Codes Standard Royal Mail Command Format Default Ratio: (cc) dir [N] Y data (cc)G (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. dir Represents the direction of the bar code. Enter B for horizontal bar codes. Enter C for vertical bar codes. N Provides a switch to turn off the readable data field. N or no input are the only options. Y Type code for Royal Mail. Enter Y. data The bar code data.
Telepen Telepen The Telepen structure is shown in Figure 20 and described on the following pages. STARTING POSITION QUIET ZONE START CODE OPTIONAL READABLE DATA FIELD DATA FIELD OPTIONAL CHECK DIGIT OPTIONAL CHECK DIGIT STARTING POSITION LOWER GUARD BAND QUIET START ZONE CODE DATA FIELD STOP QUIET CODE ZONE STOP CODE HEIGHT LOWER GUARD BAND OPTIONAL READABLE DATA FIELD QUIET ZONE HEIGHT Figure 20. Telepen Structure Quiet Zone Both ends of the bar code structure require blank quiet zones.
Chapter 3 Bar Codes Readable Data The optional readable data field provides a readable interpretation of the bar code data. Bar code data is printed below the horizontal bar code symbol and to the left of a vertical bar code symbol. The lower guard band is provided when the readable data field is selected. Check Digit A mandatory modulo-127 check digit is inserted into the bar code. This feature provides a means of verifying accurate scanning.
Telepen If the : parameter is specified, the ratios are represented in printer dots instead of Code V dots (60 x 72 dpi). J The type code for Telepen. Enter J. ratio Optional parameter (used in conjunction with parameter : or 9) representing the ratios for variable ratio bar codes. The default ratios are overridden by the variable ratio feature. The ratio data must be hexadecimal numbers from 0 through 9 or A through F. The Code V automatically checks the input for validity.
Chapter 3 Bar Codes Table 38. Telepen Character Set ASCII Telepen ASCII Telepen ASCII Telepen ASCII Telepen NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US %U $A $B $C $D $E $F $G $H $I $J $K $L $M $N $O $P $Q $R $S $T $U $V $W $X $Y $Z %A %B %C %D %E SP ! " # $ % & ’ ( ) * + , — . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? Space /A /B /C /D /E /F /G /H /I /J /K /L — .
Telepen Telepen Examples The following command generates the horizontal default ratio Telepen bar code shown below. In the command sequence, graphics mode data is italicized and bar code data is boldface. See the "Commands" chapter for a detailed description of alphanumeric commands. ^PY^-^M10,10,010^BOJ1234567^G^-^PN^- ^PY^- enabled the graphics command sequence. ^M introduced the standard alphanumeric command. The character height selected was 1.0 inches and character width was selected at 1.0 inches.
Chapter 3 Bar Codes UCC/EAN-128 The UCC/EAN-128 structure is shown in Figure 21 and described on the following pages. STARTING POSITION QUIET ZONE START CODE OPTIONAL READABLE DATA FIELD DATA FIELD CHECK DIGIT FIELD CHECK DIGIT FIELD STARTING POSITION QUIET ZONE START CODE DATA FIELD STOP CODE QUIET ZONE LOWER GUARD BAND HEIGHT LOWER GUARD BAND OPTIONAL READABLE DATA FIELD STOP CODE QUIET ZONE HEIGHT Figure 21.
UCC/EAN-128 Table 39. UCC/EAN-128 Application Identifiers Application Identifier (AI) Content Format 00 Serial Shipping Container Code n2+n18 02 Item Num. of Goods Within Another Unit n2+n14 10 Batch or Lot Number n2+an..20 11 (*) Production Date (YYMMDD) n2+n6 13 (*) Packaging Date (YYMMDD) n2+n6 15 (*) Sell By Date (Quality) (YYMMDD) n2+n6 17 (*) Expiration Date (Safety) (YYMMDD) n2+n6 20 Product Variant n2+n2 21 Serial Number n2+an..
Chapter 3 Bar Codes Table 39.
UCC/EAN-128 Table 39. UCC/EAN-128 Application Identifiers (continued) Application Identifier (AI) Content Format 411 Bill To (Invoice To) Location Code Using EAN-13 n3+n13 412 Purchase From (Location Code of Party From Whom Goods Are Purchased) n3+n13 413 Ship For UCC/EAN Location Code n3+n13 414 EAN Location Code For Physical Identification n3+n13 420 Ship To (Deliver To) Postal Code Within a Single Postal Authority n3+an..
Chapter 3 Bar Codes Quiet Zone Both ends of the bar code structure require blank quiet zones. The quiet zones must be at least 0.25 inches wide and completely blank to ensure accurate reading of the start/stop codes and to prevent adjacent bar codes from overlapping. You must provide sufficient space on the form for the quiet zones. Start/Stop Codes The start and stop codes identify the leading and trailing ends of the bar code.
UCC/EAN-128 Refer to Figure 21. Using Level I syntax ^B (horizontal) or ^C (vertical clockwise rotation), the readable data appears below the bar code, reading in the direction of start code toward stop code. Using Level II syntax (^IBARC), the bar code may be oriented with any of the graphics commands ^M, ^V, ^U, or ^E; and the human-readable data may be positioned above or below the bars, still reading in the direction of start code toward stop code.
Chapter 3 Bar Codes Standard UCC/EAN-128 Command Format Refer to page 135 for the IBARC, command format and definitions. Default Ratio: (cc) dir p q data (cc)G Variable Ratio: (cc) dir p [9] [:] q [ratio] data (cc)G (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. dir Represents the direction of the bar code. Enter B for horizontal bar codes; enter C for vertical bar codes, rotated clockwise.
UCC/EAN-128 ratio Optional parameter (used in conjunction with 9 above) representing the ratios for variable ratio bar codes. Default ratios are overridden by the variable ratio feature. The ratio data must be hexadecimal numbers from 0 through 9 or A through F; the Code V automatically checks the input for validity. If an invalid character is found in the ratio, an error message is generated. UCC/EAN-128 bar codes use eight-digit ratios.
Chapter 3 Bar Codes Code UCC/EAN-128 Examples The following command generates the horizontal default ratio UCC/EAN-128 bar code below. In the command sequence, graphics mode data is italicized and bar code data is boldface. Refer to the “Commands” chapter for a detailed description of alphanumeric commands and dynamic forms generation. ^PY^- ^M10,10,000^KF^BYq0034567890123456789^G^KF^-^PN^- ^PY^- enabled the graphics command sequence. ^M introduced the standard alphanumeric command.
UCC/EAN-128 The command below generates the same vertical UCC/EAN-128 bar code, using Level II syntax. The standard graphics command ^V is used to rotate the bar code produced with Level II syntax. The rotation will be in a clockwise direction. The human-readable data is placed below the bar code with the B parameter.
Chapter 3 Bar Codes ^PY^-^F^^B^^M0101000 ^X titles using compressed print ^A ^T0010^J000^S4SHIP TO POSTAL CODE ^T0010^J170^S4STORE ^T0010^J340^S4SSCC-18 ^X UCC/EAN-128 bar codes ^A ^M0808^T0030^J020^KF^BYq420^[005^G^KF ^M0808^T0030^J190^KF^BYq911528^G^KF ^M1208^T0030^J360^KF^BYq00^[017^G^KF ^^,^^] 92614 34567890123456789 ^G^^,^^O^-^PN^- 210
UPC-A UPC-A The UPC-A bar code can be printed with or without a 2- or 5-digit add-on data field, which is placed at the end of the bar code. The UPC-A bar code structure is shown in Figure 22 and described on the following pages.
Chapter 3 Bar Codes Quiet Zone Quiet zones extend on both ends of the bar code to permit the scan to begin and end in a blank area. You are responsible for providing sufficient space on the form (minimum of 7 modules) for the right quiet zone. (A trailing quiet zone is provided automatically if an add-on code has been specified in the bar code command.) The number system character is printed automatically in the left quiet zone; the check digit is printed automatically in the right quiet zone.
UPC-A Standard UPC-A Command Format Refer to page 135 for the IBARC, command format and definitions. Default Ratio: (cc) dir p type data (cc)G Variable Ratio: (cc) dir p [9] [:] type [ratio] data (cc)G (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. dir Represents the direction of the bar code. Enter B for horizontal bar codes; enter C for vertical bar codes. p Prints the optional readable data field.
Chapter 3 Bar Codes type Represents the bar code type. Enter P for standard UPC-A; enter a for UPC-A plus a 2-digit add-on data field; enter b for UPC-A plus a 5-digit add-on data field; enter 0 for UPC-A 80%; enter 1 for UPCA 100%. ratio Optional parameter (used in conjunction with 9 above) representing the ratios for variable ratio bar codes. Default ratios are overridden by the variable ratio feature. However, unique variable ratios for UPC-A bar codes easily generate large, out-ofspec bar codes.
UPC-A UPC-A Examples The following command generated the horizontal default ratio UPC-A bar code below. In the command sequence, graphics mode data is italicized and bar code data is boldface. Refer to the “Commands” chapter for a detailed description of alphanumeric commands. ^PY^-^M10,10,000^KF^BYP12345654321^G^KF^-^PN^- ^PY^- turned on the graphics command sequence. ^M introduced the standard alphanumeric command. The character height selected was 1.0 inches and character width was selected at 1.
Chapter 3 Bar Codes UPC-E UPC-E bar codes are special zero-suppressed Universal Product Codes that compress 10 data characters down to 6 characters under specific rules. UPCE bar code types include UPC-E0, UPC-E+2, UPC-E+5, UPC-E0+2, and UPC-E0+5. UPC-E also offers optional extended data fields onto existing UPC-E bar codes. The UPC-E bar code structure is shown in Figure 23 and described on the following pages.
UPC-E Quiet Zone Quiet zones extend on both ends of the bar code to permit the scan to begin and end in a blank area. The Code V automatically produces an 11-module wide left quiet zone; You are responsible for providing sufficient space (minimum of 7 modules) on the form for the right quiet zone. A trailing quiet zone is provided automatically if an add-on code has been specified in the bar code command. The number system character is printed automatically in the left quiet zone.
Chapter 3 Bar Codes Standard UPC-E Command Format Refer to page 135 for the IBARC, command format and definitions. Default Ratio: (cc) dir p type data (cc)G Variable Ratio: (cc) dir p [9] [:] type [ratio] data (cc)G (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. dir Represents the direction of the bar code. Enter B for horizontal bar codes; enter C for vertical bar codes. p Prints the optional readable data field.
UPC-E Table 43.
Chapter 3 Bar Codes When Type Code Q, c, or d is selected, 10 data characters are expected; the first five characters are vendor number data, and the next five characters are product code data. The +2 (Type Code c) and +5 (Type Code d) add-on data is unaffected by the compression of the first 10 data characters. The first 10 characters of the data field are automatically modified and compressed down to 6 data characters based on the syntax of the vendor number and product code.
UPC-E UPC-E Examples The following command generated the horizontal default ratio UPC-E bar code below. In the command sequence, graphics mode data is italicized and bar code data is boldface. Refer to the “Commands” chapter for a detailed description of alphanumeric commands. ^PY^-^M10,10,000^KF^BYR123456^G^KF^-^PN^- ^PY^- turned on the graphics command sequence. ^M introduced the standard alphanumeric command. The character height selected was 1.0 inches and character width was selected at 1.0 inches.
Chapter 3 Bar Codes UPCSHIP The UPCSHIP bar code structure is shown in Figure 24 described on the following pages. HEIGHT STARTING POSITION QUIET ZONE START CODE OPTIONAL READABLE DATA FIELD OPTIONAL CHECK DIGIT STARTING POSITION QUIET START ZONE CODE DATA FIELD LOWER GUARD BAND OPTIONAL CHECK DIGIT DATA FIELD STOP CODE QUIET ZONE STOP QUIET CODE ZONE LOWER GUARD BAND HEIGHT OPTIONAL READABLE DATA FIELD Figure 24.
UPCSHIP Check Digit A modulo-10 check digit is automatically calculated and inserted in the bar code symbol. Standard UPCSHIP Command Format Refer to page 135 for the IBARC, command format and definitions. Default Ratio: (cc) dir p $ data (cc)G Variable Ratio: (cc) dir p [9] [:] $ [ratio] data (cc)G (cc) Represents the Special Function Control Code (SFCC). Enter the specific SFCC for your Code V configuration. dir Represents the direction of the bar code.
Chapter 3 Bar Codes ratio Optional parameter (used in conjunction with 9 above) representing the ratios for variable ratio bar codes. Default ratios are overridden by the variable ratio feature. The ratio data must be hexadecimal numbers from 0 through 9 or A through F. The Code V automatically checks the input for validity. If an invalid character is found in the ratio, an error message is generated. UPCSHIP bar codes use four-digit ratios.
UPS 11 UPS 11 HEIGHT STARTING POSITION QUIET ZONE START CODE OPTIONAL READABLE DATA FIELD OPTIONAL CHECK DIGIT STARTING POSITION QUIET START ZONE CODE DATA FIELD LOWER GUARD BAND OPTIONAL CHECK DIGIT DATA FIELD STOP CODE QUIET ZONE STOP QUIET CODE ZONE LOWER GUARD BAND HEIGHT OPTIONAL READABLE DATA FIELD Figure 25. UPS 11 Structure Quiet Zone Both ends of the bar code structure require blank quiet zones. The quiet zones must be at least 0.
Chapter 3 Bar Codes Check Digit The modulo-103 check digit is automatically calculated and inserted in the bar code symbol. The check digit verifies accurate scanning. The start code is included in the check digit algorithm. Standard Command Format Refer to page 135 for the IBARC, command format and definitions. Default Ratio: (cc) dir p u data (cc)G Variable Ratio: (cc) dir p [9] [:] u [ratio] data (cc)G (cc) Represents the Special Function Control Code (SFCC).
UPS 11 ratio Optional parameter (used in conjunction with 9 or : above) representing the ratios for variable ratio bar codes. Default ratios are overridden by the variable ratio feature. The ratio data must be hexadecimal numbers from 0 through 9 or A through F; the Code V automatically checks the input for validity. If an invalid character is found in the ratio, an error message is generated. UPS 11 bar codes use eight-digit ratios.
Chapter 3 Bar Codes UPS 11 Examples The following commands generate the bar codes shown below.
4 Exercises and Examples Practice Using the Code V The following examples and exercises are designed to provide experience in using the Code V. The Code V command standards used in the exercises are described in the “Commands” chapter. Be sure to specifically follow the format for Code V commands to ensure proper Code V operation. Most of the format parameters are standard to all the commands unless otherwise noted.
Chapter 4 Practice Using the Code V 3. Let’s create some alphanumeric text. Use the standard Alphanumeric command (M) to print “IGP” in characters 1.0 inches high (ht) and 1.0 inches wide (wd). Add a pass terminator (carriage return). Format: (cc)M ht wd jus data (cc)- Enter: ^M10,10,000IGP ^- 4. To see the results, a sequence terminator must be input. For example, enable the Free Format Form Feed command (,) and print the file. The result should look like the example shown in Figure 26.
Boxing the Alphanumeric Text 6. Now we can add the box around “IGP.” The Box command (LB) is part of the extended graphics command set. In this example, it must be input as part of the alphanumeric command sequence (input prior to the sequence terminator). Use a Horizontal Tab command (T) to position the starting point of the box 0.9 inches (dis) from the left margin. Use a Justification command (J) with a zero justification to begin the box at the top of the form.
Chapter 4 Practice Using the Code V Creating Horizontal Lines 7. Let's put a horizontal line under “IGP.” Use another Justification (J) and Horizontal Tab (T) sequence to position the line 2.3 inches (jus) down which is 0.3 inches under the name. Tab the line to 1.0 inches (dis) from the left margin which will begin the line just inside the left edge of the box. Use a Solid Line (LS) command to create a line 3.0 inches long horizontally (horz) and 2 dots wide vertically (vert).
Creating More Alphanumeric Text Format: (cc)H ht (cc)W wd (cc)J jus (cc)T dis data Enter: ^H02^W03 ^J010^T0110INTELLIGENT ^J040^T0160GRAPHICS ^J070^T0210PRINTING 9. Disable the Free Format command(O) and use the Graphics Mode Disable command (PN). Format: (cc)O (cc)PN(cc)- Enter: ^O^PN^- The file now contains the following commands. The printout is shown in Figure 29.
Chapter 4 Form Example Form Example The following exercise produces a complete form by sketching it out on a grid. (Use the Standard Grid and Logo grid provided in Appendix C.) The starting and ending values are the data for the Code V command parameters. The form includes a box, a logo, a bar code, vertical and horizontal lines and alphanumeric data.
Planning the Form Layout Figure 30.
Chapter 4 Form Example Design the Form 1. First, design the form on a grid as shown in Figure 30. A standard grid example is provided in Appendix C. Designing the form on the grid allows you to decide where each form element will be placed. Compensate for expanded alphanumerics and plan for the logo. Enable Code V Graphics 2. The Code V must be enabled for the Graphics Mode using the Graphics Mode Enable command (PY).
Design the Form Position Form Elements 6. Each of the various form elements must be properly positioned within the form. A Justification command (J) can be used to adjust the vertical position and a Horizontal Tab command (T) can be used to adjust the horizontal position for the first form element. Position the first element 1.1 inches (jus) down from the current print position and 1.0 inches (dis) in from the left margin. Format: (cc)J jus (cc)T dis Enter: ^J110^T0100 Create the Box Around the Form 7.
Chapter 4 Form Example Table 46.
Design the Form Data Byte 1 Data Byte 23 10 Row 1 * Row 2 Row 3 Row 4 Row 5 Row 6 Row 7 Row 8 20 Data Byte 34 30 40 50 60 70 7 6 5 4 3 2 1 7 6 5 4 3 2 1 7 6 5 4 3 2 1 7 6 5 4 3 2 1 7 6 5 4 3 2 1 7 6 5 4 3 2 1 7 6 5 4 3 2 1 7 6 5 4 3 2 1 7 6 5 4 3 2 1 7 6 5 4 3 2 1 7 6 5 4 3 2 1 7 6 5 4 3 2 1 7 6 5 4 3 2 1 7 6 5 4 3 2 1 7 6 5 4 3 2 1 7 6 5 4 3 2 1 Actual size of this logo is approximately .8-inch tall by 1-inch wide. *Each 7-bit vertical data byte equals .1-inch or 1 “row”.
Chapter 4 Form Example Input the Logo Data Input the command sequence for the Standard Alphanumeric command, Justification command, Horizontal Tab command, and Graphics Plot command for each 0.1-inch row of hex data in the logo. Each group of data below represents, from top to bottom, the eight 0.1-inch rows required to produce the logo. Note The spaces separating each group are for readability; do not include these spaces in your program.
Design the Form Enter the Company Heading 9. Next to the logo, print the company name, HandCraft Boats, in characters 0.3 inches high (ht) and 0.2 inches wide (wd) using the Standard Alphanumeric command (M). Position the name 1.2 inches and 9 dot rows (jus) down from the current print position, using the Justification parameter of the Alphanumeric command and 3.1 inches ( dis) from the left margin using the Horizontal Tab (T) command.
Chapter 4 Form Example ^M^J180^T0175^Q 00,00,00,00,00,00,00,00,00,00,00,00,00,40,40,60,60,70,70,78,78,7C,7C,7E, 7E,7F,7F,3F,3F,1F,0F,0F,07,03,01^G ^M^J190^T0175^Q 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,40,60,60,70,70,78,78,78,78,38^G ^M03,02,129^T0310HandCraft Boats^G ^I220^^O^-^PN^- 1.2” + 9 dot rows (jus) down from top of form to starting row for “HandCraft Boats” 3.1” (dis) from left margin to starting column for “HandCraft Boats” Figure 32.
Design the Form 11. Other pieces of the customer type data can be added to the top part of the form from within the same alphanumeric command sequence initiated in the previous step. Using a Justification command (J), the print position can be lowered 0.4 inches (jus). Using Horizontal Tab commands (T), the HULL NO: data can be positioned 1.5 inches (dis) from the left margin and the RIGGING: data can be positioned 4.9 inches (dis) from the left margin.
Chapter 4 Form Example Enter the Interior Box with Horizontal and Vertical Lines 14. Now we can add the interior form (the box with vertical lines) for the item, description, and price data. The Code V Form command constructs a box complete with vertical lines at specified positions. A Standard Alphanumeric command (M) sequence must be entered to introduce the extended graphics commands that are used. Use a Horizontal Tab command (T) to move the print position 1.
Design the Form Now we have completed the text in the upper portion of the form and the lined box for the item, description, and price data. Our sample HandCraft Boats form now looks like the one shown in Figure 33. Figure 33.
Chapter 4 Form Example Enter the Corners 17. A series of lines can be drawn to create the corners around the slogan at the bottom of the form. A Standard Alphanumeric command (M) is used to introduce the command sequence, including the Dark Print command (KF). A Horizontal Tab command (T) is used to move the print position of the upper left horizontal line of the corner 2.5 inches (dis) from the left margin. A Solid Line command (LS) is used to specify the upper left line of the corner as 0.
Design the Form 21. To generate the HandCraft Boats company address and phone number data on the lower left of the form, justify the text 2 dots (jus) using the Justification (J) command, tab in 1.5 inches (dis) from the left margin with the Horizontal Tab (T) command, select the 17.1 cpi font with the Compressed Print (S) command, and supply the HANDCRAFT BOATS company name as the data. Format: (cc)J jus (cc)T dis (cc)S F data Enter: ^J002^T0150^S5HANDCRAFT BOATS 22.
Chapter 4 Form Example 26. Within the same alphanumeric command, the bar code can be generated. Using the Character Height command (H), the character height is changed to 0.3 inches (ht) and using the Justification command (J), the position is moved down 0.5 inches ( jus). The bar code is positioned 5.9 inches (dis) from the left margin by a Horizontal Tab (T) command.
Design the Form 40,40,60,60,70,70,78,78,7C,7C,7E,7F,7F,7F,7F,7F,7F,7F,7F,7F,7F,77,63, 63,41,41,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40, 40,40,40,40,40,40,40,40,40,40^G ^M^J180^T0175^Q 00,00,00,00,00,00,00,00,00,00,00,00,00,40,40,60,60,70,70,78,78,7C,7C,7E,7E,7F, 7F,3F,3F,1F,0F,0F,07,03,01^G ^M^J190^T0175^Q 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,40,60,60,70,70,78,78,78,78,38^G ^M03,02,129^T0310HandCraft Boats^G ^I220^^M01,01,000^KF ^T0150CUST
Chapter 4 Form Example Figure 34.
Design the Label Label Example This practice exercise is designed to provide experience in creating and processing labels of all kinds. The label includes: • • • • • • horizontal duplication alphanumeric data horizontal and vertical lines dynamic data fields boxes bar codes Design the Label As in the form example, all data for the labels is entered into a file on the host computer. Use your standard system commands to open the file and print the file as needed.
Chapter 4 Label Example Figure 35.
Design the Label Enable Code V Graphics 1. The Code V must be enabled for the Graphics Mode using the Graphics Mode Enable command (PY). This is the first input to change the Code V from the Normal Mode to the Graphics Mode. Format: (cc)PY (cc)- Enter: ^PY^- 2. To avoid accidentally terminating the graphics command sequence by a host-generated terminator, enable the Free Format command (F).
Chapter 4 Label Example Create the Label Box 5. Now the extended graphics command set can be used to create the label components. The Standard Alphanumeric command (M) is used to introduce the extended graphics command set. The Dark Print command (KF) is used to print the label box in a darker contrast. The Box command (LB) is used to create the box for the outer border of the label. The box is 2.6 inches plus 4 dots horizontally (horz) and 4.7 inches vertically (vert).
Design the Label Add TO/FROM Alphanumeric Data 7. Now let's add the “From” data. We will use a series of Standard Alphanumeric commands (M) to specify 0.1 inch high (ht) by 0.1 inch wide (wd) characters justified 0.2 inches (jus) for the FROM heading. Use a Horizontal Tab (T) to position the heading 0.4 inches (dis) from the margin. In a similar command sequence, specify 0.2 inch high and 0.2 inch wide characters justified 0.4 inches down for the heading, also tabbed 0.4 inches from the margin.
Chapter 4 Label Example Add Horizontal Lines 9. The three horizontal lines to separate the three bar code fields can be added to the form using Justification (J), Horizontal Tab (T) and Solid Line (LS) commands. All three lines are 2.6 inches plus 4 dots horizontally (horz) and 1 dot vertically (vert), used as the line thickness, and all three lines are tabbed 0.0 inches (dis) from the left margin (touching the left edge of the label). Justify the first line 1.9 inches down (jus), the second line 2.
Design the Label 12. To complete processing, send an Interrupt command (I) moving the print position to 5.5 inches (dis) lower followed by a Graphics Mode carriage return (-), end the Horizontal Duplication command (S), and end the Dynamic Form command (]). Format: (cc) I (cc)(cc) S (cc)(cc) ] Enter: ^I550^^S^^] Add Dynamic Data 13. The lines of dynamic data can now be sent.
Chapter 4 Label Example ^PY^-^F^^B^^S0240^^M^KF^LB0264,0470,2,2 ^J010^T0020^LS0020,0002 ^J010^T0220^LS0020,0002 ^J010^T0020^LS0002,0020 ^J010^T0240^LS0002,0020 ^J080^T0020^LS0002,0020 ^J080^T0240^LS0002,0020 ^J100^T0020^LS0020,0002 ^J100^T0220^LS0020,0002 ^J110^T0020^LS0020,0002 ^J110^T0220^LS0020,0002 ^J110^T0020^LS0002,0020 ^J110^T0240^LS0002,0020 ^J160^T0020^LS0002,0020 ^J160^T0240^LS0002,0020 ^J180^T0020^LS0020,0002 ^J180^T0220^LS0020,0002 ^M01,01,020^T0040FROM ^M02,02,040^T0040XYZ COMPANY ^M^J065^T0
Solving Program Errors Solving Program Errors If you make an error in your form program, a coded error message and the program line containing the error will print when you print the form. As soon as the Code V discovers and identifies the error, the form is printed up to the point of error, further text processing stops, and all remaining data up to the next command sequence terminator is ignored.
Chapter 260 4 Label Example
5 Multinational Character Sets Overview The Multinational Character Set accesses one of 32 international character sets. Each character set is 96 characters long and can be accessed by configuration selection or a Code V command. Individual characters in the font can be accessed with the use of data bit 8. The character sets and their corresponding set values are shown in Table 47. Table 47.
Chapter 5 Overview Character Addresses Both the ASCII and multinational character sets have hex values for each character and symbol. The primary character set (ASCII characters) resides at hex addresses ranging from 00 through 7F. The extended character set, which contains the multinational characters, resides at hex addresses ranging from 80 through FF. Table 47 shows each multinational character substitution hex value and the applicable ASCII hex values.
Data Bit 8 Addressing Accessing Characters and Character Sets Data Bit 8 Addressing You can access individual characters using data bit 8 addressing. The primary character set is ASCII. These character values reside at hex addresses 20 through 7F. The Multinational or extended character sets reside at hex addresses 80 through FF. Note Data bit 8 must be enabled so that Multinational or extended character sets are accessible without reconfiguration.
Chapter 5 Accessing Characters and Character Sets Building a Character Translation Table The character set for resident fonts on the Graphics Controller contains special characters in hex values. These characters are not directly accessible from the keyboard. As an example, the tilde (~) may not have a corresponding key on the keyboard. There are three choices available if characters such as this are required on a regular basis.
Resetting the Character Set Resetting the Character Set Purpose Reset the character set. This will also clear the translation table. Mode Graphics Format (cc) ITRANS,R,n (cc) G (cc) (cc) Represents the Special Function Control Character (SFCC). Enter the specific SFCC for your Code V configuration. ITRANS,R The Character Set Reset command; enter ITRANS,R (the comma is required). n The identification of the new character set, a value from 00 through 08. (cc)G Terminator.
Chapter 5 Accessing Characters and Character Sets User Set Command Purpose Creates custom character sets (except OCR fonts) from existing characters stored in printer memory. Mode Graphics Format (cc) u n ca fa (cc)(cc) Represents the Special Function Control Character (SFCC). Enter the specific SFCC for your Code V configuration. u The User Set command; enter u. n Selects the User Character Set number; enter a value ranging from 1 through 8.
User Set Command The User Set command (cc)un and the Character Set Selection command (cc)in are related as shown below. Therefore, i24 selects the substitution set defined as u1, i29 selects u6, etc. User Set un n=1 n=2 n=3 n=4 n=5 n=6 n=7 n=8 Example corresponds to Character Set in n = 24 n = 25 n = 26 n = 27 n = 28 n = 29 n = 30 n = 31 The following example defines User Set 1 to contain the Multinational font addresses B1, A1, and BF at the hex character addresses 23, 24, and 25, respectively.
Chapter 5 Accessing Characters and Character Sets Character Set Selection Command Purpose Accesses one of the multinational character sets. Use this command to access a different character set from the configured power-up default character set. Mode Graphics Format As a stand-alone command: (cc) i n (cc)Within a graphics command: (cc) i n M ht wd jus data (cc)(cc) Represents the Special Function Control Character. i The Character Set Selection command; enter i.
Selecting an ISO Character Set Selecting an ISO Character Set Purpose Accesses one of nine ISO character sets. Mode Standard Graphics or Graphics with an Extended Graphics Command selected Format (cc) IISO, n (cc)G (cc) Represents the Special Function Control Character. IISO, The ISO Character Set Selection command; enter IISO, (the comma is required). n The character substitution set number; enter a value ranging from 0 through 8 according the the desired character set shown in Table 49.
Chapter 5 Accessing Characters and Character Sets Figure 36.
Multinational Character Sets Multinational Character Sets IGP/VGL Multinational Set ASCII Set GERMAN Set 271
Chapter 5 Accessing Characters and Character Sets SWEDISH Set NORWEGIAN Set 272 DANISH Set FINNISH Set
Multinational Character Sets ENGLISH Set DUTCH Set FRENCH Set SPANISH Set 273
Chapter 5 Accessing Characters and Character Sets ITALIAN Set OCR-A Set 274 TURKISH Set OCR-B Set
6 Error Codes Code V Emulation Error Codes The Code V provides coded error messages to help debug programs. When the Code V detects an error, it stops text processing and prints out an error message. The error message includes the appropriate error code, a brief description of the error, and the erroneous data. All data up to the next command sequence terminator is ignored, and the form (if any) is printed up to the point of the error.
Chapter 276 6 Code V Emulation Error Codes 10 Character Height Command Error A Character Height command (H) has a non-numeric character for the height parameter. 11 Hex Data Error An invalid character was found while expecting a hexadecimal value. Only numeric characters or A, B, C, D, E, or F are allowed. 12 Vertical Justification Change Error A Vertical Justification (J) command has a non-numeric character for the justification parameter.
c. In Graphics Mode, the following characters are allowed: B, C, D, E, G, H, I, J, K, L, M, Q, R, S, T, U, V, W, Z, or -. 23 Character Width Command Error A Character Width command (W) contains a non-numeric width parameter. 24 Serial Overflow Error The serial input buffer is full. The host probably did not honor the Code V flow control to stop sending characters. 25 Line Parameter Error A Line command (LS or LD) contains a non-numeric horizontal or vertical parameter.
Chapter 278 6 Code V Emulation Error Codes 33 Line Slew Command Error A Line Slew command (K or W) contains a non-numeric lines parameter. 34 Forms Length PI Error A Forms Length command (L) must use the PI line, but the Code V is configured with PI disabled. Use the H Forms Length command. 35 Forms Length No PI Error A Form Length command (H) cannot use the PI line, but the Code V is configured with PI enabled. Use the L Forms Length command.
50 User-Defined Logo Input Error The input parameter is not within the specified range. You must provide either a number ranging from 3 to 9, or a character between A and F. 51 Not defined. 52 Character Set Command Error The character set value specified at the Character Set Selection command (i) was not within the range of 00 to 31. 53 User-Defined Character Set Command Error The User-Defined Character Set command (u) contains a parameter error.
Chapter 280 6 Code V Emulation Error Codes
A Standard ASCII Character Set B7 B6 BITS KEY 0 B5 0 1 B4 B3 B2 B1 1 0 1 ESC 1 OCTAL DECIMAL HEX 33 27 1B ASCII CHARACTER B7 B6 0 B5 BITS 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 0 1 1 1 1 1 0 1 COLUMN 0 B4 B3 B2 B1 ROW 1 0 0 0 0 0 NUL 0 0 0 0 0 0 1 1 SOH 1 1 1 0 0 1 0 2 STX 2 2 2 0 0 1 1 3 ETX 3 3 3 0 1 0 0 4 EOT 0 1 0 1 5 0 1 1 0 DLE DC1 (XON) 2 20 16 10 21 17 11 SP ! 3 40 32 20 41 33 21 4 0 60 48 30 1 61 49 31 5 6 @ 100 64 40 P 120 80 50
Appendix A 282
B Shading Masks Selecting Masks The Shading Mask command (KL) described on page 116 of the “Commands” chapter includes 132 different shading masks. Print samples of these masks are shown below and on the following pages. Each mask is reverse printed with the appropriate hexadecimal mask value. Replace the mask parameter in the KL command with one of the following hexadecimal mask values.
Appendix B Selecting Masks Both 18H and 19H produce a white shading mask when printed.
Appendix B 286 Selecting Masks
Appendix B 288 Selecting Masks
Appendix B 290 Selecting Masks
C Grid Samples The Standard Grid, provided on page 292, is used to design your form layout. At 6 lines per inch (lpi) and 10 characters per inch (cpi) printing, a standard 8-1/2 x 11-inch sheet of paper has a print area of 66 lines (rows) and 85 characters (columns). (The printable area will vary if you are not printing at 6 lpi and 10 cpi.) Thus, the grid used to design an 8-1/2 x 11-inch form should accommodate this 66 x 85 area. The Logo Grid, provided on page 293, is used to design custom logos.
Appendix C 294
Index A Code 128, 155 Code 39, 146 Accessing Code 93, 152 character sets, 263 EAN 13, 167 Adjustment EAN 8, 163 height, 132 German Interleaved 2/5, 171 AIAG form, 79 IBARC format, 135 Alphanumeric Identicon, 176 examples, 28 Interleaved 2/5, 179 Alphanumeric Commands MSI, 184 inverted, 26 overview, 131 reverse string, 26 POSTNET, 189 rotated, 26 Royal Mail, 193 Application identifiers Telepen, 195 UCC/EAN-128, 201 UPC-A, 211 ASCII Character Set, 281 UPC-E, 216 Auto Increment/D
width, 18, 35 readable data, 141 examples, 35 Character Addresses, 262 standard command format, 142 Character Set structure, 141 ASCII, 281 codabar, 144 start/stop codes, 141 type code, 142 Code 128 code 128, 160 automatic mode, 156 code 39, 149 character set, 160 EAN/UCC 128, 160 check digit, 156 Character Set Selection, 268 example, 268 Character Sets data field, 155 examples, 161 manual mode, 156 accessing, 263 manual mode operation, 157 loading, 268, 269 mode selection, 156 multinati
in a command sequence, 17 Command KF, 140 Command Format, 133 bar codes standard, 134 Command Parameters, 17 Command Standards, 16 brackets, 17 comma, 17 command sequence, 16 parameters, 17 executing dynamic forms, 78 extended graphics, 24 fonts compressed print density, 71 form feed, 73 length, 74 forms construction, 75 free format, 83 non-graphics, 85 free format disable, non-graphics, 86 graphics mode, 21 spaces, 17 disable, 88 enable, 87 graphics, standard, 22 terminator, 17 hex dump, 88 SFCC, 16
user set, 266 UPC-E, 217 vertical duplication, 48, 52 UPCSHIP, 222 vertical justification, 92 Data Positioning, 19 vertical tab, 127 Density (cpi), 36 wait for online, 129 Descending Characters, 42 Compressed Print, 38 examples, 43 examples, 39 lower case, 42 fonts, 71 Direct Print Commands Examples, 44 Compressed Print Density examples, 72 Direct Printer Commands, 44 Directory of Created Forms, 79 Control Character, 118 Dot Slew, 45 Control Character Commands, 44 Duplication Copy Fiel
start/center/stop codes, 167 dynamic form, 55 structure, 167 copy fields, 58 field length, 57 repeat, 61 EAN 13, 170 EAN 8, 163 check digit, 164 data field, 163 examples, 166 quiet zone, 163 readable data, 164 standard command format, 164 start/center/stop codes, 163 structure, 163 type code, 165 EAN 8, 166 emphasized print, 65 forms construction, 77, 80, 82 free format, 84 free format disable non-graphics, 86 free format enable Electronic Vertical Format Unit, 62 non-graphics, 86 graphics mode disab
Expansion predefined, 79 pixel, 103 Forms, Directory of, 79 Explicit Positioning, 19 Free Format, 17 Explicit Positioning Commands, 20 Explicit Print Position, 20 Extended Character Set, 262 Extended Graphics Commands, 24 Extended Graphics Mode, 13 examples, 84 Free Format Command, 83 non-graphics, 85 Free Format Enable non-graphics F examples, 86 G Features auto increment/decrement, 12 Generating Logos, 101 expanded/compressed print, 12 German Interleaved 2/5, 171 logos, 12 multinational cha
Line Slew, 94 examples, 126 Host Paper Motion Commands Line Spacing, 95, 112 examples, 96 ignoring, 83 Lines overriding, 85 I dashed, 96 solid, 99 IBARC Command Format, 135 Lines Per Inch, 95 IBARC Examples, 136 Loading Character Sets, 268 Identicon, 176 ISO, 269 data field, 176 Logo Generation quiet zone, 176 examples, 102 readable data, 176 Logos, 12, 101 standard command format, 177 start/stop codes, 176 grid samples, 291 Lower Case Descenders, 42 structure, 176 M Ignore Data, 89
Number System Character EAN 13, 167 Power-Up Character Set Selection, 263 Predefined Forms UPC-A, 212 AIAG form, 79 UPC-E, 217 odette form, 79 O primary metals form, 79 Primary Character Set, 262 Odd Dot Plot, 107 Primary Metals Form, 79 Odette Form, 79 Print On-Line Forms/Label Generation, 12 compressed, 38 Operation Modes, 15 contrast ratio, 140 Overriding Host Paper Motion Commands, 85 P Page Layout Considerations, 234 Paper Advance, 73 Paper Motion Commands overriding host, 85 Paper Mot
SFCC Change code 39, 147 examples, 118 code 93, 153 Shading, 114 EAN 13, 168 examples, 115 EAN 8, 164 Shading Mask, 116 Identicon, 176 examples, 117 interleaved 2/5, 180 MSI, 185 Shading Masks, 283 UPC-A, 212 Size bar code, 131 UPC-E, 217 Slew UPCSHIP, 222 Readable Data Field, 134 dot, 45 Rectangles, 31 line, 94 Solid Lines, 99 Repeat, 60 examples, 100 Requirements height, 131 Solving Program Errors, 259 size, 131 Spaces in a command sequence, 17 Reset, 110 Resetting the Character
EAN 8, 163 examples, 208 UPC-A, 212 Underlined Print, 128 Start/Stop Codes examples, 128 codabar, 141 UPC-A, 211 code 128, 155 check digit, 212 code 39, 146 data field, 212 code 93, 152 examples, 215 Identicon, 176 number system character, 212 interleaved 2/5, 179 quiet zone, 212 MSI, 184 readable data, 212 POSTNET, 191 standard command format, 213 Royal Mail, 193 start/center/stop codes, 212 UPC-E, 217 structure, 211 UPCSHIP, 222 UPC-E, 216 Subset A check digit, 217 code 128,
Variable Ratio Size (D) bar code, 135 Vertical Print Position, 45 Vertical Tab, 127 W Vertical Dot Density, 20 Vertical Duplication, 48, 52 examples, 49, 51, 53 Wait For Online, 129 Vertical Duplication Auto Increment/Decrement, 50 Warnings and Cautions, 11 Vertical Justification, 92 Width examples, 93 character, 18, 35 Vertical Positioning, 20 305
Copyright© 2000 Hewlett-Packard Company Manual Part Number 171251-001PX 171251-001A