Home
Printek FormsMaster 8000 Matrix Printer
Contents
1. e m M Or Bu oan ee nm CR Db Cio LSB OCR B 138 ASCII Character Tables Decimal to Octal to Hexadecimal Conversion Table Dec Oct Hex ASCII 61 075 3D 122 172 7A z 183 267 B7 0 000 00 NUL 62 076 3E gt 123 173 7B 184 270 B8 1 001 01 SOH 63 077 2 124 174 7C 185 271 B9 2 00 02 SIX Dec Oct Hex ASCII 125 175 7D 186 272 BA 003 03 ETX 64 100 40 126 176 7E 187 273 BB 4 004 04 EOT 65 101 4l 127 177 7 DEL 188 274 BC 5 005 05 ENQ 66 102 42 B Dec Oct Hex 189 275 BD 6 006 06 ACK 67 103 43 128 200 80 190 276 BE 7 007 07 BEL 68 104 44 129 201 81 191 277 BF 8 00 08 BS 69 105 45 130 200 82 Dec Oct Hex 9 011 09 HT 70 106 46 131 203 83 192 300 CO 10 012 0A LF 7 107 4 G 132 204 84 193 301 CI 11 013 0B VT 72 110 48 H 133 205 85 194 300 C2 12 014 0 FF 73 49 I 134 206 86 195 303 C3 13 015 OD CR 74 12 4A J 135 207 87 196 304 C4 14 016 SO 75 113 4B K 136 210 88 197 305 C5 15 017 OF SI 76 14 4C L 137 211 89 198 306 C6 16 020 10 DLE 77 115 M 138 212 8A 199 307 C7 17 021 11 XON 78 116 4E 139 213 8B 200 310 C8 18 022 12 79 117 4F 140 214 8C 201 311 19 023 13 XOFF 80 120 50 14 215 8D 200 312 CA 20 024 14 DC4 81 121 51 Q 142 216 8E 203 313 CB 21 025 15 82 122 52 143 217 204 314 CC 22 026 16 SYN 83 123 53 6 144 220 90 205 315 CD 23 027 17 E
2. JN GN D d LSE 0123456789 AB COE CMSB Latin 2 Slavic Letter Quality ch 2 Don ese NC 24 be ew RAP 26g E urzI mem A OOO Dew LIB Desa 3 XD c E 43 ROME DSM Nem did e muncurOrosx uaEzoi SNM THOR T ev Ag qwe Tod E T sem D THE Se LSB 137 ASCH Character Tables ASB Ulcd3 b5b T A4 B amp DEF C oL D 5 X TUO UT cant T e BK o lt x RE LIE EE O e m un wa e E O anum c5 fb or oom ocu uu OCR A EM NEUE UG GE GER GS RR D LSB 2354567 68 A Bed E 1 a RS IR ORE eee pm m Eh LT L eH D xm zm B SH gr EG fe eon ee oO Ge LO SS BR 4 rm i L2 oe rg BU EAH 1 ts
3. fi S454 7 8 ou lt oO A Eee Aye 0 b ow mom d 3 b Ls 4 a 24 Heat Jk tf waa OR eo n0 3 233 x oe 63 oe J o d a5 8 LR OB E on omo as og gt Fe g ium we OD de Sse D nb Oc S a d rc e o c A Ww c EG ito TL Fae SO GP Moke Oe am a a OE O8 C1 C d uc 0 T e r9 Xi T omm m em m m m m LSE 23456 7 8 9A BCDE F M58 PC Letter Quality HECHO M i RH bake Ooo si 34 Hiu p TERE SS a 22 ri PFA Hak C omnimode D D 200 HOD WE ED Ret en XE es EE T Bet S Ep em amp De 4 ADD Ie bm ew o o g 21 kTtHEFa pethat A ETE 135 ASCII Character Tables F I ad 7 BO AR uM modu p gt at 000 De i X ID D ag Sigs os SP SRM oe d D B Xd od MEI OURIT
4. It is entirely different than sending the two printable ASCII characters 66 If a numeric parameter is limited to a value of zero or one it may be sent as a single byte with a value of 00 or 01 hex NUL or SOH or it may be sent as a single printable ASCII character 0 or 1 30 or 31 hex 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 Characters that appear in italics such as and 1 n2 above are not sent to the printer as is they are used as a place holder indicating that some value must be supplied Multiple character strings without intervening spaces typically represent control codes For example BS is the Backspace control code 08 hex not the two characters and S 42 and 53 hex An ASCII Control Code Table is provided on page 139 for your convenience If you have any doubt about how to interpret 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 Hex Dump chapter 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 FormsMa
5. The bar code interface was designed to primarily use printable ASCII characters instead of relying on control codes and escape sequences The printable ASCII caret character is used to introduce most bar code sequences Spaces are used when documenting sequences to increase readability The spaces within the sequences are for readability only they are not part of the sequences themselves Characters that appear in italics such as are not sent to the printer as is they are used as a place holder indicating that some value must be supplied Multiple character strings without intervening spaces typically represent control codes For example FF is the Form Feed control code hex not two F characters 46 46 hex An ASCII Control Code Table with hexadecimal equivalents is contained in the appendices for your convenience This may be helpful when analyzing a hex dump printed by the printer Please note that bar code emulation is essentially a graphics preprocessor whose sole purpose is to print bar codes It is not possible to print normal text in bar code emulation In order to mix text and bar codes the text must be printed in some other emulation before or after the bar codes are printed in bar code emulation The Printek FormsMaster 8000 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
6. Form Feed FF Causes the current line to be printed and then advances the paper to the top of the next form Ifa top margin is set printing will continue at the top margin Setting Host FF at TOF to No in the interface setup menu allows a form feed to be ignored if the paper is already at top of form If Auto is set to in the interface setup menu a carriage return will also be performed Control code FF Hexadecimal 0 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 If no tab stop exists between the active column and the right margin the HT will be ignored Default tab stops are set at every eighth column i e column 9 17 25 33 41 etc Different tab stops may be set with ESC H ESC 1 or ESC n1 n2 nx u Control code HT Hexadecimal 09 Set Horizontal Tab Stop HTS or ESCH or ESC 1 Sets a horizontal tab stop at the current print position The tab stop is associated with the active column not an absolute physical position Changing character spacing will change the physical position of the tab stop Default tab stops are s
7. 236 354 EC 54 066 36 6 115 163 73 s 176 260 BO 237 355 ED 55 067 37 7 116 164 74 t 177 261 238 356 EE 56 070 38 8 117 165 75 u 178 262 B2 239 357 EF 57 071 39 9 118 166 76 v 179 263 B3 240 360 FO 58 072 119 167 77 w 180 264 B4 241 361 Fl 59 073 3B 120 170 78 x 181 265 B5 242 362 F2 60 074 3C lt 121 171 79 y 182 266 B6 243 363 139 244 245 246 247 248 249 250 251 252 253 254 255 140 364 365 366 367 370 371 372 373 374 375 376 377 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 Variable Reset Condition character pitch left margin right margin line pitch form length top margin bottom margin font impact mode language normal slashed zero autocut mode unidiretional mode top of form text in an incomplete line input buffer control of data bit 8 control character symbols italics double high compressed double strike double wide elite emphasized superscript subscript underline horizontal tabs vertical tabs according to form set
8. EBCDIC Letter Quality SS ee P LSB 136 ASCII Character Tables 5 4567 iz Latin 2 Slavic Fast Draft mr ln ib 1s WE UL d 4 NON J o gn oxi fey a 94 mpm m 2 10 4 103 qc od xr Wee d cup A niea win ID ob ue BTU sd ow y eee Cm o ao Lae Se FY RAY eK 4 ey Beary ee LG EMF SSX EN a TGAU SSH TAMA oe A eo oe SOG pps Dp Ge oe Aoc p De Oe LSE MSH FaSTARBT OE Latin 2 Slavic Draft ar og ae ae a 09 T a QR 93 m2 4 CAE 6 20 34 Re 4 90 ete Qn 3 was oW dh icy Ad DOS oop nus OX 4p 09 hed khe dB A XE cU EIE a a 5 a D U Aia D o D GP a Oe PD Ue o om A amp k Rond sa A FHEP oe 4D Deom 0 LEN
9. Escape Sequence ESC 4 0 CAN EM SUB ESC Hexadecimal 1B 5C 04 00 18 19 1A 1B Select Print Mode ESC In Selects print mode n according to the following chart Overrides the Font value in the forms menu n Print Mode 0 Draft 1 Fast Draft 12 cpi 2 Letter Quality 3 Letter Quality Example The following escape sequence will select the IBM Proprinter letter quality font Escape Sequence ESC 3 Hexadecimal 1B 49 03 Line Pitch Select 8 LPI ESC 0 Sets the line spacing to 1 8 of an inch per line 8 Overrides the Lines Inch value in the forms menu Escape Sequence ESC 0 Hexadecimal 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 This is not particularly useful for text but may be useful for graphics if 7 bit graphics data is being sent Overrides the Lines Inch value in the forms menu Escape Sequence ESC 1 Hexadecimal 1B 31 Start Line Spacing ESC 2 Sets the line spacing to the value selected by ESC A n Overrides the Lines Inch value in the forms menu Escape Sequence ESC 2 Hexadecimal 1B 32 Set Line Spacing to 216 ESC 3n Sets the line spacing to n 216 of an inch per line 02n2255 Overrides the Lines Inch value in the forms menu 51 IBM Proprinter Emulation NOTE The actual resolution of the printer s pa
10. PRINTEK FormsMaster 8000 Series Programmer s Manual Copyright O 1997 by Printek Inc 1517 Townline Road Benton Harbor MI 49022 616 925 3200 Printek Part Number 4509 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 Code V is a trademark of QMS Inc QMS is a registered trademark of QMS Inc Printek is a registered trademark of Printek Inc Specifications subject to change without notice ii TABLE OF CONTENTS Acknowledgments INTRODUCTION How to Use This Manual Printer Model Descriptions and Key Features Selecting Emulations Changing Forms Tractor Paths ANSI X3 64 EMULATION Introduction Control Codes and Escape Sequences Communications Character Size and Line Spacing Character Attributes Horizontal Position Vertical Position Horizontal and Vertical Position Form Length and Form Feed Horizontal Tabs Vertical Tabs Printer Controls Emulations Control Codes and Escape Sequences Alphabetical EPSON FX 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 Margins Vertical Margins Graphics Printer Controls Forms and Tractors Emulations
11. is set to On in the interface setup menu a carriage return will also be performed Control code FF Hexadecimal 0C 87 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 Default tab stops are set at every eighth column i e column 8 16 24 32 40 etc Control code HT Hexadecimal 09 Vertical Tabs 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 is set to in the interface setup menu a carriage return will also be performed 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 VT Hexadecimal OB Printer Controls Bell BEL Causes the printer s bell to sound Control code BEL Hexadecimal 07 88 Simple TTY Emulation Emulations Select Software Interface n ESC ESC n Selects the software interface n acco
12. 0A Reverse Line Feed ESC Causes the current line to be printed and then retracts the paper one line at the current line spacing If Auto CR is set to in the interface setup menu a carriage return will also be performed 97 Printek Emulation Escape Sequence ESC Hexadecimal 1B SE 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 However the correct form length should always be set with the control panel setup 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 The easiest way to set form length is via the Form Length value in the forms menu so it will be correctly set for everyone using the form If correct form length cannot be guaranteed from SETUP then each program should set the correct form length Set Form Length in Lines ESC FF n Sets the form length to n lines at the current line spacing 1252255 Maximum form length is 37 9 inches Invalid form lengths w
13. 10 cpi 10 cpi 12 cpi 13 3 cpi 16 74 cpi 5 cpi 6 cpi 6 67 cpi 8 37 cpi tA O S Overrides the Characters Inch value in the forms menu Example The following escape sequence will select 10 cpi character spacing If Characters Inch was not set to 10 in the forms menu the specified default character pitch will be selected instead of 10 cpi Escape Sequence ESC w Hexadecimal 1B 5B 77 Example The following escape sequence will select 12 cpi character spacing Escape Sequence ESC 2 w Hexadecimal 1B 5B 32 77 68 DEC LA120 Emulation Character Attributes Select Graphic Rendition ESC nm Selects the graphic rendition n from the following table n Rendition 0 Normal 1 Emphasized 3 Italic 4 Underline For italic mode to work correctly an Epson FX font must be selected check the Font value in the forms menu The other available fonts do not include italic characters Example The following escape sequence will select emphasized mode Escape Sequence ESC 1 m Hexadecimal 1B 5B 31 6D 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 Language value in the forms menu Character Set United Kingdom United States of America Sweden Denmark Sweden Germany France AATMA Sis The actual character substitution
14. 12 and 24 If line spacing is currently 6 this will result in tab stops one inch two inches and four inches from the top of the form Escape Sequence ESC VT 6 12 24 NUL Hexadecimal 1B OB 06 0 18 00 Horizontal and Vertical Tabs Reset Horizontal and Vertical Tab Stops ESC 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 ESC Hexadecimal 1B 52 100 Printek 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 H n1 n2 Sets the left margin to column n and the right margin to column 72 at the current character spacing 02n12255 02n22255 If character spacing is changed after setting the margins the position of the margins will not change The left margin is inclusive but the right margin is exclusive For example a left margin at column 10 still allows a character to be printed in column 10 A right margin at column 75 allows a character to be printed in column 74 but not in column 75 The leftmost column is column zero The left margin must be left of the right margin and 213 4 inches The right margin
15. Characters Inch value in the forms 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 15 cpi with LA120 emulation You can override this pitch selection via software by sending an escape sequence This selects a user specified non default pitch For example in LA120 emulation sending ESC 2w will select 12 cpi Sending ESC w will re select 10 cpi and thus re select the default character pitch that was selected in the form setup Via software escape sequences you can select any character pitch supported by the emulation you are using All will print as expected unless you select 10 cpi because 10 cpi really selects the default character pitch from setup If you really want 10 cpi then you must set Characters Inch to 10 in the forms 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 When you select different forms the default character pitch from setup is selected along with the form But you will not see this default pitch if it has already been overridden via software Set Character Spacing ESC Sets the character spacing as specified in the following table Omitting n is equivalent to specifying zero character pitch
16. 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 5 Ratio Interleaved 2 of 5 BS Code 2 2 6 6 Ratio Interleaved 2 of 5 C Code 1 1 2 2 Ratio Interleaved 2 of 5 C Code 1 1 2 5 2 5 Ratio Interleaved 2 of 5 C Code 1 5 1 5 3 5 3 5 Ratio Interleaved 2 of 5 C Code2 2 4 5 4 5 Ratio 121 Printing Basic 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 GTA 122 LOL LU Printing Basic Bar Codes Bar Code Sequences To print bar codes the following sequences are used in bar code mode BAR CODE SEQUENCE FUNCTION BEL Sound the Bell ESC ESC n Change Emulation Mode ETX ETX ACK Software Handshake FF Form Feed LF Fractional Line Feed to next line boundary BNxccc c G Horizontal Bar Code ABNOxddddccc c G Variable Width Horizont
17. The available commands listed below are shown with a combination of upper and lower case letters to enhance readability However the commands are not case sensitive All characters are converted to upper case before processing except for form names which are contained in double quotes White space may also be inserted to enhance readability it will be stripped from the commands before processing Each line of the file is processed individually and must conform to one of four possible formats 1 A blank line Ggnored 2 A comment line which begins with a semicolon ignored 3 A heading line which is enclosed in square brackets 4 item setup line of the format item value Each item setup line must appear under the appropriate heading line The first heading line in the file must be BeginPrintekSetup The last heading line in the file must be EndPrintekSetup All other heading lines and item setup lines are optional If any errors exist in the remote setup file no changes will be made to the printer configuration When possible the printer will indicate the line number in the file where the first error occurred Counting of lines begins with 1 at the BeginPrintekSetup heading line Any lines preceding this will not be processed and will not be counted Before sending the remote setup file to the printer minimal setup is required via the front panel setup menus The I O interface to be used for remote setup mus
18. line spacing this would result in one inch top and bottom margins Escape Sequence ESC 7 6 0 Hexadecimal 1B 5B 37 3B 36 30 72 Example The following escape sequence will set a top margin at line 7 without affecting the bottom margin Escape Sequence ESC 7 r Hexadecimal 1B 5B 37 72 Example The following escape sequence will set a bottom margin at line 60 without affecting the top margin Escape Sequence ESC gt 6 0 r Hexadecimal 1B 5B 36 30 72 79 DEC LA120 Emulation Printer Controls Bell BEL Causes the printer s bell to sound Control code BEL Hexadecimal 07 Select Automatic Carriage Return ESC 20h 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 interface setup menu Escape Sequence ESC 2 0 h Hexadecimal 1B 5B 32 30 68 Cancel Automatic Carriage Return ESC 201 Cancels automatic carriage return mode Overrides the Auto CR value in the interface setup menu Escape Sequence ESC 2 0 1 Hexadecimal 1B 5B 32 30 6C Printer Identification ESC or ESC 0 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 Emulations Select Software Interface n ESC ESC n Selects the software inter
19. 180 dpi high speed 10 144 dpi 11 144 dpi high speed 12 120 dpi 13 120 dpi high speed 14 102 86 dpi 15 102 86 dpi high speed 16 90 dpi 17 90 dpi high speed 18 80 dpi 19 80 dpi high speed 20 72 dpi 21 72 dpi high speed 22 65 45 dpi 23 65 45 dpi high speed 24 60 dpi 25 60 dpi high speed NOTE Horizontal movement of the printer s print head is measured in intervals of 1 720 of an inch Every supported graphics density above is an integral multiple of this resolution For example at 60 dpi dots may be printed every 12 720 of an inch Example The following escape sequence will print four bytes of graphics data at 72 x 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 ESC 20 0 4 lt lt lt lt Hexadecimal 1B 2A 14 00 04 3C 3C 3 3C m DPI Graphics ESC n1 n2 data Selects eight wire graphics of density m as listed in the following table for n x 256 n2 columns of data 103 Printek Emulation _ Density 90 90 dpi 100 100 dpi 135 135 dpi 150 150 dpi NOTE Horizontal movement of the printer s 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 The printer is not really capable of printing dots every 4 8 72
20. 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 If no tab stop exists between the active column and the right margin the HT will be ignored Default tab stops are set at every eighth column i e column 9 17 25 33 41 etc Different tab stops may be set with ESC H ESC 1 or ESC n1 n2 nx u Control code HT Hexadecimal 09 Set Horizontal Tab Stop HTS or ESCH Sets a horizontal tab stop at the current print position The tab stop is associated with the active column not an absolute physical position Changing character spacing will change the physical position of the tab stop Default tab stops are set at every eighth column i e column 9 17 25 33 41 etc The tab stop 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 Control code HTS Hexadecimal 88 Escape Sequence ESC H Hexadecimal 1B 48 Clear Horizontal Tab Stop ESC g or 0 2 Clears the horizontal tab stop at the current print position The tab stop to be cleared is associated with the active column based upon the current character spacing not an absolute physical position Escape Sequence ESC g Hexadecimal 1B 5B 67 Clear all horizontal tab stops ESC 2g or ESC 3g Clears all currently set horizontal tab st
21. BEL BS CR CSI DEL ESC a ESC 1 ESC 2 ESC 3 ESC 4 ESC D ESCE ESC ESC n ESC H ESC J 1 2 nl n2s NEL NUL nl n2 nl n2 nxu NX V Bell Backspace Carriage Return Control Sequence Introducer Delete Select International Character Set Set Horizontal Tab Stop Clear All Horizontal Tab Stops Set Vertical Tab Stop Clear All Vertical Tab Stops Line Feed New Line Select Software Interface n Set Horizontal Tab Stop Set Vertical Tab Stop Control Sequence Introducer 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 Clear All Horizontal Tab Stops Clear All Horizontal Tab Stops Clear All Vertical Tab Stops Select Automatic Carriage Return Cancel Automatic Carriage Return Select Graphic Rendition Set Top and Bottom Margins Set Left and Right Margin Set Form Length in Lines Set Horizontal Tab Stops Set Vertical Tab Stops Set Character Spacing Set Line Spacing End of Text Form Feed Horizontal Tab Set Horizontal Tab Stop Line Feed Line Feed New Line Null VT VTS DEC LA120 Emulation Vertical Tab Set Vertical Tab Stop 83 SIMPLE TTY EMULATION Introduction This section describes the control codes and escape sequences comprising simple TTY emulation This emulation may be selected by setting Emulati
22. CPI DC2 Selects 10 cpi by cancelling 12 cpi and condensed mode If Characters Inch was not set to 10 in the forms menu the specified default character pitch will be selected instead of 10 cpi Control code DC2 Hexadecimal 12 Select 12 CPI ESC Selects 12 cpi elite mode Condensed mode is unaffected The resulting character spacing will be 12 cpi or if condensed mode is also selected 20 cpi Escape Sequence ESC Hexadecimal 1B 3A Select Condensed Mode SI or 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 SI Hexadecimal OF Escape Sequence ESC SI Hexadecimal 1B OF 47 IBM Proprinter Emulation Select Double Wide Mode one line SO or 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 Control code SO Hexadecimal OE Escape Sequence ESC SO Hexadecimal 1B OE 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 DC4 Hexadecimal 14 Double Wide Mode ESC Wn 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 seque
23. CR NL NL 2xNL MaxPrintLine 66 None FFonLocal Copy Enable Disable FFValid Anywhere ColumnlorMPP 1 FFatEOM Disable Enable FFOperati on FF FF Space PaperErrorReport Disable Enable Character Cana Set Multinational USA Austria Germany Belgium Brazil dianFrench Denmark Norway Finland Sweden France Italy Japan English Japan Katakana Portuguese Spain SpanishSpeaking Unit LogicalNo NULSuppre HostImpac HostBinSe edKingdom tCharacter 5Eh Elh ssion Disable Enable tControl Enable Disable lect Enable Disable BufferSiz DisplaySi e 4K 2K ze 1920 2560 3440 3564 920 IPDS Twi Character Cana naxInterface Set Multinational USA Austria Germany Belgium Brazil dianFrench Denmark Norway Finland Sweden France Italy Japan English Japan Katakana Portuguese Spain SpanishSpeaking Unit Host Impac HostBinSe edKingdom tControl Enable Disable lect Enable Disable Imager I ControlCh LineTermi BarCodeD magerPlusInterface Emulation QMSCodeVVersion2 PrintronixCodeVVersion2 PrintronixIGP aracter 0lh 09 0 FFh nator LF CR OMSCharac Japa Translati FreeForma IgnoreDat ImagerZer nsity LowRes MediumRes HighRes GraphicsMediumRes terSet USA UnitedKingdom Sweden Finland Norway Denmark n Germany France Italy Spain PCSubset CodeVVersionl o
24. 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 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 The printer will automatically insert the start stop delimiter before and after each bar code string 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 2 of 5 The 2 of 5 character set contains 10 characters the decimal digits 0 9 A maximum bar code density of approximately 5 2 characters per inch using type 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 The printer will automatically insert the start delimiter before and the stop delimiter after each bar code string 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 Interleaved 2 of 5 Interleaved 2 of 5 bar codes encode information in both the bars and spaces in order to c
25. Control Codes and Escape Sequences Alphabetical Table of Contents 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 DEC LA120 EMULATION Introduction Control Codes and Escape Sequences Communications Character Size Character Attributes Character Sets Line Pitch Horizontal Position Vertical Position Horizontal and Vertical Position Form Length and Form Feed Horizontal Tabs Vertical Tabs Horizontal Margins Vertical Margins Printer Controls Emulations Control Codes and Escape Sequences Alphabetical SIMPLE TTY EMULATION Introduction Control Codes and Escape Sequences Communications Horizontal Position Vertical Position Form Length and Form Feed Horizontal Tabs Vertical Tabs Printer Controls Emulations Control Codes and Escape Sequences Alphabetical PRINTEK EMULATION iv Introduction Control Codes and Escape Sequences Table of Contents Communications 93 Character Size 94 Character Attributes 95 Character Sets 96 Line Pitch 97 Horizontal Position 97 Vertical Position 97 Form Length and Form Feed 98 Horizon
26. ESC n Select Software Interface n ETX End of Text FF Form Feed HT Horizontal Tab LF Line Feed VT Vertical Tab PRINTEK EMULATION Introduction This section describes the control codes and escape sequences comprising Printek emulation This emulation may be selected by setting Emulation to Printek in the interface setup 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 An ASCII control code is a single character in the range 00 hex through 1F hex and 7F hex The ESC Escape control code 1B hex is used to introduce character strings called escape sequences which provide an extension of the commands available with ASCII control codes Some escape sequences accept one or more numeric parameters Ifa sequence accepts one numeric parameter it will be represented as If a sequence accepts more than one numeric parameter they 39 will be represented as n n2 nx Since numeric parameters are always encoded in one byte their values may range from 0 to 255 decimal Please note that the value will never be represented by a string of ASCII decimal digits 0 through 9 For example a value of 66 decimal would be sent as a single byte with a hex value of 42 This is equivalent to sending the ASCII character
27. ESCnf one numeric parameter ESC nl n2 nx f two or more numeric parameters 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 Characters that appear in italics such as 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 Multiple character strings without intervening spaces typically represent control codes For example BS is the Backspace control code 08 hex not the two characters and S 42 and 53 hex An ASCII Control Code Table is provided on page 139 for your convenience If you have any doubt about how to interpret 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 Hex Dump chapter printed by the printer 65 DEC LA120 Emulation Some escape sequences refer to the active column or active line The active column is the column where the next character will be printed Printing a character or a space will increment the active column The active line is the line where the next character will be printed A l
28. Escape Sequence ESC 120 0 Hexadecimal 1B 5C 78 00 Example The following escape sequence will move the carriage one inch to the left Escape Sequence ESC 136 255 Hexadecimal 1B 5 88 Set Horizontal Tab Stops ESC D n1 n2 NUL Clears all currently set horizontal tab stops and sets new tab stops at column n1 n2 n3 etc 12n2255 The tab stops must be presented in ascending order The NUL character or any tab stop value less than the preceding one terminates the sequence The tab stops are set relative to the current character spacing but subsequent changes in character spacing will not affect the physical position of the tab stops except that the position will be rounded up to the closest character boundary The leftmost column is column zero Default tab stops are set at every eighth column i e column 8 16 24 32 40 etc The tab stops set by ESC D will replace the default tab stops ESC D NUL will clear all tab stops leaving no tab stops set The default tab stops are restored by ESC Example The following escape sequence will set horizontal tab stops at half inch intervals if character spacing is currently 10 cpi Escape Sequence ESC 5 10 15 20 25 30 NUL Hexadecimal 1B 44 05 0A Of 14 19 1E 00 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 a
29. Feed LF Causes the current line to be printed and then advances the paper one line at the current line spacing If Auto CR is set to in the interface setup menu a carriage return will also be performed Control code LF Hexadecimal 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 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 However the correct form length should always be set with the control panel setup 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 The easiest way to set form length is via the Form Length value in the forms menu so it will be correctly set for everyone using the form 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 Setting Host FF at TOF to No in the interface setup menu allows a form feed to be ignored if the paper is already at top of form If Auto CR
30. Sequence ESC 1 0 S Hexadecimal 1B 5B 31 30 73 Example The following escape sequence will set the right margin to column 75 without affecting the left margin Escape Sequence ESC 7 5 S Hexadecimal 1B 5B 3B 37 35 73 78 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 n2r Sets the top margin to line n and the bottom margin to line n2 at the current line spacing 02n 2255 02n22255 If line spacing is changed after setting the margins the position of the margins will not change Vertical margins are cleared by ESC nt The top and bottom margins are both inclusive For example a top margin at line 7 still allows text to be printed on line 7 but not on line 6 A bottom margin at line 60 still allows text to be printed on line 60 but not on line 61 The first line is line one If nJ or n2 is zero or is omitted the corresponding margin is not changed The top margin must be above the bottom margin The bottom margin must be below the top margin The margins cannot exceed the form length Invalid margins will be ignored Overrides the Top Margin and Bottom Margin values in the forms menu Example The following escape sequence will set a top margin at line 7 and will set a bottom margin at line 60 For a standard 11 inch form with 6
31. Switching Programming Considerations not already at the top of form All other states of the printer such as the currently selected form character pitch character attributes line pitch etc are under the control of the programmer s The best programming practice is for the programs at each host to leave the printer in a clean state This means that all programmers on all the hosts should probably agree on some known state that they can all expect to find the printer in and be expected to leave the printer in when their program is finished In addition to the various control and escape sequences described in this manual additional consideration is required if an Imager or ImagerPlus Co Processor is installed All data from all ports will pass through the co processor Therefore if one host leaves the Imager or ImagerPlus in a particular state it may affect data received from another host 110 CONFIGURATION DOWNLOAD The FormsMaster 8000 Series printers may be completely configured for operation by using the front panel buttons to access the printer setup menus In addition many of the items that can be configured via the front panel setup menus can also be configured remotely as described in this chapter Remote setup commands are placed in a remote setup file on a host computer This file may then be sent to the printer The remote setup file bust be a text only file with each line terminated by a Line Feed LF character
32. Value Description NUL 00 Null SOH 01 Start of Heading STX 02 Start of Text ETX 03 End of Text EOT 04 End of Transmission ENQ 05 Enquiry ACK 06 Acknowledge BEL 07 Bell BS 08 Backspace HT 09 Horizontal Tabulation LF 0A Line Feed VT OB Vertical Tabulation FF 0 Form Feed CR 0 Carriage Return 50 OE Shift Out SI OF Shift In DLE 10 Data Link Escape DCI 11 Device Control 1 XON DC2 12 Device Control 2 DC3 13 Device Control 3 XOFF DC4 14 Device Control 4 NAK 15 Negative Acknowledge SYN 16 Synchronous Idle ETB 17 End of Transmission Block CAN 18 Cancel EM 19 End of Medium SUB 1A Substitute ESC 1B Escape FS 1C File Separator GS 1D Group Separator RS 1E Record Separator US 1F Unit Separator 133 ASCII Character Tables E F b h P P a Oo aq o a 1 1 T 2 AR b 4 CK a dg EH mam os o Bb b OO I A Dno s dm e ss eM a Se ae EE gt X3 XH Bie rear Faas eM a Fee T a Shs 5 Epson FX Fast Draft 1 1 rs DE ree 3467 BPA EI m x oo ao ao i 0 i C a a 2 2 be d E eaic rv FF amp amp FW ow E W
33. active column and the right margin the HT will be ignored Default tab stops are set at every eighth column i e column 9 17 25 33 41 etc Different tab stops may be set with ESC D Control code HT Hexadecimal 09 Set Horizontal Tab Stops ESC D n1 n2 NUL Clears all currently set horizontal tab stops and sets new tab stops at column n1 n2 n3 etc 12n2255 The tab stops must be presented in ascending order The NUL character or any tab stop value less than the preceding one terminates the sequence The tab stops are set relative to the current character spacing but subsequent changes in character spacing will not affect the physical position of the tab stops except that the position will be rounded up to the closest character boundary 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 ESC D will replace the default tab stops ESC D NUL will clear all tab stops leaving no tab stops set The default tab stops are restored by ESC R Example The following escape sequence will set horizontal tab stops at half inch intervals if character spacing is currently 10 cpi Escape Sequence ESC D 6 11 16 21 26 31 NUL Hexadecimal 1B 44 06 OB 10 15 IA IF 00 55 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 s
34. advancing the paper one line Set Left Margin ESC In Sets the left margin to column 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 For example a left margin at column 10 still allows a character to be printed in column 10 The leftmost column is column zero The left margin must be left of the right margin and 213 4 inches Invalid left margins will be ignored Overrides the Left Margin value in the forms menu Example The following escape sequence will set a one inch left margin if character spacing is currently 10 cpi Escape Sequence ESC 1 10 Hexadecimal 1B 6C OA Set Right Margin ESC Qn Sets the right margin to column n at the current character spacing If character spacing is changed after setting the right margin the position of the right margin will not change 35 Epson FX Emulation The right margin is exclusive For example a right margin at column 75 allows a character to be printed in column 74 but not in column 75 The leftmost column is column zero The right margin must be right of the left margin and 213 6 inches Invalid right margins will be ignored Overrides the Right Margin value in the forms menu Example The following escape sequence will set a right margin 7 5 inches from the left edge of the form if character spacing is currently 10 cpi For a standard 8 5
35. at least 15 seconds and data must be received from a different port Therefore if data are never received from more than one port that port is always the active port Programming Considerations It is the programmer s responsibility to ensure that the port transitions are achieved in a manner that does not affect their own output or the output from other hosts This is really no different than running multible programs on the same host with one major exception On a single computer output is generally spooled or one program has to wait until another program has finished with the printer When multiple host computers are involved this introduces the ability for one computer program to interrupt another conputer program The printer provides some control of this interruption by requiring the 15 second delay as described above Programs that may pause for 15 or more seconds before completion should save their output in a file and then copy the data to the printer to protect their output from being interrupted by another host To help ensure a clean transition when the active port changes the printer will automatically perform a Carriage Return CR and reselect the emulation that was in effect for that port The default emlation is set in the Interface Setup Menus for the Serial Parallel and EtherLink interfaces The Coax Twinax and IPDS interfaces default to Printek Emulation The printer will also perform a Form Feed FF if 109 Port
36. 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 If the printing of low symbols is enabled ETX will be treated as a printable character instead of an I O handshake control code Control code ETX Hexadecimal 03 20 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 setting Data Bits to 7 in the interface setup menu Escape Sequence ESC Hexadecimal 1B 3D Set MSB to 1 ESC gt Sets the MSB most significant bit of all following data to one This escape 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 Escape Sequence ESC gt Hexadecimal 1B 3E Cancel MSB Control ESC Cancels the MSB most significant bit control set by ESC or ESC gt This causes the eighth data bit sent from the host computer to be accepted as is Escape Sequence ESC Hexadecimal 1B 23 Deselect Printer DC3 or XOFF Deselects the printer Use of this command is discouraged because the printer will remain offline until an operator presses
37. character spacing is currently 10 cpi For a standard 8 5 inch wide form this would result in a one inch right margin Escape Sequence ESC X 11 76 Hexadecimal 1B 58 0B 4 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 ESCNn Sets the perforation skip distance to n lines at the current line spacing 1252255 If line spacing is changed after setting the skip distance the skip distance will not be changed The skip distance is split between the top and bottom margins so the perforation will be centered in the resulting white space The specified skip distance must be less than the form length or the command will be ignored Perforation skip is canceled by ESC O ESC C n or ESC C NUL n Overrides the Top Margin and Bottom Margin values in the forms menu Example The following escape sequence will set a two inch perforation skip distance if the current line spacing is 6 Ipi This will result in a one inch top and bottom margin Escape Sequence ESC N 12 Hexadecimal 1B 4E OC Cancel Perforation Skip ESC O Cancels perforation skip This is equivalent to having no top and bottom margin Overrides the Top Margin and Bottom Margin values in the forms menu Escape Sequence ESC Hexadecimal 1B 4F 57 IBM Proprinter Emulation Graphics Graphics mode gives the user co
38. data handshake is not sent within an escape sequence 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 Control code ETX Hexadecimal 03 Deselect Printer DC3 or XOFF Deselects the printer Use of this command is discouraged because the printer will remain offline until an operator presses the ONLINE button on the control panel Control code DC3 Hexadecimal 13 93 Printek Emulation Character Size Set Character Spacing ESC SP n Sets character spacing in decipoints 1 720 of an inch Overrides the Characters Inch value in the forms menu Supported values are shown in the following table Character Size 72 10 cpi 60 12 cpi 54 13 3 cpi 48 15 cpi 43 16 74 cpi 42 17 14 cpi 36 20 cpi Example The following escape sequence will select 10 cpi character spacing Escape Sequence ESC SP 72 Hexadecimal 1B 20 48 Double Wide Mode ESC Wn Selects double wide mode for n 1 or cancels for 0 Double wide mode doubles the width of all characters but does not affect character height ESC S 3 may be used to select double high mode Example The following escape sequence will select double wide mode Escape Sequence ESC W 1 Hexadecimal 1B 57 31 Select Script Modes ESC Sn Selects normal character height for n 0 subscript mode for n 1 superscript mode for n
39. 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 Control code ETX Hexadecimal 03 ANSI X3 64 Emulation Character Size and Line Spacing Set Character and Line Spacing ESC nl n2 SPG 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 n and supported values for n2 are shown below Other values for 12 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 Overrides the Characters Inch value and the Lines Inch value in the forms setup menu nl line pitch 120 6 lpi 90 8 Ipi n2 character pitch 72 10 cpi 60 12 cpi 54 13 3 cpi 48 15 cpi 43 16 74 cpi 42 17 14 cpi 36 20 cpi Example The following escape sequence will select 6 1 1 and 10 cpi Escape Sequence ESC 1 2 0 7 2 SP G Hexadecimal 1B 5B 31 32 30 3B 37 32 20 47 Example The following escape sequence will select 6 lpi without affecting character spacing Escape Sequence ESC 1 2 0 SP G Hexadecimal 1B 5B 31 32 30 20 47 Example The following escape sequence will select 10 cpi without affecting line spacing Escape Sequence ESC 7 2 SP G Hexadecimal 1B 5B 3B 37 32 20 47 Character Attributes Se
40. holder indicating that some value must be supplied Multiple character strings without intervening spaces typically represent control codes For example BS is the Backspace control code 08 hex not the two characters and S 42 and 53 hex An ASCII Control Code Table is prvided on page 139 for your convenience If you have any doubt about how to interpret a documented control code or escape sequence refer to the hex representation in the example This should clarify any ambiguity The examples may also be helpful when analyzing a hex dump see Hex Dump chapter printed by the printer ANSI X3 64 Emulation Some escape sequences refer to the active column or active line The active column is the column where the next character will be printed Printing a character or a space will increment the active column The active line is the line where the next character will be printed A line feed will increment the active line Column and line numbers begin at one not at zero ANSI X3 64 Emulation Control Codes and Escape Sequences Grouped by Function Communications End of Text ETX If ETX ACK is set to On in the serial interface setup 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 The user must also
41. 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 with the control panel setup 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 The easiest way to set form length is via the Form Length value in the forms menu so it will be correctly set for everyone using the form If correct form length cannot be guaranteed from SETUP then each program should set the correct form length Set Form Length in Lines ESC nt Sets the form length to lines at the current line spacing 1252255 Maximum form length is 37 9 inches Invalid form lengths will be ignored Overrides the Form Length value in the forms menu For example an 11 inch form contains 66 lines at 6 LPI but 88 lines at 8 LPI If line spacing is changed after setting the form length the physical form length in inches will not be changed Resets top of form to the current position so it is wise to be at top of form before setting form length Issuing a form feed will guarantee this Vertical margins are cleared Example The following escape sequence will set form length to 66 lines At 6 LPI this will result in a form length of 11 inches Escape sequence ESC 6 6 t Hexadecimal 1B 5B 36 36 74 73 DEC LA120 Emulation
42. is via the Form Length value in the forms menu so it will be correctly set for everyone using the form If correct form length cannot be guaranteed from SETUP then each program should set the correct form length Set Form Length in Lines ESC Cn Sets the form length to n lines at the current line spacing 12n2255 Maximum form length is 37 9 inches Invalid form lengths will be ignored Overrides the Form Length value in the forms menu 53 IBM Proprinter Emulation For example an 11 inch form contains 66 lines at 6 LPI but 88 lines at 8 LPI If line spacing is changed after setting the form length the physical form length in inches will not be changed Resets top of form to the current position so it is wise to be at top of form before setting form length Issuing a form feed will guarantee this Vertical margins are cleared Example The following escape sequence will set form length to 66 lines At 6 LPI this will result in a form length of 11 inches Escape sequence ESC 66 Hexadecimal 1B 43 42 Set Form Length in Inches ESC C NUL n Sets the form length to n inches 12n237 Maximum form length is 37 9 inches Invalid form lengths will be ignored Overrides the Form Length value in the forms menu Resets top of form to the current position so it is wise to be at top of form before setting form length Issuing a form feed will guarantee this Vertical margins are cleared Example The following escape s
43. left The actual distance moved depends on the current character spacing Backspacing can be done up to but not beyond the left margin Control code BS Hexadecimal 08 Absolute Horizontal Tab ESC Sets the current print position to column n The actual position will depend on the current character spacing is less than the left margin the active column will be set to the left margin If is greater than the right margin then a line feed will be performed and the active column will be set to the left margin Example The following escape sequence will set the active column to column 65 Escape Sequence ESC 6 5 Hexadecimal 1B 5B 36 35 60 Relative Horizontal Tab Advances the current print position by columns The actual distance moved will depend on the current character spacing Equivalent to sending n spaces SP Example The following escape sequence will advance the active column by 10 columns If current character spacing is 10 cpi this will cause the print position to move one inch to the right Escape Sequence ESC 1 0 a Hexadecimal 1B 5B 31 30 61 71 DEC LA120 Emulation Vertical Position Line Feed LF or IND or ESC D Causes the current line to be printed and then advances the paper one line at the current line spacing If Auto CR is set to in the interface setup menu a carriage return will also be performed Control code LF Hexadecimal 0A Control c
44. level deep ESC ESC will return to the default emulation as specified by the Emulation value in the interface setup menu 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 ESC 7 ESC L 1 ESC ESC Hexadecimal 1B IB 07 IB 4 01 IB 1B 41 Epson FX Emulation 42 Sorted Alphabetically BEL BS CAN CR DC2 DC3 DC4 DEL ESC n ESC ESC ni n2 ESC m nl n2 data ESC n ESC 0 ESC 1 ESC 2 ESC 3 n ESC 4 ESC 5 ESC 6 ESC 7 ESC lt ESC ESC gt ESC ESC An ESC B n1 n2 nx NUL ESC C NUL n ESC Cn ESC D n1 n2 nx NUL ESC E ESC EM n ESC ESC n ESC ESC ESC H ESC In ESC Jn ESC n1 n2 data ESC L n1 n2 data ESCM ESCNn ESCO ESCP ESCQn ESCR n ESCS n Bell 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 Absolute Horizontal Tab m DPI Graphics Underline Mode Select 8 LPI Set Line Spacing to 7 72 Select 6 LPI Set Line Spacing to n 216 Select Italic Mode Cancel Italic Mode Enable Printing of High Symbols Disable Printing of
45. n inches 12 237 Maximum form length is 37 9 inches Invalid form lengths will be ignored Overrides the Form Length value in the forms menu Resets top of form to the current position so it is wise to be at top of form before setting form length Issuing a form feed will guarantee this Vertical margins are cleared Example The following escape sequence will set form length to 11 inches regardless of what line spacing is set Escape sequence ESC NUL Hexadecimal 1B 43 00 OB 32 Epson FX Emulation Form Feed FF Causes the current line to be printed and then advances the paper to the top of the next form Ifa top margin is set printing will continue at the top margin Setting Host FF at TOF to No in the interface setup menu allows a form feed to be ignored if the paper is already at top of form If Auto CR is set to On in the interface menu a carriage return will also be performed Control code FF Hexadecimal 0 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 The tab stops are set relative to the current character spacing but subsequent changes in character
46. one half line at the current line spacing If Auto CR is set to On in the interface setup menu a carriage return will also be performed Control code PLU Hexadecimal 8C Escape Sequence ESC L Hexadecimal 1B 4C Absolute Vertical Tab ESC nd 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 ESC 1 2 d Hexadecimal 1B 5B 31 32 64 Relative Vertical Tab ESC ne Advances the active line by lines The actual distance moved will depend on the current line spacing Equivalent to sending line feeds LF Example The following escape sequence will advance the active line by 12 lines If current line spacing is 6 this will cause the paper to advance one inch Escape Sequence ESC 1 2 e Hexadecimal 1B 5B 31 32 65 11 ANSI X3 64 Emulation Horizontal and Vertical Position New Line NEL or ESC 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 NEL Hexadecimal 85 Escape Sequence ESC Hexadecimal 1B 45 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 program
47. powered on or reset Dots per inch Generally used to refer to graphics density or resolution Refers to the draft high speed font 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 whict are part of this string are not printed A group of characters of a given shape or style Base sixteen numbering system Digits are represented by the characters through 9 and a through f The connection between the printer and the host computer Liquid crystal display Light emitting diode The vertical spacing of characters Measured in Ipi Lines per inch Letter Quality 143 Glossary MSB octal off line on line OQ parity reset top of form tractors 144 Most significant bit In a character this refers to bit seven of 0 to 7 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 any color other than solid green and the printer does not respond to the host computer Refers to the state of the printer when the ONLINE indicator is solid greer and the printer is responding to the commands and text received from the host computer Optical Quality A method used for detecting errors within a single character transmitted or received via an interface Initializ
48. se UH op o wb opo dp od VL a4 D o X X AMY Po Wee For seem gr mu L3IXx K9 m TRO GW See eS Ser Pl OQ 2 RID Qu NE GER GEM E gp 255 cu EBCDIC Fast Draft LEH ij A BC BE B9 Oo 1 2 3 b aD 5 3n P 2 10 FO Be oe Di Fa SSO Se cius m ee ED x Abc dj a su ow LRO di en OF oe FP EX Rhee EO Pon se to gc eG IE Fa T DU dO sr ao 4 D DD Ro a am v E o ok fed err WCG PEU SA a fud riui L LSB EBCDIC Draft NSB ee 2 e mm OO ca a Ree ao ioe Los Bs he FT EE et de an 200 5 up amp CL Om Zo ON mom m au o d n Db ul 5 BH B mE ande mamme Mese Wi egm ouuaocmouux Oe us D da gs im eo m Gode pL am noo 4 m od 2 Te c Om NU me pe C F oe d 8 D Ow dn
49. sequence will set the active column to column 65 Escape Sequence ESC 6 5 Hexadecimal 1B 5B 36 35 60 Relative Horizontal Tab ESC na Advances the current print position by columns The actual distance moved will depend on the current character spacing Equivalent to sending n spaces SP Example The following escape sequence will advance the active column by 10 columns If current character spacing is 10 cpi this will cause the print position to move one inch to the right Escape Sequence ESC 1 0 a Hexadecimal 1B 5B 31 30 61 Vertical Position Line Feed LF or IND or ESC Causes the current line to be printed and then advances the paper one line at the current line spacing If Auto CR is set to in the interface setup menu a carriage return will also be performed Control code LF Hexadecimal 0A Control code IND Hexadecimal 84 Escape Sequence ESC D Hexadecimal 1B 44 10 ANSI X3 64 Emulation Partial Line Down PLD or ESC K Performs a half line feed Causes the current line to be printed and then advances the paper one half line at the current line spacing If Auto CR is set to On in the interface setup menu a carriage return will also be performed Control code PLD Hexadecimal 8B Escape Sequence ESC K Hexadecimal 1B 4B Partial Line Up PLU or ESC L Performs a reverse half line feed Causes the current line to be printed and then retracts the paper
50. 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 21 Epson FX Emulation When you select different forms the default character pitch from setup is selected along with the form But you will not see this default pitch if it has already been overridden via software Select 10 CPI ESC P Selects 10 cpi by cancelling 12 cpi and 15 cpi Condensed mode is unaffected The resulting character spacing will be 10 cpi or if condensed mode is also selected 17 14 cpi If Characters Inch was not set to 10 in the forms menu the specified default character pitch will be selected instead of 10 cpi Escape Sequence ESC Hexadecimal 1B 50 Select 12 CPI ESC Selects 12 cpi elite mode Cancels 15 cpi Condensed mode is unaffected The resulting character spacing will be 12 cpi or if condensed mode is also selected 20 cpi Escape Sequence ESC M Hexadecimal 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 ESC g Hexadecimal 1B 67 Select Condensed Mode SI or 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 Control code SI Hexadecimal OF Es
51. spacing will not affect the physical position of the tab stops except that the position will be rounded up to the closest character boundary 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 Default tab stops are set at every eighth column i e column 8 16 24 32 40 etc Different tab stops may be set with ESC D Control code HT Hexadecimal 09 Absolute Horizontal Tab ESC n1 n2 Move to the specified carriage position The position is specified in 60ths of an inch and calculated as 1 2 lt 956 EU T inches The position is relative to the left margin and must not exceed the right margin or it will be ignored Example The following escape sequence will set the carriage position 5 inches 300 60 inches from the left margin Escape Sequence ESC 44 1 Hexadecimal 1B 24 2C 01 33 Epson FX Emulation Relative Horizontal Tab ESC V1 n2 Move the carriage position to the left or right of the current carriage position The displacement is 1 12 lt 956 TE UU inches 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 specified in 120ths of an inch and calculated as Example The following escape sequence will move the carriage one inch to the right
52. 0 dpi The resulting figure will resemble a backslash character 58 IBM Proprinter Emulation Escape Sequence ESC L 6 0 128 64 32 16 8 4 Hexadecimal IB 4 06 00 80 40 20 10 08 04 High Speed 120 DPI Graphics ESC Y n1 n2 data Selects eight wire high speed double density 120 dpi graphics for n n2 x 256 columns of data Horizontally adjacent dots may not be printed Example The following escape sequence will print six bytes of graphics data at 120 dpi The resulting figure will resemble a backslash character Escape Sequence ESC Y 6 0 128 64 32 16 8 4 Hexadecimal 1B 59 06 00 80 40 20 10 08 04 High Speed 240 DPI Graphics ESC Z nl n2 data Selects eight wire quadruple density 240 dpi graphics for n n2 x 256 columns of data Horizontally adjacent dots may not be printed Example The following escape sequence will print six bytes of graphics data at 240 dpi The resulting figure will resemble a backslash character Escape Sequence ESC Z 6 0 128 64 32 16 8 4 Hexadecimal 1B 5A 06 00 80 40 20 10 08 04 59 IBM Proprinter Emulation Printer Controls Bell BEL Causes the printer s bell to sound Control code BEL Hexadecimal 07 Unidirectional Mode ESC Un 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 f
53. 0 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 The overall average will be 4 8 720 of an inch Example The following escape sequence will print five bytes of graphics data at 150 dpi The resulting figure will resemble a backslash character Escape Sequence ESC 150 0 5 64 32 16 8 4 Hexadecimal 1B 23 96 00 05 40 20 10 08 04 Printer Controls Bell BEL Causes the printer s bell to sound Control code BEL Hexadecimal 07 Unidirectional Mode ESC Un 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 Escape Sequence ESC U 1 Hexadecimal 1B 55 31 104 Printek Emulation Automatic Modes ESC An Selects automatic modes according to the following table Mode Automatic modes off Automatic carriage return Automatic line feed Both 1 and 2 Os Automatic carriage return mode 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 interface setup menu Automatic line feed mode causes the printer to automatically perform a line feed LF for each carriage return CR it receives Overrides th
54. 09 09 HTS LF NEL PLD PLU VT VTS Sorted Alphabetically Bell Backspace Carriage Return Control Sequence Introducer Line Feed New Line Select Software Interface n Set Horizontal Tab Stop Set Vertical Tab Stop Partial Line Down Partial Line Up Set Character and Line Spacing Absolute Horizontal Tab Relative Horizontal Tab Absolute Vertical Tab Relative Vertical Tab Clear Horizontal Tab Stop Clear Horizontal Tab Stop Clear Vertical Tab Stop Clear All Horizontal Tab Stops Clear All Horizontal Tab Stops Clear All Vertical Tab Stops Select Automatic Carriage Return Cancel Automatic Carriage Return Select Graphic Rendition Reset End of Text Form Feed Horizontal Tab Set Horizontal Tab Stop Line Feed Line Feed New Line Partial Line Down Partial Line Up Vertical Tab Set Vertical Tab Stop 17 EPSON FX EMULATION Introduction This section describes the control codes and escape sequences comprising Epson FX emulation This emulation may be selected by setting Emulation to Epson in the interface setup 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 An ASCII control code is a single character in the range 00 hex through 1F hex and 7F hex The ESC Escape control code 1B hex is used to introd
55. 2 or double high mode for n 3 This is shown in the following table n Script Mode 0 Script modes off 1 Subscript 2 Superscript 3 Double high Subscript mode will print characters about half the normal height in the bottom half of the normal character cell Superscript mode will print characters about half the normal height in the top half of the normal character cell Double high mode doubles the height of all characters These modes are mutually exclusive and none of them affect character width 94 Printek Emulation Example The following escape sequence will select double high mode Escape Sequence ESC 5 3 Hexadecimal 1B 53 03 Character Attributes Emphasized Mode ESC En 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 This will cut the print speed in half but will not require an additional pass of the print head Overrides the Impact Force value in the forms menu Example The following escape sequence will select emphasized mode Escape Sequence ESC E 1 Hexadecimal 1B 45 31 Double Strike Mode ESC Dn Selects double strike mode for n 1 or cancels for 0 Double strike mode makes text bolder by printing it twice This will cut the print speed in half because an additional pass of the print head will be required Example The following escape sequence will select double st
56. Every emulation supports 10 cpi and we consider this to be the default character pitch When you use the control panel to change the Characters Inch value in the forms 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 You can override this pitch selection via software by sending an escape sequence This selects a user specified non default pitch For example in IBM Proprinter emulation sending ESC will select 12 cpi Sending DC2 will re select 10 cpi and thus re select the default character pitch that was selected in the form setup Via software escape sequences you can select any character pitch supported by the emulation you are using All will print as expected unless you select 10 cpi because 10 cpi really selects the default character pitch from setup If you really want 10 cpi then you must set Characters Inch to 10 in the forms 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 When you select different forms the default character pitch from setup is selected along with the form But you will not see this default pitch if it has already been overridden via software Select 10
57. 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 nl n2s Sets the left margin to column n and the right margin to column 72 at the current character spacing 02n12255 02n22255 If character spacing is changed after setting the margins the position of the margins will not change The margin settings are inclusive For example a left margin at column 11 allows a character to be printed in column 11 but not in column 10 A right margin at column 75 allows a character to be printed in column 75 but not in column 76 The leftmost column is column one If 1 or n2 is zero or is omitted the corresponding margin is not changed The left margin must be left of the right margin and 213 4 inches The right margin must be right of the left margin and 213 6 inches Invalid margins will be ignored Overrides the Left Margin and Right Margin values in the forms menu Example The following escape sequence will set a one inch left margin and will set a right margin 7 5 inches from the left edge of the form if character spacing is currently 10 cpi For a standard 8 5 inch wide form this would result in a one inch right margin Escape Sequence ESC 1 0 7 5 S Hexadecimal 1B 5B 31 30 3B 37 35 73 Example The following escape sequence will set the left margin to column 10 without affecting the right margin Escape
58. High Symbols Unidirectional Mode one line Set MSB to 0 Set MSB to 1 Reset Set Line Spacing to n 72 Set Vertical Tab Stops Set Form Length in Inches Set Form Length in Lines Set Horizontal Tab Stops Select Emphasized Mode Load Form Select Software Interface n Cancel Emphasized Mode Select Double Strike Mode Cancel Double Strike Mode Printing of Low Symbols Variable Distance Line Feed 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 ESC SI ESC SO ESC T ESC Un ESC Wn ESC Y n1 n2 data ESC Z nl n2 data ESC nl n2 ESC g ESCjn ESC kn ESC 1 n ESC tn ESC wn ESC xn ETX FF HT LF SI SO VT XOFF Select Condensed Mode Select Double Wide Mode one line Cancel Subscript and Superscript Mode Unidirectional Mode Double Wide Mode High Speed 120 DPI Graphics High Speed 240 DPI Graphics Relative Horizontal Tab Select 15 CPI Variable Distance Reverse Line Feed Select Font Set Left Margin Character Table Italic vs Extended Double High Mode Select Draft or Letter Quality End of Text Form Feed Horizontal Tab Line Feed Select Condensed Mode Select Double Wide Mode one line Vertical Tab Deselect Printer Epson FX Emulation 43 IBM PROPRINTER EMULATION Introduction This section describes the control codes and escape
59. TB 84 124 54 145 221 91 206 316 CE 24 030 18 CAN 85 125 55 U 146 222 92 207 317 CF 25 031 19 86 126 56 147 223 93 208 320 DO 26 032 1A SUB 87 127 57 W 148 224 94 200 321 DI 27 033 1B ESC 88 130 58 X 149 225 95 210 322 D2 28 034 1 FS 89 131 59 Y 150 226 96 211 323 D3 29 035 1 GS 90 132 5A 7 151 227 97 212 324 D4 30 036 1E RS 9 133 5B I 152 230 98 213 325 DS 31 037 IF US 92 134 5C 153 231 99 214 326 D6 32 040 20 SP 93 135 50 154 232 9A 215 327 07 33 041 21 94 136 SE 155 233 9B 216 330 D8 34 042 2 95 137 SF _ 156 234 9C 217 331 D9 35 043 23 96 140 60 157 235 9D 218 332 DA 36 044 24 97 141 61 158 236 9E 219 333 DB 37 045 25 98 142 62 b 159 237 9 220 334 DC 38 046 26 amp 99 143 63 c 160 240 0 221 335 DD 39 047 27 100 144 64 161 241 AI 222 336 DE 40 050 28 10 145 65 e 162 242 A2 223 337 DF 41 051 29 102 146 66 f 163 243 224 340 42 052 2A 103 147 67 g 164 244 4 225 341 El 43 053 2B 104 150 68 h 165 245 5 226 342 E2 44 054 2C 105 151 69 i 166 246 227 343 45 055 2D 106 152 6A j 167 247 7 208 344 E4 46 056 2E 107 153 6B 168 250 8 229 345 ES 47 057 2F 108 154 6C 1 169 251 A9 230 346 E6 48 060 30 0 100 155 6D m 170 252 AA 231 347 49 061 31 1 110 156 6E n 171 253 AB 232 350 50 062 32 2 111 157 6F 172 254 AC 233 351 9 51 063 33 3 112 160 70 173 255 AD 234 352 EA 52 064 34 4 113 161 71 q 174 256 AE 235 353 EB 53 065 35 5 114 162 72 175 257
60. TE The actual resolution of the printer s 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 Escape Sequence ESC 3 108 Hexadecimal 1B 33 6C Set Line Spacing to n 72 ESC An Sets the line spacing to n 72 of an inch per line 02n2255 Since the distance between print head wires is 1 72 of an inch this is equivalent to setting n wire spacing Overrides the Lines Inch value in the forms menu Example The following escape sequence will set line spacing to 8 72 of an inch for use with eight wire graphics Escape Sequence ESC 8 Hexadecimal 1B 41 08 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 LP is set to in the interface setup menu a line feed will also be performed Control code CR Hexadecimal 0 30 Epson FX Emulation 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 Backspacing can be done up to but not beyond the left margin Control code BS Hexadecimal 08 Vertical Position Line Feed LF Causes the current line to be printed and then advances the paper one li
61. Tab Deselect Printer PORT SWITCHING PROGRAMMING CONSIDERATIONS Automatic Port Switching The FormsMaster 8000 series printers will automatically accept data from the Parallel Interface the RS 232 Serial Interface and any optionally installed hardware interface Coax Twinax IPDS Coax IPDS Twinax or 10 LAN This feature is always active and does not require user intervention to change ports In most installations the printer is only connected to one computer and this feature may be ignored In other installations the printer may be attached to two or three computers This section describes how the printer will automatically switch control of the printer from one hardware interface port to another Note that since any one of these ports can become active at any time items which pertain to each port need to be set up as described in the FormsMaster 8000 Series Operator s Manual Ports that will not be used not installed or not connected to a computer do not need to be set up Optional interfaces that are not installed are not displayed in the Setup menus When the first data are received at any port after turning on power to the printer that port becomes the active port While one of the ports is active each of the other ports will accept only a limited number of characters before reflecting a busy condition to the computer attached to those ports To change which port is active the printer s buffer must be empty for
62. acter 4C is the ASCII character and the hexadecimal character 32 is the ASCII character 2 The command interpreter should now be turned off by sending 119 Coax Twinax Command Interpreter OFF to prevent any inadvertent triggering of the interpreter by random combinations of data To assist in verifying that the proper EBCDIC characters are being sent to the coax twinax port from the host the printer may be set to an EBCDIC Code Dump mode which will print the EBCDIC character value of the characters received To turn on this test mode refer to the Printer Configuration chapter in the FormsMaster 8000 Series Operator s Manual To verify that the interface is sending the correct ASCII characters to the printer electronics see the Hex Dump chapter in this manual 120 PRINTING BASIC BAR CODES Introduction This section describes the control codes and escape sequences comprising bar code emulation This emulation may be selected 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 An ASCII control code is a single character in the range 00 hex through 1F hex and 7F hex The ESC Escape control code 1B hex is used to introduce character strings called escape sequences which provide an extension of the commands available with ASCII control codes
63. al Bar Code AHtt Bar Code Height Jttd Relative Vertical Tab ATtttd Absolute Horizontal Tab Bar Code Pass Terminator 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 Bar codes are printed with a graphics resolution of 144 dots per inch both horizontally and vertically All references to tenths of an inch are in actuality 14 144 s of an inch All references to dots are in actuality 1 144 s of an inch The range of dots that may be specified is 0 to 15 This range is represented using hexadecimal convention The ASCII characters 0 to 9 represent 0 to 9 dots respectively The ASCII characters A to F and to represent 10 to 15 dots respectively 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 To exit bar code mode use the sequence ESC ESC 27 27 63 decimal 1B 1B 3F hex to return to the previously selected emulation mode or you may use a different ESC ESC n sequence to select a different emulation
64. ased upon the current character spacing not an absolute physical position Escape Sequence ESC g Hexadecimal 1B 5B 67 Clear All Horizontal Tab Stops ESC 2 or ESC 2g or ESC 3g Clears all currently set horizontal tab stops Escape Sequence ESC 2 Hexadecimal 1B 32 Escape Sequence ESC 2 g Hexadecimal 1B 5B 32 67 Escape Sequence ESC 3 g Hexadecimal IB 5B 33 67 75 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 is set to in the interface setup menu a carriage return will also be performed Control code VT Hexadecimal OB Set Vertical Tab Stop VTS or ESC J or ESC 3 Sets a vertical tab stop at the current line The tab stop is associated with the active line not an absolute physical position Changing line spacing will change the physical position of the tab stop The tab stop set by this escape sequence will be added to previously set tab stops If this is not desired the old tab stops should first be cleared Control code VTS Hexadecimal 8A Escape Sequence ESC J Hexadecimal 1B 4A Escape Sequence ESC 3 Hexadecimal 1B 33 Set Vertical Ta
65. ation of various operating parameters of the printer to the value or state assumed when the printer is powered on The vertical position where the first line is printed on the paper Also the position the paper is advanced to when a form feed FF character is received from the host or the Form Feed button is pressed on the printer s control panel Devices which control the movement of the paper through the printer
66. ave graphics mode until it has accepted the specified number of data bytes If Data Bits is set to 7 in the interface setup menu beware of potential problems in graphics mode Since the MSB most significant bit will always be turned off it will not be possible to fire the top wire of the print head Worse yet the value of n or n2 may be changed For example if n 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 The result will surely not be pretty To avoid such problems the use of an 8 bit I O interface for printing graphics is highly recommended The normal graphics modes allow every dot to be printed High speed graphics will print twice as fast but will not allow consecutive dots to be printed 60 DPI Graphics ESC n1 n2 data Selects eight wire single density 60 dpi graphics for n 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 4 Escape Sequence ESC K 6 0 128 64 32 16 8 4 Hexadecimal IB 4B 06 00 80 40 20 10 08 04 120 DPI Graphics ESC L n1 n2 data Selects eight wire double density 120 dpi graphics for n n2 x 256 columns data Example The following escape sequence will print six bytes of graphics data at 12
67. b Stops ESC n1 n2 nx v Sets new vertical tab stops at line n1 n2 n3 etc 12n2255 The tab stops are associated with lines not absolute physical positions Changing line spacing will change the physical position of the tab stops The first line is line one The tab stops set by this escape sequence will be added to previously set tab stops If this is not desired the old tab stops should first be cleared Example The following escape sequence will set vertical tab stops at line 7 13 and 25 If line spacing is 6 this will result in tab stops one inch two inches and four inches from the top of the form Escape Sequence ESC 7 3 1 3 2 5 Hexadecimal 1B 5B 37 3B 31 33 3B 32 35 76 76 DEC LA120 Emulation Example The following escape sequence will set a vertical tab stop at line seven Escape Sequence ESC 7 Hexadecimal 1B 5B 37 76 Clear Vertical Tab Stop ESC 1g Clears the vertical tab stop at the current line The tab stop to be cleared is associated with the active line based upon the current line spacing not an absolute physical position Escape Sequence ESC 1 g Hexadecimal 1B 5B 31 67 Clear All Vertical Tab Stops ESC 4 or ESC 4 Clears all currently set vertical tab stops Escape Sequence ESC 4 Hexadecimal 1B 34 Escape Sequence ESC 4 g Hexadecimal 1B 5B 34 67 77 DEC LA120 Emulation Horizontal Margins Printing is allowed only within the left and right margins
68. b stops Escape Sequence ESC 4 g Hexadecimal 1B 5B 34 67 Printer Controls Bell BEL Causes the printer s bell to sound 14 ANSI X3 64 Emulation Control code BEL Hexadecimal 07 Select Automatic Carriage Return ESC 20h 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 interface setup menu Escape Sequence ESC 2 0 h Hexadecimal 1B 5B 32 30 68 Cancel Automatic Carriage Return ESC 201 Cancels automatic carriage return mode Overrides the Auto CR value in the interface setup menu Escape Sequence ESC 2 0 1 Hexadecimal 1B 5B 32 30 6C Reset ESC c 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 Resets top of form to the current position so it is wise to be at top of form before performing this reset Issuing a form feed will guarantee this See the chapter on Printer Reset Conditions for more information Escape Sequence ESC c Hexadecimal 1B 63 15 ANSI X3 64 Emulation Emulations Select Software Interface n ESC ESC n Selects the software interface n according to the table below n Software Interface 0 Test res
69. ble in the Epson and Printek emulations 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 load the new form and then return to the previous emulation An example of this may be found in the Emulations section at the end of each of the emulation chapters 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 setting Emulation to ANSI X3 64 in the appropriate interface setup 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 An ASCII control code is a single character in the range 00 hex through 1F hex and 7F hex The ESC Escape control code 1B hex is used to introduce character strings called escape sequences which provide an extension of the commands available with ASCII control codes Many ANSI escape sequences begin with a two character Control Sequence Introducer CSI Escape Left Square Bracket ESC 1B 5B hex If 8 bit data is selected via control panel setup these two characters may be replaced by a single character CSI 9B hex The sequences are always documented in this s
70. cape Sequence ESC SI Hexadecimal 1B OF 22 Epson FX Emulation Cancel Condensed Mode DC2 Cancels condensed mode set by SI or ESC SI Control code DC2 Hexadecimal 12 Select double wide mode one line SO or 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 Control code SO Hexadecimal OE Escape Sequence ESC SO Hexadecimal 1B OE 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 DC4 Hexadecimal 14 Double Wide Mode ESC Wn Selects double wide mode for n 1 or cancels for 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 Escape Sequence ESC W 1 Hexadecimal 1B 57 31 Double High Mode ESC wn Selects double high mode for n 1 or cancels for n 0 Double high mode doubles the height of all characters but does not affect character width Example The following escape sequence will select double high mode Escape Sequence ESC w 1 Hexadecimal 1B 77 31 23 Epson FX Emulation Select Subscript or Superscript Mode ESC Sn Selects subscript mode for n 1 or superscript mode for n 0 This will print characters about half the normal height in
71. control characters are ignored in bar code mode 124 Printing Basic Bar Codes Bar Code Definition The sequence used to define a horizontal bar code is AB N G Two Character Sequence Identifier for Horizontal Bar Code Definition Reserved Parameter Bar Code Type Code 39 1 1 2 2 Ratio b Code 39 1 1 3 3 Ratio Code 39 1 2 4 5 Ratio Code 39 LOGMAR Standard Density Code 39 LOGMAR Medium Density LA Code 39 LOGMAR Low Density 2 of 5 1 1 3 X Ratio h 2 of 5 1 2 3 X Ratio Bu Interleaved 2 of 5 BS Code 1 1 3 3 Ratio Sy Interleaved 2 of 5 BS Code 1 2 4 5 Ratio Interleaved 2 of 5 BS Code 1 5 1 5 4 5 4 5 Ratio Interleaved 2 of 5 BS Code 2 2 6 6 Ratio m Interleaved 2 of 5 C Code 1 1 2 2 Ratio n Interleaved 2 of 5 C Code 1 1 2 5 2 5 Ratio o Interleaved 2 of 5 C Code 1 5 1 5 3 5 3 5 Ratio p Interleaved 2 of 5 C Code2 2 4 5 4 5 Ratio Characters to be Bar Coded Sequence Terminator Required to signal end of character data The width of a defined bar code is predetermined by the definition of the bar code type The width of all bars and spaces is automatically set Example The following sequence defines a Code 39 LOGMAR bar code of standard density The characters 12345 are encoded in the bar code BNd12345 G DLL Example The same cha
72. ctors It is even possible to use some combinations of tractor paths for longer print jobs The Tractor Path value in the forms menu specifies Front Center Rear Center Rear or Front Center Rear abbreviated Frnt Cntr Rear for each form that is defined When a form is selected the associated set s of tractors is also automatically selected Load Form ESCLn Causes the current line to be printed and then loads paper and form parameters for form n 02n29 If form n is already loaded this sequence is ignored If not the current form will be unloaded the parameters for form n will be selected and the printer will go offline to wait for the operator to install the new form and place the printer back online In the FormsMaster 8003 the same happens unless selecting form n also selects a different paper path In that case the current form is unloaded the tractors are moved to engage the new path the new form is loaded and printing may continue If the selected form had not been previously loaded in that path see the FormsMaster 8000 Series Operator s Manual then the printer will go offline until an operator has loaded the form The printer will not unload the current form if a previously printed form has not been torn off In this case the printer will go offline sound the bell and display the message Too Much Paper to Unload When an operator tears off the paper and places the printer back online the print
73. data bytes If Data Bits is set to 7 in the interface setup menu beware of potential problems in graphics mode Since the MSB most significant bit will always be turned off it will not be possible to fire the top wire of the print head Worse yet the value of n or n2 may be changed For example if n 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 The result will surely not be pretty To avoid such problems the use of an 8 bit I O interface for printing graphics is highly recommended The normal graphics modes allow every dot to be printed High speed graphics will print twice as fast but will not allow consecutive dots to be printed 60 DPI Graphics ESC n1 n2 data Selects eight wire single density 60 dpi graphics for n n2 x 256 columns of data 37 Epson FX Emulation 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 ESC K 6 0 128 64 32 16 8 4 Hexadecimal IB 4B 06 00 80 40 20 10 08 04 120 DPI Graphics ESC L n1 n2 data Selects eight wire double density 120 dpi graphics for n n2 x 256 columns data Example The following escape sequence will print six bytes of graphics data at 120 dpi The resulting figure will r
74. e 0 Wea m a o a ak ux MR Y py Ao T x m ox m c 2 T LR n LN ME ir i 3D lt ie W ito F Ac Ec G4 orc mi B D Ted iD 4 a L im p c i iu HSH 2345 6789 ABCD EF 1 0 ELO LS Wy Se eee ee o BHT dq Sos ses 00 See ee BER 1 TS ESS Gey eee E ewe fom ms B eS 0 D Tx oe Jo 2 om Bb BH iPOD oe Oe L eoe mot Owe gt 2 rd b qi Co 6 0 o Code Poe a 0 etam og gt e eo oc m 05 C Epson FX Letter Quality ee ee Loe 134 ASCII Character Tables A HSB Bx PC Fast Draft d oW qw a H X h 1 YY iy amp amp c 1 m J Fe j n 1 i i i4 Z SEL L J 4
75. e Auto LF value in the interface setup menu Example The following escape sequence will select automatic carriage return mode Escape Sequence ESC A 1 Hexadecimal 1B 41 01 Auto Cut ESC Bn 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 ESC 1 Hexadecimal 1B 42 31 Cut Form ESC C Ejects the current form and cuts it off if the optional Printek FormsCutter is installed Escape Sequence ESC Hexadecimal 1B 43 Reset ESC 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 Resets top of form to the current position so it is wise to be at top of form before performing this reset Issuing a form feed will guarantee this See the chapter on Printer Reset Conditions for more information Escape Sequence ESC Hexadecimal 1B 40 105 Printek Emulation Forms and Tractors The FormsMaster 8003 contains three sets of paper tractors front center and rear It is possible via software to change to a different form that is set up to use any set of tra
76. e 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 The bit values corresponding to each wire of the print head are shown below wire 1 128 80 hex wire 2 64 40 hex wire 3 32 20 hex wire 4 16 10 hex wire 5 8 08 hex wire 6 4 04 hex wire 7 2 02 hex wire 8 1 Ol hex The appropriate bit values are added together to fire the desired wires For example a byte of graphics data with the value 128 80 hex will fire the top wire wire 1 A value of 192 CO hex will fire the top two wires wires and 2 A value of 11 OB hex will fire wires 5 7 and 8 Each graphics sequence contains two bytes n and n2 that specify how many bytes of graphics data follow The first byte n can specify values up to 255 If that is sufficient then n2 is set to zero For values greater than 255 n2 comes into play The 2 byte specifies multiples of 256 For example to specify 520 bytes of graphics data 1 8 and n2 2 The bytes of graphics data are strung together to create a graphics line that is eight dots high and n2 x 256 dots long Be sure to provide the amount of graphics data that you specify because the printer will not leave graphics mode until it has accepted the specified number of
77. ection with the two character CSI ESC because this format seems to be much more common and works equally well with 7 bit or 8 bit data Some escape sequences accept one or more numeric parameters A numeric parameter is a decimal number represented by a string of ASCII decimal digits 0 through 9 Leading zeros may be supplied but are not necessary Due to implementation constraints the largest value that can be accepted is decimal 255 Larger values will be treated as zero Omitting a numeric parameter is equivalent to supplying a value of zero If a sequence accepts one numeric parameter it will be represented as n If a sequence accepts more than one numeric parameter they will be represented as n n2 nx Note that multiple numeric parameters are separated by a semicolon Most ANSI escape sequences will assume one of the following formats 5 no numeric parameters ESCnf one numeric parameter ESC n1 n2 nx f two or more numeric parameters 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 Characters that appear in italics such as and f above are not sent to the printer as is they are used as a place
78. ed example This should clarify any ambiguity The examples may also be helpful when analyzing a hex dump see Hex Dump chapter printed by the printer 85 Simple TTY Emulation Control Codes and Escape Sequences Grouped by Function Communications End of Text ETX If ETX ACK is set to in the interface setup 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 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 Control code ETX Hexadecimal 03 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 LP is set to On in the interface setup menu a line feed will also be performed Control code CR Hexadecimal 0 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 Backspacing can be done up to but not beyond the left margin Control code BS Hexadecimal 08 86 Simple TTY Emulation Vertical Position Line
79. ence will set horizontal tab stops at half inch intervals if character spacing is currently 10 cpi Escape Sequence ESC HT 5 10 15 20 25 30 NUL Hexadecimal 1B 09 05 0A Of 14 19 1E 00 99 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 If Auto CR is set to in the interface setup menu a carriage return will also be performed Control code VT Hexadecimal OB Set Vertical Tab Stops ESC VT n1 n2 nx NUL Clears all currently set vertical tab stops and sets new tab stops at line n n2 n3 etc 1 gt gt 255 The tab stops must be presented in ascending order The NUL character or any tab stop value less than the preceding one terminates the sequence The tab stop settings are based on the current line spacing Changing the line spacing after the tab stops are set will not affect the position of the tab stops The first line is line zero ESC VT NUL or ESC R will clear all currently set vertical tab stops leaving no vertical tab stops set Example The following escape sequence will set vertical tab stops at line 6
80. equence ESC 1 Hexadecimal 1B 2D 31 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 Characters value in the interface setup menu Escape Sequence ESC 7 Hexadecimal 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 Enables printing of character values 128 through 159 decimal so these characters will not be treated as control codes Overrides the Characters value in the interface setup menu Escape Sequence ESC 6 Hexadecimal 1B 36 Print Single Character ESC Prints the character n from the all characters chart 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 This character is normally not printable since it is treated as the ESC control code Escape Sequence ESC Hexadecimal 1B SE 1B Print Characters ESC n1 n2 Prints the next n n2 x 256 characters from the all characters chart This sequence may be used to print characters that are normally treated as a control codes Example The following escape sequence will print an up arrow a down arrow a right arrow and a left arrow 50 IBM Proprinter Emulation
81. equence will set form length to 11 inches regardless of what line spacing is set Escape sequence ESC NUL Hexadecimal 1B 43 00 OB Form Feed FF Causes the current line to be printed and then advances the paper to the top of the next form Ifa top margin is set printing will continue at the top margin Setting Host FF at TOF to No in the interface setup menu allows a form feed to be ignored if the paper is already at top of form If Auto CR is set to in the interface setup menu a carriage return will also be performed Control code FF Hexadecimal 0C Set Top of Form ESC 4 Sets top of form to the current position Escape Sequence ESC 4 Hexadecimal 1B 34 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 The tab stops are set relative to the current character spacing but subsequent changes in character spacing will not affect the physical position of the tab stops except that the position will be rounded up to the closest character boundary 54 IBM Proprinter Emulation Horizontal Tab HT Advances to the next horizontal tab stop If no tab stop exists between the
82. er will unload the current form and continue If the printer is unable to load the new form it will sound the bell and display the message No Paper to Load and go offline to wait for an operator to clear the error Example The following escape sequence will load form 2 Escape Sequence ESC L 2 Hexadecimal 1B 4C 32 106 Printek Emulation Emulations Select Software Interface n ESC ESC n Selects the software interface n according to the table below n Software Interface 0 Test reserved for factory use 1 ANSI X3 64 Emulation 2 Epson FX Emulation 3 Bar Code Mode optional 4 IBM Proprinter Emulation 5 DEC LA120 Emulation 6 TTY Emulation 7 Printek Emulation Previously Selected Emulation Default Emulation Overrides the Emulation value in the interface setup menu A numeric value for n may be specified in two different ways with equivalent results a single byte with a value of 00 to 07 hex or a single printable ASCII character 0 to 7 30 to 37 hex If more than one emulation has been selected ESC ESC will return to the previously selected emulation This is particularly useful when the previous emulation is unknown Please beware that the memory stack is only one level deep ESC ESC will return to the default emulation as specified by the Emulation value in the interface setup menu This chapter describes Printek emulation If a different interface is selected the cont
83. eration setting the printer up loading paper replacing ribbons etc can be found in the FormsMaster 8000 Series Operator s Manual that accompanied your printer How to Use This Manual Below is a brief description of the information contained in this manual Introduction describes the contents of this manual This chapter also provides you with an introduction to the capabilities and operation of the FormsMaster 8000 and FormsMaster 8003 printers ANSI X3 64 Emulation Epson FX Emulation IBM Proprinter Emulation DEC LA120 Emulation Simple TTY Emulation and Printek Emulation are each designed as a stand alone chapter Each chapter provides all the information necessary to write software for a particular emulation You may wish to refer only to the chapter for the emulation you are using and skip the others Port Switching Programming Considerations describes special considerations required when connecting multiple host computers directly to the interface ports available on the printer Configuration Download describes how a simple text file may be used to set default values in the printer s non volatile memory This feature may be used as an alternative to using the printer s front panel setup and can be useful when configuring multiple printers or when configuring printers at a remote location Hex Dump Mode describes the output of Hex Dump mode and how it may be used to debug software problems Coax Twinax Command Interpreter d
84. erved for factory use 1 ANSI X3 64 Emulation 2 Epson FX Emulation 3 Bar Code Mode optional 4 IBM Proprinter Emulation 3 DEC LA120 Emulation 6 TTY Emulation 7 Printek Emulation Previously Selected Emulation Default Emulation Overrides the Emulation value in the interface setup menu A numeric value for n may be specified in two different ways with equivalent results a single byte with a value of 00 to 07 hex or a single printable ASCII character 0 to 7 30 to 37 hex If more than one emulation has been selected ESC ESC will return to the previously selected emulation This is particularly useful when the previous emulation is unknown Please beware that the memory stack is only one level deep ESC ESC will return to the default emulation as specified by the Emulation value in the interface setup menu 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 ESC ESC 7 ESC L 1 ESC ESC Hexadecimal 1B IB 07 IB 4 01 IB 1B 16 ANSI X3 64 Emulation Control Codes and Escape Sequences BEL BS CR CSI ESC D ESC E ESC ESC n ESCH ESC J ESC ESC L ESC nl n2 SP G OT 8 ga
85. escribes how this mode may be used to send ASCII control codes and escape sequences to the printer Printing Basic Bar Codes describes how to use the built in bar coding capabilities ASCII Character Tables provides a definition of ASCII control codes character tables and an ASCII to Decimal to Octal to Hexadecimal conversion table Printer Reset Conditions describes the state of the printer after a power up reset or receipt of a reset command Glossary provides a reference for printer related terms Introduction Printer Model Descriptions and Key Features The Printek FormsMaster 8000 series printers are high speed heavy duty serial dot matrix printers designed especially for printing upon hard to print forms Such forms are often not printed adequately by other printers The printer is also designed to be factory floor rugged while still quiet enough for the office Both models provide straight paper paths for jam free paper motion and a zero waste tear bar for demand document applications The operator may permanently record up to ten complete sets of form parameters which may be later selected either at the printer s control panel or from the host computer The FormsMaster 8003 provides three sets of tractors any of which can be included in the form parameters for a particular form This allows the printer to automatically unload one form and load another when selected without requiring the operator to touch the paper The FormsMaste
86. esemble a backslash character Escape Sequence ESC L 6 0 128 64 32 16 8 4 Hexadecimal IB 4C 06 00 80 40 20 10 08 04 High Speed 120 DPI Graphics ESC Y n1 n2 data Selects eight wire high speed double density 120 dpi graphics for n n2 x 256 columns of data Horizontally adjacent dots may not be printed Example The following escape sequence will print six bytes of graphics data at 120 dpi The resulting figure will resemble a backslash character Escape Sequence ESC Y 6 0 128 64 32 16 8 4 Hexadecimal 1B 59 06 00 80 40 20 10 08 04 High Speed 240 DPI Graphics ESC Z nl n2 data Selects eight wire quadruple density 240 dpi graphics for n n2 x 256 columns of data Horizontally adjacent dots may not be printed Example The following escape sequence will print six bytes of graphics data at 240 dpi The resulting figure will resemble a backslash character Escape Sequence ESC Z 6 0 128 64 32 16 8 4 Hexadecimal 1B 5A 06 00 80 40 20 10 08 04 38 Epson FX Emulation m DPI Graphics ESC m n1 n2 data Selects eight wire graphics of density as listed in the following table forn 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 72 dpi 90 dpi 144 dpi tA I2 Example The following escape sequence will print four bytes of graphics data at 72 x 72 dpi The result
87. et at every eighth column i e column 9 17 25 33 41 etc The tab stop 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 Control code HTS Hexadecimal 88 Escape Sequence ESC H Hexadecimal 1B 48 Escape Sequence ESC 1 Hexadecimal 1B 31 Set Horizontal Tab Stops ESC nl n2 nxu Sets new horizontal tab stops at column n n2 n3 etc 12n2255 The tab stops are associated with columns not absolute physical positions Changing character spacing will change the physical position of the tab stops The leftmost column is column one 74 DEC LA120 Emulation 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 Escape Sequence ESC 6 1 1 1 6 Hexadecimal IB 5B 36 3B 31 31 3B 31 36 75 Example The following escape sequence will set a horizontal tab stop at column six Escape Sequence ESC 6 Hexadecimal 1B 5B 36 75 Clear Horizontal Tab Stop ESC g or ESC 02 Clears the horizontal tab stop at the current print position The tab stop to be cleared is associated with the active column b
88. ex is used to introduce character strings called escape sequences which provide an extension of the commands available with ASCII control codes The LA120 control codes and escape sequences follow the standards of the ANSI X3 64 specification Many ANSI escape sequences begin with a two character Control Sequence Introducer CSI Escape Left Square Bracket ESC 1B 5B hex If 8 bit data is selected via control panel setup these two characters may be replaced by a single character CSI 9B hex The sequences are always documented in this section with the two character CSI ESC because this format seems to be much more common and works equally well with 7 bit or 8 bit data Some escape sequences accept one or more numeric parameters A numeric parameter is a decimal number represented by a string of ASCII decimal digits 40 through 9 Leading zeros may be supplied but are not necessary Due to implementation constraints the largest value that can be accepted is decimal 255 Larger values will be treated as zero Omitting a numeric parameter is equivalent to supplying a value of zero If a sequence accepts one numeric parameter it will be represented as n If a sequence accepts more than one numeric parameter they will be represented as n1 n2 nx Note that multiple numeric parameters are separated by a semicolon Most LA120 escape sequences will assume one of the following formats 5 no numeric parameters
89. f 00 or 01 hex NUL or 5 or it may be sent as a single printable ASCII character 0 or 1 30 or 31 hex 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 Characters that appear in italics such as and 1 n2 above are not sent to the printer as is they are used as a place holder indicating that some value must be supplied Multiple character strings without intervening spaces typically represent control codes For example BS is the Backspace control code 08 hex not the two characters and S 42 and 53 hex An ASCII Control Code Table is provided on page 139 for your convenience If you have any doubt about how to interpret 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 Hex Dump chapter printed by the printer Column and line numbers begin at one not at zero Keep this in mind when setting tabs margins etc 45 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 CAN Hexadecimal 18 End of Text ETX If ETX ACK is set
90. f of the normal character cell Example The following escape sequence will select superscript mode Escape Sequence ESC 5 0 Hexadecimal 1B 53 30 Cancel Subscript and Superscript Mode ESC T Cancels subscript and superscript mode Escape Sequence ESC Hexadecimal 1B 54 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 Force value in the forms menu Escape Sequence ESC E Hexadecimal 1B 45 Cancel Emphasized Mode ESC F Cancels emphasized mode Overrides the Impact Force value in the forms menu Escape Sequence ESC F Hexadecimal 1B 46 Select Double Strike Mode ESC Selects double strike mode This makes text bolder by printing it twice This will cut the print speed in half because an additional pass of the print head will be required Escape Sequence ESC G Hexadecimal 1B 47 Cancel Double Strike Mode ESC H Cancels double strike mode 49 IBM Proprinter Emulation Escape Sequence ESC H Hexadecimal 1B 48 Underline Mode ESC n 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 S
91. face n according to the table below Printek Emulation Previously Selected Emulation Default Emulation n Software Interface 0 Test reserved for factory use 1 ANSI X3 64 Emulation 2 Epson FX Emulation 3 Bar Code Mode optional 4 IBM Proprinter Emulation 3 DEC LA120 Emulation 6 TTY Emulation 7 2 80 DEC LA120 Emulation Overrides the Emulation value in the interface setup menu A numeric value for n may be specified in two different ways with equivalent results a single byte with a value of 00 to 07 hex or a single printable ASCII character 0 to 7 30 to 37 hex If more than one emulation has been selected ESC ESC will return to the previously selected emulation This is particularly useful when the previous emulation is unknown Please beware that the memory stack is only one level deep ESC ESC will return to the default emulation as specified by the Emulation value in the interface setup menu 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 ESC ESC 7 ESC L 1 ESC ESC Hexadecimal 1B IB 07 IB 4 01 IB 1B 81 DEC LA120 Emulation 82 Control Codes and Escape Sequences Sorted Alphabetically
92. ffect the physical position of the tab stops 34 Epson FX Emulation 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 is set to in the interface setup menu a carriage return will also be performed Control code VT Hexadecimal OB Set Vertical Tab Stops ESC B n1 n2 nx NUL Clears all currently set vertical tab stops and sets new tab stops at line n n2 n3 etc 1 gt gt 255 The tab stops must be presented in ascending order The NUL character or any tab stop value less than the preceding one terminates the sequence The tab stop settings are based on the current line spacing Changing the line spacing after the tab stops are set will not affect the position of the tab stops The first line is line zero ESC B NUL will clear all currently set vertical tab stops leaving no vertical tab stops set Example The following escape sequence will set vertical tab stops at line 6 12 and 24 If line spacing is currently 6 this will result in tab stops one inch two inches and four inches from the top of the form Escape Sequence ESC 6 12 24 NUL Hexadecimal 1B 42 06 0 18 00 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
93. he third form will begin printing two lines at 8 LPI from the top edge of the form The name will be REPORTS and printing will be at eight LPI with a form length of 8_ inches E Example setup file for three forms BeginPrintekSetup AlignPrint FactoryDefaults Forms FactoryDefaults Form0 MovePrintDown 0 17 FormName CHECKS FormLength 42 Font Epson_FX_DF Form MovePrintRight 0 20 MovePrintDown 0 33 FormName INVOICES Font Epson_FX_DF Form2 MovePrintDown 0 25 FormName REPORTS LinesPerInch 8 FormLength 68 CharactersPerInch 12 EndPrintekSetup 115 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 enter SETUP and use the MENU button to select the TEST MENU Next use the ITEM buttons to select Test Mode and then use the VALUE buttons to select Hex Dump Now press ONLINE to reset the printer The printer will now remain in Hex Dump mode until Test Mode is set back to Off or some other value A sample hex dump is shown below Note that each line shows six
94. ill be ignored Overrides the Forms Length value in the forms menu For example an 11 inch form contains 66 lines at 6 LPI but 88 lines at 8 LPI If line spacing is changed after setting the form length the physical form length in inches will not be changed Resets top of form to the current position so it is wise to be at top of form before setting form length Issuing a form feed will guarantee this Vertical margins are cleared Example The following escape sequence will set form length to 66 lines At 6 LPI this will result in a form length of 11 inches Escape sequence ESC FF 66 Hexadecimal 1B 0C 42 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 Setting Host FF at TOF to No in the interface setup menu allows a form feed to be ignored if the paper is already at top of form If Auto CR is set to in the interface setup menu a carriage return will also be performed Control code FF Hexadecimal 0C 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 98 Printek Emulation User defined horizontal tab stops are associated with absolute physica
95. inch wide form this would result in a one inch right margin Escape Sequence ESC Q 75 Hexadecimal 1B 51 4B 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 Nn Sets the perforation skip distance to lines at the current line spacing 12n2255 If line spacing is changed after setting the skip distance the skip distance will not be changed The skip distance is split between the top and bottom margins so the perforation will be centered in the resulting white space The specified skip distance must be less than the form length or the command will be ignored Perforation skip is canceled by ESC ESC or ESC C NUL n Overrides the Top Margin and Bottom Margin values in the forms menu Example The following escape sequence will set a two inch perforation skip distance if the current line spacing is 6 Ipi This will result in a one inch top and bottom margin Escape Sequence ESC N 12 Hexadecimal 1B 4E OC 36 Epson FX Emulation Cancel Perforation Skip ESC O Cancels perforation skip This is equivalent to having no top and bottom margin Overrides the Top Margin and Bottom Margin values in the forms menu Escape Sequence ESC Hexadecimal 1B 4 Graphics Graphics mode gives the user complete control over every dot position on the paper Graphics may b
96. ine feed will increment the active line Column and line numbers begin at one not at zero Keep this in mind when setting tabs margins etc 66 DEC LA120 Emulation Control Codes and Escape Sequences Grouped by Function Communications Null NUL This control code is ignored by the printer Control code NUL Hexadecimal 00 Delete DEL This control code is ignored by the printer Control code DEL Hexadecimal End of Text ETX If ETX ACK is set to in the interface setup 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 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 Control code ETX Hexadecimal 03 67 DEC LA120 Emulation Character Size The FormsMaster 8000 series printers are 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
97. ing 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 ESC 5 4 0 lt lt lt lt Hexadecimal 1B 2A 05 04 00 3C 3C 3C 3C Printer Controls Bell BEL Causes the printer s bell to sound Control code BEL Hexadecimal 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 ESC lt Hexadecimal 1B 3C Unidirectional Mode ESC Un 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 Escape Sequence ESC U 1 Hexadecimal 1B 55 31 Reset ESC Deletes all data on the current line and initializes the printer to the default settings for the current form 39 Epson FX Emulation Restores the default horizontal tab stops Default tab stops are set at every eighth column i e column 8 16 24 32 40 etc Resets top of form to the current position so it is wise to be at top of form before performing this reset Issuing a form feed will guarantee this See the chapter on Printer Reset Conditions for more information Escape Sequence ESC Hexadeci
98. l positions not with columns The tab stops are set relative to the current character spacing but subsequent changes in character spacing will not affect the physical position of the tab stops except that the position will be rounded up to the closest character boundary 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 Default tab stops are set at every eighth column i e column 8 16 24 32 40 etc Different tab stops may be set with ESC HT Control code HT Hexadecimal 09 Set Horizontal Tab Stops ESC HT n1 n2 nx NUL Clears all currently set horizontal tab stops and sets new tab stops at column n n2 n3 etc 12n2255 The tab stops must be presented in ascending order The NUL character or any tab stop value less than the preceding one terminates the sequence The tab stops are set relative to the current character spacing but subsequent changes in character spacing will not affect the physical position of the tab stops except that the position will be rounded up to the closest character boundary The leftmost column is column zero Default tab stops are set at every eighth column i e column 8 16 24 32 40 etc The tab stops set by ESC HT will replace the default tab stops ESC HT NUL will clear all tab stops leaving no tab stops set The default tab stops are restored by ESC R Example The following escape sequ
99. le To print multiple bar codes down the page H0O2 BNd01 G J010 BNd02 G J010 BNd03 G Correct H0O2 BNd01 G JO10 BNd02 G JO10 BNd03 G Incorrect Note that one bar code pass may not contain multiple bar codes separated by vertical tabs 130 Printing Basic 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 While still in bar code mode a relative vertical tab was done to space 0 1 inch below the bar code H05 BNd0123456789 G JO10 Then after returning from bar code mode to text mode character string 5i 0123456789 was printed Example To print text along side a bar code ZEE To print this bar code and text all text was first printed wd toto right ban code Text to left Text to right of bar code of bar code While still in text mode reverse paper motion was done to step back above the printed text The bar code was then printed in bar code mode H05 T0140 BNd0123456789 G 131 Printing Basic Bar
100. lect Graphic Rendition ESC Selects the graphic rendition n from the following table n Rendition 0 Normal 1 Emphasized 3 Italic 4 Underline ANSI X3 64 Emulation For italic mode to work correctly an Epson FX font must be selected check the Font value in the forms setup menu The other available fonts do not include italic characters Example The following escape sequence will select emphasized mode Escape Sequence ESC 1 m Hexadecimal 1B 5B 31 6D 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 LP is set to On in the interface setup menu a line feed will also be performed Control code CR Hexadecimal 0 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 Backspacing can be done up to but not beyond the left margin Control code BS Hexadecimal 08 ANSI X3 64 Emulation Absolute Horizontal Tab ESC Sets the current print position to column n The actual position will depend on the current character spacing If is less than the left margin the active column will be set to the left margin If n is greater than the right margin then a line feed will be performed and the active column will be set to the left margin Example The following escape
101. mal 1B 40 Forms and Tractors The FormsMaster 8003 contains three sets of paper tractors front center and rear It is possible via software to change to a different form that is set up to use any set of tractors It is even possible to use some combinations of tractor paths for longer print jobs The Path value in the forms menu specifies Front Center Center Rear or Front Center Rear abbreviated Frnt Cntr Rear for each form that is defined When form is selected the associated set s of tractors is also automatically selected Load Form ESC EM n Causes the current line to be printed and then loads paper and form parameters for form n 02n22 If form n is already loaded this sequence is ignored If not the current form will be unloaded the parameters for form n will be selected and the printer will go offline to wait for the operator to install the new form and place the printer back online In the FormsMaster 8003 the same happens unless selecting form n also selects a different paper path In that case the current form is unloaded the tractors are moved to engage the new path the new form is loaded and printing may continue If the selected form had not been previously loaded in that path see the FormsMaster 8000 Series Operator s Manual then the printer will go offline until an operator has loaded the form The printer will not unload the current form if a previously printed fo
102. mally 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 Escape Sequence ESC ESC Hexadecimal 1B 5C 1B 96 Printek Emulation Line Pitch Set Line Spacing to 288 ESC LF n Sets the line spacing to n 288 of an inch per line 02n2255 Overrides the Lines Inch value in the forms menu Example The following escape sequence will set line spacing to 1 6 of an inch per line 6 1 1 Escape Sequence ESC LF 48 Hexadecimal 1B OA 30 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 LP is set to On in the interface setup menu a line feed will also be performed Control code CR Hexadecimal 0 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 Backspacing can be done up to but not beyond the left margin Control code BS Hexadecimal 08 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 is set to in the interface setup menu a carriage return will also be performed Control code LF Hexadecimal
103. mode 123 Printing Basic Bar Codes The Bar Code Control Character Except for a few ASCII control characters supported by bar code mode all bar code sequences are introduced by the bar code control character The bar code control character is the printable ASCII caret character 94 decimal 5E hex Note in particular that the ESC control code 27 decimal 1B hex is not used in bar code mode When the caret character is seen in this chapter it does not mean 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 is processed so that ETX ACK software handshake will work in bar code mode As an aside XON XOFF software handshake will also work in bar code mode However XON XOFF characters are transmitted only from the printer to the host XON XOFF characters should not be sent to the printer FF is supported so that you may easily reach top of form without exiting bar code mode LF advances the paper to the next line feed boundary at the currently selected line pitch If already positioned at a line feed boundary this will peform a full line feed if not a partial line feed will be performed to position the paper at the next line This allows the paper to be positioned properly for text printing after bar code mode is exited All other
104. mplete 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 The bit values corresponding to each wire of the print head are shown below wire 1 128 80 hex wire 2 64 40 hex wire 3 32 20 hex wire 4 16 10 hex wire 5 8 08 hex wire 6 4 04 hex wire 7 2 02 hex wire 8 1 01 hex The appropriate bit values are added together to fire the desired wires For example a byte of graphics data with the value 128 80 hex will fire the top wire wire 1 A value of 192 CO hex will fire the top two wires wires and 2 A value of 11 OB hex will fire wires 5 7 and 8 Each graphics sequence contains two bytes n and n2 that specify how many bytes of graphics data follow The first byte n1 can specify values up to 255 If that is sufficient then n2 is set to zero For values greater than 255 n2 comes into play The n2 byte specifies multiples of 256 For example to specify 520 bytes of graphics data n 2 8 and n2 2 2 The bytes of graphics data are strung together to create a graphics line that is eight dots high and n7 n2 256 dots long Be sure to provide the amount of graphics data that you specify because the printer will not le
105. mulation as specified by the Emulation value in the interface setup menu 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 ESC ESC 7 ESC L 1 ESC ESC Hexadecimal 1B IB 07 IB 4 01 IB 1B 61 IBM Proprinter Emulation 62 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 ESC 6 ESC 7 ESC ESCAn ESC B n1 n2 nx NUL ESC C NUL n ESC Cn ESC D n1 n2 nx NUL ESCE ESC ESC n ESC F ESC ESC H ESC In ESC Jn ESC n1 n2 data ESC L n1 n2 data ESCNn ESCO ESC Qn ESC ESC Sn ESC SI ESC SO ESC T ESC Un ESC Wn ESC X nl n2 ESC Y n1 n2 data ESC Z nl n2 data ESC n n2 m2 m3 m4 ESC nl n2 Bell Backspace Cancel Line Carriage Return Select 10 CPI Cancel Double Wide Mode one line Underline Mode Select 8 LPI Set Line Spacing to 7 72 Start Line Spacing Set Line Spacing to n 216 Set Top of Form Automatic Line Feed Select Character Set 2 Select Character Set 1 Select 12 CPI Set Line Spacing to n 72 Set Vertical Tab Stops Set Form Length in Inches Set Form Length in Line
106. must be right of the left margin and 213 6 inches Invalid margins will be ignored Overrides the Left Margin and Right Margin values in the forms menu Example The following escape sequence will set a one inch left margin and will set a right margin 7 5 inches from the left edge of the form if character spacing is currently 10 cpi For a standard 8 5 inch wide form this would result in a one inch right margin Escape Sequence ESC H 10 75 Hexadecimal 1B 48 OA 4B 101 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 n and the bottom margin to line n2 at the current line spacing 02n 2255 02n22255 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 The top and bottom margins are both inclusive For example a top margin at line 6 still allows text to be printed on line 6 but not on line 5 A bottom margin at line 59 still allows text to be printed on line 59 but not on line 60 The first line is line zero The top margin must be above the bottom margin The bottom margin must be below the top margin The margins cannot exceed the form length Invalid margins will be ignored Overrides the Top Margin and Bottom Margin values in
107. n NotActive Active t NotActive Active a NotActive Active o Slashed Normal LineRegis VerticalD tration NotMaintained Maintained PI 72 70 VerticalTextSpacing Version2 Versionl CodeVSpac IGPCharac Engl Fields Process Ignore terSet ASCII Germany Sweden Denmark Norway Finland ish Dutch France Spain Italy Turkey DeleteLogos No Yes QuietMode NotActive Active Spacing IGP10 20 40 IGP30 114 Configuration Download Options MaxFormAllowed 0 9 AutoScroll Off l 15 PaperOutFault BreakPage ReprintPage FinishPage PageSize 0K 28K RibbonCheck Off On RibbonLife 5 30 Security AlignPrint ViewOnly EditAllowed FormsMenu ViewOnly EditAllowed InterfaceMenu ViewOnly EditAllowed OptionsMenu ViewOnly EditAllowed EndPrintekSetup Remote Setup Example File The following example will set up three forms Before the forms are set up AlignPrint and all Forms will be reset to their factory default values so that only non default values have to be set The first form will begin printing one line from the top of form be named CHECKS have a form length of 42 lines 7 inches at 6 LPI and use the Epson FX Draft font The second form will begin printing two characters at 10 CPI from the left edge and two lines at 6 LPI from the top of the form The name will be INVOICES and will use the Epson FX Draft font T
108. nce will select double wide mode Escape Sequence ESC W 1 Hexadecimal 1B 57 31 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 n 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 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 m3 hex character height and line spacing 0 00 no change 1 01 line feeds unchanged single high characters 2 02 line feeds unchanged double high characters 16 10 single line feeds character height unchanged 17 11 single line feeds single high characters 18 12 single line feeds double high characters 32 20 double line feeds character height unchanged 33 21 double line feeds single high characters 34 22 double line feeds double high characters m4 hex character width 1 01 single wide characters 2 02 double wide characters Example The following escape sequence will select double wide and double high mode with double line feeds 48 IBM Proprinter Emulation Escape Sequence ESC 4 0 0 0 34 2 Hexadecimal 1B 5B 40 04 00 00 00 22 02 Select Subscript or Superscript Mode ESCS n Selects subscript mode for n 1 or superscript mode for n 0 This will print characters about half the normal height in the bottom or top hal
109. nd then advances the paper one line at the current line spacing If Auto CR is set to in the interface setup menu a carriage return will also be performed Control code LF Hexadecimal 0A Variable Distance Line Feed ESC J Causes the current line to be printed and then performs a single line feed of n 216ths of an inch 0 gt gt 255 Does not change the current line spacing If Auto CR is set to On in the interface setup menu a carriage return will also be performed Example The following escape sequence will advance the paper one half inch Escape Sequence ESC J 108 Hexadecimal 1B 4A 6 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 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 with the control panel setup 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 The easiest way to set form length
110. ne MaxPrintLine 66 None FFonLocalCopy Enable Disable FFValid Anywhere FFatEOM Disable Enable PaperErrorReport Disable l Epson IBM Proprinter D Epson IBM Proprinter D ColumnilorMPP 1 Enable EC_LA120 TTY Printek EC_LA120 TTY Printek CharacterSet Multinational USA Austria Germany Belgium Brazil CanadianFre nch Denmark Norway Finland Sweden France Italy Japan English Japan Katakana Portuguese Spain SpanishSpeaking NULSuppression UnitedKingdom LogicalNotCharacter 5Eh El1h Disable Enable HostCPIControl Enable Disable HostLPIControl Enable Disable HostFormLength Enable Disable BufferSize 4K 2 K DisplaySize 1920 2560 3440 3564 920 TwinaxInterface PrinterEmulation 4214 5225 5256 4234 CharacterSet Multinational USA Austria Germany Belgium Brazil Japan English Japan UnitedKingdom LogicalNotCharacter 5Eh El1h HostPrintQuality Enable Disable HostCPIControl Enable Disable HostLPIControl Enable Disable HostFormLength Enable Disable HostBinSelect E nable Disable CanadianFrench Denmark Norway Finland Sweden France Italy Katakana Portuguese Spain SpanishSpeaking 113 Configuration Download IPDS CoaxInterface MaxPrintP osition 132 None CRatMPP 1 NLatMPP 1
111. ne at the current line spacing If Auto CR is set to in the interface setup menu a carriage return will also be performed Control code LF Hexadecimal 0A Variable Distance Line Feed ESC J Causes the current line to be printed and then performs a single line feed of n 216ths of an inch 0 gt gt 255 Does not change the current line spacing If Auto CR is set to On in the interface setup menu a carriage return will also be performed Example The following escape sequence will advance the paper one half inch Escape Sequence ESC J 108 Hexadecimal 1B 4A 6 Variable Distance Reverse Line Feed ESC jn Performs a single reverse line feed of n 216ths of an inch 02n2255 Does not change the current line spacing If Auto CR is set to On in the interface setup menu a carriage return will also be performed Example The following escape sequence will move the paper down one half inch Escape Sequence ESC j 108 Hexadecimal 1B 6A 6 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 The usual rational is that the program is then in complete 31 Epson FX Emulation control of f
112. ntal tab stops Default horizontal tab stops are set at every eighth column i e column 9 17 25 33 41 etc Clears all currently set vertical tab stops Escape Sequence ESC Hexadecimal 1B 52 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 56 IBM Proprinter Emulation Set Left and Right Margin ESC X n1 n2 Sets the left margin to column n and the right margin to column n2 at the current character spacing 0 gt 1 gt 255 02n22255 If character spacing is changed after setting the margins the position of the margins will not change The left margin is inclusive but the right margin is exclusive For example a left margin at column 11 still allows a character to be printed in column 11 A right margin at column 76 allows a character to be printed in column 75 but not in column 76 The leftmost column is column one If n or n2 is zero the corresponding margin is not changed The left margin must be left of the right margin and 213 4 inches The right margin must be right of the left margin and 213 6 inches Invalid margins will be ignored Overrides the Left Margin and Right Margin values in the forms menu Example The following escape sequence will set a one inch left margin and will set a right margin 7 5 inches from the left edge of the form if
113. nterface setup menu Escape Sequence ESC 7 Hexadecimal 1B 37 Printing of Low Symbols ESCIn Enables printing of character values 0 through 31 decimal if they are not used as control codes for n 1 or disables printing for n 0 Overrides the Characters value in the interface setup menu Example The following escape sequence will disable printing of character values 0 through 31 decimal Escape Sequence ESC 0 Hexadecimal 1B 49 30 Line Pitch Select 8 LPI ESC 0 Sets the line spacing to 1 8 of an inch per line 8 Overrides the Lines Inch value in the forms menu Escape Sequence ESC 0 Hexadecimal 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 This is not particularly useful for text but may be useful for graphics if 7 bit graphics data is being sent Overrides the Lines Inch value in the forms menu Escape Sequence ESC 1 Hexadecimal 1B 31 Select 6 LPI ESC 2 Sets the line spacing to 1 6 of an inch per line 6 1 1 This is the normal text line spacing Overrides the Lines Inch value in the forms menu Escape Sequence ESC 2 Hexadecimal 1B 32 29 Epson FX Emulation Set Line Spacing to 216 ESC 3n Sets the line spacing to n 216 of an inch per line 02n2255 Overrides the Lines Inch value in the forms menu NO
114. ode IND Hexadecimal 84 Escape Sequence ESC D Hexadecimal 1B 44 Absolute Vertical Tab ESC nd 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 ESC 1 2 d Hexadecimal 1B 5B 31 32 64 Relative Vertical Tab ESC ne Advances the active line by lines The actual distance moved will depend on the current line spacing Equivalent to sending line feeds LF Example The following escape sequence will advance the active line by 12 lines If current line spacing is 6 this will cause the paper to advance one inch Escape Sequence ESC 1 2 Hexadecimal 1B 5B 31 32 65 72 DEC LA120 Emulation Horizontal and Vertical Position New Line NEL or ESC 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 NEL Hexadecimal 85 Escape Sequence ESC E Hexadecimal 1B 45 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
115. on to in the interface setup 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 An ASCII control code is a single character in the range 00 hex through 1F hex and 7F hex The ESC Escape control code 1B hex is used to introduce character strings called escape sequences which provide an extension of the commands available with ASCII control codes TTY emulation is unique in that it does not support any escape sequences except for the ESC ESC n sequence which may be used to select a different emulation 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 Characters that appear in italics such as are not sent to the printer as is they are used as a place holder indicating that some value must be supplied Multiple character strings without intervening spaces typically represent control codes For example BS is the Backspace control code 08 hex not the two characters B and S 42 and 53 hex An ASCII Control Code Table is provided on page 139 for your convenience If you have any doubt about how to interpret a documented control code or escape sequence refer to the hex representation in the provid
116. ops Escape Sequence ESC 2 g Hexadecimal 1B 5B 32 67 Escape Sequence ESC 3 g Hexadecimal IB 5B 33 67 13 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 is set to in the interface setup menu a carriage return will also be performed Control code VT Hexadecimal OB Set Vertical Tab Stop VTS or ESC J Sets a vertical tab stop at the current line The tab stop is associated with the active line not an absolute physical position Changing line spacing will change the physical position of the tab stop The tab stop set by this escape sequence will be added to previously set tab stops If this is not desired the old tab stops should first be cleared Control code VTS Hexadecimal 8A Escape Sequence ESC J Hexadecimal 1B 4A Clear Vertical Tab Stop ESC 1g Clears the vertical tab stop at the current line The tab stop to be cleared is associated with the active line based upon the current line spacing not an absolute physical position Escape Sequence ESC 1 g Hexadecimal 1B 5B 31 67 Clear All Vertical Tab Stops ESC 42 Clears all currently set vertical ta
117. orce unidirectional printing Escape Sequence ESC U 1 Hexadecimal 1B 55 31 Automatic Line Feed ESC 5 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 interface setup menu Example The following escape sequence will select automatic line feed mode Escape Sequence ESC 5 1 Hexadecimal 1B 35 31 60 IBM Proprinter Emulation Emulations Select Software Interface n ESC ESC n Selects the software interface n according to the table below n Software Interface 0 Test reserved for factory use 1 ANSI X3 64 Emulation 2 Epson FX Emulation 3 Bar Code Mode optional 4 IBM Proprinter Emulation 5 DEC LA120 Emulation 6 TTY Emulation 7 Printek Emulation Previously Selected Emulation Default Emulation Overrides the Emulation value in the interface setup menu A numeric value for n may be specified in two different ways with equivalent results a single byte with a value of 00 to 07 hex or a single printable ASCII character 0 to 7 30 to 37 hex If more than one emulation has been selected ESC ESC will return to the previously selected emulation This is particularly useful when the previous emulation is unknown Please beware that the memory stack is only one level deep ESC ESC will return to the default e
118. orm 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 with the control panel setup 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 The easiest way to set form length is via the Form Length value in the forms menu so it will be correctly set for everyone using the form If correct form length cannot be guaranteed from SETUP then each program should set the correct form length Set Form Length in Lines ESC Cn Sets the form length to n lines at the current line spacing 12n2255 Maximum form length is 37 9 inches Invalid form lengths will be ignored Overrides the Form Length value in the forms menu For example an 11 inch form contains 66 lines at 6 LPI but 88 lines at 8 LPI If line spacing is changed after setting the form length the physical form length in inches will not be changed Resets top of form to the current position so it is wise to be at top of form before setting form length Issuing a form feed will guarantee this Vertical margins are cleared Example The following escape sequence will set form length to 66 lines At 6 LPI this will result in a form length of 11 inches Escape sequence ESC 66 Hexadecimal 1B 43 42 Set Form Length in Inches ESC NUL n Sets the form length to
119. pacing 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 If Auto CR is set to in the interface setup menu a carriage return will also be performed Control code VT Hexadecimal OB Set Vertical Tab Stops ESC B n1 2 nx NUL Clears all currently set vertical tab stops and sets new tab stops at line n n2 n3 etc 12n2255 The tab stops must be presented in ascending order The NUL character or any tab stop value less than the preceding one terminates the sequence The tab stop settings are based on the current line spacing Changing the line spacing after the tab stops are set will not affect the position of the tab stops The first line is line one ESC B NUL or ESC R will clear all currently set vertical tab stops leaving no vertical tab stops set Example The following escape sequence will set vertical tab stops at line 7 13 and 25 If line spacing is currently 6 this will result in tab stops one inch two inches and four inches from the top of the form Escape Sequence ESC 7 13 25 NUL Hexadecimal 1B 42 07 0 19 00 Horizontal and Vertical Tabs Reset Horizontal and Vertical Tab Stops ESC Clears all currently set horizontal tab stops and returns to default horizo
120. per 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 Escape Sequence ESC 3 108 Hexadecimal 1B 33 6C Set Line Spacing to n 72 ESC An Sets the line spacing to n 72 of an inch per line 0252255 Since the distance between print head wires is 1 72 of an inch this is equivalent to setting n wire spacing This spacing is stored but does not take effect until ESC 2 is received Overrides the Lines Inch value in the forms menu Example The following escape sequence will set line spacing to 8 72 of an inch for use with eight wire graphics Escape Sequence ESC A 8 Hexadecimal 1B 41 08 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 LP is set to in the interface setup menu a line feed will also be performed Control code CR Hexadecimal 0 52 IBM Proprinter Emulation 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 Backspacing can be done up to but not beyond the left margin Control code BS Hexadecimal 08 Vertical Position Line Feed LF Causes the current line to be printed a
121. r 8003 is also able to use the same form or paper in multiple paths and automatically continue printing from a different path after one or two paths are out of paper For more information refer to the FormsMaster 8000 Series Operator s Manual The printers come equipped with an industry standard parallel interface and an RS 232 serial interface The printer will automatically accept data from either of these ports and even a third optional port after a 15 second delay The optional ports which are available include Coax Twinax IPDS Coax IPDS Twinax or Ethernet 10BaseT For more information refer to the chapter on Port Switching Programming Considerations Standard bar coding capabilities include Code 39 Code 39 LOGMAR 2 of 5 and Interleaved 2 of 5 bar codes and OCR A and OCR B fonts Bar code options include the Imager Graphics Co Processor which expands the bar code capabilities beyond the standard Basic Bar Codes with QMS Code V v1 barcoding compatibility and the ImagerPlus Graphics Co Processor which adds bar code and graphic capabilities with QMS Code V v1 and v2 compatibility and Printronix IGP compatibility Other options include an internal FormsCutter which can be used to automatically cut off each form or to separate reports A specially designed print stand which can handle three boxes of paper and a Setup Module to make set up of multiple printers quick and easy are also available Selecting Emulations The software in
122. r Sequence Identifier for Absolute Horizontal Tab Horizontal Distance in Tenth Inches plus Dots Range of ttt is 000 to 136 00 0 to 13 6 inches Range of d is 0 to F 0 to 15 dots The horizontal position specified is an absolute distance with respect to the left edge of the paper Remember that a tenth of an inch is actually 14 144ths of an inch so the actual distance tabbed may be slightly shorter than expected Example To print multiple bar codes across the page Bar codes are printed approximately 0 2 and 4 inches from the left edge of the paper H0O2 BNd01 G T0200 BNd02 G TO400 BNd03 G 129 Printing Basic 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 Note the very different results obtained by omitting or inserting the pass terminators Example To print multiple bar codes across the page H0O2 BNd01 G T0200 BNd02 G T0400 BNd03 G Correct LEE HL M H0O2 BNd01 G TO200 BNd02 G TO400 BNd03 G Incorrect HU EARUM Examp
123. r letter quality for n zl Same as ESC 0 or ESC 1 Overrides the Font value in the forms menu Example The following escape sequence will select draft print Escape Sequence ESC x 0 Hexadecimal 1B 78 30 26 Epson FX Emulation Select Font ESC kn Select font n according to the following table Font Epson FX Draft Epson FX Letter Quality Proprinter PC Draft Proprinter PC Letter Quality EBCDIC Draft EBCDIC Letter Quality OCR A Optical Quality OCR B Optical Quality Epson FX Fast Draft Epson FX Draft Epson FX Letter Quality Proprinter PC Fast Draft Proprinter PC Draft Proprinter PC Letter Quality PC Latin Slavic Fast Draft PC Latin Slavic Draft PC Latin Slavic Letter Quality EBCDIC Fast Draft EBCDIC Draft EBCDIC Letter Quality OCR A Optical Quality OCR B Optical Quality Overrides the Font value in the forms menu If the specified font is not installed the Font value in the forms menu will be used to select the default font Example The following escape sequence will select the Epson FX letter quality font Escape Sequence Hexadecimal ESC 1 IB 6B 01 27 Epson FX Emulation Select International Character Set ESC Rn Selects the international character set as specified by the value of n in the following table Overrides the Language value in the forms menu Character Set United States of America France Germany United Kingdom Denmark S
124. racter data is represented below in a low density LOGMAR bar code BNf12345 G 125 Printing Basic 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 Code Type Code 39 1 1 2 2 Ratio b Code 39 1 1 3 3 Ratio Code 39 1 2 4 5 Ratio d Code 39 LOGMAR Standard Density Code 39 LOGMAR Medium Density Code 39 LOGMAR Low Density g 2 of 5 1 1 3 Ratio h 2 of 5 1 2 3 X Ratio Interleaved 2 of 5 BS Code 1 1 3 3 Ratio 7 Interleaved 2 of 5 BS Code 1 2 4 5 Ratio Interleaved 2 of 5 BS Code 1 5 1 5 4 5 4 5 Ratio Interleaved 2 of 5 BS Code 2 2 6 6 Ratio m Interleaved 2 of 5 C Code 1 1 2 2 Ratio n Interleaved 2 of 5 C Code 1 1 2 5 2 5 Ratio o Interleaved 2 of 5 C Code 1 5 1 5 3 5 3 5 Ratio p Interleaved 2 of 5 C Code2 2 4 5 4 5 Ratio dddd Width of all Bars and Spaces Includes Number of Dots in Narrow Bar Narrow Space Wide Bar Wide Space respectively Range of d is 0 to F 0 to 15 dots CCC C Characters to be Bar Coded AG Sequence Terminator Required to signal end of character data When defining a variable width bar code first choose a bar code type that matches the de
125. rding to the table below n Software Interface 0 Test reserved for factory use 1 ANSI X3 64 Emulation 2 Epson FX Emulation 3 Bar Code Mode optional 4 IBM Proprinter Emulation 5 DEC LA120 Emulation 6 TTY Emulation 7 Printek Emulation Previously Selected Emulation Default Emulation Overrides the Emulation value in the interface setup menu A numeric value for n may be specified in two different ways with equivalent results a single byte with a value of 00 to 07 hex or a single printable ASCII character 0 to 7 30 to 37 hex If more than one emulation has been selected ESC ESC will return to the previously selected emulation This is particularly useful when the previous emulation is unknown Please beware that the memory stack is only one level deep ESC ESC will return to the default emulation as specified by the Emulation value in the interface setup menu 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 Escape Sequence ESC ESC 7 ESC L 1 ESC ESC Hexadecimal 1B IB 07 IB 4 01 IB IB 89 Simple TTY Emulation 90 Control Codes and Escape Sequences Sorted Alphabetically BEL Bell BS Backspace CR Carriage Return ESC
126. reate a denser bar code There are two techniques used to perform this interleave One technique takes the bars of an individual character and interleaves them into the spaces to create a narrower character Since each character is interleaved individually an even or odd number of characters may be interleaved without a problem This technique is referred to as bar space interleave and is abbreviated in the previous tables as BS code The second and more popular technique takes the bars of two adjacent characters and interleaves them together All of the odd positioned characters are encoded in the bars and all of the even positioned characters are encoded in the spaces The interleaving process requires an even number of characters to work correctly This technique is referred to as character interleave and is abbreviated in the previous tables as C code 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 132 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 FormsMaster 8000 series printers 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 Control Hexadecimal Code
127. rike mode Escape Sequence ESC 1 Hexadecimal 1B 44 31 Underline Mode ESC n 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 ESC 1 Hexadecimal 1B 5F 31 95 Printek Emulation Character Sets Select Font ESC Fn Select font n according to the following table Font 0 Epson FX Draft 1 Epson FX Letter Quality 2 Proprinter PC Draft 3 Proprinter PC Letter Quality 10 EBCDIC Draft 11 EBCDIC Letter Quality 12 OCR A Optical Quality 13 OCR B Optical Quality 32 Epson FX Fast Draft 33 Epson FX Draft 34 Epson FX Letter Quality 36 Proprinter PC Fast Draft 37 Proprinter PC Draft 38 Proprinter PC Letter Quality 44 PC Latin Slavic Fast Draft 45 PC Latin Slavic Draft 46 PC Latin Slavic Letter Qualit 64 EBCDIC Fast Draft 65 EBCDIC Draft 66 EBCDIC Letter Quality 71 OCR A Optical Quality 75 OCR B Optical Quality Overrides the Font value in the forms menu If the specified font is not installed the Font value in the forms menu will be used to select the default font Example The following escape sequence will select the OCR B Optical Quality font Escape Sequence ESC F 75 Hexadecimal 1B 46 4B Print Single Character ESC n Prints the character from the selected font This sequence may be used to print a character that is nor
128. rm has not been torn off In this case the printer will go offline sound the bell and display the message Too Much Paper to Unload When an operator tears off the paper and places the printer back online the printer will unload the current form and continue If the printer is unable to load the new form it will sound the bell and display the message No Paper to Load and go offline to wait for an operator to clear the error Example The following escape sequence will load form 2 Escape Sequence ESC EM 2 Hexadecimal 1B 19 32 40 Epson FX Emulation Emulations Select Software Interface n ESC ESC n Selects the software interface n according to the table below n Software Interface 0 Test reserved for factory use 1 ANSI X3 64 Emulation 2 Epson FX Emulation 3 Bar Code Mode optional 4 IBM Proprinter Emulation 5 DEC LA120 Emulation 6 TTY Emulation 7 Printek Emulation Previously Selected Emulation Default Emulation Overrides the Emulation value in the interface setup menu A numeric value for n may be specified in two different ways with equivalent results a single byte with a value of 00 to 07 hex or a single printable ASCII character 0 to 7 30 to 37 hex If more than one emulation has been selected ESC ESC will return to the previously selected emulation This is particularly useful when the previous emulation is unknown Please beware that the memory stack is only one
129. rol 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 ESC 7 ESC L 1 ESC ESC Hexadecimal 1B IB 07 IB 4 01 IB 1B 107 Printek Emulation 108 Control Codes and Escape Sequences Sorted Alphabetically BEL BS CR DC3 ESC m nl n2 data ESC ESC m nl n2 data ESC ESC An ESC Bn ESC ESC Dn ESCEn ESC ESC n ESC Fn ESC FF n ESC Gn ESC H n1 n2 ESC HT n1 n2 nx NUL ESC In ESC Ln ESC LF n ESC ESC Sn ESC SPn ESC Un ESC V nl n2 ESC VT nl n2 nx NUL ESCW n ESC n ESC ESC n ETX FF HT LF VT XOFF Bell Backspace Carriage Return Deselect Printer m DPI Graphics Line Feed Boundary m DPI Graphics Reset Automatic Modes Auto Cut Mode Cut Form Double Strike Mode Emphasized Mode Select Software Interface n Select Font Set Form Length in Lines Modify Print Head Gap Set Left and Right Margin Set Horizontal Tab Stops Set Print Head Force Load Form Set Line Spacing to n 288 Reset Horizontal and Vertical Tab Stops Select Script Modes Set character Spacing Unidirectional Mode Set Top and Bottom Margins Set Vertical Tab Stops Double Wide Mode Print Single Character Reverse Line Feed Underline Mode End of Text Form Feed Horizontal Tab Line Feed Vertical
130. rvening spaces typically represent control codes For example BS is the Backspace control code 08 hex not the two characters B and S 42 and 53 hex An ASCII Control Code Table is contained in the appendices for your convenience If you have any doubt about how to interpret 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 Hex Dump chapter printed by the printer Column and line numbers begin at zero not at one Keep this in mind when setting tabs margins etc 19 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 CAN Hexadecimal 18 Delete Character DEL Deletes the last printable character from the current line Does not affect any control codes or escape sequences Control code DEL Hexadecimal TF End of Text ETX If ETX ACK is set to in the serial interface setup 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 The user must also ensure that the maximum
131. s Set Horizontal Tab Stops Select Emphasized Mode Select Software Interface n Cancel Emphasized Mode Select Double Strike Mode Cancel Double Strike Mode Select Print Mode Variable Distance Line Feed 60 DPI Graphics 120 DPI Graphics Set Perforation Skip Cancel Perforation Skip Deselect Printer Reset Horizontal and Vertical Tab Stops Select Subscript or Superscript Mode Select Condensed Mode Select Double Wide Mode one line 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 IBM Proprinter Emulation ESC n ETX FF HT LF SI SO VT Print Single Character End of Text Form Feed Horizontal Tab Line Feed Select Condensed Mode Select Double Wide Mode one line Vertical Tab 63 DEC LA120 EMULATION Introduction This section describes the control codes and escape sequences comprising DEC LA120 emulation This emulation may be selected by setting Emulation to LA120 in the interface setup 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 An ASCII control code is a single character in the range 00 hex through 1F hex and 7F hex The ESC Escape control code 1B h
132. s are shown in the International Character Mapping table below For this to work correctly an Epson FX font must be selected check the Font value in the forms menu 69 DEC LA120 Emulation 035036 64 91 92 93 94 96 123 124 125 126 USA GEHE WE SN EN S Example The following escape sequence will select the German character set Escape Sequence ESC K Hexadecimal 1B 28 4B Line Pitch Set Line Spacing ESC nz Sets the line spacing as specified in the following table Omitting n is equivalent to specifying zero line pitch 8 Ipi 12 lpi 2 lpi 3 lpi 4 lpi ON tA OCIS Overrides the Lines Inch value in the forms menu Example The following escape sequence will set line spacing to 1 6 of an inch per line 6 1 1 Escape Sequence ESC 7 Hexadecimal 1B 5B 7A Example The following escape sequence will set line spacing to 1 8 of an inch per line 8 1 1 Escape Sequence ESC 2 7 Hexadecimal 1B 5B 32 TA 70 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 is set to in the interface setup menu a line feed will also be performed Control code CR Hexadecimal 0 Backspace BS Causes the current line to be printed and then moves the current print position one space to the
133. s 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 However the correct form length should always be set with the control panel setup 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 The easiest way to set form length is via the Form Length value in the forms menu so it will be correctly set for everyone using the form 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 Setting Host FF at TOF to No in the interface setup menu not available for all interfaces allows a form feed to be ignored if the paper is already at top of form If Auto CR is set to On in the interface setup menu a carriage return will also be performed Control code FF Hexadecimal 0C 12 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
134. sequences comprising IBM Proprinter emulation This emulation may be selected by setting Emulation to Proprinter in the interface setup 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 An ASCII control code is a single character in the range 00 hex through 1F hex and 7F hex The ESC Escape control code 1B hex is used to introduce character strings called escape sequences which provide an extension of the commands available with ASCII control codes Some escape sequences accept one or more numeric parameters Ifa sequence accepts one numeric 66 LP parameter it will be represented as If a sequence accepts more than one numeric parameter they will be represented as n n2 nx Since numeric parameters are always encoded in one byte their values may range from 0 to 255 decimal Please note that the value will never be represented by a string of ASCII decimal digits 0 through 9 For example a value of 66 decimal would be sent as a single byte with a hex value of 42 This is equivalent to sending the ASCII character It is entirely different than sending the two printable ASCII characters 66 If a numeric parameter is limited to a value of zero or one it may be sent as a single byte with a value o
135. ses 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 Escape Sequence ESC 4 Hexadecimal 1B 34 Cancel Italic Mode ESC 5 Cancels italic mode The MSB most significant bit of the following printable characters will be accepted as is Italic characters may still be printed by transmitting characters with the MSB turned on Escape Sequence ESC 5 Hexadecimal 1B 35 25 Epson FX Emulation Master Print Mode Select ESC n Selects any valid combination of modes from the following table The value of n is determined by adding together the values of the desired modes from the table _ Attribute 0 10 cpi 1 12 cpi 4 Condensed 8 Emphasized 16 Double Strike 32 Double Wide 64 Italic 128 Underline Example The following escape sequence will select 12 cpi condensed resulting in 20 cpi character spacing Escape Sequence ESC 5 Hexadecimal 1B 21 05 Example The following escape sequence will select emphasized double wide and underline for a heading that really stands out Escape Sequence ESC 168 Hexadecimal 1B 21 A8 Character Sets Select Draft or Letter Quality ESCxn Selects draft for 0 o
136. sic Bar Codes Example To print a bar code that is only 0 1 inch high H01 BNe12345 G i mugs ia BN 0 It would generally not be desireable to print a bar code with such a short height because scanning of the bar code would be difficult In most cases the wider the bar code the higher the bar code for ease of scanning Example To print a bar code that is 1 0 inch high H10 BNe12345 G TAM Example Note that increasing the height of a bar code has no effect on the width of the bar code To print a very large bar code both the height and the width may need to be increased The following sequences double the width of the medium density LOGMAR bar code while also increasing its height H10 BN9e337712345 G AMAA 128 Printing Basic 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 H0O2 BNd01 G J010 BNd02 G J010 BNd03 G UU A M NIT TET Absolute Horizontal Tab The sequence used for horizontal positioning is ATtttd AT Two Characte
137. sired bar code Then specify the width of the bars and spaces to achieve the desired bar code density and wide narrow ratios Example Bar code type a defines a rather dense Code 39 bar code with 1 1 2 2 ratio BNal12345 G 126 Printing Basic Bar Codes The following sequence will print the same bar code except the bar code will be four times as wide BN92448812345 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 and h The following variable width bar code definitions all produce exactly the same result BN9g2339912345 G BN9h339912345 G Choosing any other bar code type will not achieve the desired result The following bar code has the desired ratio but it is a Code 39 instead of a 2 of 5 bar code BN92339912345 G 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 127 Printing Ba
138. ster 8000 series printers Other emulations typically support some character pitches but not all character pitches They do not allow the 10 different form setups to be selected via software or allow graphics of every possible density to be printed Printek emulation supports all of these features and more in one place This makes Printek emulation the most powerful emulation available in the printer We encourage you to take full advantage of all the unique features available in Printek emulation After all these features are the reason you purchased the FormsMaster printer The most common reason for using Printek emulation is to select a different form setup and thus change tractors Many users switch to Printek emulation using the ESC ESC 7 sequence load a 91 Printek Emulation new form using the ESC L n sequence and then return to their standard emulation using the ESC ESC n sequence If you normally use Epson emulation please note that the Epson sequence ESC EM allows Form 1 or 2 to be selected without switching to Printek emulation 92 Printek Emulation Control Codes and Escape Sequences Grouped by Function Communications End of Text ETX If ETX ACK is set to in the interface setup 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
139. t be configured appropriately to communicate with the host system and the Test Mode item in the TEST MENU must be set to Remote Setup After this is done the printer will reset beep the bell to alert the operator and display the message Waiting For Remote Setup The remote setup file may now be sent to the printer After the printer receives the remote setup file without error all specified configuration changes will be made the Test Mode item will revert back to Off and the printer will reset When this reset is complete the printer will be ready for normal interaction with the host system Note that if the optional Setup Module is attached to the printer it will also be updated The available heading lines and item setup lines are documented below Note that all the legal values are shown for each item but in use only one value may be supplied in the setup file An example file follows these definitions 111 Configuration Download Remote Setup Line Definitions BeginPrintekSetup AlignPrint FactoryDefaults Forms FactoryDefaults Interfaces FactoryDefaults Options FactoryDefaults Security FactoryDefaults Form0 Form9 MovePrintLeft 0 00 9 99 MovePrintRight 0 00 9 99 MovePrintUp 0 00 9 99 MovePrintDown 0 00 9 99 FormName UPTO16CHARACTERS TractorPath Front Center Rear Center Rear Front Center Rear AutomaticCut No Yes LinesPerInch 6 8 FormLength 1 227 TopMargin 0 226 Bo
140. tal Tabs 98 Vertical Tabs 100 Horizontal and Vertical Tabs 100 Horizontal Margins 101 Vertical Margins 102 Graphics 102 Printer Controls 104 Forms and Tractors 106 Emulations 107 Control Codes and Escape Sequences Alphabetical 108 PORT SWITCHING PROGRAMMING CONSIDERATIONS 109 CONFIGURATION DOWNLOAD 111 HEX DUMP MODE 117 COAX TWINAX COMMAND INTERPRETER 119 Introduction 119 Command Interpreter 119 PRINTING BASIC BAR CODES 121 Introduction 121 Bar Code Sequences 123 Measurements in Bar Code Mode 123 Entering Exiting Bar Code Mode 123 The Bar Code Control Character 124 Other Control Characters 124 Bar Code Definition 125 Variable Width Bar Code Definition 126 Bar Code Height 127 Relative Vertical Tab 129 Absolute Horizontal Tab 129 Bar Code Pass Terminator 130 Mixing Bar Codes and Text 131 Supported Bar Code Types 132 ASCII CHARACTER TABLES 133 ASCII Control Code Definitions 133 Epson FX Font Samples 134 PC Font Samples 135 EBCDIC Font Samples 136 PC Latin 2 Slavic Font Samples 137 OCR A Font Sample 138 OCR B Font Sample 138 Decimal to Octal to Hexadecimal Conversion Table 139 PRINTER RESET CONDITIONS 141 GLOSSARY 143 INTRODUCTION This manual describes the software interfaces supported by the FormsMaster 8000 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 op
141. te specifies multiples of 256 For example to specify 520 bytes of graphics data use n2 8 and n 2 The bytes of graphics data are strung together to create a graphics line that is eight dots high and n x 256 n2 dots long Be sure to provide the 102 Printek Emulation amount of graphics data that you specify because the printer will not leave graphics mode until it has accepted the specified number of data bytes If Data Bits is set to 7 in the interface setup menu beware of potential problems in graphics mode Since the MSB most significant bit will always be turned off it will not be possible to fire the top wire of the print head Worse yet the value of n or n2 may be changed For example if n2 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 The result will surely not be pretty To avoid such problems the use of an 8 bit I O interface for printing graphics is highly recommended The normal graphics modes allow every dot to be printed High speed graphics will print twice as fast but will not allow consecutive dots to be printed m DPI Graphics ESC m n1 n2 data Selects eight wire graphics of density m as listed in the following table for n x 256 n2 columns of data Density 6 240 dpi 7 240 dpi high speed 8 180 dpi 9
142. teen characters first in hexadecimal format then in printable ASCII format All unprintable ASCII characters printable characters are from 21 hex to 7E hex inclusive are represented by a period 54686973 20697320 61207361 6D706C65 This is a sample 20686578 2064756D 7020746F 20696C6C hex dump to ill 75737472 61746520 68657820 64756D70 ustrate hex dump 666F726D 61740D0A format When the printer is executing in Hex Dump mode control characters and escape sequences sent to the printer are not recognized or processed The hexadecimal representation of the control characters and escape sequences will appear in the hex dump but no other special processing will occur In particular note that ETX ACK handshake will not operate properly in Hex Dump mode When an ETX is received by the printer its hexadecimal representation will be printed in the hex dump but no ACK will be sent to the host computer When using the printer in Hex Dump mode it is recommended that the printer be configured for parallel I O serial I O with hardware handshake or serial I O with XON XOFF handshake 117 COAX TWINAX COMMAND INTERPRETER Introduction This chapter describes how to send control codes and escape sequences to the printer through the coax twinax port For information on installation and configuration of this interface please refer to the FormsMaster 8000 Series Operator s Manual Command Interpreter A user friendly command interpreter has been b
143. terface of the printer varies depending upon which emulation is selected The default emulation selected at power up is specified by the Emulation value in the interface setup menu for the interface being used Frequently the desired emulation is specified here and never changed again Note that the emulation may only be specified for the serial parallel and EtherLink ports The Coax Twinax IPDS Coax and IPDS Twinax ports automatically default to Printek emulation 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 Although switching emulations is essentially a seamless process the fundamental differences between emulations may cause unanticipated results For example character size may vary or tabs may work differently Introduction Changing Forms Tractor Paths As mentioned above the FormsMaster 8000 series printers have ten complete sets of forms parameters These different parameters or forms may be selected either from the front panel or with escape sequences In the FormsMaster 8003 selecting a different form may also select a different tractor path The tractor path is one of the parameters which may be set for each of the ten forms in the forms menu using Setup as described in the FormsMaster 8000 Series Operator s Manual Escape sequences for loading forms are only availa
144. the ONLINE button on the control panel Control code DC3 Hexadecimal 13 Character Size The FormsMaster 8000 series printers are 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 Characters Inch value in the forms 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 Epson emulation You can override this pitch selection via software by sending an escape sequence This selects a user specified non default pitch For example in Epson emulation sending ESC M will select 12 cpi Sending ESC P will re select 10 cpi and thus re select the default character pitch that was selected in the form setup Via software escape sequences you can select any character pitch supported by the emulation you are using All will print as expected unless you select 10 cpi because 10 cpi really selects the default character pitch from setup If you really want 10 cpi then you must set Characters Inch to 10 in the forms menu Likewise if you want to use the default pitch from
145. the bottom or top half of the normal character cell Example The following escape sequence will select superscript mode Escape Sequence ESC 5 0 Hexadecimal 1B 53 30 Cancel Subscript and Superscript Mode ESC T Cancels subscript and superscript mode Escape Sequence ESC Hexadecimal 1B 54 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 Escape Sequence ESC Hexadecimal 1B 45 Cancel Emphasized Mode ESC F Cancels emphasized mode Escape Sequence ESC Hexadecimal 1B 46 Select Double Strike Mode ESC Selects double strike mode This makes text bolder by printing it twice This will cut the print speed in half because an additional pass of the print head will be required Escape Sequence ESC G Hexadecimal 1B 47 Cancel Double Strike Mode ESC H Cancels double strike mode Escape Sequence ESC H Hexadecimal 1B 48 24 Epson FX Emulation Underline Mode ESC n 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 ESC 1 Hexadecimal 1B 2D 31 Select Italic Mode ESC 4 Selects italic mode This cau
146. the forms menu Example The following escape sequence will set a top margin at line 6 and will set a bottom margin at line 59 For a standard 11 inch form with 6 1 1 line spacing this would result in one inch top and bottom margins Escape Sequence ESC V 6 59 Hexadecimal 1B 56 06 3B 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 The bit values corresponding to each wire of the print head are shown below wire 1 128 80 hex wire 2 64 40 hex wire 3 32 20 hex wire 4 16 10 hex wire 5 8 08 hex wire 6 4 04 hex wire 7 2 02 hex wire 8 1 Ol hex The appropriate bit values are added together to fire the desired wires For example a byte of graphics data with the value 128 80 hex will fire the top wire wire 1 A value of 192 CO hex will fire the top two wires wires and 2 A value of 11 OB hex will fire wires 5 7 and 8 Each graphics sequence contains two bytes n and n2 that specify how many bytes of graphics data follow N2 can specify values up to 255 If that is sufficient then n is just set to zero For values greater than 255 n comes into play The n by
147. to in the interface setup 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 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 If character set 2 is selected ETX will be treated as a printable character instead of an I O handshake control code Control code ETX Hexadecimal 03 Deselect Printer ESCQn Deselects the printer Use of this command is discouraged because the printer will remain offline until an operator presses the ONLINE button on the control panel For a Proprinter II or Proprinter should be 3 For a Proprinter XL or Proprinter III XL should be 22 It does not really matter because n will be ignored Example The following escape sequence will force the printer offline Escape Sequence ESC Q 22 Hexadecimal 1B 51 16 46 IBM Proprinter Emulation Character Size The FormsMaster 8000 series printers are 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
148. ttomMargin 0 226 CharactersPerInch 10 12 13 3 15 16 74 17 14 20 268 272 LeftMargin 0 RightMargin 4 Font Epson_FX_FD PC_English_F PC_Latin2_FD Epson_FX_DF 10 D PC_ PC_Latin2_DF PC_La English DF PC English 10 tin2 LQ DEC LA120 FD DEC LA120 DF DEC LA120 10 EBCDIC FD EBCDIC DF EBCDIC 10 OCR A FD OCR B FD DraftSpeed Normal Fast ImpactForce Normal High Language USA France Germany Sweden Italy Spain Japa Zero Normal Slashed Unidirectional No Yes England Denmark n Finland SerialInterface Emulation ANSI X3 64 1 AutoCR Off On AutoLF Off On HostFFatTOF No Yes Characters Control Printable MinimumBuffer No Yes BaudRate 110 150 300 600 1200 2400 4800 9600 19200 DataBits 8 7 StopBits 1 2 Parity None Even Odd BusyPolarity Low High DTR Power Online Busy Epson IBM _Proprinter _ 120 Printek 112 Configuration Download ParallelInterface AutoCR Off On AutoLF Off On LanInterface AutoCR Off On AutoLF Off On CoaxInterface Emulation ANSI X3 604 1 Emulation ANSI_X3 64 HostFFatTOF No Yes Characters Control Printable MinimumBuffer No Yes HostFFatTOF No Yes Characters Control Printable MinimumBuffer No Yes PrinterEmulation 3287 3262 MaxPrintPosition 132 No
149. uce character strings called escape sequences which provide an extension of the commands available with ASCII control codes Some escape sequences accept one or more numeric parameters Ifa sequence accepts one numeric parameter it will be represented as If a sequence accepts more than one numeric parameter they 39 will be represented as n n2 nx Since numeric parameters are always encoded in one byte their values may range from 0 to 255 decimal Please note that the value will never be represented by a string of ASCII decimal digits 0 through 9 For example a value of 66 decimal would be sent as a single byte with a hex value of 42 This is equivalent to sending the ASCII character It is entirely different than sending the two printable ASCII characters 66 If a numeric parameter is limited to a value of zero or one it may be sent as a single byte with a value of 00 or 01 hex NUL or SOH or it may be sent as a single printable ASCII character 0 or 1 30 or 31 hex 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 Characters that appear in italics such as and 1 n2 above are not sent to the printer as is they are used as a place holder indicating that some value must be supplied Multiple character strings without inte
150. uilt into the coax twinax interface This feature allows you to send any ASCII character or string of characters to the printer through the coax twinax port and thus access all of the printer features as described earlier in the emulation chapters of this manual The logical not character 3 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 The command interpreter is enabled by receiving and disabled by receiving The default is If enabled the command interpreter examines all printable data received from the host for the string Once this string is found the characters which follow are processed as pairs of hexadecimal digits and the single ASCII character value each pair represents is then processed by the printer The conversion process is terminated by receiving an character or by receiving any non hexadecimal character during the conversion process Spaces may be included between pairs of hex digits for readability 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 then send 2HEX 1B 4C 32 in which the hexadecimal character 1B is an Escape character the hexadecimal char
151. up according to form setup according to form setup according to form setup according to form setup according to form setup according to form setup according to form setup according to form setup according to form setup according to form setup according to form setup according to form setup set to current position discarded cleared unless reset from host accepted as received according to interface setup off off off off off off off off off every eigth column cleared 141 ANSI ASCII baud rate binary bit control code character pitch cpi cps current line current print position default dpi draft EBCDIC escape sequence font hexadecimal interface LCD LED line pitch Ipi LQ GLOSSARY American National Standards Institute American Standard Code for Information Interchange The rate at which characters are transmitted over a serial interface This is usually the same as bits per second Base two numbering system Digits are represented by the characters 0 and 1 A single binary digit A single non printing character which is used to control the configuration o1 operation of the printer The horizontal spacing of characters Measured in cpi Characters per inch Characters per second The line upon which the next character will be printed The column on the current line where the next character will be printed Value or configuration assumed when the printer is
152. weden Italy Spain Japan tA 4 r2 ONS 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 0351361 64 91 92 93 94 96 123 124 125 126 ice AE ERE BEEN Example The following escape sequence will select the German character set Escape Sequence ESC 2 Hexadecimal 1B 52 02 Character Table ESC tn Selects the Epson italic character set for n 0 or the Epson extended graphics character set for n 1 As implemented this selects either the Epson FX font or the PC USA font The character attribute fast draft draft or letter quality will not change Example The following escape sequence will select the Epson FX font Escape Sequence ESC t 0 Hexadecimal 1B 74 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 Characters value in the interface setup menu 28 Epson FX Emulation Escape Sequence ESC 6 Hexadecimal 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 Overrides the Characters value in the i
Download Pdf Manuals
Related Search
Related Contents
Suite Notaro Sistema Informativo Studi Notarili User Manual GUÍA DEL USUARIO Gear Head KB5950TPW FM新聞管理 - アポロシステム DLO TuneStik DLZ62000 User's Manual Waverunner MK3 User Manual Copyright © All rights reserved.
Failed to retrieve file