Page 3
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.
Page 4
Specifications subject to change without notice.
TABLE OF CONTENTS Acknowledgments CHAPTER 1 - INTRODUCTION How to Use This Manual Printer Model Descriptions and Key Features Selecting Emulations Changing Forms/Tractor Paths CHAPTER 2 - ANSI X3.64 EMULATION Introduction Control Codes and Escape Sequences Grouped by Function Communications...
Page 6
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) CHAPTER 5 - DEC LA120 EMULATION Introduction Control Codes and Escape Sequences Communications...
Page 7
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...
Below is a brief description of the information contained in this manual. Chapter 1 Introduction Describes the contents of this manual. Also provides you with an introduction to the capabilities and operation of the FormsPro 4300. FormsPro 4500, and FormsPro 4503 printers. Chapters 2 through 7 Emulations Describe the software interface when using ANSI X3.64, Epson FX, IBM Proprinter,...
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.
In either chapter refer to the "Load Form" escape sequence in the "Forms and Tractors" section. If you are using an emulation other than Epson or Printek, you may temporarily change emulations as described above, load the new form, and then return to the previous emulation.
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. An ASCII control code is a single character in the range 00 hex through 1F hex, and 7F hex.
Page 14
Characters that appear in italics (such as "n" and "f" above) are not sent to the printer as is; they are used as a place holder indicating that some value must be supplied.
The user must also ensure that the maximum block size or the number of blocks sent at one time does not exceed the input buffer size of the printer. ETX/ACK handshake is available only with serial I/O. It is not available when using the parallel interface or the coaxial/twinaxial interface.
ANSI X3.64 Emulation Character Size and Line Spacing Set Character and Line Spacing 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.
Character Attributes Select Graphic Rendition Selects the graphic rendition n from the following table. 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.
ANSI X3.64 Emulation Horizontal Position Carriage Return 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: Backspace...
Vertical Position Line Feed (or) (or) 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: Control code:...
Page 20
ANSI X3.64 Emulation Absolute Vertical Tab 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: Relative Vertical Tab...
However, the correct form length should always be set on the FormsPro 4000. Even if the program does not use form feeds, the printer will automatically scroll a completed form up to the tear bar to be torn off. This automatic scroll is based upon form length.
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.
Page 23
Clear all horizontal tab stops (or) Clears all currently set horizontal tab stops. Escape Sequence: Hexadecimal: Escape Sequence: Hexadecimal: ANSI X3.64 Emulation ESC [ 2 g ESC [ 3 g Page 2-11...
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 Causes the current line to be printed, and then advances the paper to the next vertical tab stop.
Escape Sequence: Hexadecimal: Reset Deletes all data on the current line and initializes the printer to the default settings for the current form. Restores the default horizontal tab stops. Default tab stops are set at every eighth column, i.e. column 9, 17, 25, 33, 41, etc.
This chapter describes ANSI X3.64 emulation. If a different interface is selected, the control codes and escape sequences described in this chapter will no longer be applicable. Example: The following escape sequences will select Printek emulation, load form one, and then return to the previous emulation. Escape Sequence:...
Control Codes and Escape Sequences Sorted Alphabetically ESC D ESC E ESC ESC n ESC H ESC J ESC K ESC L ESC [ n1 ; n2 SP G ESC [ n ` ESC [ n a ESC [ n d ESC [ n e ESC [ g ESC [ 0 g...
Characters that appear in italics (such as "n" and "n1 n2" above) are not sent to the printer as is; they are used as a place holder indicating that some value must be supplied.
Page 30
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.
The user must also ensure that the maximum block size or the number of blocks sent at one time does not exceed the input buffer size of the printer. ETX/ACK handshake is available only with serial I/O. It is not available when using the parallel interface or the coaxial/twinaxial interface.
Page 32
Sets the MSB (most significant bit) of all following data to one. sequence allows the eighth bit to be turned on, even if the computer and printer are connected via a 7-bit I/O interface. The eighth bit may be useful for 8-pin graphics data, or for accessing italic characters.
10 cpi, then you must specify "CPI: 10" in the "Setup: FORM" menu. Likewise, if you want to use the default pitch from setup, you must not override it. Either send no character pitch sequences to the printer, or make sure you re-select 10 cpi via software.
Page 34
Epson FX Emulation Escape Sequence: ESC M Hexadecimal: Select 15 CPI 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: Select Condensed Mode (or) Selects condensed mode.
Page 35
Cancel Double-Wide Mode (one line) 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: Double-Wide Mode 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.
Epson FX Emulation Character Attributes Select Emphasized Mode 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:"...
Page 37
Select Italic Mode 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.
Epson FX Emulation Character Sets Select Draft or Letter Quality 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: Select Font...
Page 39
Epson FX Emulation Escape Sequence: Hexadecimal: Page 3-11...
Page 40
Epson FX Emulation Select International Character Set 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. Character Set United States of America France Germany United Kingdom Denmark Sweden...
Page 41
Escape Sequence: Hexadecimal: Enable Printing of High Symbols 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: Disable Printing of High Symbols Disables printing of character values 128 through 159 decimal.
"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.
Set Line Spacing to n/72" 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 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: Variable Distance Line Feed...
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. However, the correct form length should always be set on the FormsPro 4000.
Page 46
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: Form Feed Causes the current line to be printed, and then advances the paper to the top of the next 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.
Page 48
Epson FX Emulation Relative Horizontal Tab Move the carriage position to the left or right of the current carriage position. The displacement is specified in 120ths of an inch, and calculated as The new position is relative to the current carriage position, and must fall within the left and right margins or it will be ignored.
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 Causes the current line to be printed, and then advances the paper to the next vertical tab stop.
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 Sets the left margin to column n at the current character spacing.
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 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.
For example, if n1 specifies 200 bytes of data, and its MSB is turned off, the printer will only expect 72 bytes of data. It will exit graphics mode, and then try to print the remaining 128 bytes of graphics data as normal text characters.
Page 53
60 DPI Graphics 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, "\". Escape Sequence: Hexadecimal: 120 DPI Graphics...
Page 54
Epson FX Emulation m DPI Graphics Selects eight wire graphics of density m as listed in the following table for n1 + (n2 x 256) columns of data. 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...
Escape Sequence: Hexadecimal: Reset Deletes all data on the current line and initializes the printer to the default settings for the current form. Restores the default horizontal tab stops. Default tab stops are set at every eighth column, i.e. column 8, 16, 24, 32, 40, etc.
If the printer is unable to load the new form, it will sound the bell and display the message "No Paper to Load". A "Paper Out" error will occur and the printer will go offline to wait for an operator to clear the error.
This chapter describes Epson FX emulation. If a different interface is selected, the control codes and escape sequences described in this chapter will no longer be applicable. Example: The following escape sequences will select Printek emulation, load form one, and then return to the previous emulation. Escape Sequence:...
ESC I n ESC J n Page 3-30 Backspace Cancel Line Carriage Return Cancel Condensed Mode Deselect Printer Cancel Double-Wide Mode (one line) Delete Character Master Print Mode Select Cancel MSB Control m DPI Graphics Underline Mode Select 8 LPI Set Line Spacing to 7/72"...
Page 59
Variable Distance Reverse Line Feed Select Font Set Left Margin Double-High Mode Select Draft or Letter Quality End of Text Form Feed Horizontal Tab Select Condensed Mode Select Double-Wide Mode (one line) Vertical Tab Deselect Printer Line Feed Page 3-31...
Characters that appear in italics (such as "n" and "n1 n2" above) are not sent to the printer as is; they are used as a place holder indicating that some value must be supplied.
Page 62
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.
The user must also ensure that the maximum block size or the number of blocks sent at one time does not exceed the input buffer size of the printer. ETX/ACK handshake is available only with serial I/O. It is not available when using the parallel interface or the coaxial/twinaxial interface.
FORM" menu, you are actually changing the default character pitch. When the printer is turned on (or reset), it will use this character pitch. You can even use a pitch that is not supported by your emulation, such as 13.3 cpi with IBM Proprinter emulation.
Page 65
Select Condensed Mode (or) 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: ESC SI Hexadecimal: Select Double-Wide Mode (one line) (or) Selects double-wide mode for one line.
Page 66
IBM Proprinter Emulation Double-High Mode 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.
Character Attributes Select Emphasized Mode 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:"...
IBM Proprinter Emulation Character Sets Select Character Set 1 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: Select Character Set 2...
Select Print Mode Selects print mode n according to the following chart. Overrides the "Font:" value in the "Setup: FORM" menu. Print Mode Draft Draft 12 cpi Letter Quality Letter Quality Example: The following escape sequence will select the IBM Proprinter letter quality font.
Page 70
"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.
Horizontal Position Carriage Return 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: Backspace...
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. However, the correct form length should always be set on the FormsPro 4000.
Page 73
Example: The following escape sequence will set form length to 11 inches, regardless of what line spacing is set. Escape sequence: Hexadecimal: Form Feed Causes the current line to be printed, and then advances the paper to the top of the next 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.
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 Causes the current line to be printed, and then advances the paper to the next vertical tab stop.
Page 76
IBM Proprinter Emulation Escape Sequence: Hexadecimal: Page 4-16...
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.
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 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.
For example, if n1 specifies 200 bytes of data, and its MSB is turned off, the printer will only expect 72 bytes of data. It will exit graphics mode, and then try to print the remaining 128 bytes of graphics data as normal text characters.
Page 80
IBM Proprinter Emulation 60 DPI Graphics 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, "\". Escape Sequence: Hexadecimal: 120 DPI Graphics...
Selects automatic line feed mode for n=1, or cancels for n=0. Automatic line feed mode causes the printer to automatically perform a line feed (LF) for each carriage return (CR) it receives. Overrides the "Auto LF:" value in the "Setup: INTERFACE"...
This chapter describes IBM Proprinter emulation. If a different interface is selected, the control codes and escape sequences described in this chapter will no longer be applicable. Example: The following escape sequences will select Printek emulation, load form one, and then return to the previous emulation. Escape Sequence:...
Page 84
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 Page 4-24 Cancel Subscript and Superscript Mode Unidirectional Mode...
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. An ASCII control code is a single character in the range 00 hex through 1F hex, and 7F hex.
Page 86
Characters that appear in italics (such as "n" and "f" above) are not sent to the printer as is; they are used as a place holder indicating that some value must be supplied.
The user must also ensure that the maximum block size or the number of blocks sent at one time does not exceed the input buffer size of the printer. ETX/ACK handshake is available only with serial I/O. It is not available when using the parallel interface or the coaxial/twinaxial interface.
10 cpi, then you must specify "CPI: 10" in the "Setup: FORM" menu. Likewise, if you want to use the default pitch from setup, you must not override it. Either send no character pitch sequences to the printer, or make sure you re-select 10 cpi via software.
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: Example: The following escape sequence will select 12 cpi character spacing. Escape Sequence: Hexadecimal: Character Attributes...
DEC LA120 Emulation Character Sets Select International Character Set Selects the international character set as specified by the character a in the following table. Overrides the "Lang:" value in the "Setup: FORM" menu. Character Set United Kingdom United States of America Sweden Denmark Sweden...
Line Pitch Set Line Spacing Sets the line spacing as specified in the following table. Omitting n is equivalent to specifying zero. 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 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: Backspace...
Vertical Position Line Feed (or) (or) 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: Control code:...
DEC LA120 Emulation Horizontal and Vertical Position New Line (or) 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.
However, the correct form length should always be set on the FormsPro 4000. Even if the program does not use form feeds, the printer will automatically scroll a completed form up to the tear bar to be torn off. This automatic scroll is based upon form length.
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.
Page 97
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.
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 Causes the current line to be printed, and then advances the paper to the next vertical tab stop.
Page 99
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: 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 Sets the left margin to column n1 and the right margin to column n2 at the current character spacing.
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 Sets the top margin to line n1 and the bottom margin to line n2 at the current line spacing.
Escape Sequence: Hexadecimal: Printer Identification (or) Causes the printer to respond with ESC [ ? 2 c to identify itself as an LA120-RA printer. (The response can only be sent if serial I/O is selected.) Page 5-18 ESC [ 20 h...
This chapter describes DEC LA120 emulation. If a different interface is selected, the control codes and escape sequences described in this chapter will no longer be applicable. Example: The following escape sequences will select Printek emulation, load form one, and then return to the previous emulation. Escape Sequence:...
New Line Select Software Interface n Set Horizontal Tab Stop Set Vertical Tab Stop Absolute Horizontal Tab Relative Horizontal Tab Printer Identification Printer Identification Absolute Vertical Tab Relative Vertical Tab Clear Horizontal Tab Stop Clear Horizontal Tab Stop Clear Vertical Tab Stop...
Page 105
DEC LA120 Emulation Form Feed Horizontal Tab Set Horizontal Tab Stop Line Feed Line Feed New Line Null Vertical Tab Set Vertical Tab Stop Page 5-21...
Characters that appear in italics (such as "n") are not sent to the printer as is; they are used as a place holder indicating that some value must be supplied.
The user must also ensure that the maximum block size or the number of blocks sent at one time does not exceed the input buffer size of the printer. ETX/ACK handshake is available only with serial I/O. It is not available when using the parallel interface or the coaxial/twinaxial interface.
However, the correct form length should always be set on the FormsPro 4000. Even if the program does not use form feeds, the printer will automatically scroll a completed form up to the tear bar to be torn off. This automatic scroll is based upon form length.
It is not possible to set vertical tab stops in TTY emulation. If tab stops were previously set in some other emulation, they will be used. Control code: Hexadecimal: Printer Controls Bell Causes the printer's bell to sound. Control code: Hexadecimal: Page 6-4...
This chapter describes TTY emulation. If a different interface is selected, the control codes and escape sequences described in this chapter will no longer be applicable. Example: The following escape sequences will select Printek emulation, load form one, and then return to the previous emulation.
Simple TTY Emulation Control Codes and Escape Sequences Sorted Alphabetically Bell Backspace Carriage Return ESC ESC n Select Software Interface n End of Text Form Feed Horizontal Tab Line Feed Vertical Tab Page 6-6...
Characters that appear in italics (such as "n" and "n1 n2" above) are not sent to the printer as is; they are used as a place holder indicating that some value must be supplied.
Page 114
FormsPro 4000. However, you should be aware that using these features may prevent your software from being easily portable to other printers. If you do not require the unique features available in Printek mode, it is probably wise to choose a different emulation that is more widely supported.
The user must also ensure that the maximum block size or the number of blocks sent at one time does not exceed the input buffer size of the printer. ETX/ACK handshake is available only with serial I/O. It is not available when using the parallel interface or the coaxial/twinaxial interface.
Printek Emulation Character Size Set Character Spacing 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. Character Size 10 cpi 12 cpi 13.3 cpi 15 cpi 16.74 cpi...
Selects underline mode for n=1, or cancels for n=0. This mode provides continuous underlining for all characters, including spaces. Example: The following escape sequence will turn underlining on. Escape Sequence: Hexadecimal: Printek Emulation ESC E n ESC D n ESC _ n Page 7-5...
Printek Emulation Character Sets Select Font Select font n according to the following table. Font Epson FX Draft Epson FX Letter Quality Proprinter Draft Proprinter Letter Quality EBCDIC Draft (optional) EBCDIC Letter Quality (optional) OCR-A Optical Quality (optional) OCR-B Optical Quality (optional)
Sets the line spacing to n/288 of an inch per line. 0 n 255. 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). Escape Sequence: ESC LF Hexadecimal: Printek Emulation ESC \ n ESC LF n Page 7-7...
Printek Emulation Horizontal Position Carriage Return 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.
However, the correct form length should always be set on the FormsPro 4000. Even if the program does not use form feeds, the printer will automatically scroll a completed form up to the tear bar to be torn off. This automatic scroll is based upon form length.
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.
24. If line spacing is currently 6 lpi, this will result in tab stops one inch, two inches, and four inches from the top of the form. Escape Sequence: ESC VT Hexadecimal: ESC VT n1 n2 ... nx NUL 24 NUL Printek Emulation Page 7-11...
Printek Emulation Horizontal and Vertical Tabs Reset Horizontal and Vertical Tab Stops 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.
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.
For example, if n1 specifies 200 bytes of data, and its MSB is turned off, the printer will only expect 72 bytes of data. It will exit graphics mode, and then try to print the remaining 128 bytes of graphics data as normal text characters.
Page 127
72 dpi. The resulting figure will resemble a square, since the horizontal and vertical density are the same. If some other density is chosen, the figure will resemble a rectangle. Escape Sequence: Hexadecimal: < Printek Emulation ESC * m n1 n2 data < < < Page 7-15...
Page 128
For example, at 150 dpi, dots may be printed every 4.8/720 of an inch. The printer is not really capable of printing dots every 4.8/720 of an inch. It will print the dots as accurately as possible, with some at 4/720 of an inch and some at 5/720 of an inch.
(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. Automatic line feed mode causes the printer to automatically perform a line feed (LF) for each carriage return (CR) it receives. Overrides the "Auto LF:" value in the "Setup: INTERFACE"...
Page 130
Example: The following escape sequence will select Auto Cut = On. Escape Sequence: Hexadecimal: Cut Form Ejects the current form and cuts it off if the optional Printek FormsCutter is installed. Escape Sequence: Hexadecimal: Reset Deletes all data on the current line and initializes the printer to the default settings for the current form.
If the printer is unable to load the new form, it will sound the bell and display the message "No Paper to Load". A "Paper Out" error will occur and the printer will go offline to wait for an operator to clear the error.
ESC ESC @ will return to the default emulation, as specified by the "Mode:" value in the "Setup: INTERFACE" menu. This chapter describes Printek emulation. If a different interface is selected, the control codes and escape sequences described in this chapter will no longer be applicable.
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.
When data is received at the coaxial/twinaxial port, the interface will automatically switch the printer to Printek emulation and select the EBCDIC font. Therefore, the control codes and escape sequences described in the Printek Emulation chapter apply when received at this port.
Example: The following string will cause the interface command interpreter to send the ESC L n sequence (see the "Forms and Tractors" section in the Printek emulation chapter) to the printer to load form number two. Turn the command interpreter on by sending...
Page 139
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.
Characters that appear in italics (such as "n") are not sent to the printer as is; they are used as a place holder indicating that some value must be supplied.
Page 142
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)
Page 143
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.
Printing Bar Codes Bar Code Sequences To print bar codes, the following sequences are used in bar code mode: BAR CODE SEQUENCE ESC ESC n ^BNxccc...c^G ^BN9xddddccc...c^G ^Htt ^Jttd ^Ttttd These bar code sequences are described in detail in the following sections. Measurements in Bar Code Mode All measurements in bar code mode are specified in tenths of an inch and/or dots.
ESC and it does not mean “control-_” ! Other Control Characters BEL is processed and causes the printer to ring the bell. This is supported so that you may annoy the printer operator without exiting bar code mode. ETX is processed so that ETX/ACK software handshake will work in bar code mode.
Printing Bar Codes Bar Code Definition The sequence used to define a horizontal bar code is ^BNxccc...c^G Two Character Sequence Identifier for Horizontal Bar Code Definition. Reserved Parameter. Bar Code Type. “a” “b” “c” “d” “e” “f” “g” “h” “i” “j”...
Variable Width Bar Code Definition The sequence used to define a variable width, horizontal bar code is ^BN9xddddccc...c^G Two Character Sequence Identifier for Horizontal Bar Code Definition. Reserved Parameter. Flags Variable Width. Bar Code Type. “a” = Code 39 1:1:2:2 Ratio “b”= Code 39 1:1:3:3 Ratio “c”...
Page 148
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.
Bar Code Height The sequence used to specify bar code height is ^Htt Two Character Sequence Identifier for Bar Code Height. 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.
Printing Bar Codes Relative Vertical Tab The sequence used to skip vertical space is ^Jttd Two Character Sequence Identifier for Relative Vertical Tab. 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).
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.
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. “0123456789”...
Check digits are not automatically generated by the printer. If a check digit is to be used, it must be included in the bar code data by the programmer.
Page 154
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. Page B-14...
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.
Page 156
ASCII Character Tables Epson FX Fast Draft Epson FX Draft Epson FX Letter Quality Page C-2...
Page 157
ASCII Character Tables PC Fast Draft PC Draft PC Letter Quality Page C-3...
Page 158
ASCII Character Tables EBCDIC Fast Draft EBCDIC Draft EBCDIC Letter Quality Page C-4...
Page 159
ASCII Character Tables Latin 2 (Slavic) Fast Draft Latin 2 (Slavic) Draft Latin 2 (Slavic) Letter Quality Page C-5...
Page 160
ASCII Character Tables OCR A Font OCR B Font Page C-6...
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.
Extended Binary Coded Decimal Interchange Code. String of characters beginning with the escape (ESC) character which is used to control the configuration or operation of the printer. The characters which are part of this string are not printed. Glossary 1...
Page 166
Base eight numbering system. Digits are represented by the characters 0 through 7. Refers to the state of the printer when the "ONLINE" indicator is off and the printer does not respond to the host computer. Refers to the state of the printer when the "ONLINE"...
Need help?
Do you have a question about the FormsPro 4300 and is the answer not in the manual?
Questions and answers