e-ManualTopSite mapHelp

Category Top

Printing from a Computer (Windows)

Printing Functions

[Basic Settings] Tab

[Page Setup] Tab

[Finishing] Tab

[Paper Source] Tab

[Quality] Tab

Common Functions

[Device Settings] Tab

System Requirements

Before Printing from a Computer

Selecting the Appropriate Printer Driver

Installation

Setting the Printer Options

Other Software Programs

Printing Fundamentals

Printing

Configuring the Default Print Settings

Viewing Help

Scaling Documents

Printing Multiple Pages on One Sheet

1-sided and 2-sided Printing

Booklet Printing

Poster Printing

Watermark Printing

Combining and Printing Multiple Files

Selecting a Profile for Printing

Registering a Profile for Printing

Setting the Color Mode for Printing

Printing with the Two Colors Mode

Printing from a Computer (Mac OS)

Printing Functions

Common Functions

[Layout] Preferences Pane

[Finishing] Preferences Pane

[Paper Source] Preferences Pane

[Quality] Preferences Pane

[Special Features] Preferences Pane

System Requirements

Before Printing from a Computer

Selecting the Appropriate Printer Driver

Installation

Setting the Printer Options

Verifying the Printer Information

Manually Setting the Printer Options

Other Software Programs

Printing Fundamentals

Printing

Configuring the Default Page Settings

Viewing Help

Scaling Documents

Setting Custom Paper Sizes

Printing Multiple Pages on One Sheet

1-sided and 2-sided Printing

Booklet Printing

Using [Presets] for Printing

Setting the Color Mode for Printing

Printing with the Two Colors Mode

Setting the Machine (PS/PCL/UFR II Printer)

Printing Flow with This Machine

Differences in Operation with UFR II, PCL, PS, and Direct Print Printers

Personality

Menu Functions

Accessing the Settings Menu

Canceling Print Jobs

Report Settings

Settings Menu (Common Settings)

Copies

2-Sided Printing

Paper Feed

Paper Output

Print Quality

Layout

Auto Error Skip

Secure Print Delete Time

Timeout

Print After Completing RIP

Booklet

Saddle Stitch

Creep Correction

Use Cover Inserter

Transparency Interleaving

Copy Set Numbering

Personality

Mode Priority

Color Mode

Compressed Image Output

Initialize

UFR II Settings

Halftones

RGB Source Profile

Output Profile

Matching Method

Gray Compensation

CMS (Matching) Selection

CMS (Matching)/Gamma

Gamma Correction

Paper Save

PCL Settings

Paper Save

Orientation

Font Number

Point Size

Pitch

Form Lines

Character Code

Custom Paper

Unit of Measure

X Dimension

Y Dimension

Append CR to LF

Enlarge A4 Print Width

Halftones

RGB Source Profile

Output Profile

Matching Method

Gray Compensation

CMS (Matching) Selection

CMS (Matching)/Gamma

Gamma Correction

PS Settings

Job Timeout

Print PS Errors

Pure Black Text

Black Overprint

Matching Mode

RGB Source Profile

CMYK Simulation Profile

Use Grayscale Profile

Output Profile

Matching Method

Device Link Profile

RGB Pure Black Process

CMYK Pure Black Process

Halftones

Brightness

Spot Color Matching

Composite Overprint

Grayscale Conversion

Imaging Settings

Image Orientation

Zoom Mode

Print Position

Show Warnings

Enlarge Print Area

Matching Mode

Device Link Profile

ICC Profile Settings

Photo Correct. (Color Only)

RGB Pure Black Process

CMYK Pure Black Process

Halftones

Grayscale Conversion

PDF Settings

Enlarge/Reduce to Fit Size

Enlarge Print Area

N on 1

Comment Print

Pure Black Text

Black Overprint

Matching Mode

RGB Source Profile

CMYK Simulation Profile

Use Grayscale Profile

Output Profile

Matching Method

Device Link Profile

RGB Pure Black Process

CMYK Pure Black Process

Halftones

Brightness

Spot Color Matching

Composite Overprint

Grayscale Conversion

Utility Settings

Restricting Printer Jobs

PDL Selection (Plug and Play)

Printing Directly Using the Command Prompt

Printing Problems

If Trouble Occurs When Downloading Fonts or Macros from a Personal Computer

Some Basic Facts about Fonts

What Is a Font?

Attributes of Fonts

Fonts and Scalable Fonts

