FormsPro 4300 FormsPro 4500 FormsPro 4503 Serial Matrix Printers Copyright 1994 by Printek, Inc.
Printek Part Number 2999 ii
IBM and Proprinter are registered trademarks of International Business Machines Corporation, DEC is a registered trademark of Digital Equipment Corporation, Epson is a registered trademark of Seiko Epson, Printek and FormsPro are registered trademarks of Printek, Inc.
Specifications subject to change without notice.
Table of Contents TABLE OF CONTENTS Acknowledgments iii CHAPTER 1 - INTRODUCTION How to Use This Manual Printer Model Descriptions and Key Features Selecting Emulations Changing Forms/Tractor Paths 11111- CHAPTER 2 - ANSI X3.
Table of Contents CHAPTER 4 - IBM PROPRINTER EMULATION Introduction Control Codes and Escape Sequences Communications Character Size Character Attributes Character Sets Line Pitch Horizontal Position Vertical Position Form Length and Form Feed Horizontal Tabs Vertical Tabs Horizontal and Vertical Tabs Horizontal Margins Vertical Margins Graphics Printer Controls Emulations Control Codes and Escape Sequences (Alphabetical) 4- 1 4- 1 4- 3 4- 3 4- 4 4- 7 4- 8 4- 9 4-11 4-11 4-12 4-14 4-15 4-15 4-17 4-18 4-19
Table of Contents CHAPTER 7 - PRINTEK EMULATION Introduction Control Codes and Escape Sequences Communications Character Size Character Attributes Character Sets Line Pitch Horizontal Position Vertical Position Form Length and Form Feed Horizontal Tabs Vertical Tabs Horizontal and Vertical Tabs Horizontal Margins Vertical Margins Graphics Printer Controls Forms and Tractors Emulations Control Codes and Escape Sequences (Alphabetical) 7- 1 7- 1 7- 3 7- 3 7- 4 7- 5 7- 6 7- 7 7- 8 7- 8 7- 9 7-10 7-11 7-12 7-1
CHAPTER 1 - INTRODUCTION This manual describes the software interfaces supported by your FormsPro 4000 series printer. It is written for a programmer who will be developing software for the printer, and contains information not normally needed by a printer operator/user. Basic information on printer operation (setting the printer up, loading paper, replacing ribbons, etc.) can be found in the "Operator's Manual" that accompanied your printer.
Introduction Printer Model Descriptions and Key Features The Printek FormsPro 4000 Series Printers are high speed, heavy duty serial dot matrix printers designed especially for printing upon hard to print forms which are often not printed adequately by other printers. Of course, the FormsPro 4000 series printers will also print on lighter forms. All printers provide straight paper paths for jam free paper motion and a zero waste tear bar for demand document applications.
Introduction Selecting Emulations The software interface of the printer varies, depending upon which emulation is selected. The default emulation, selected at power up, is specified by the "Mode:" value in the "Setup: INTERFACE" menu. Frequently, the desired emulation is specified here, and never changed again. It is also possible to switch back and forth between various emulations in order to use the unique features of each. A different emulation may be selected via software with the ESC ESC n sequence.
ANSI X3.64 EMULATION Introduction This section describes the control codes and escape sequences comprising ANSI X3.64 emulation. This emulation may be selected by specifying "Mode: ANSI X3.64" in the "Setup: INTERFACE" menu, or via software with the ESC ESC 1 sequence. While this emulation is selected, control codes and escape sequences from other emulations are not available. Control codes and escape sequences are used to control printer operation.
ANSI X3.64 Emulation The " f" at the end of the escape sequence represents the final character. It terminates the sequence, and specifies the function to be performed. Spaces are used when documenting escape sequences to increase readability. The spaces within the sequences are for readability only; they are not part of the sequences themselves.
ANSI X3.64 Emulation Control Codes and Escape Sequences Grouped by Function Communications End of Text ETX If "ETX/ACK: On" is specified in the "Setup: INTERFACE" menu, then receipt of an ETX causes the printer to transmit an ACK to the host computer. Since the ETX may be a legal value within an escape sequence, it is the user's responsibility to ensure that an ETX used for data handshake is not sent within an escape sequence.
ANSI X3.64 Emulation Character Size and Line Spacing Set Character and Line Spacing ESC [ n1 ; n2 SP G Sets the character and line spacing in decipoints (1/720 of an inch). The first parameter, n1, sets the line spacing. The second parameter, n2, sets the character spacing. Typical values for n1 and supported values for n2 are shown below. Other values for n2 will be ignored. To change only the horizontal or only the vertical spacing, omit the other value from the sequence or set it to zero.
ANSI X3.64 Emulation Character Attributes Select Graphic Rendition ESC [ n m Selects the graphic rendition n from the following table. n 0 1 3 4 Rendition Normal Emphasized Italic Underline For italic mode to work correctly, an Epson FX font must be selected (check the "Font:" value in the "Setup: FORM" menu). The other available fonts do not include italic characters. Example: The following escape sequence will select emphasized mode.
ANSI X3.64 Emulation Horizontal Position Carriage Return CR Causes the current line to be printed, and then sets the current print position to the left margin. If "Auto LF: On" is selected in the "Setup: INTERFACE" menu, a line feed will also be performed. Control code: Hexadecimal: CR 0D Backspace BS Causes the current line to be printed, and then moves the current print position one space to the left. The actual distance moved depends on the current character spacing.
ANSI X3.64 Emulation Vertical Position Line Feed (or) (or) LF IND ESC D Causes the current line to be printed, and then advances the paper one line at the current line spacing. If "Auto CR: On" is selected in the "Setup: INTERFACE" menu, a carriage return will also be performed. Control code: Hexadecimal: LF 0A Control code: Hexadecimal: IND 84 Escape Sequence: Hexadecimal: ESC D 1B 44 Partial Line Down (or) PLD ESC K Performs a half line feed.
ANSI X3.64 Emulation Absolute Vertical Tab ESC [ n d Sets the current line to line n of the current form. The actual position will depend on the current line spacing. Example: The following escape sequence will set the active line to line 12. Escape Sequence: Hexadecimal: ESC [ 1B 5B 1 31 2 32 d 64 Relative Vertical Tab ESC [ n e Advances the active line by n lines. The actual distance moved will depend on the current line spacing. Equivalent to sending n line feeds (LF).
ANSI X3.64 Emulation Horizontal and Vertical Position New Line (or) NEL ESC E Causes the current line to be printed, and then sets the current print position to the left margin and performs a line feed. Equivalent to a carriage return (CR) line feed (LF) combination. Control code: Hexadecimal: NEL 85 Escape Sequence: Hexadecimal: ESC E 1B 45 Form Length and Form Feed Form length is the distance from the top of the form to the bottom of the form.
ANSI X3.64 Emulation Horizontal Tabs Horizontal tab stops are associated with columns, not absolute physical positions. Changing character spacing will change the physical position of the tab stops. Default tab stops are set at every eighth column, i.e. column 9, 17, 25, 33, 41, etc. If different tab stops are to be set, the default tab stops should first be cleared. Horizontal Tab HT Advances to the next horizontal tab stop.
ANSI X3.64 Emulation Clear all horizontal tab stops (or) ESC [ 2 g ESC [ 3 g Clears all currently set horizontal tab stops.
ANSI X3.64 Emulation Vertical Tabs Vertical tab stops are associated with lines, not absolute physical positions. Changing line spacing will change the physical position of the tab stops. Vertical Tab VT Causes the current line to be printed, and then advances the paper to the next vertical tab stop. If no vertical tab stops are set, then a line feed is done instead. If "Auto CR: On" is selected in the "Setup: INTERFACE" menu, a carriage return will also be performed.
ANSI X3.64 Emulation Printer Controls Bell BEL Causes the printer's bell to sound. Control code: Hexadecimal: BEL 07 Select Automatic Carriage Return ESC [ 20 h Selects automatic carriage return mode. This causes the printer to automatically perform a carriage return (CR) for each line feed (LF), vertical tab (VT), or form feed (FF) that it receives. Overrides the "Auto CR:" value in the "Setup: INTERFACE" menu.
ANSI X3.64 Emulation Emulations Select Software Interface n ESC ESC n Selects the software interface n according to the table below. n 0 1 2 3 4 5 6 7 ? @ Software Interface Test (reserved for factory use) ANSI X3.64 Emulation Epson FX Emulation Bar Code Mode (optional) IBM Proprinter Emulation DEC LA120 Emulation TTY Emulation Printek Emulation Previously Selected Emulation Default Emulation Overrides the "Mode:" value in the "Setup: INTERFACE" menu.
ANSI X3.
EPSON FX EMULATION Introduction This section describes the control codes and escape sequences comprising Epson FX emulation. This emulation may be selected by specifying "Mode: Epson" in the "Setup: INTERFACE" menu, or via software with the ESC ESC 2 sequence. While this emulation is selected, control codes and escape sequences from other emulations are not available. Control codes and escape sequences are used to control printer operation.
Epson FX Emulation a documented control code or escape sequence, refer to the hex representation in the provided example. This should clarify any ambiguity. The examples may also be helpful when analyzing a hex dump (see chapter 8) printed by the printer. Column and line numbers begin at zero, not at one. Keep this in mind when setting tabs, margins, etc.
Epson FX Emulation Control Codes and Escape Sequences Grouped by Function Communications Cancel Line CAN Cancels all printable text in the current print line. Does not affect any control codes or escape sequences. Control code: Hexadecimal: CAN 18 Delete Character DEL Deletes the last printable character from the current line. Does not affect any control codes or escape sequences.
Epson FX Emulation Set MSB to 0 ESC = Sets the MSB (most significant bit) of all following data to zero. Some computers always set the MSB to one, causing all characters to print in italic mode. This escape sequence can overcome the problem. The problem can also be avoided by selecting "Data Bits: 7" in the "Setup: INTERFACE" menu. Escape Sequence: Hexadecimal: ESC = 1B 3D Set MSB to 1 ESC > Sets the MSB (most significant bit) of all following data to one.
Epson FX Emulation Character Size The FormsPro 4000 is capable of supporting 10, 12, 13.3, 15, 16.7, 17.14, and 20 cpi, but most emulations support only a subset of these. Epson emulation supports 10, 12, 15, 17.14, and 20 cpi via software, but does not support 13.3 or 16.7 cpi. Every emulation supports 10 cpi, and we consider this to be the default character pitch. When you use the control panel to change the "CPI:" value in the "Setup: FORM" menu, you are actually changing the default character pitch.
Epson FX Emulation Escape Sequence: Hexadecimal: ESC M 1B 4D Select 15 CPI ESC g Selects 15 cpi. Cancels 12 cpi. Condensed mode is unaffected. The resulting character spacing will be 15 cpi, even if condensed mode is also selected. Escape Sequence: Hexadecimal: ESC g 1B 67 Select Condensed Mode (or) SI ESC SI Selects condensed mode. The resulting character spacing will be 17.14 cpi if 10 cpi was selected, or 20 cpi if 12 cpi was selected. If 15 cpi was selected, condensed mode will have no affect.
Epson FX Emulation Cancel Double-Wide Mode (one line) DC4 Cancels double-wide mode selected by SO or ESC SO. Does not cancel double-wide mode selected by ESC W or ESC !. Control code: Hexadecimal: DC4 14 Double-Wide Mode ESC W n Selects double-wide mode for n=1, or cancels for n=0. Double-wide mode doubles the width of all characters, but does not affect character height. Example: The following escape sequence will select double-wide mode.
Epson FX Emulation Character Attributes Select Emphasized Mode ESC E Selects emphasized mode. This makes characters bolder by printing an extra dot to the right of each dot normally found in the character matrix. This will cut the print speed in half, but will not require an additional pass of the print head. Overrides the "Impact:" value in the "Setup: FORM" menu. Escape Sequence: Hexadecimal: ESC E 1B 45 Cancel Emphasized Mode ESC F Cancels emphasized mode.
Epson FX Emulation Select Italic Mode ESC 4 Selects italic mode. This causes italic characters to be printed by setting the MSB (most significant bit) of all following printable characters to one. The effect is to map characters from the bottom half (non-italic) of the font to the top half (italic) of the font. For this to work correctly, an Epson FX font must be selected (see ESC k). The other available fonts do not include italic characters.
Epson FX Emulation Character Sets Select Draft or Letter Quality ESC x n Selects draft for n=0 or letter quality for n=1. Same as ESC k 0 or ESC k 1. Overrides the "Font:" value in the "Setup: FORM" menu. Example: The following escape sequence will select draft print. Escape Sequence: Hexadecimal: ESC x 1B 78 0 30 Select Font ESC k n Select font n according to the following table.
Epson FX Emulation Escape Sequence: Hexadecimal: ESC k 1B 6B 1 01 Page 3-11
Epson FX Emulation Select International Character Set ESC R n Selects the international character set as specified by the value of n in the following table. Overrides the "Lang:" value in the "Setup: FORM" menu. n 0 1 2 3 4 5 6 7 8 Character Set United States of America France Germany United Kingdom Denmark Sweden Italy Spain Japan The actual character substitutions are shown in the "International Character Mapping" table below. For this to work correctly, an Epson FX font must be selected (see ESC k).
Epson FX Emulation Escape Sequence: Hexadecimal: ESC t 1B 74 0 30 Enable Printing of High Symbols ESC 6 Enables printing of character values 128 through 159 decimal. If printing is not enabled, these characters will be treated as control codes. Overrides the "Chars:" value in the "Setup: INTERFACE" menu. Escape Sequence: Hexadecimal: ESC 6 1B 36 Disable Printing of High Symbols ESC 7 Disables printing of character values 128 through 159 decimal. These characters will be treated as control codes.
Epson FX Emulation Line Pitch Select 8 LPI ESC 0 Sets the line spacing to 1/8 of an inch per line (8 lpi). Overrides the "LPI:" value in the "Setup: FORM" menu. Escape Sequence: Hexadecimal: ESC 0 1B 30 Set Line Spacing to 7/72" ESC 1 Sets the line spacing to 7/72 of an inch per line. Since the distance between print head wires is 1/72 of an inch, this is equivalent to setting seven wire spacing.
Epson FX Emulation Set Line Spacing to n/72" ESC A n Sets the line spacing to n/72 of an inch per line. 0≥n≥255. Since the distance between print head wires is 1/72 of an inch, this is equivalent to setting n wire spacing. Overrides the "LPI:" value in the "Setup: FORM" menu. Example: The following escape sequence will set line spacing to 8/72 of an inch, for use with eight wire graphics.
Epson FX Emulation Vertical Position Line Feed LF Causes the current line to be printed, and then advances the paper one line at the current line spacing. If "Auto CR: On" is selected in the "Setup: INTERFACE" menu, a carriage return will also be performed. Control code: Hexadecimal: LF 0A Variable Distance Line Feed ESC J n Causes the current line to be printed, and then performs a single line feed of n/216ths of an inch. 0≥n≥255. Does not change the current line spacing.
Epson FX Emulation Form Length and Form Feed Form length is the distance from the top of the form to the bottom of the form. Form length may be specified either in inches, or in lines. A form feed will advance the paper to the top of the next form. Some programs do not send form feeds. Instead, they count line feeds, and send the appropriate number of line feeds to fill out the page.
Epson FX Emulation Example: The following escape sequence will set form length to 11 inches, regardless of what line spacing is set. Escape sequence: Hexadecimal: ESC C NUL 11 1B 43 00 0B Form Feed FF Causes the current line to be printed, and then advances the paper to the top of the next form. If a top margin is set, printing will continue at the top margin. The "FF at TOF: No" value in the "Setup: INTERFACE" menu allows a form feed to be ignored if the paper is already at top of form.
Epson FX Emulation Horizontal Tabs Default horizontal tab stops are set at every eighth column, i.e. column 8, 16, 24, 32, 40, etc. The default tab stops are associated with columns, not absolute physical positions. Changing character spacing will change the physical position of the default tab stops. User defined horizontal tab stops are associated with absolute physical positions, not with columns.
Epson FX Emulation Relative Horizontal Tab ESC \ n1 n2 Move the carriage position to the left or right of the current carriage position. The n1 + (n2 ↔256 ) displacement is specified in 120ths of an inch, and calculated as inches. 120 The new position is relative to the current carriage position, and must fall within the left and right margins or it will be ignored. A negative displacement (2’s complement) causes a move to the left.
Epson FX Emulation Vertical Tabs Vertical tab stops are associated with absolute physical positions, not with lines. The tab stops are set relative to the current line spacing, but subsequent changes in line spacing will not affect the physical position of the tab stops. Vertical Tab VT Causes the current line to be printed, and then advances the paper to the next vertical tab stop. If no vertical tab stops are set, then a line feed is done instead.
Epson FX Emulation Horizontal Margins Printing is allowed only within the left and right margins. Exceeding the right margin will cause line wrap, setting the current print position to the left margin and advancing the paper one line. Set Left Margin ESC l n Sets the left margin to column n at the current character spacing. If character spacing is changed after setting the left margin, the position of the left margin will not change. The left margin is inclusive.
Epson FX Emulation Vertical Margins Printing is allowed only within the top and bottom margins. Exceeding the bottom margin will set the current line to the top margin of the next form. Set Perforation Skip ESC N n Sets the perforation skip distance to n lines at the current line spacing. 1≥n≥255. If line spacing is changed after setting the skip distance, the skip distance will not be changed.
Epson FX Emulation Graphics Graphics mode gives the user complete control over every dot position on the paper. Graphics may be printed with various horizontal densities from 60 to 240 dpi, and a vertical density of 72 dpi. Each byte of graphics data represents a vertical column of eight dots, with the MSB (most significant bit) corresponding to the top wire of the print head. Turning a bit on causes a dot to be printed.
Epson FX Emulation 60 DPI Graphics ESC K n1 n2 data Selects eight wire single density (60 dpi) graphics for n1 + (n2 x 256) columns of data. Example: The following escape sequence will print six bytes of graphics data at 60 dpi. The resulting figure will resemble a backslash character, "\".
Epson FX Emulation m DPI Graphics ESC * m n1 n2 data Selects eight wire graphics of density m as listed in the following table for n1 + (n2 x 256) columns of data. m 0 1 2 3 4 5 6 7 Density _______ 60 dpi (same as ESC K) 120 dpi (same as ESC L) 120 dpi high speed (same as ESC Y) 240 dpi high speed (same as ESC Z) 80 dpi 72 dpi 90 dpi 144 dpi Example: The following escape sequence will print four bytes of graphics data at 72 x 72 dpi.
Epson FX Emulation Printer Controls Bell BEL Causes the printer's bell to sound. Control code: Hexadecimal: BEL 07 Unidirectional Mode (one line) ESC < Selects unidirectional mode for the current line (until a carriage return is received). This will force the line to print from left to right. Escape Sequence: Hexadecimal: ESC < 1B 3C Unidirectional Mode ESC U n Selects unidirectional mode for n=1, or bidirectional mode for n=0. Printing is normally bidirectional.
Epson FX Emulation Forms and Tractors The FormsPro 4503 contains three sets of paper tractors (front, center, and rear). It is possible, via software, to change to a different set of tractors and continue printing. You may change to a different set of tractors by selecting a different form. The "Path:" value in the "Setup: FORM" menu specifies "Front", "Center", or "Rear" for each form that is defined. When a form is selected, the associated set of tractors is also automatically selected.
Epson FX Emulation Emulations Select Software Interface n ESC ESC n Selects the software interface n according to the table below. n 0 1 2 3 4 5 6 7 ? @ Software Interface Test (reserved for factory use) ANSI X3.64 Emulation Epson FX Emulation Bar Code Mode (optional) IBM Proprinter Emulation DEC LA120 Emulation TTY Emulation Printek Emulation Previously Selected Emulation Default Emulation Overrides the "Mode:" value in the "Setup: INTERFACE" menu.
Epson FX Emulation Control Codes and Escape Sequences Sorted Alphabetically BEL BS CAN CR DC2 DC3 DC4 DEL ESC ! n ESC # ESC * m n1 n2 data ESC - n ESC 0 ESC 1 ESC 2 ESC 3 n ESC 4 ESC 5 ESC 6 ESC 7 ESC < ESC = ESC > ESC @ ESC A n ESC B n1 n2 ... nx NUL ESC C NUL n ESC C n ESC D n1 n2 ...
Epson FX Emulation ESC K n1 n2 data ESC L n1 n2 data ESC M ESC N n ESC O ESC P ESC Q n ESC R n ESC S n ESC SI ESC SO ESC T ESC U n ESC W n ESC Y n1 n2 data ESC Z n1 n2 data ESC g ESC j n ESC k n ESC l n ESC w n ESC x n ETX FF HT LF SI SO VT XOFF 60 DPI Graphics 120 DPI Graphics Select 12 CPI Set Perforation Skip Cancel Perforation Skip Select 10 CPI Set Right Margin Select International Character Set Select Subscript or Superscript Mode Select Condensed Mode Select Double-Wide Mode (one line) Cancel Subscr
IBM PROPRINTER EMULATION Introduction This section describes the control codes and escape sequences comprising IBM Proprinter emulation. This emulation may be selected by specifying "Mode: Proprinter" in the "Setup: INTERFACE" menu, or via software with the ESC ESC 4 sequence. While this emulation is selected, control codes and escape sequences from other emulations are not available. Control codes and escape sequences are used to control printer operation.
IBM Proprinter Emulation a documented control code or escape sequence, refer to the hex representation in the provided example. This should clarify any ambiguity. The examples may also be helpful when analyzing a hex dump (see chapter 8) printed by the printer. Column and line numbers begin at one, not at zero. Keep this in mind when setting tabs, margins, etc.
IBM Proprinter Emulation Control Codes and Escape Sequences Grouped by Function Communications Cancel Line CAN Cancels all printable text in the current print line. Does not affect any control codes or escape sequences. Control code: Hexadecimal: CAN 18 End of Text ETX If "ETX/ACK: On" is specified in the "Setup: INTERFACE" menu, then receipt of an ETX causes the printer to transmit an ACK to the host computer.
IBM Proprinter Emulation Character Size The FormsPro 4000 is capable of supporting 10, 12, 13.3, 15, 16.7, 17.14, and 20 cpi, but most emulations support only a subset of these. IBM Proprinter emulation supports 10, 12, 17.14, and 20 cpi via software, but does not support 13.3, 15 or 16.7 cpi. Every emulation supports 10 cpi, and we consider this to be the default character pitch.
IBM Proprinter Emulation Select Condensed Mode (or) SI ESC SI Selects condensed mode. The resulting character spacing will be 17.14 cpi if 10 cpi was selected, or 20 cpi if 12 cpi was selected. Control code: Hexadecimal: Escape Sequence: Hexadecimal: SI 0F ESC SI 1B 0F Select Double-Wide Mode (one line) (or) SO ESC SO Selects double-wide mode for one line. Double-wide mode doubles the width of all characters, but does not affect character height. This mode is cancelled by a carriage return or DC4.
IBM Proprinter Emulation Double-High Mode ESC [ @ n1 n2 m1 m2 m3 m4 Selects single or double-high mode, single or double-wide mode, and single or double line feeds. The two bytes n1 and n2 specify how many mode bytes (m1, m2, m3, m4) follow. Theoretically, there may be n1 + (n2 x 256) mode bytes. Actually, n2 must be 0, and n1 may be 0 to 4, but is normally 4. m1 and m2 must be 0 (NUL). m3 and m4 may be set to the values in the following tables.
IBM Proprinter Emulation Character Attributes Select Emphasized Mode ESC E Selects emphasized mode. This makes characters bolder by printing an extra dot to the right of each dot normally found in the character matrix. This will cut the print speed in half, but will not require an additional pass of the print head. Overrides the "Impact:" value in the "Setup: FORM" menu. Escape Sequence: Hexadecimal: ESC E 1B 45 Cancel Emphasized Mode ESC F Cancels emphasized mode.
IBM Proprinter Emulation Character Sets Select Character Set 1 ESC 7 Selects character set 1. Disables printing of character values 0 through 31 decimal, and 128 through 159 decimal, so these characters will be treated as control codes. Overrides the "Chars:" value in the "Setup: INTERFACE" menu. Escape Sequence: Hexadecimal: ESC 7 1B 37 Select Character Set 2 ESC 6 Selects character set 2. Enables printing of character values 0 through 31 decimal if they are not used as control codes.
IBM Proprinter Emulation Select Print Mode ESC I n Selects print mode n according to the following chart. Overrides the "Font:" value in the "Setup: FORM" menu. n 0 1 2 3 Print Mode Draft Draft 12 cpi Letter Quality Letter Quality Example: The following escape sequence will select the IBM Proprinter letter quality font. Escape Sequence: Hexadecimal: ESC I 1B 49 3 03 Line Pitch Select 8 LPI ESC 0 Sets the line spacing to 1/8 of an inch per line (8 lpi).
IBM Proprinter Emulation Set Line Spacing to n/216" ESC 3 n Sets the line spacing to n/216 of an inch per line. 0≥n≥255. Overrides the "LPI:" value in the "Setup: FORM" menu. NOTE: The actual resolution of the FormsPro 4000 paper stepper motor is 1/288 of an inch. When spacing is specified in 1/216 of an inch, the printer will actually move paper to the nearest 1/288 of an inch. Example: The following escape sequence will set line spacing to one half inch.
IBM Proprinter Emulation Horizontal Position Carriage Return CR Causes the current line to be printed, and then sets the current print position to the left margin. If "Auto LF: On" is selected in the "Setup: INTERFACE" menu, a line feed will also be performed. Control code: Hexadecimal: CR 0D Backspace BS Causes the current line to be printed, and then moves the current print position one space to the left. The actual distance moved depends on the current character spacing.
IBM Proprinter Emulation Form Length and Form Feed Form length is the distance from the top of the form to the bottom of the form. Form length may be specified either in inches, or in lines. A form feed will advance the paper to the top of the next form. Some programs do not send form feeds. Instead, they count line feeds, and send the appropriate number of line feeds to fill out the page.
IBM Proprinter Emulation Example: The following escape sequence will set form length to 11 inches, regardless of what line spacing is set. Escape sequence: Hexadecimal: ESC C NUL 11 1B 43 00 0B Form Feed FF Causes the current line to be printed, and then advances the paper to the top of the next form. If a top margin is set, printing will continue at the top margin. The "FF at TOF: No" value in the "Setup: INTERFACE" menu allows a form feed to be ignored if the paper is already at top of form.
IBM Proprinter Emulation Horizontal Tabs Default horizontal tab stops are set at every eighth column, i.e. column 9, 17, 25, 33, 41, etc. The default tab stops are associated with columns, not absolute physical positions. Changing character spacing will change the physical position of the default tab stops. User defined horizontal tab stops are associated with absolute physical positions, not with columns.
IBM Proprinter Emulation Vertical Tabs Vertical tab stops are associated with absolute physical positions, not with lines. The tab stops are set relative to the current line spacing, but subsequent changes in line spacing will not affect the physical position of the tab stops. Vertical Tab VT Causes the current line to be printed, and then advances the paper to the next vertical tab stop. If no vertical tab stops are set, then a line feed is done instead.
IBM Proprinter Emulation Escape Sequence: Hexadecimal: Page 4-16 ESC R 1B 52
IBM Proprinter Emulation Horizontal Margins Printing is allowed only within the left and right margins. Exceeding the right margin will cause line wrap, setting the current print position to the left margin and advancing the paper one line. Set Left and Right Margin ESC X n1 n2 Sets the left margin to column n1 and the right margin to column n2 at the current character spacing. 0≥n1≥255, 0≥n2≥255. If character spacing is changed after setting the margins, the position of the margins will not change.
IBM Proprinter Emulation Vertical Margins Printing is allowed only within the top and bottom margins. Exceeding the bottom margin will set the current line to the top margin of the next form. Set Perforation Skip ESC N n Sets the perforation skip distance to n lines at the current line spacing. 1≥n≥255. If line spacing is changed after setting the skip distance, the skip distance will not be changed.
IBM Proprinter Emulation Graphics Graphics mode gives the user complete control over every dot position on the paper. Graphics may be printed with various horizontal densities from 60 to 240 dpi, and a vertical density of 72 dpi. Each byte of graphics data represents a vertical column of eight dots, with the MSB (most significant bit) corresponding to the top wire of the print head. Turning a bit on causes a dot to be printed.
IBM Proprinter Emulation 60 DPI Graphics ESC K n1 n2 data Selects eight wire single density (60 dpi) graphics for n1 + (n2 x 256) columns of data. Example: The following escape sequence will print six bytes of graphics data at 60 dpi. The resulting figure will resemble a backslash character, "\".
IBM Proprinter Emulation Printer Controls Bell BEL Causes the printer's bell to sound. Control code: Hexadecimal: BEL 07 Unidirectional Mode ESC U n Selects unidirectional mode for n=1, or bidirectional mode for n=0. Printing is normally bidirectional. Unidirectional printing provides more accurate positioning, but causes lower throughput. Example: The following escape sequence will force unidirectional printing.
IBM Proprinter Emulation Emulations Select Software Interface n ESC ESC n Selects the software interface n according to the table below. n 0 1 2 3 4 5 6 7 ? @ Software Interface Test (reserved for factory use) ANSI X3.64 Emulation Epson FX Emulation Bar Code Mode (optional) IBM Proprinter Emulation DEC LA120 Emulation TTY Emulation Printek Emulation Previously Selected Emulation Default Emulation Overrides the "Mode:" value in the "Setup: INTERFACE" menu.
IBM Proprinter Emulation Control Codes and Escape Sequences Sorted Alphabetically BEL BS CAN CR DC2 DC4 ESC - n ESC 0 ESC 1 ESC 2 ESC 3 n ESC 4 ESC 5 n ESC 6 ESC 7 ESC : ESC A n ESC B n1 n2 ... nx NUL ESC C NUL n ESC C n ESC D n1 n2 ...
IBM Proprinter Emulation ESC T ESC U n ESC W n ESC X n1 n2 ESC Y n1 n2 data ESC Z n1 n2 data ESC [ @ n1 n2 m1 m2 m3 m4 ESC \ n1 n2 ESC ^ n ETX FF HT LF SI SO VT Page 4-24 Cancel Subscript and Superscript Mode Unidirectional Mode Double-Wide Mode Set Left and Right Margin High Speed 120 DPI Graphics High Speed 240 DPI Graphics Double-High Mode Print Characters Print Single Character End of Text Form Feed Horizontal Tab Line Feed Select Condensed Mode Select Double-Wide Mode (one line) Vertical Tab
DEC LA120 EMULATION Introduction This section describes the control codes and escape sequences comprising DEC LA120 emulation. This emulation may be selected by specifying "Mode: LA120" in the "Setup: INTERFACE" menu, or via software with the ESC ESC 5 sequence. While this emulation is selected, control codes and escape sequences from other emulations are not available. Control codes and escape sequences are used to control printer operation.
DEC LA120 Emulation The " f" at the end of the escape sequence represents the final character. It terminates the sequence, and specifies the function to be performed. Spaces are used when documenting escape sequences to increase readability. The spaces within the sequences are for readability only; they are not part of the sequences themselves.
DEC LA120 Emulation Control Codes and Escape Sequences Grouped by Function Communications Null NUL This control code is ignored by the printer. Control code: Hexadecimal: NUL 00 Delete DEL This control code is ignored by the printer. Control code: Hexadecimal: DEL 7F End of Text ETX If "ETX/ACK: On" is specified in the "Setup: INTERFACE" menu, then receipt of an ETX causes the printer to transmit an ACK to the host computer.
DEC LA120 Emulation Character Size The FormsPro 4000 is capable of supporting 10, 12, 13.3, 15, 16.7, 17.14, and 20 cpi, but most emulations support only a subset of these. LA120 emulation supports 10, 12, 13.3, and 16.7 cpi via software, but does not support 15, 17.14, or 20 cpi. Every emulation supports 10 cpi, and we consider this to be the default character pitch. When you use the control panel to change the "CPI:" value in the "Setup: FORM" menu, you are actually changing the default character pitch.
DEC LA120 Emulation Example: The following escape sequence will select 10 cpi character spacing. If "CPI: 10" was not specified in the "Setup: FORM" menu, the specified default character pitch will be selected instead of 10 cpi. Escape Sequence: Hexadecimal: ESC [ 1B 5B w 77 Example: The following escape sequence will select 12 cpi character spacing.
DEC LA120 Emulation Character Sets Select International Character Set ESC ( a Selects the international character set as specified by the character a in the following table. Overrides the "Lang:" value in the "Setup: FORM" menu. a A B C E H K R Character Set United Kingdom United States of America Sweden Denmark Sweden Germany France The actual character substitutions are shown in the "International Character Mapping" table below.
DEC LA120 Emulation Line Pitch Set Line Spacing ESC [ n z Sets the line spacing as specified in the following table. Omitting n is equivalent to specifying zero. n 0 1 2 3 4 5 6 line pitch 6 lpi 6 lpi 8 lpi 12 lpi 2 lpi 3 lpi 4 lpi Overrides the "LPI:" value in the "Setup: FORM" menu. Example: The following escape sequence will set line spacing to 1/6 of an inch per line (6 lpi).
DEC LA120 Emulation Horizontal Position Carriage Return CR Causes the current line to be printed, and then sets the current print position to the left margin. If "Auto LF: On" is selected in the "Setup: INTERFACE" menu, a line feed will also be performed. Control code: Hexadecimal: CR 0D Backspace BS Causes the current line to be printed, and then moves the current print position one space to the left. The actual distance moved depends on the current character spacing.
DEC LA120 Emulation Vertical Position Line Feed (or) (or) LF IND ESC D Causes the current line to be printed, and then advances the paper one line at the current line spacing. If "Auto CR: On" is selected in the "Setup: INTERFACE" menu, a carriage return will also be performed. Control code: Hexadecimal: LF 0A Control code: Hexadecimal: IND 84 Escape Sequence: Hexadecimal: ESC D 1B 44 Absolute Vertical Tab ESC [ n d Sets the current line to line n of the current form.
DEC LA120 Emulation Horizontal and Vertical Position New Line (or) NEL ESC E Causes the current line to be printed, and then sets the current print position to the left margin and performs a line feed. Equivalent to a carriage return (CR) line feed (LF) combination.
DEC LA120 Emulation Form Length and Form Feed Form length is the distance from the top of the form to the bottom of the form. A form feed will advance the paper to the top of the next form. Some programs do not send form feeds. Instead, they count line feeds, and send the appropriate number of line feeds to fill out the page. The usual rational is that the program is then in complete control of form length, and will work on any printer without requiring the correct form length to be set.
DEC LA120 Emulation Horizontal Tabs Horizontal tab stops are associated with columns, not absolute physical positions. Changing character spacing will change the physical position of the tab stops. Default tab stops are set at every eighth column, i.e. column 9, 17, 25, 33, 41, etc. If different tab stops are to be set, the default tab stops should first be cleared. Horizontal Tab HT Advances to the next horizontal tab stop.
DEC LA120 Emulation will change the physical position of the tab stops. The leftmost column is column one. Default tab stops are set at every eighth column, i.e. column 9, 17, 25, 33, 41, etc. The tab stops set by this escape sequence will be added to previously set tab stops, including the default tab stops. If this is not desired, the old tab stops should first be cleared. Example: The following escape sequence will set horizontal tab stops at five column intervals.
DEC LA120 Emulation Vertical Tabs Vertical tab stops are associated with lines, not absolute physical positions. Changing line spacing will change the physical position of the tab stops. Vertical Tab VT Causes the current line to be printed, and then advances the paper to the next vertical tab stop. If no vertical tab stops are set, then a line feed is done instead. If "Auto CR: On" is selected in the "Setup: INTERFACE" menu, a carriage return will also be performed.
DEC LA120 Emulation Example: The following escape sequence will set vertical tab stops at line 7, 13, and 25. If line spacing is 6 lpi, this will result in tab stops one inch, two inches, and four inches from the top of the form. Escape Sequence: Hexadecimal: ESC [ 1B 5B 7 37 ; 3B 1 31 3 33 ; 3B 2 32 5 35 v 76 Example: The following escape sequence will set a vertical tab stop at line seven.
DEC LA120 Emulation Horizontal Margins Printing is allowed only within the left and right margins. Exceeding the right margin will cause line wrap, setting the current print position to the left margin and advancing the paper one line. Set Left and Right Margin ESC [ n1 ; n2 s Sets the left margin to column n1 and the right margin to column n2 at the current character spacing. 0≥n1≥255, 0≥n2≥255. If character spacing is changed after setting the margins, the position of the margins will not change.
DEC LA120 Emulation Vertical Margins Printing is allowed only within the top and bottom margins. Exceeding the bottom margin will set the current line to the top margin of the next form. Set Top and Bottom Margins ESC [ n1 ; n2 r Sets the top margin to line n1 and the bottom margin to line n2 at the current line spacing. 0≥n1≥255, 0≥n2≥255. If line spacing is changed after setting the margins, the position of the margins will not change. Vertical margins are cleared by ESC [ n t.
DEC LA120 Emulation Printer Controls Bell BEL Causes the printer's bell to sound. Control code: Hexadecimal: BEL 07 Select Automatic Carriage Return ESC [ 20 h Selects automatic carriage return mode. This causes the printer to automatically perform a carriage return (CR) for each line feed (LF), vertical tab (VT), or form feed (FF) that it receives. Overrides the "Auto CR:" value in the "Setup: INTERFACE" menu.
DEC LA120 Emulation Emulations Select Software Interface n ESC ESC n Selects the software interface n according to the table below. n 0 1 2 3 4 5 6 7 ? @ Software Interface Test (reserved for factory use) ANSI X3.64 Emulation Epson FX Emulation Bar Code Mode (optional) IBM Proprinter Emulation DEC LA120 Emulation TTY Emulation Printek Emulation Previously Selected Emulation Default Emulation Overrides the "Mode:" value in the "Setup: INTERFACE" menu.
DEC LA120 Emulation Control Codes and Escape Sequences Sorted Alphabetically BEL BS CR DEL ESC ( a ESC 1 ESC 2 ESC 3 ESC 4 ESC D ESC E ESC ESC n ESC H ESC J ESC [ n ` ESC [ n a ESC [ c ESC [ 0 c ESC [ n d ESC [ n e ESC [ g ESC [ 0 g ESC [ 1 g ESC [ 2 g ESC [ 3 g ESC [ 4 g ESC [ 20 h ESC [ 20 l ESC [ n m ESC [ n1 ; n2 r ESC [ n1 ; n2 s ESC [ n t ESC [ n1 ; n2 ; ... nx u ESC [ n1 ; n2 ; ...
DEC LA120 Emulation FF HT HTS IND LF NEL NUL VT VTS Form Feed Horizontal Tab Set Horizontal Tab Stop Line Feed Line Feed New Line Null Vertical Tab Set Vertical Tab Stop Page 5-21
SIMPLE TTY EMULATION Introduction This section describes the control codes and escape sequences comprising simple TTY emulation. This emulation may be selected by specifying "Mode: TTY" in the "Setup: INTERFACE" menu, or via software with the ESC ESC 6 sequence. While this emulation is selected, control codes and escape sequences from other emulations are not available. Control codes and escape sequences are used to control printer operation.
Simple TTY Emulation Control Codes and Escape Sequences Grouped by Function Communications End of Text ETX If "ETX/ACK: On" is specified in the "Setup: INTERFACE" menu, then receipt of an ETX causes the printer to transmit an ACK to the host computer. Since the ETX may be a legal value within an escape sequence, it is the user's responsibility to ensure that an ETX used for data handshake is not sent within an escape sequence.
Simple TTY Emulation Vertical Position Line Feed LF Causes the current line to be printed, and then advances the paper one line at the current line spacing. If "Auto CR: On" is selected in the "Setup: INTERFACE" menu, a carriage return will also be performed. Control code: Hexadecimal: LF 0A Form Length and Form Feed Form length is the distance from the top of the form to the bottom of the form. A form feed will advance the paper to the top of the next form. Some programs do not send form feeds.
Simple TTY Emulation Horizontal Tabs Default horizontal tab stops are set at every eighth column, i.e. column 8, 16, 24, 32, 40, etc. (The first column is column zero.) The default tab stops are associated with columns, not absolute physical positions. Changing character spacing will change the physical position of the default tab stops. Horizontal Tab HT Advances to the next horizontal tab stop. If no tab stop exists between the active column and the right margin, the HT will be ignored.
Simple TTY Emulation Emulations Select Software Interface n ESC ESC n Selects the software interface n according to the table below. n 0 1 2 3 4 5 6 7 ? @ Software Interface Test (reserved for factory use) ANSI X3.64 Emulation Epson FX Emulation Bar Code Mode (optional) IBM Proprinter Emulation DEC LA120 Emulation TTY Emulation Printek Emulation Previously Selected Emulation Default Emulation Overrides the "Mode:" value in the "Setup: INTERFACE" menu.
Simple TTY Emulation Control Codes and Escape Sequences Sorted Alphabetically BEL BS CR ESC ESC n ETX FF HT LF VT Page 6-6 Bell Backspace Carriage Return Select Software Interface n End of Text Form Feed Horizontal Tab Line Feed Vertical Tab
PRINTEK EMULATION Introduction This section describes the control codes and escape sequences comprising Printek emulation. This emulation may be selected by specifying "Mode: Printek" in the "Setup: INTERFACE" menu, or via software with the ESC ESC 7 sequence. While this emulation is selected, control codes and escape sequences from other emulations are not available. Control codes and escape sequences are used to control printer operation.
Printek Emulation a documented control code or escape sequence, refer to the hex representation in the provided example. This should clarify any ambiguity. The examples may also be helpful when analyzing a hex dump (see chapter 8) printed by the printer. Column and line numbers begin at zero, not at one. Keep this in mind when setting tabs, margins, etc. Printek emulation was developed to allow access to the full range of hardware features available in the Printek FormsPro 4000.
Printek Emulation Control Codes and Escape Sequences Grouped by Function Communications End of Text ETX If "ETX/ACK: On" is specified in the "Setup: INTERFACE" menu, then receipt of an ETX causes the printer to transmit an ACK to the host computer. Since the ETX may be a legal value within an escape sequence, it is the user's responsibility to ensure that an ETX used for data handshake is not sent within an escape sequence.
Printek Emulation Character Size Set Character Spacing ESC SP n Sets character spacing in decipoints (n/720 of an inch). Overrides the "CPI:" value in the "Setup: FORM" menu. Supported values are shown in the following table. n 72 60 54 48 43 42 36 Character Size 10 cpi 12 cpi 13.3 cpi 15 cpi 16.74 cpi 17.14 cpi 20 cpi Example: The following escape sequence will select 10 cpi character spacing.
Printek Emulation the height of all characters. These modes are mutually exclusive, and none of them affect character width. Example: The following escape sequence will select double-high mode. Escape Sequence: Hexadecimal: ESC S 1B 53 3 03 Character Attributes Emphasized Mode ESC E n Selects emphasized mode for n=1, or cancels for n=0. Emphasized mode makes characters bolder by printing an extra dot to the right of each dot normally found in the character matrix.
Printek Emulation Character Sets Select Font ESC F n Select font n according to the following table.
Printek Emulation Print Single Character ESC \ n Prints the character n from the selected font. This sequence may be used to print a character that is normally treated as a control code. Example: The following escape sequence will print a left arrow, if a Proprinter font is selected. This character is normally not printable, since it is treated as the ESC control code.
Printek Emulation Horizontal Position Carriage Return CR Causes the current line to be printed, and then sets the current print position to the left margin. If "Auto LF: On" is selected in the "Setup: INTERFACE" menu, a line feed will also be performed. Control code: Hexadecimal: CR 0D Backspace BS Causes the current line to be printed, and then moves the current print position one space to the left. The actual distance moved depends on the current character spacing.
Printek Emulation Form Length and Form Feed Form length is the distance from the top of the form to the bottom of the form. A form feed will advance the paper to the top of the next form. Some programs do not send form feeds. Instead, they count line feeds, and send the appropriate number of line feeds to fill out the page. The usual rational is that the program is then in complete control of form length, and will work on any printer without requiring the correct form length to be set.
Printek Emulation Horizontal Tabs Default horizontal tab stops are set at every eighth column, i.e. column 8, 16, 24, 32, 40, etc. The default tab stops are associated with columns, not absolute physical positions. Changing character spacing will change the physical position of the default tab stops. User defined horizontal tab stops are associated with absolute physical positions, not with columns.
Printek Emulation Vertical Tabs Vertical tab stops are associated with absolute physical positions, not with lines. The tab stops are set relative to the current line spacing, but subsequent changes in line spacing will not affect the physical position of the tab stops. Vertical Tab VT Causes the current line to be printed, and then advances the paper to the next vertical tab stop. If no vertical tab stops are set, then a line feed is done instead.
Printek Emulation Horizontal and Vertical Tabs Reset Horizontal and Vertical Tab Stops ESC R Clears all currently set horizontal tab stops, and restores the default horizontal tab stops. Default horizontal tab stops are set at every eighth column, i.e. column 8, 16, 24, 32, 40, etc. Clears all currently set vertical tab stops. Escape Sequence: Hexadecimal: ESC R 1B 52 Horizontal Margins Printing is allowed only within the left and right margins.
Printek Emulation Vertical Margins Printing is allowed only within the top and bottom margins. Exceeding the bottom margin will set the current line to the top margin of the next form. Set Top and Bottom Margins ESC V n1 n2 Sets the top margin to line n1 and the bottom margin to line n2 at the current line spacing. 0≥n1≥255, 0≥n2≥255. If line spacing is changed after setting the margins, the position of the margins will not change. Vertical margins are cleared by ESC FF n.
Printek Emulation Graphics Graphics mode gives the user complete control over every dot position on the paper. Graphics may be printed with various horizontal densities from 60 to 240 dpi, and a vertical density of 72 dpi. Each byte of graphics data represents a vertical column of eight dots, with the MSB (most significant bit) corresponding to the top wire of the print head. Turning a bit on causes a dot to be printed.
Printek Emulation m DPI Graphics ESC * m n1 n2 data Selects eight wire graphics of density m as listed in the following table for n2 + (n1 x 256) columns of data. m 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Density 240 dpi 240 dpi high speed 180 dpi 180 dpi high speed 144 dpi 144 dpi high speed 120 dpi 120 dpi high speed 102.86 dpi 102.86 dpi high speed 90 dpi 90 dpi high speed 80 dpi 80 dpi high speed 72 dpi 72 dpi high speed 65.45 dpi 65.
Printek Emulation m DPI Graphics ESC # m n1 n2 data Selects eight wire graphics of density m as listed in the following table for n2 + (n1 x 256) columns of data. m 90 100 135 150 Density 90 dpi 100 dpi 135 dpi 150 dpi NOTE: Horizontal movement of the FormsPro 4000 print head is measured in intervals of 1/720 of an inch. The supported graphics densities above may not be an integral multiple of this resolution. For example, at 150 dpi, dots may be printed every 4.8/720 of an inch.
Printek Emulation Printer Controls Bell BEL Causes the printer's bell to sound. Control code: Hexadecimal: BEL 07 Unidirectional Mode ESC U n Selects unidirectional mode for n=1, or bidirectional mode for n=0. Printing is normally bidirectional. Unidirectional printing provides more accurate positioning, but causes lower throughput. Example: The following escape sequence will force unidirectional printing.
Printek Emulation AutoCut ESC B n Selects Auto Cut On for n=1, or Auto Cut Off for n=0 for the currently selected form if the optional Printek FormsCutter is installed. When Auto Cut is turned on, the FormsCutter will automatically cut off each form as it is ejected from the printer. Example: The following escape sequence will select Auto Cut = On. Escape Sequence: Hexadecimal: ESC B 1B 42 1 31 Cut Form ESC C Ejects the current form and cuts it off if the optional Printek FormsCutter is installed.
Printek Emulation Forms and Tractors The FormsPro 4503 contains three sets of paper tractors (front, center, and rear). It is possible, via software, to change to a different set of tractors and continue printing. You may change to a different set of tractors by selecting a different form. The "Path:" value in the "Setup: FORM" menu specifies "Front", "Center", or "Rear" for each form that is defined. When a form is selected, the associated set of tractors is also automatically selected.
Printek Emulation Emulations Select Software Interface n ESC ESC n Selects the software interface n according to the table below. n 0 1 2 3 4 5 6 7 ? @ Software Interface Test (reserved for factory use) ANSI X3.64 Emulation Epson FX Emulation Bar Code Mode (optional) IBM Proprinter Emulation DEC LA120 Emulation TTY Emulation Printek Emulation Previously Selected Emulation Default Emulation Overrides the "Mode:" value in the "Setup: INTERFACE" menu. BarberPole" and "Mode: Hex Dump" cannot be overridden.
Printek Emulation Control Codes and Escape Sequences Sorted Alphabetically BEL BS CR DC3 ESC # m n1 n2 data ESC * m n1 n2 data ESC @ ESC A n ESC D n ESC E n ESC ESC n ESC F n ESC FF n ESC G n ESC H n1 n2 ESC HT n1 n2 ... nx NUL ESC I n ESC L n ESC LF n ESC R ESC S n ESC SP n ESC U n ESC V n1 n2 ESC VT n1 n2 ...
HEX DUMP MODE Hex dump mode provides a way to print, in a readable form, all the data received by the printer. This tool is useful to programmers for diagnosing problems with control codes and escape sequences sent to the printer. Hex dump mode may also be used to detect what commands are being sent by a particular software application to help determine which emulation mode is needed for that application. To select hex dump mode, specify the value "Mode: Hex Dump" in the "Setup: INTERFACE" menu.
OPTIONAL COAXIAL/TWINAXIAL INTERFACE Introduction This appendix describes the automatic port switching between the coaxial/twinaxial port and the parallel port available as a part of this interface (this interface replaces the printer's standard parallel interface). This appendix also describes how to send control codes and escape sequences to the printer through the coaxial/twinaxial port.
Optional Coaxial/Twinaxial Interface Command Interpreter A user friendly command interpreter has been built into the coaxial/twinaxial interface. This feature allows you to send any hexadecimal character or string of characters to the printer through the coaxial/twinaxial port. The logical not character (__) used below may be shown as the carat (^) on some keyboards. Either character is usually the accessed as a SHIFT-6 on the main keyboard.
Optional Coaxial/Twinaxial Interface To assist in verifying that the proper EBCDIC characters are being sent to the coaxial/twinaxial port from the host, refer to the interface diagnostics section in the coaxial/twinaxial appendix in the Operator's Manual for information on how to use the Code Dump mode of the interface. To verify that the interface is sending the correct ASCII characters to the printer, see the Hex Dump chapter in this manual.
PRINTING BASIC BAR CODES Introduction This section describes the control codes and escape sequences comprising bar code emulation. This emulation may be selected by specifying "Mode: Bar Codes" in the "Setup: INTERFACE" menu, or via software with the ESC ESC 3 sequence. While this emulation is selected, control codes and escape sequences from other emulations are not available. Control codes and escape sequences are used to control printer operation.
Printing Bar Codes The Printek FormsPro 4000 series printers internally support the following types of basic bar codes: Code 39 1:1:2:2 Ratio Code 39 1:1:3:3 Ratio Code 39 1:2:4:5 Ratio Code 39 1:1:2.5:2.5 Ratio (LOGMAR Standard Density) Code 39 1.5:1.5:3.5:3.5 Ratio (LOGMAR Medium Density) Code 39 2:2:4.5:4.5 Ratio (LOGMAR Low Density) 2-of-5 1:1:3:X Ratio 2-of-5 1:2:3:X Ratio Interleaved 2-of-5 BS Code 1:1:3:3 Ratio Interleaved 2-of-5 BS Code 1:2:4:5 Ratio Interleaved 2-of-5 BS Code 1.5:1.5:4.5:4.
Printing Bar Codes These bar codes can be automatically printed with the use of a few simple bar code sequences. The height of the bar codes is easily varied. Additionally, the dimensions of the bars and spaces may be varied to produce bar codes of different widths and ratios. Horizontal and vertical positioning sequences allow precise placement of a bar code on a label, or placement of multiple bar codes across and down the page.
Printing Bar Codes Bar Code Sequences To print bar codes, the following sequences are used in bar code mode: BAR CODE SEQUENCE FUNCTION BEL ESC ESC n ETX FF LF Sound the Bell. Change Emulation Mode ETX/ACK Software Handshake. Form Feed. Fractional Line Feed (to next line boundary) Horizontal Bar Code. Variable Width Horizontal Bar Code. Bar Code Height. Relative Vertical Tab. Absolute Horizontal Tab. Bar Code Pass Terminator. ^BNxccc...c^G ^BN9xddddccc...
Printing Bar Codes Entering/Exiting Bar Code Mode Bar code mode is entered by sending the escape sequence: ESC ESC ETX (27 27 03 decimal, 1B 1B 03 hex). Bar code mode is used only to process the bar code sequences described in this document. While in bar code mode, other printable text, text mode escape sequences and control characters, graphics data, and graphics mode escape sequences and control characters should not be sent to the printer.
Printing Bar Codes Bar Code Definition The sequence used to define a horizontal bar code is ^BNxccc...c^G ^B Two Character Sequence Identifier for Horizontal Bar Code Definition. N Reserved Parameter. x Bar Code Type.
Printing Bar Codes Variable Width Bar Code Definition The sequence used to define a variable width, horizontal bar code is ^BN9xddddccc...c^G ^B Two Character Sequence Identifier for Horizontal Bar Code Definition. N Reserved Parameter. 9 Flags Variable Width. x Bar Code Type.
Printing Bar Codes The following sequence will print the same bar code, except the bar code will be four times as wide. ^BN9a448812345^G^- Example: Note that when choosing the bar code type off which the variable width bar code will be based, ratio is irrelevant. If a 2-of-5 bar code with ratio 3:3:9:9 (not supported directly) is desired, it may be derived from bar code types “g” and “h”. The following variable width bar code definitions all produce exactly the same result.
Printing Bar Codes Bar Code Height The sequence used to specify bar code height is ^Htt ^H Two Character Sequence Identifier for Bar Code Height. tt Height, in Tenth Inches. Range is 01 to 99 (0.1 to 9.9 inches). If this sequence is not used, default bar code height is 0.3 inches. All bar codes printed together horizontally across the page must be the same height. If height is specified more than once, the latest specified height will be used. Example: To print a bar code that is only 0.1 inch high.
Printing Bar Codes Relative Vertical Tab The sequence used to skip vertical space is ^Jttd ^J Two Character Sequence Identifier for Relative Vertical Tab. ttd Vertical Distance, in Tenth Inches plus Dots. Range of tt is 00 to 99 (0.0 to 9.9 inches). Range of d is 0 to F (0 to 15 dots). The distance specified is relative to the current vertical position. Example: To print multiple bar codes down the page. Each bar code is 0.2 inches high, and is separated from other bar codes by 0.1 inch of white space.
Printing Bar Codes Bar Code Pass Terminator The sequence used to terminate a bar code pass is ^-. A bar code pass may contain vertical tabs (should precede all bar code definitions), height specification, bar code definitions, horizontal tabs, etc. Until the bar code pass terminator is received, no bar codes will be printed. When the pass terminator is received, all bar codes defined for the pass will be printed. The following examples will help clarify use of the pass terminator.
Printing Bar Codes Mixing Bar Codes and Text By combining the capabilities of text mode and bar code mode, it is possible to print text above, below, and along side bar codes. Example: To print a human-readable interpretation beneath a bar code. The characters “0123456789” are encoded in the following Code 39 standard density LOGMAR bar code. This bar code and interpretation was printed by first entering bar code mode and printing the bar code.
Printing Bar Codes Description of Supported Bar Code Types Code 39 The Code 39 character set contains 43 characters: 0-9, A-Z, -, ., $, /, +, %, and space. A maximum bar code density of approximately 5.5 characters per inch (using type “a”) may be obtained. The printer automatically inserts a narrow space between all valid data characters. Invalid data characters will cause blank space to be inserted in the bar code. A common character (*) is used for both start and stop delimiters.
Printing Bar Codes The two types of interleaved 2-of-5 are not compatible and bar code readers designed to read one type will probably not read the other.
ASCII CHARACTER TABLES ASCII Control Code Definitions The following table is provided as a reference to the control character descriptions as provided by the ASCII definition. Not all of these definitions are supported by the FormsPro 4000 and some are emulation dependent. For more information consult the appropriate chapter for the emulation being used and/or the chapter on Input/Output Control Codes.
ASCII Character Tables Epson FX Fast Draft Epson FX Draft Epson FX Letter Quality Page C-2
ASCII Character Tables PC Fast Draft PC Draft PC Letter Quality Page C-3
ASCII Character Tables EBCDIC Fast Draft EBCDIC Draft EBCDIC Letter Quality Page C-4
ASCII Character Tables Latin 2 (Slavic) Fast Draft Latin 2 (Slavic) Draft Latin 2 (Slavic) Letter Quality Page C-5
ASCII Character Tables OCR A Font OCR B Font Page C-6
ASCII Character Tables Decimal to Octal to Hexadecimal Conversion Table Dec 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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 Oct 000 001 002 003 004 005 006 007 010 011 012 013 014 015 016 017 020 021 022 023 024 025 026 027 030 031 032 033 034 035 036 037 040 041 042 043 044 045 046 047 050 051 052 053 054 055 056 057 060 061 062 063 064 065 066 067 070 071 072 073 074 075
PRINTER RESET CONDITIONS The following list describes what conditions are assumed whenever the printer is powered on, the SETUP mode is exited, or a reset escape sequence is received when the printer is operating in an emulation mode which supports such a sequence. This list includes all variables which may be modified by the user for all emulations even though some emulations cannot modify all the variables shown. Refer to the appropriate chapter for the emulation being used.
Printer Reset Conditions underline Page D-2 off
GLOSSARY ANSI American National Standards Institute. ASCII American Standard Code for Information Interchange. baud rate The rate at which characters are transmitted over a serial interface. This is usually the same as bits per second. binary Base two numbering system. Digits are represented by the characters 0 and 1. bit A single binary digit. control code A single, non-printing character which is used to control the configuration or operation of the printer.
Glossary font A group of characters of a given shape or style. hexadecimal Base sixteen numbering system. Digits are represented by the characters 0 through 9 and a through f. interface The connection between the printer and the host computer. LCD Liquid crystal display. LED Light emitting diode. line pitch The vertical spacing of characters. Measured in lpi. lpi Lines per inch. LQ Letter Quality. MSB Most significant bit. In a character, this refers to bit seven (of 0 to 7).
Glossary Glossary 3