Compuprint 4247 Model X03/Z03 Printers: Programmer Manual
MAN10299.00.00
Before using this information and the product it supports, read the information in “Notices” on page 357.
First edition (October 2011)
This edition applies to the Compuprint 4247 X03-Z03 printers and to all subsequent releases and modifications
until otherwise indicated in new edition.
Internet
Visit our home page: http://www.compuprint.com
You can send comments by e-mail to : support@compuprint.com
Compuprint s.r.l.
Via Lombardore 282
10040 Leinì (Turin)
ITALY
iiProgrammer Manual
or by mail to:
Contents
Figures ....................................xiii
Tables ....................................xv
The 4247 Model X03/Z03 Serial Matrix Printers ....................xvii
The 4247 Model X03/Z03 printers are professional, industrial impact-matrix printers. The 4247 Model
X03/Z03 printers are rugged printers designed for harsh environments and demanding applications. Each
of the 4247 models offers user-installable interface cards.
The 4247 Model X03/Z03 printers can have either one or two straight continuous-forms paper paths. One
paper path is standard, and the second path is an optional feature. The printer operator panel is common
with these models and includes the same full-function, full-size, 2 line by 24 character display, making
messages and menus easy to understand.
Print-quality choices are Fast Draft mode (Model Z03 only), Data Processing mode (DP), DP Text mode
(DP Text), and Near Letter Quality mode (NLQ). Versatile paper-handling capability provides printing on up
to 8-part forms. Typical applications include transaction processing for invoices, office or internal business
documents, as well as barcodes, labels, and multipart forms.
Printer description
The 4247 Model X03/Z03 printers build on the strengths of previous models of the 4247 family while
providing a Fast Draft mode for the Model Z03 and a faster print speed for the Model X03.
Print speeds
The 4247 Model X03/Z03 printers print speeds (in characters per second):
Print Quality4247 X034247 Z03
Fast DraftN/A1100
Data Processing (DP)800800
DP Text400480
Near Letter Quality200240
Note: Print speed (CPS) at 10 CPI.
Paper paths
The 4247 Model X03/Z03 printers provide exceptional forms-handling flexibility. The base printer includes
one front continuous-forms tractor paper path, and an optional second continuous-forms tractor paper
path. Both continuous-form paper paths are front loading. Paper path linking is available when the optional
second tractor is installed.
Paper path nomenclature
Front continuous-forms tractor: The first tractor visible when opening the front tractor cover is called the
front continuous-forms tractor. In the standard (one tractor) configuration the installed tractor is called the
front continuous-forms tractor.
In the optional (two tractor) configuration the forward most installed tractor is called the front
continuous-forms tractor.
Rear continuous-forms tractor: In the optional (two tractor) configuration the tractor behind the front
continuous-form tractor is called the rear continuous-forms tractor.
xvii
Print qualities
Fast Draft is a print quality available only for the 4247 Model Z03 printer. The Data Processing (DP), Data
Processing Text (DP Text), Near Letter Quality (NLQ), OCR-A, and OCR-B print qualities on the 4247
Model X03 printer is equivalent in character size, shape, and resolution to the print qualities available on
the 4247 Models Z03 printer.
Print quality selection
Print quality can be selected using program control or through the printer operator panel. Program control
datastream commands take precedence over operator panel settings and can not be overridden.
Available printer operator panel settings are:
Print Quality = Fast Draft (Model Z03 printer)
Fast Draft is the default setting for the Model Z03 printer.
Print Quality = DP
DP is the default setting for the Model X03 printer.
Print Quality = DP TEXT
Print Quality = NLQ
Print Quality = OCR-A
Print Quality = OCR-B
An 4247 Model Z03 printer operator panel feature, Host Fast Draft, is a setting that allows application
programs written for earlier printers in DP mode to print in Fast Draft mode without changes to the
application program. If Host Fast Draft is enabled then DP mode applications print in Fast Draft mode. If
Host Fast Draft is disabled then DP mode applications print in DP mode.
The following table summarizes the print quality for Fast Draft (model Z03 only), DP, DP Text, and NLQ:
Horizontal character
Print qualityHorizontal DPIVertical DPI
Fast Draft457299
(Model Z03 only)
DP6072129
DP Text10072209
NLQ1001442018
cell size (dots)
Vertical character
cell size (dots)
Printer interfaces
There are three Controller Board options:
v Allows a host connection to Parallel, Serial, and USB 2.0 interfaces
v Allows a host connection to Parallel and ASCII Ethernet 10/100 BaseT LAN Network interfaces.
v Allows a host connection to Parallel and ASCII-IPDS Ethernet 10/100 BaseT LAN Network interfaces.
Printer datastream emulations
v ASCII emulations for the IBM®4202 Proprinter III XL, IBM 2381 Personal Printer, and Epson FX printers
™
v IPDS
v IBM 4247 mode (native mode) extensions to ASCII and IPDS datastream emulations
emulations for the IBM 4224 and IBM 4230 printers
xviiiProgrammer Manual
How to Use This Manual
The following lists describes the contents of each chapter and the appendixes:
Chapter 1, “Personal Printer Data Stream (PPDS),” on page 1 describes the Personal Printer Data Stream
(PPDS) programming commands for use when your printer is attached and emulation mode is set to 4247,
4202 III XL, or 2381 Personal Printer.
Chapter 2, “Epson FX-1050 Data Stream,” on page 39 describes Epson FX printers Data Stream
commands for use when your printer is attached and emulation mode is set to Epson FX.
Chapter 3, “Intelligent Printer Data Stream,” on page 75 explains the concepts and basic principles of the
Intelligent Printer Data Stream
™
(IPDS).
Chapter 4, “IPDS Programming Information,” on page 99 contains the technical details of IPDS commands
that the 4247 receives and sends.
Chapter 5, “IPDS Exception Reporting Codes,” on page 199 contains the exception reporting codes the
printer sends to the host in the NACK reply.
Chapter 6, “Print Samples and IPDS Coding Example,” on page 215 contains samples showing the
printing capabilities of the 4247 Printer.
Appendix A, “Code Pages,” on page 231 contains the code pages (both EBCDIC and ASCII) available on
this printer.
Appendix B, “Application Paper Source Selection,” on page 321 describes the differences between the
4247 Printer and other IBM compatible printers.
Appendix C, “4247 Bar Code and OCR Printing Options,” on page 323 describes the bar codes available
for the printer and describes the Optical Character Recognition (OCR) printing options.
Appendix D, “Configuration Menu Lockout,” on page 327 describes the Menu Lock function of the operator
panel.
The 4247 Model X03/Z03 Serial Matrix Printersxix
xxProgrammer Manual
Chapter 1. Personal Printer Data Stream (PPDS)
The 4247 Model X03/Z03 printers implement a subset of PPDS. The environment in which the printer data
stream processor operates is described below.
Print Job Processing
There are no PPDS controls that explicitly define print job boundaries. A print job for the 4247 is
established by the host system and consists of any set of related print objects. A print job could be as
short as one character or could be many pages long.
As an aid to the printer operator, the printer provides a PROCESSING indicator on the operator panel.
When the PROCESSING indicator is flashing, it indicates that data is currently being received, processed,
or printing, or that data is buffered in the printer but cannot be immediately printed. If the PROCESSING
indicator is not lit, then all print jobs have been completed.
Configuration parameter values can be changed at any time; however, to obtain predictable results,
changes to operator panel configuration parameter values should be made before the print job is sent to
the printer and after the previous print job has completed printing. Changing configuration parameter
values while a print job is in progress may cause unpredictable results.
We recommend the following to ensure that your print jobs run correctly:
v Establish a known print environment, and end any previous print job. Start each print job with a Set
Initial Conditions control. This control resets the printer environment to the default settings. You can then
set additional controls depending on your print job environment.
v End each print job with a FORM FEED control. This control causes all data to be printed, and the
current position is set to the top-of-form position.
v If a print job is abnormally terminated, the job should be canceled. See “Cancel Print” in “Chapter 2.
Understanding the Operator Panel” in the User's Guide for your printer.
Page Printing Concept
The 4247 processes print jobs in terms of pages, as well as in lines and columns. A page is a logical entity
whose boundaries are defined by the width and the page length. These boundaries are established during
printer initialization using the printer defaults, and can be changed using the Configuration Menu or by
issuing the appropriate data stream controls.
As a job prints, the printer controller maintains both the logical position and the physical position on the
page. If a print job does not end with a proper job terminator (for example, FORM FEED), then:
v All data for the current page may not print
v The next print job may be misaligned on the form
v Residual data from a previous job could print with the new job.
Page Presentation
Many PPDS commands (tabs, margins, line spacing, for example) are described in terms of the
presentation surface. A presentation surface is a two-dimensional surface upon which the printer positions
symbols according to controls embedded in the incoming data stream. The presentation surface is defined
in absolute terms by the width and depth parameters of the page size control commands (Set Page
Length, Set Horizontal Margins, for example). The physical print position does not move outside the range
of these two parameters. The left margin (LM) and right margin (RM) are variable parameters within the
presentation surface. The logical print position does not move outside the range of the vertical margins nor
outside the horizontal margins + 1. The following figure shows the presentation surface and the
1
relationships of some of these parameters.
CPPCurrent Print Position (LM ≤ CPP ≤ RM).
CPLCurrent Print Line
MPPMaximum Print Position (in characters at current CPI)
PMPP Physical Maximum Print Position. The largest number of characters that can be placed on one line
of the surface (the largest value that MPP can assume).
LMLeft Margin
RMRight Margin
MPLMaximum Page Length (in lines at current LPI)
Notes:
1. The host should set the limits of the presentation surface if the default or previous values are not
acceptable.
2. The operator should align the physical paper so that it matches the logical presentation surface.
Also created with this surface is a pair of numbers (CPL and CPP) which specify the line number and
column number where the next graphic will be printed. These internal values are the logical position on the
presentation surface.
The variable parameters have default values which are established when the printer is initialized. The
standard power-on defaults are:
RMEqual to MPP
HTHorizontal tabs are set at each 8th column, starting with column 9 (9, 17,
25, 33, and so on.)
VTVertical tabs are all cleared
Graphic and Control Character Sequences
PPDS uses an ASCII encoding scheme to define controls and printable graphics. Multiple code pages for
printable graphics are supported. Control characters are interpreted based on the environment established
by any preceding control characters and signals.
The 4247 supports several ASCII code pages. Within a code page, a code point can be treated as a
printable character (including space) or as a control code. The following data stream controls affect how a
code point is interpreted:
ESC 6 Select PC Character Set 2
ESC 7 Select PC Character Set 1
ESC \ Print All Characters
ESC ^ Print Single Character
ESC[K
Set Initial Conditions
The following code points are interpreted as control characters:
v PC Character Set 1
X'00' to X'1F'
X'7F' (treated as NULL)
X'80'' to X'9F'
v PC Character Set 2
X'00' to X'02'
X'07' to X'1F'
X'7F' (treated as NULL)
Note: No characters are treated as controls when they are part of a Print Single Character or Print All
Characters control.
The following code points are interpreted as printable graphic characters:
v PC Character Set 1
X'20' (space)
X'21' to X'7E'
X'A0'' to X'FE'
X'FF' (required space)
v PC Character Set 2
X'03' to X'06'
X'20' (space)
X'20' to X'7E'
X'80' to X'FE'
X'FF' (required space)
Note: All characters are treated as printable graphic characters when they are part of a Print Single
Character or Print All Characters control.
Chapter 1. Personal Printer Data Stream (PPDS)3
PPDS Compatibility
PPDS is supported in 4247, 2381 Personal Printer, and 4202 Proprinter III XL emulation modes. When
4247 is selected, PPDS control codes are supported in the same manner as if emulating the 2381
Personal Printer. The Emulation Mode can be selected from the Configuration Menu using the operator
panel. Emulation mode may also be selected using the Set Initial Conditions (ESC [ K) control sequence, if
the printer is set to 4247 or 2381 Personal Printer emulation mode.
One-Byte Controls
The printer uses the following one-byte controls:
ControlHexName
NUL00 (80)Null (no operation)
BEL07 (87)Bell
BS08 (88)Backspace
HT09 (89)Horizontal Tab
LF0A (8A)Line Feed
VT0B (8B)Vertical Tab
FF0C (8C)Form Feed
CR0D (8D)Carriage Return
SO0E (8E)Shift Out (Double-Wide Print)
SI0F (8F)Shift In (Condensed Print)
DC111 (91)Device Control 1 (Select)
DC212 (92)Device Control 2 (Select 10 CPI)
DC313 (93)Device Control 3 (Deselect)
DC414 (94)Device Control 4 (Cancel Double-Wide Print)
CAN18 (98)Cancel
ESC1B (99)Escape (Multiple-byte control prefix)
SP20Space
Note: Control hex values within parentheses (nn) are recognized only within PC Character Set 1.
Null (NUL)
00
This control terminates the Set Horizontal Tab and Set Vertical Tab control codes. The printer ignores NUL
by itself.
Bell (BEL)
07
This control causes the audible alarm to sound, if enabled. The alarm may be disabled or enabled from
the Configuration Menu.
4Programmer Manual
Backspace (BS)
08
This control moves the print position horizontally one character width to the left. If the current print position
is at the left margin, the printer ignores this command.
Horizontal Tab (HT)
09
This control moves the print position to the next horizontal tab stop. If there are no tab stops to the right,
or if the next tab stop is beyond the current right margin, the control is ignored.
Line Feed (LF)
0A
This control advances the paper one line. The horizontal position does not change unless automatic
carriage return mode is activated from the operator panel Configuration Menu. If the paper advance
crosses the bottom margin, the printer completes all deferred printing on the current page and then does
an automatic form feed.
If skip perforation mode is active and the bottom margin is crossed, the vertical position on the new page
following the automatic form feed will be the top-of-form position. If skip perforation is not active, the
vertical position on the new page is the point immediately following the previous print line.
Vertical Tab (VT)
0B
This control causes the vertical print position to be advanced to the next vertical tab stop. The horizontal
position is not affected unless automatic carriage return mode is activated from the operator panel
Configuration Menu. If there are no tab stops past the current vertical print position, Vertical Tab is treated
as a Line Feed.
Form Feed (FF)
0C
This control causes a new page to be started. Form Feed is a line end and page end control; it causes all
deferred printing that may have been buffered for the current page to be completed and the form
physically advanced to eject the current page. The vertical print position advances to the top margin and
the horizontal print position is set to the left margin for subsequent printing.
Carriage Return (CR)
0D
Chapter 1. Personal Printer Data Stream (PPDS)5
This control moves the current horizontal print position to the left margin. The vertical print position does
not change unless automatic line feed mode is active (see “Set Auto Line Feed (ESC 5)” on page 13).
Shift Out (SO) / Double-Wide Print
0E
This control causes the printer to start double-width printing. Double-width printing prints the characters
twice as wide as the current character spacing. This results in half as many characters per inch. Each
character takes up the space of two single-width characters. A Carriage Return, Line Feed, Form Feed,
Vertical Tab, Double-Wide Continuous Mode, or Cancel Double-Wide Print with vertical movement
specified cancels the Shift Out control code.
Shift In (SI) / Condensed Print
0F
This control prints graphic characters in condensed pitch (15 CPI, 16.7 CPI, 17.1 CPI or 20 CPI).
Shift In is a buffer terminating control; if printable data at a different character-per-inch setting is buffered,
that data is printed before the setting is changed. The current print position becomes the next printable
column at the new character-per-inch setting. CPI can be changed within a print line, and this control
changes the maximum number of characters that can be printed on one line.
When Printer Compatibility 7 – Condensed Print option in the ASCII Configuration menu is set to 15 CPI,
then 15 CPI is selected, otherwise, 16.7 CPI or 17.1 CPI is selected.
A combination of 12 CPI and Condensed Print sets the printer to 20 CPI when Printer Compatibility 9 (20
CPI) option is set to Enabled in the ASCII Configuration menu. A combination of 12 CPI and Condensed
Print sets the printer to 12 CPI when Printer Compatibility 9 (20 CPI) option is set to Disabled in the ASCII
Configuration menu.
Device Control 1 (DC1) / Select
11
This control selects the printer.
Device Control 2 (DC2) / Select
12
This control sets 10 characters per inch. DC2 is a buffer terminating control; if printable data at a different
characters-per-inch setting is buffered, that data is printed before the setting is changed. The current print
position becomes the next printable column at the new character-per-inch setting. CPI can be changed
within a print line.
Device Control 3 (DC3) / Select
13
6Programmer Manual
This control is treated as a NUL.
Device Control 4 (DC4) / Select
14
This control cancels double-wide printing if double wide was selected with the Shift Out control. The
characters-per-inch setting returns to the previous value.
Cancel (CAN)
18
This control purges all buffered data. All data received after the most recent buffer terminating control is
discarded. For a list of buffer terminating controls, see “Buffer Terminating Conditions” on page 38. Any
data received after Cancel is processed normally. Cancel does not change the current print position.
Escape (ESC)
1B
This control is a prefix used in combination with supplementary control bytes to provide an extended set of
control functions.
Space
20
This control moves the print position one character space to the right.
Escape Sequence Controls
Escape sequence controls have an ESC followed by one or more control parameters. Supported escape
sequence controls are:
ESC DC31B 13Device Control 3 (Deselect)
ESC DC41B 14Device Control 4 (Cancel Double-Wide Print)
ESC CAN1B 18Cancel
ESC EM1B 19Turn Auto Sheet Feeder On or Off
ESC -1B 2DAuto Underscore
ESC 01B 30Set 1/8 Inch Line Spacing
ESC 11B 31Set 7/72 Inch Vertical Spacing
ESC 21B 32Invoke Text Line Spacing
ESC 31B 33Set Graphics Line Spacing
ESC 41B 34Set Top of Form
ESC 51B 35Set Auto Line Feed
ESC 61B 36Select PC Character Set 2
ESC 71B 37Select PC Character Set 1
ESC :1B 3ASet 12 CPI
ESC <1B 3CUnidirectional Printing
ESC =1B 3DCharacter Font Image Download
ESC A1B 41Select n/72 Inch Spacing
ESC B1B 42Set Vertical Tabs
ESC C1B 43Set Page Length (Lines or Inches)
ESC D1B 44Set Horizontal Tabs
ESC E1B 45Begin Emphasized Print
ESC F1B 46End Emphasized Print
ESC G1B 47Begin Double-Strike Print
ESC H1B 48End Double-Strike Print
ESC I1B 49Change Font
ESC J1B 4ARelative Move Baseline
ESC K1B 4BNormal Density Bit Image Graphics
ESC L1B 4CDual Density Bit Image Graphics, Type 1
ESC N1B 4EBegin Skip Perforation
ESC O1B 4FEnd Skip Perforation
ESC P1B 50Proportional Space Mode
ESC Q1B 51Deselect on Positive Query Reply
ESC R1B 52Set Default Tabs
ESC S1B 53Begin Subscript/Superscript
ESC T1B 54End Subscript/Superscript
ESC U1B 55Set Print Direction
ESC W1B 57Double-Wide Continuous Mode
ESC X1B 58Set Horizontal Margins
ESC Y1B 59Dual Density Bit Image Graphics Type 2
ESC Z1B 5ADual Density Bit Image Graphics
ESC \1B 5CPrint All Characters
8Programmer Manual
ControlHexName
ESC ]1B 5DReverse Line Feed
ESC ^1B 5EPrint Single Characters
ESC _1B 5FContinuous Overscore
ESC d1B 64Relative Move Right
ESC e1B 65Relative Move Left
ESC [ - (See Note)1B 5B 2DSelect Line Scoring
ESC [ @1B 5B 40Set Presentation Highlights (SPH)
ESC [ I (See Note)1B 5B 49Set Font Global (SFG)
ESC [ K1B 5B 4BSet Initial Conditions (SIC)
ESC [ T (See Note)1B 5B 54Select Code Page (SCP)
ESC [ d (See Note)1B 5B 64Set Print Quality (SPQ)
Note: Commands are only available in 4247 or 2381 emulation mode.
Null (ESC NUL)
1B00
The printer ignores the NUL control by itself.
Bell (ESC BEL)
1B07
This control causes the audible alarm to sound, if enabled. The alarm may be disabled or enabled from
the Configuration Menu.
Backspace (ESC BS)
1B08
This control moves the print position horizontally one character width to the left. If the current print position
is at the left margin, the printer ignores this command.
Horizontal Tab (ESC HT)
1B09
This control moves the print position to the next horizontal tab stop. If there are no tab stops to the right,
or if the next tab stop is beyond the current right margin, the control is ignored.
Line Feed (ESC LF)
1B0A
Chapter 1. Personal Printer Data Stream (PPDS)9
This control advances the paper one line. The horizontal position does not change unless automatic
carriage return mode is activated from the operator panel Configuration Menu. If the paper advance
crosses the bottom margin, the printer completes all deferred printing on the current page and then does
an automatic form feed.
If skip perforation mode is active and the bottom margin is crossed, the vertical position on the new page
following the automatic form feed will be the top-of-form position. If skip perforation is not active, the
vertical position on the new page is the point immediately following the previous print line.
Vertical Tab (ESC VT)
1B0B
This control causes the vertical print position to be advanced to the next vertical tab stop. The horizontal
position is not affected unless automatic carriage return mode is activated from the operator panel
Configuration Menu. If there are no tab stops past the current vertical print position, Vertical Tab is treated
as a Line Feed.
Form Feed (ESC FF)
1B0C
This control causes a new page to be started. Form Feed is a line end and page end control; it causes all
deferred printing that may have been buffered for the current page to be completed and the form
physically advanced to eject the current page. The vertical print position advances to the top margin and
the horizontal print position is set to the left margin for subsequent printing.
Carriage Return (ESC CR)
1B0D
This control moves the current horizontal print position to the left margin. The vertical print position does
not change unless automatic line feed mode is active (see “Set Auto Line Feed (ESC 5)” on page 13).
Shift Out (ESC SO) / Doube-Wide Print
1B0E
This control causes the printer to start double-width printing. Double-width printing prints the characters
twice as wide as the current character spacing. This results in half as many characters per inch. Each
character takes up the space of two single-width characters. A Carriage Return, Line Feed, Form Feed,
Vertical Tab, Double-Wide Continuous Mode, or Cancel Double-Wide Print with vertical movement
specified cancels the Shift Out control code.
Shift In (ESC SI) / Condensed Print
1B0F
This control prints graphic characters in condensed pitch (15 CPI, 16.7 CPI, 17.1 CPI or 20 CPI).
10Programmer Manual
Loading...
+ 350 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.