Checking the Font Lists for Available Fonts

Typeface Samples

Symbol Sets 1

Symbol Sets 2

Symbol Sets 3

Symbol Sets 4

Symbol Sets 5

Configuration Page

Release Notes

Bar Code Printing

Introduction

Menus and Their Functions

Building/Printing a Bar Code

Control Codes

Font Parameters

Bar Code Format Parameters

Bar Code Usages and Formats

Troubleshooting

List of Error Messages

Printing Problems

Top » Print » Bar Code Printing » Control Codes
Control Codes
0L3X-1W3
This section provides examples of commands that can be used to create bar codes.
PCL Escape Sequences
The escape sequence controls the character strings (Hexa: 1B or Dec: 27) that begin with <Esc>. By embedding and sending these character strings to this Bar Code Printing function in an unprintable, special character code, you can control details, such as the bar code size, as well as the caption text font and the space between the characters.
The following is an example of a valid PCL escape sequence:
<Esc>(s4p102h40v10,30b10,30s24670T
s4p:
Readable text that is located under the bars, without start or stop characters (*)
102h:
Caption text in Univers Regular
40v:
Bar height:
40 points
Formula:
40/72 = 0.555"
40*2.54/72 = 1.41 cm
10,30b:
Thin bars that are 10 dots wide, and thick bars that are 30 dots wide
10,30s:
Thin spaces that are 10 dots wide, and thick spaces that are 30 dots wide
24670T:
Symbol: code 39
Bar Code Rotation Codes
To rotate a bar code, you can use regular PCL rotation commands. We recommend that you save the cursor position before activating the bar code, and restore the original cursor position after the bar code is rotated.
Example: (Sequences should be entered without carriage returns.)
<Esc>&fS
Saves the cursor position.
<Esc>&a1000h1000V
Positions the cursor.
<Esc>&a90P
Rotates the bar code 90°.
<Esc>(s4p102h40v10,30b10,30s24670T
Formats the bar code.
CANON
The bar code text data.
<Esc>(10U<Esc>(sp10hsb4099T
Switches back to Courier 10 cpi font.
<Esc>&aP
Stops the rotation.
<Esc>&lf1S
Restores the original cursor position.
Font Switching
You can switch primary and secondary fonts with bar code fonts. We recommend that a text font be used as the primary font, and a bar code font be used as the secondary font.
IMPORTANT
Bar codes are not PCL fonts, even if they are generated using a PCL font sequence. Therefore, the following font sequence limitations apply:
No font ID can be linked to a bar code
Bar codes cannot be used with HP-GL2, PostScript, or PCL XL languages
OCR-A and OCR-B Fonts
The following PCL escape sequences enable OCR-A and OCR-B fonts:
OCR-A:
<Esc>(0O<Esc>(sp10h12vsb104T
OCR-B:
<Esc>(1O<Esc>(sp10h12vsb110T
The above table shows the OCR-A character set.
FreeScape Codes
PCL codes always begin with the unprintable escape code Hexa: 1B or Dec: 27. Some systems cannot use or send binary data to a device, which can represent a problem when using the PCL language with bar codes. An example of this kind of system is a mainframe computer with printers connected to terminals. To avoid conflicts between the PCL language and bar codes in such a system, the FreeScape Code, a user-defined Escape Code or AEC (Alternate Escape Code) can be specified.
FreeScape acts exactly like the standard escape code when it is located at the beginning of a regular PCL font sequence. The default value for the AEC is a '~' (tilde). FreeScape ignores the AEC if it is determined to be pure data. You can also mix escape codes and alternate escape codes.
The AEC can be any one of the following 10 characters:
", #, $, /, \, ?, {, }, |, ~.
The PCL font sequence to change to the alternate escape code is as follows:
<Esc or AEC>**#J
# represents the ASCII decimal value of the new AEC or ESC. Values for AEC are 34 ("), 35 (#), 36 ($), 47 (/), 92 (\), 63 (?), 123 ({), 125 (}), 124 (|), or 126 (~). The value for ESC is 27. If you indicate 27, it disables the FreeScape Code.
IMPORTANT
The FreeScape escape sequence setting is only valid for the current job.
The FreeScape Code can be enabled, disabled, or set as a parameter for all jobs from the FreeScape menu in Printer Settings (from the Settings/Registration screen).
When FreeScape is disabled, only the escape code (Hexa: 1B or Dec: 27) can be used to start PCL commands.