background image

GEK-00029B

5000 Series Programmer’s Manual

67

DC3

Busy/Select (13H):

 A received DC3 can be used to remotely deselect

the printer in both serial and parallel interfaces. A serial interface

protocol can be used to transmit a DC3 code to inform the host of a
busy condition.

DEL

Delete (7FH):

 In graphics mode, the delete character is treated as

data. In the edit mode, a <DEL> following a <CR> erases (replace with

a space) previously accepted (buffered, but not printed) characters.

DLE

High Vertical Density Graphics (10H): 

A <DLE> code preceded by

an <ENQ> code anywhere on the same line causes paper motion for
that line to be 1/144 inch instead of the normal 1/72 inch. If not
preceded by an <ENQ> code, the <DLE> is discarded. If there are no
graphics commands (EOT or ENQ) in the line, the DLE code is treated

as an EVFU channel command.

ENQ

Normal Density Plot Line (05H):

 An <ENQ> anywhere in the line

causes the line to be treated as normal-density (60 dpi) plot mode
graphics. An <LF> code causes the line to be printed as one dot row
and the paper is advanced. If there is a <DLE> anywhere in the line,

the paper is advanced by 1/144 inch. Otherwise, the paper is
advanced by 1/72 inch.

EOT

High Density Plot Line (04H): 

An EOT is used to print at 120 dpi.

This code anywhere in the line causes the line to be treated as
high-density plot mode graphics. The line must be terminated with a
CR (printer strap A29 must be OUT). The characters are treated as

dot information and the CR at the end of the line will not cause the
paper to advance. The code causes dots to be printed in the
even-numbered dot column positions. A second line of the same data
with the normal plot mode command (ENQ) is required to fill in the
remainder of the dots and to advance the paper.

ETX

End of Transmission (03H):

 The ETX code is used in the serial

interface with the ACK code as part of an interface protocol. The ETX
is received from the host at the end of a data block. The host then
stops sending data until an ACK is received.

FF

Form Feed (0CH):

 A form feed causes the line to be printed and the

paper advanced to the top of form.

HT

Horizontal Tab (09H):

 An HT is replaced by a space character.

LF

Line Feed (0AH):

 An LF causes the line to be printed and advances

the paper to the next line. If the line is a plot mode line, the paper is
advanced one dot row or not at all, depending on the density of the
plot mode. See Printronix Mode Graphic Density Table.

RS

Record Separator (1EH):

 The RS character is used to signal the

beginning of an EVFU load. [Need replacement wording here for the
margin notes in the tech review.]

NOTE

If a <DC1> or <DC3> control character is received with strap 8

in GenPrtOpts Group 2 set to OUT, the control is treated as a
VFU Channel Command. See Appendix D, General Printer
Options, Group 2 on page 345.

Summary of Contents for 5000 Series

Page 1: ...GEnicom 5000 Series Programmer s Manual GEK 00031B ...

Page 2: ...TEGORIES 18 Housekeeping Sequences 19 Character Set Selection 22 Character Map Load 23 Paper and Print Position Movements 25 Margins and Tabs 28 Font Handling and Enhancements 31 Graphics 36 Six Bit Graphics 36 Dot Patterns and Densities 36 Horizontal Format 38 Vertical Format 38 Eight Bit Graphics 39 Horizontal Format 39 Vertical Format 39 Other Graphics Considerations 40 Graphics Sequences 40 El...

Page 3: ...orizontal Spacing 54 Printer Option Strap 11 Group 2 IN 55 EXAMPLE 1 Strap 11 OUT 55 EXAMPLE 2 Strap 11 IN 55 EXAMPLE 3 Strap 11 OUT with no suppression of LF CR on line 30 56 Vertical Bar Codes 57 COMMAS With HRL 57 COMMAS Without HRL 58 SPACES With HRL 58 SPACES Without HRL 58 Horizontal Tabs 59 OVERSIZE CHARACTER FONT 60 Entering and Exiting Oversize 60 Selecting Size 61 Size Parameters for Rot...

Page 4: ... 4 Printronix P Series Emulation 76 Special Function Control Character SFCC 76 Command Line 76 Set and Reset Codes 77 Command Index 78 Control Codes 80 character sets FONT handling and enhancements 82 Housekeeping Commands 92 Plot Mode Graphics Operational Description 98 Plot Density 98 Normal Density Plot Mode 98 Double Density Plot Mode 98 Plot Mode Format 98 Plot Data Line Format 99 Normal Dens...

Page 5: ...s 107 High Vertical Density Plot Mode Graphics 107 Chapter 5 Proprinter Emulation 108 Introduction 108 Differences from proprinter 108 Proprinter Control Codes 108 Command Directory 111 Escape Sequences 112 Proprinter Dot Graphics 119 Chapter 6 Epson FX286 e Emulation 122 Introduction 122 Conventions Used in this Chapter 122 Print Mode Combinations 123 Functional Differences 124 Additional Escape ...

Page 6: ...ION 195 General Considerations 195 Coded Characters 195 7 Bit Versus 8 Bit Environments 196 Printable Characters 198 CONTROL CODES 199 Introduction 199 C0 Control Characters 199 C1 Control Characters 201 SPECIAL CHARACTER PROCESSING 203 Hex 20 203 Hex 7F 203 Hex A0 203 Hex FF 203 Special Character Parsing 204 ESCAPE SEQUENCE control function syntax 205 Escape Sequence Syntax 205 Control Sequence S...

Page 7: ...Sixel Graphics Operation 257 Sixel Graphics Commands 258 Appendix A Using the Hex Dump 261 Appendix B Font Print Samples 262 Appendix C Postnet Bar codes 265 Entering and Exiting POSTNET Bar Codes 265 Selecting POSTNET Style Bar Codes 265 Appendix D Description of Strapping Options 268 General Printer Options Definitions 269 Legacy Parallel Software Strap Definitions 270 Emulation Option descripti...

Page 8: ...on has a set of control codes and or escape sequences that are explained in this manual There is a separate chapter for each emulation CONTROL CODES Control codes are used to transmit information other than printable characters to the printer They may occupy the first 32 locations on the ASCII code chart and are represented by two or three letter abbreviations Locations 0X80 through 0X9F may also ...

Page 9: ...5B C8 3B C8 20 42 BASIC CHR 27 200 200 B CSI AND OSC A control sequence introducer CSI signals the beginning of an ANSI sequence using the ESC code and the left bracket CSI 9B hex can be used instead of ESC 1B 5B hex when the printer is receiving and processing 8 bit data ESC will be used predominately in this manual for the examples An operating system command OSC signals the start of a download ...

Page 10: ...re margins tabs and vertical paper movements See Appendix D for the decipoint conversion tables SCS SMART GRAPHICS CAPABILITIES The 5000 series printers have SCS smart graphics processing as a standard feature that can be enabled via the CCU control panel menus The graphics emulations include both IGP and QMS Code V version 2 There are separate programming manuals for each of these graphics langua...

Page 11: ... take effect when normal printing resumes A ACTIVE This sequence takes effect immediately D DATA These control codes are used as data Notes Note 1 When printer option 1 is active either in ANSI 4800 or ANSI 4410 emulation SO and SI activate or deactivate this printing mode SO and SI are VALID in bar codes and oversize print mode They are ACTIVE in expanded print mode Please see Appendix D Descript...

Page 12: ...l Dot Graphics Bar Codes Oversize POSTNET BEL No A A D A Note 4 BS Yes A I I I Note 4 CR Yes A A I A Note 4 DC1 No A A D A Note 4 DC3 No A A D A Note 4 DEL No Note 3 Note 3 D Note 3 Note 4 FF Yes A A I A Note 4 HT No A A A A A LF Yes A A I A Note 4 SI No A I Note 1 Note 1 Note 4 SO No A I Note 1 Note 1 Note 4 VT Yes A A I A Note 4 ...

Page 13: ...I GENSLR No A A A A I GENSNC No A V V Note 2 I GENSPM No A V A A A GENTST Yes A A I A I GENVFU Yes A A A A I DENVTS No A A A A I GSM No A V V A I HPA Yes A A A A I HPB Yes A A A A I HPR No A A A A I HTS No A A A A I HVP Yes A A A A I PLD Yes A I I A I PLU Yes A I I A I REP No A A I A I RIS No A A A A I RM No A A A A I SGR No A V V Note 2 I SM No A A A A I SPI No A V V Note 2 I ST No I A I I I TBC ...

Page 14: ...ontrol 1 11H Parallel and Serial Interface Receipt of a DC1 code with the printer in local mode puts the printer online selects printer and enables receipt of data Through CCU menu options a serial interface protocol may be selected that transmits a DC1 code to the host to signal that the printer is ready to receive data DC3 Device Control 3 13H Parallel and Serial Interface Receipt of a DC3 code ...

Page 15: ...nting horizontal dot graphics the paper is advanced to the next dot row SI Shift In 0FH Used to exit a Special Print Mode GENSPM when ANSI emulation strap 1 Appendix G tables 5 and 6 is active SO Shift Out 0EH Used to enable a special print mode GENSPM when ANSI emulation strap Appendix G tables 5 and 6 1 is inactive VT Vertical Tab 0BH Line terminator The paper is advanced to the next vertical ta...

Page 16: ...es 40 ESC c RIS Resets printer to a known initial state 35 ESC p1 d VPA Sets vertical position to p1 decipoints or lines 26 ESC pl e VPR Moves paper forward p1 decipoints 26 ESC p1 p2 f HVP Moves paper and print position absolute 26 ESC p1 g TBC Clears tabs p1 3 for horizontal 28 ESC p1 pn h SM Set mode PUM LNM proportional character mapping 34 ESC p1 j HPB Moves print position left by decipoints ...

Page 17: ...ational character sets 22 ESC p1 p10 Selects bar code parameters ESC p1 SP GENDFC Download Font Control Checks printer for downloaded font 35 OSC or ESC Operating System Command introduces sequence 19 ESC 5 BFL Begin Font Load Valid only if download option is installed 35 ESC Begins 12 channel EVFU table loading 42 ESC ST String Terminator Exits special modes 19 ESC p1 HPA Horizontal Position Abso...

Page 18: ...e been separated according to functionality Special areas of interest such as graphics and the electronic vertical format unit EVFU have been described in separate sections The functional groups are Housekeeping Paper and Print Positioning Margins and Tabs Font Handling and Enhancements Graphics EVFU ...

Page 19: ... by ANSI option strap 3 see Appendix D ANSI 4800 or ANSI 4410 option 3 RIS Reset to Initial State Parameter State Font Style Gothic Draft Character Size 1X Vertical 1X Horizontal Character Pitch 10 cpi Country Selection USA Code Page 437 Line Spacing 6 lpi Partial Line Up Reset Partial Line Down Reset Bold Print Inactive Underline Mode Inactive Expanded Mode Inactive Proportional Mode Reset Horizo...

Page 20: ...Chapter 2 ANSI Emulation GEK 00029B 20 ESC Q GENTST Self Test This sequence is ignored Decimal 27 102 or 120 Hex 1B 5C or 9C BASIC CHR 27 Q ...

Page 21: ...set control is implemented The values as currently defined are 0 Hold values default All possible values for printer control e g tabs margins page length are to be retained 1 Full reset Resets parameters to initial state p1 Manufacturer Emulation 0 GENICOM ANSI 10 GENICOM 4410 ANSI 1 19 GENICOM Reserved 20 IBM Graphics Printer 21 IBM Proprinter XL 9 wire 22 Epson FX286 e 23 IBM Proprinter XL 24 wi...

Page 22: ...Swedish Finnish C 16 Swedish Finnish D 17 Swiss 18 Ignored 19 Yugoslavian 20 United Kingdom A 21 Turkish 22 Greek 23 Italian ISO 24 Spanish ISO 437 IBM PC USA MS Code Page 437 850 IBM PC Multilingual MS Code Page 850 852 Microsoft Code Page 852 East Europe 853 Microsoft Code Page 853 Turkey 855 Microsoft Code Page 855 Cyrillic 860 Microsoft Code Page 860 863 Microsoft Code Page 863 French Canadian...

Page 23: ...ped one to one For example code 41H prints the character normally found at location 41H upper case A When a character map designated as a GR map is selected by the GENSNC command see Character Set Selection on page 22 the GL map will automatically be mapped one to one A standard GL 7 bit character map such as French A may be specified as the base for a downloaded GR 8 bit character map but an 8 bi...

Page 24: ...ate each parameter within the trio and a semicolon must terminate each trio The semicolon is not required for the last trio that immediately precedes the String Terminator ESC The elements of each trio are defined as follows 1 A decimal number that identifies the destination character This is the character value received from the host For example an upper case A has a decimal value of 65 Values of...

Page 25: ... 1B 4C BASIC CHR 27 L ESC p1 a HPR Horizontal Position Relative Line terminator Moves the print position to the right of the current position The distance specified by the p1 parameter is in decipoints An HPR move exceeding the right margin sets the print position at the margin If the p1 parameter is zero or missing the command is ignored Decimal 27 91 p1 97 Hex 1B 5B p1 61 BASIC CHR 27 p1 a NOTE ...

Page 26: ...shown in the table Decipoint Value Movement In Inches Missing or 0 4 No Movement 5 9 1 144 inch 10 14 2 144 inch 15 19 3 144 inch 17 280 or greater 24 inches Decimal 27 91 p1 95 Hex 1B 5B pl 65 BASIC CHR 27 p1 e ESC p1 p2 f HVP Horizontal and Vertical Position Line terminator Sets the vertical paper position to the value of p1 and the print position to the p2 value Values are sent as decipoints HV...

Page 27: ...in A VPB with a p1 value of 5 decipoints or less is ignored Decimal 27 91 p1 107 Hex 1B 5B p1 6B BASIC CHR 27 p1 k ESC p1 HPA Horizontal Position Absolute Line terminator Moves the print position to the value specified in p1 Values are sent as decipoints Position zero is column one The print position is set to the right margin if the p1 value would exceed the margin An HPB with a p1 value greater ...

Page 28: ...ntal or vertical tab stops based on the p1 value as follows p1 0 Clears horizontal tab at current print position p1 1 Clears vertical tab at current print position p1 3 Clears all horizontal tabs p1 4 Clears all vertical tabs More than one parameter can be used Example To clear all horizontal and vertical tabs send ESC 3 4 g Decimal 27 91 p1 103 Hex 1B 5B p1 67 BASIC CHR 27 p1 g ESC p1 p2 p3 r GEN...

Page 29: ...nd p2 sets the right margin An omitted parameter clears that margin Invalid parameters set the left margin to zero column 1 and the right margin to 9 504 decipoints column 136 at 10 cpi for the 13 6 inch machines A new left margin takes effect following any line terminator that normally calls for a print position set to the left A new right margin takes effect when the print position reaches the n...

Page 30: ...40 20 u tabs can be specified in any order Decimal 27 91 p1 59 p2 59 p22 59 117 Hex 1B 5B p1 3B p2 3B 3B p22 3B 75 BASIC CHR 27 p1 p2 p22 u ESC p1 p12 vGENVTS Multiple Vertical Tab Set Sets up to 12 vertical tabs The p parameters are set in decipoints If more than 12 tabs are set the 12 tabs nearest the top of form will be retained If a tab is set in the top margin area it will be stored but will ...

Page 31: ...9 X5 500 599 X8 800 UP X3 300 399 X6 600 699 Mixed sizes within a line can be top or bottom justified depending on the Program Mode menu option see VExOpt Default and VExOpt Baseline The top of an expanded character is used as the starting point for vertical paper movement line feed The top or bottom of oversize characters can be used depending on the state of menu option SETUP FORMAT MODIFY FORMA...

Page 32: ...59 p2 32 71 Hex 1B 5B p1 3B p2 20 47 BASIC CHR 27 p1 p2 G ESC p1 pn m SGR Select Graphic Rendition Selects font style and enhancements bold and underline One font designator plus any number of enhancements can be entered in the escape sequence using the parameter values in the following table If the requested font is not installed the default font is selected Parameter Enhancement 0 Cancel all pri...

Page 33: ...aded overrides any other font See Character Map Load on page 23 Examples For Gothic NLQ font underlined send ESC 4 13 m To cancel underlining and retain Gothic NLQ send one of the following ESC 13 m ESC 0 13 m ESC 0 m ESC 24m Decimal 27 91 p1 pn m Hex 1B 5B p1 3B pn 6D BASIC CHR 27 p1 pn m ...

Page 34: ... printing This mode does not apply to the oversize character feature When reset default characters are spaced at the current cpi GENC1C C1 Control Code Mode PC Set 1 When set it allows the use of C1 control codes When reset 80H 9FH are ignored See Appendix E for an explanation of how character sets are mapped The default state is set using ANSI emulation option 6 see Appendix D ANSI 4800 or ANSI 4...

Page 35: ...the host Loading is terminated when an ESC sequence is received Decimal 27 93 53 Hex 1B 5D 35 BASIC CHR 27 5 ESC p1 SP GENDFC Download Font Control Using the serial interface this command allows the host to see if at least one valid font is loaded p1 2 The printer sends DCS 30H 30H ST if a font is loaded DCS 44H 45H ST if no font is loaded It also provides the capability to erase the download font...

Page 36: ... the paper An asterisk is represented by 010101 which prints the following Horizontal Graphics Vertical Graphics 0 X 0X0X0X 0 X 0 X Notice that in horizontal graphics the character is printed on a single horizontal dot row In vertical graphics the character is printed six dots high one character per dot column Using the question mark that prints all dots a series of these characters in horizontal ...

Page 37: ...X00X G 47H XXX000 g 67H XXX00X H 48H 000X00 h 68H 000X0X I 49H X00X00 i 69H X00X0X J 4AH 0X0X00 j 6AH 0X0X0X K 4BH XX0X00 k 6BH XX0X0X L 4CH 00XX00 l 6CH 00XX0X M 4DH X0XX00 m 6DH X0XX0X N 4EH 0XXX00 n 6EH 0XXX0X O 4FH XXXX00 o 6FH XXXX0X P 50H 0000X0 p 70H 0000XX Q 51H X000X0 q 71H X000XX R 52H 0X00X0 r 72H 0X00XX S 53H XX00X0 s 73H XX00XX T 54H 00X0X0 t 74H 00X0XX U 55H X0X0X0 u 75H X0X0XX V 56H...

Page 38: ...r in the same dot row across the page Byte Row Byte 1 Byte 2 Byte n 1 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 2 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 3 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 6 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 Vertical Format In vertical format each byte or character occupies six dot rows of one column Each character is one dot wide and six dots high The next character byte 2 is printed ...

Page 39: ...ow across the page Byte Row Byte 1 Byte 2 Byte n 1 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 2 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 3 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 8 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 Vertical Format In vertical format each byte or character occupies six dot rows of one column Each character is one dot wide and six dots high The next...

Page 40: ...ic dot rows from left to right To exit from dot graphics mode use ESC While in graphics mode after ESC P and before the ESC sequence 8 bit graphics can be printed instead of 6 bit by using one of the following sequences ESC 1 n1 data bytes 60 dpi horizontal ESC 2 n1 data bytes 120 dpi horizontal ESC 3 n1 data bytes Uses current horizontal and vertical density n1 number of data bytes to follow data...

Page 41: ...0h x 72v if no p2 or p3 2 Reserved Vertical format 120h x 144v if no p2 or p3 3 Reserved Sequence ignored 4 Horizontal format 60h x 72v if no p2 or p3 5 Similar to 4 above if p3 5 6 or 7 else ignore 6 Reserved Sequence ignored Note p2 and p3 are ignored in this mode p2 Selects Vertical Density null 72dpiv p1 4 only 0 6 144dpiv 7 72dpiv p3 Selects Horizontal Density null 60dpih p1 4 only 0 3 Reserv...

Page 42: ...ach line of the form requires an entry Dummy values filler codes See Table of Channel Codes on page 5 30 are required in lines with no channel Two bytes are required for each line of the form Loading Is terminated by the ESC sequence Decimal 27 93 33 Hex 1B 5D 21 BASIC CHR 27 Loading the Table The first table location is normally loaded with the channel 1 code This is defined as the top of form TO...

Page 43: ... 12 BASIC Programming Example for EVFU Table Loading PROGRAM INSTRUCTION REMARKS 1500 WIDTH LPT1 255 Required by some BASIC languages to avoid auto LF at column 80 1510 LPRINT CHR 27 I Enables EVFU loading 1520 LPRINT CHR 65 CHR 64 Resets TOF Channel 1 Sao Table of Channel Codes 1530 FOR I 1 to 4 1531 LPRINT CHR 64 CHR 64 4 filler lines 1532 NEXT I 1540 LPRINT CHR 68 CHR 64 Selects Channel 3 See T...

Page 44: ...ing 4 Double Spacing 5 Triple Spacing 6 Half Form 7 Quarter Form 8 Tenth Line 9 Bottom of Form bottom margin 10 Bottom of Form minus 1 line 11 Top of Form minus 1 line last line this form 12 Top of Form Skip to Channel Command ESC p1 p2 p GENVFU VFU Channel Command Commands vertical paper movement to the channel specified by the number formed by p1 and p2 Valid channel numbers are in the range 1 1...

Page 45: ...f form channel 1 30 LPRINT TOP OF FORM Print the indicated words 40 LPRINT CHR 27 0 3 p Go to channel 3 50 LPRINT LINE 6 Print the indicated words 60 LPRINT CHR 27 0 4 p Go to channel 4 70 LPRINT LINE 25 Print the indicated words 80 LPRINT CHR 27 0 5 p Go to channel 5 90 LPRINT LINE 57 Print the indicated words 100 LPRINT CHR 27 0 8 p Go to channel 8 110 LPRINT END OF FORM Print the indicated word...

Page 46: ...tivate and deactivate special mode functions In this case the special mode function is bar codes With Option 1 enabled code SO will turn on or activate the bar code mode SI will turn bar codes off ANSI 4800 4410 Strap 1 OUT Enter the bar code mode of printing with the following control sequence sent by the host See Appendix D for strapping options ESC 3 t LPRINT CHR 27 3t Data sent after the above...

Page 47: ...hat are the default values for the printer ESC p1 p2 p10 Example LPRINT CHR 27 4 9 1 2 6 2 6 2 0 0 p1 Style 0 Interleaved 2 of 5 10 Codabar b n 1 Reserved for future use 11 Codabar c 2 Reserved for future use 12 Codabar d e 3 Reserved for future use 13 UPC A 4 Code 3 of 9 default 14 UPC E 5 EAN 8 15 Code 93 6 EAN 13 16 Code 128 A B C 7 Code 11 17 Reserved for future use 8 Reserved for future use 1...

Page 48: ... 050 inch Range 2 4 6 254 p6 Narrow space width number x 1 120 inch Default 2 2 120 inch approximately 017 inch Range 2 4 6 126 p7 Wide space width number x 1 120 inch Default 6 6 120 Inch approximately 050 inch Range 2 4 6 254 p8 Intercharacter space width number x 1 120 inch Default 2 2 120 inch approximately 017 inch Range 2 4 6 126 Parameters p5 p7 and p8 are not programmable in some bar code ...

Page 49: ...inted at 90 or 270 degrees rotation will print at the same speed 120 x 144 regardless of the selected horizontal density A missing parameter will leave the corresponding value unchanged A zero parameter value for p2 p8 will cause the default value to be selected Use semicolons as place holders when changing parameters LPRINT CHR 27 1 Changes only parameter 10 LPRINT CHR 27 15 0 Changes only parame...

Page 50: ... example of this would be a letter A sent to the printer while printing a style 5 bar code Style 5 EAN 8 only accepts the digits 0 9 Font Styles and Enhancements Non rotated bar codes can be printed with an HRL in any of the fonts available to the printer If enhancements are desired e g bold underline or expanded the HRL must be printed using the normal text mode Print the bar code symbol s withou...

Page 51: ... codes Use bar code readers designed to operate in the visible light frequency range Optional infrared readable ribbon cartridges are available Use bar code readers designed to read medium or low density bar code symbols Avoid readers with apertures less than 7 mils 007 inch or 18 mm Using bar code size parameters smaller than the default settings may produce unacceptable results ...

Page 52: ...re not producing results Line 10 turns on the bar code mode line 20 contains the data to be printed as a bar code symbol and line 30 turns off the bar code mode 10 LPRINT CHR 27 3t 20 LPRINT 1234567890 30 LPRINT CHRS 27 0t Error Symbol This example shows the error symbol in the HRL and the error pattern in the symbol The error pattern causes the entire symbol to be rejected by the bar code reader ...

Page 53: ...as Delimiters When a comma delimiter is used to separate bar codes no additional space Is added to the quiet zones Since the ending 25 inch quiet zone of one bar code symbol meets the beginning quiet zone of the next bar code a total of 50 inch separates the two Style 7 line 5 is used for these examples since Code 11 uses both spaces and commas as delimiters 10 LPRINT CHR 27 7 20 LPRINT CHR 27 3t ...

Page 54: ...u 20 LPRINT CHR 27 3t 30 LPRINT 1234 40 LPRINT CHR 9 50 LPRINT 5678 60 LPRINT CHR 9 70 LPRINT 9012 80 LPRINT CHR 27 0t When no horizontal tabs are set an HT code acts as a space adding 0 1 inch to the separation Total separation is 0 6 inch when the HT is added to the quiet zones Line 10 clears all previously set horizontal tabs for this example 10 LPRINT CHR 27 3g 20 LPRINT CHR 27 3t 30 LPRINT 12...

Page 55: ... the end of line 30 has been deleted to show that Strap 11 only affects the same horizontal zone that the bar code occupies The semicolon in BASIC is used to suppress a LF CR after an LPRINT statement EXAMPLE 1 Strap 11 OUT 10 LPRINT CHR 27 3t 20 LPRINT 1234567890 30 LPRINT CHR 27 0t 40 LPRINT STRAP 11 OUT EXAMPLE 2 Strap 11 IN 10 LPRINT CHR 27 3t 20 LPRINT 1234567890 30 LPRINT CHR 27 0t 40 LPRINT...

Page 56: ...Chapter 2 ANSI Emulation GEK 00029B 56 EXAMPLE 3 Strap 11 OUT with no suppression of LF CR on line 30 10 LPRINT CHR 27 3t 20 LPRINT 1234567890 30 LPRINT CHR 27 0t 40 LPRINT STRAP 11 OUT ...

Page 57: ...e 10 LPRINT CHR 27 2 20 LPRINT CHR 27 3t 30 LPRINT 12345 40 LPRINT CHR 27 0t Commas and spaces used as delimiters serve the same function as in horizontal bar codes However the quiet zones rotate with the symbol leaving almost no horizontal separation between bar codes on the same line In the following examples line 10 is used to print or inhibit the printing of the HRL p3 COMMAS With HRL 10 LPRIN...

Page 58: ... 27 0 20 LPRINT CHR 27 3t 30 LPRINT 1234 5678 9012 40 LPRINT CHR 27 0t SPACES With HRL 10 LPRINT CHR 27 1 20 LPRINT CHR 27 3t 30 LPRINT 1234 5678 9012 40 LPRINT CHR 27 0t SPACES Without HRL 10 LPRINT CHR 27 0 20 LPRINT CHR 27 3t 30 LPRINT 1234 5678 9012 40 LPRINT CHR 27 0t ...

Page 59: ...cause a jump to the next tab stop Line 90 is a line of text to show positioning on the paper The vertical separation between the bar code symbol and the text TEXT STRAP 13 OUT is the ending quiet zone 10 LPRINT CHR 27 1080 2160 u 20 LPRINT CHR 27 3t 30 LPRINT 12345 40 LPRINT CHR 9 50 LPRINT 12345 60 LPRINT CHR 9 70 LPRINT 12345 80 LPRINT CHR 27 0t 90 LPRINT TEXT STRAP 13 OUT ...

Page 60: ...onts up to 8 times the normal size These characters are not rotatable The oversize character feature works with the ANSI protocol Entering and Exiting Oversize The following sequences are used to enter rotate and exit oversize printing ESC 0 Exit oversize printing ESC 1 Select oversize font with no rotation ESC 2 Select oversize font with 90 degree rotation ESC 3 Select oversize font with 180 degr...

Page 61: ...to change size in the expanded mode the parameters must be cleared to normal size ESC 100 100 B to prevent entering expanded mode when oversize is turned off Mnemonic ESC p1 p2 B Decimal 27 91 p1 59 p2 66 Hex 1B 5B p1 3B p2 42 BASIC CHR 27 p1 p2 B Size Parameters for Rotation The p1 and p2 size parameters are always relative to a rotation angle of zero degrees That is the characters are expanded f...

Page 62: ...ize parameters to X 1 V X 1 H 10 LPRINT CHR 27 300 300B 20 LPRINT CHR 27 1 30 LPRINT ABCabc 40 LPRINT CHR 27 0 50 LPRINT CHR 27 100 100B Example 2 The next two examples demonstrate the importance of setting the size parameters back to X1 V X1 H after printing oversize This is the same program used in Example 1 with an additional line added Line 60 prints 1234 in the currently selected font 10 LPRI...

Page 63: ...w that the 1234 printed line is expanded vertically by X3 10 LPRINT CHR 27 300 300B 20 LPRINT CHR 27 1 30 LPRINT ABCabc 40 LPRINT CHR 27 0 60 LPRINT 1234 NOTE In BASIC LPRINT statements automatically generate an LF CR at the end of the line unless suppressed by a semicolon Since line 30 does not end with a semicolon an LF CR occurred at the lpi in effect still in oversize This accounts for the ver...

Page 64: ...hanged using the configuration menu In the following examples Lines 10 30 print oversize characters at X3 Line 50 changes the oversize to X4 V by X6 H Lines 70 80 print oversize and exits Line 90 returns the parameters to X1 to prevent expanded printing Lines 100 110 print normal text to show the effect that strap 13 has on positioning IMPORTANT Line spacing was set back to normal 6 lpi when norma...

Page 65: ...7 300 300B 110 LPRINT CHR 27 1 120 LPRINT ABC 130 LPRINT CHR 27 400 600B 140 LPRINT ABC 150 LPRINT CHR 27 0 160 LPRINT CHR 27 100 100B 170 LPRINT Strap 13 IN 180 LPRINT Text Text Text Text Text Text Text Example 5 GenPtrOpts Group 2 Strap 13 OUT Paper motion is not returned after printing oversized characters 100 LPRINT CHR 27 300 300B 110 LPRINT CHR 27 1 120 LPRINT ABC 130 LPRINT CHR 27 400 600B ...

Page 66: ...eeper to sound for approximately 1 second BS Elongated Character Line 08H A BS code anywhere on the line causes that line to be printed at double height Standard and double high characters cannot be mixed on the same line CR Carriage Return Slew Zero or Edit Mode ODH In the edit mode i e with the P300 600 Emulation Strap 01 OUT a CR will left justify the line in the buffer but no printing will occ...

Page 67: ...ed as high density plot mode graphics The line must be terminated with a CR printer strap A29 must be OUT The characters are treated as dot information and the CR at the end of the line will not cause the paper to advance The code causes dots to be printed in the even numbered dot column positions A second line of the same data with the normal plot mode command ENQ is required to fill in the remai...

Page 68: ...d by the code Following a carriage return in edit mode space codes do not modify the contents of the print buffer The SP is used as a skip code to pass over characters in the buffer When using the character graphics font the character in the 20H position is printed instead of a blank UNDL Underline 5FH When using the legacy parallel interface hardware strap H7 IN causes a CR to be substituted for ...

Page 69: ...s represented by 010101 which would print 0X0X0X0 across the page horizontally Using the question mark that prints all dots a series of these characters produces a one dot high solid line across the paper By repeating omitting and mixing characters across a page images such as graphs charts and pictures can be produced Dot Patterns and Densities The chart on the next page shows the dot patterns fo...

Page 70: ...4H 00X000 d 64H 00X00X E 45H X0X000 e 65H X0X00X F 46H 0XX000 f 66H 0XX00X G 47H XXX000 g 67H XXX00X H 48H 000X00 h 68H 000X0X I 49H X00X00 i 69H X00X0X J 4AH 0X0X00 j 6AH 0X0X0X K 4BH XX0X00 k 6BH XX0X0X L 4CH 00XX00 l 6CH 00XX0X M 4DH X0XX00 m 6DH X0XX0X N 4EH 0XXX00 n 6EH 0XXX0X O 4FH XXXX00 o 6FH XXXX0X P 50H 0000X0 p 70H 0000XX Q 51H X000X0 q 71H X000XX R 52H 0X00X0 r 72H 0X00XX S 53H XX00X0 ...

Page 71: ... Density Graphics At 60 dpi horizontal density one line of characters is used for each dot row The normal density plot mode character ENQ can appear anywhere in the line The line must be terminated with an LF At the end of graphics printing send an empty data line containing only an LF High Density Graphics At 120 dpi horizontal density each dot row requires two lines of characters The first line ...

Page 72: ...ding the EVFU table and selecting channels for paper moves Points to Remember When a table is downloaded VFU will be displayed The vertical format type must be set to Emulation VFU through the control panel using the Setup Vertical Format Type Select Emulation VFU menu option The GenPtrOpts Group 2 strap to enable received select deselect must be set to OUT Printer option 3 see Table 11 in Appendi...

Page 73: ... X X 0 1 0 0 1 10 137 HT 1 X X 0 1 0 1 0 11 138 LF 1 X X 0 1 0 1 1 12 VT 139 VT 1 X X 0 1 1 0 0 13 140 FF 1 X X 0 1 1 0 1 14 141 CR 1 1 1 0 1 1 1 0 Start Load 238 none 1 1 1 0 1 1 1 1 End Load 239 none Codes Not Using the PI Lead Data Lines Channel number or Command PI 7 6 5 4 3 2 1 Channel Decimal Number ASCII 0 0 0 0 0 0 0 0 1 TOF 16 DLE 0 0 0 0 0 0 0 1 2 17 DC1 0 0 0 0 0 0 1 0 3 18 DC2 0 0 0 0 ...

Page 74: ... TOF Channel 1 1530 FOR 1 1 to 4 1530 FOR I 1 to 4 1531 LPRINT CHR 17 1532 NEXT 1 Selects Channel 2 for 4 filler lines 1540 LPRINT CHR 18 Selects Channel 3 for line 6 printing 1550 FOR 1 1 to 18 1551 LPRINT CHR 17 1552 NEXT I Selects Channel 2 for 18 filler lines 1560 LPRINT CHR 19 Selects Channel 4 for line 25 printing 1570 FOR 1 1 to 31 1571 LPRINT CHR 17 1572 NEXT I Selects Channel 2 for 31 fil...

Page 75: ...Top of Form Channel 1 25 LPRINT TOP OF FORM Print the indicated words 30 LPRINT CHR 18 Go to Channel 3 35 LPRINT TOP MARGIN LINE 6 Print the indicated words 40 LPRINT CHR 19 Go to Channel 4 45 LPRINT LINE 25 Print the indicated words 50 LPRINT CHR 20 Go to Channel 5 55 LPRINT BOTTOM MARGIN LINE 57 Print the indicated words 60 LPRINT CHR 21 Go to Channel 6 65 LPRINT END OF FORM Print the indicated ...

Page 76: ... longer sequence known as a Command Line Command Lines are string type commands placed between complete lines of text and affecting the text that follows The P Series Emulation has six Command Lines PMODE OSET PSET LPI LINES and INCHES Each of these Command Lines is discussed in this chapter under the appropriate Control Code function For example you can set the form length in inches by using the ...

Page 77: ...print attributes are set and reset turned ON and OFF by using an SFCC command sequence and the numbers one 1 or zero 0 These numbers may be in the form of hexadecimal code 01H and 00H or the ASCII code for the printable symbols of decimal 1 and 0 hexadecimal code 31 and 30 ...

Page 78: ...g 7 72 Inch SFCC l 96 Line Spacing n 72 Inch used with SFCC 2 SFCC A 96 Vertical Tab VT 97 Horizontal Motion Backspace BS 80 Carriage Return CR 80 Print Attributes Bold Print SFCC G 84 Bold Print Off SFCC H 85 Emphasized Print SFCC E 85 Emphasized Print Off SFCC F 86 Overscoring SFCC _ 90 Underline SFCC 91 Printer Control Bell BEL 80 Emulation Reset SFCC 92 Font Control Download New Character Shap...

Page 79: ... High Vertical Density 1 144 DLE 102 Plot Single Line High Horizontal Density NAK 103 Character Set Control Character Set Select SFCC 1 82 Character Set Select ECMA Extended Not supported Character Set Select Int l Languages SFCC PSET or SFCC R 84 Character Set Select Substitution Table Not supported Execute Control Codes SFCC 7 92 Print Control Codes SFCC 6 92 Download a Language Not supported Ex...

Page 80: ...ions Bell code cannot be disabled Carriage Return Carriage Return CR Returns the logical print position to the first character column The CR code may or may not cause printing or paper motion depending on the CR CODE configuration parameter value Format CR Decimal 13 Hex 0DH BASIC CHR 13 If the CR CODE option menu is set for CR CR the characters following the CR are printed over the previous chara...

Page 81: ... position one line at the current line space setting and moves the logical print position to the left margin The LF function cancels all single line print attributes such as double high elongated and double wide expanded characters In the Even Dot Graphics Plot mode high density graphics the LF code does not cause paper position motion the data in the buffer is plotted and the logical print positi...

Page 82: ...SFCC CHR 108 xyz Character Set Select x x Character Set 0 30 Code Page 437 1 31 Code Page 8859 1 2 32 Invalid Defaults to Code Page 437 3 33 Code Page 8574 2A Unchanged International Language Select y x 0 30 1 31 2 32 3 33 y CP 437 CP 8859 1 CP 8574 0 30 ASCII USA ASCII USA NA ASCII USA 1 31 French EBCDIC NA French 2 32 German NA German 3 33 English NA English 4 34 Danish NA Norw Danish 5 35 Swedi...

Page 83: ...3C 1Valid only if x 0 All other values of z are ignored including Indeterminate conditions If the character is the value selected for x the character set does not change If or X is selected for y the previously selected international language is used Notes This command implementation is different than the target printer due to limitations in Font character sets Refer to the Emulation Differences s...

Page 84: ...Swedish Swedish 6 Italian Italian 7 Spanish Spanish 8 Japanese Japanese 9 F Canadian F Canadian 10 Latin Am Dutch 11 Finnish Finnish 12 Swiss Swiss Indeterminate Conditions Selecting SFCC RX accesses the substitution table for the current character set Notes This command implementation is different than the target printer due to limitations in Font character sets Refer to the Emulation Differences...

Page 85: ...Primary command format BS Selects Double High when the Double High print option is selected from the control panel Decimal SFCC 104 or 8 Hex SFCC 68 or 08H BASIC CHR SFCC h or CHR 8 Indeterminate Conditions When configured for double high print from the control panel menu the control code BS Hex 08 also selects elongated character printing for a single line Emphasized Print Selects Emphasized Prin...

Page 86: ... hex 31 n 0 resets expanded print hex 00 or hex 30 When expanded print using SFCC W is received all characters print double wide until reset by the expanded print reset control code printer reset Single Line Double Wide Print single line Selects expanded double wide Double Wide Print print for one line only This expanded print control code is a line by line print attribute When the SFCC k control ...

Page 87: ... For example sending code 20 hex accesses the symbol at code point A0H If a printable symbol is not available at the code point a space is printed Format SO or SFCC parameter SO SFCC SO SFCC n SFCC 4 Decimal 14 SFCC 14 SFCC 110 SFCC 4 Hex 0EH SFCC 0E SFCC 6E SFCC 34 BASIC CHR 14 CHR SFCC CHR 14 CHR SFCC n CHR SFCC 4 Indeterminate Conditions SFCC 4 is not canceled by the next paper motion command 0...

Page 88: ...rimary Character Set Used in 7 bit systems as if data bit 8 was set to 1 For example sending code 20 hex accesses the symbol at code point 0A0H hex If a printable symbol is not available at the code point a space is printed Format SI or SFCC parameter SI SFCC SI SFCC o SFCC 5 Decimal 15 SFCC 15 SFCC 111 SFCC 5 Hex 0FH SFCC 0FH SFCC 6FH SFCC 35H BASIC CHR 15 CHR SFCC CHR 15 CHR SFCC CHR 111 CHR SFC...

Page 89: ...4 34 17 1 17 1 17 1 17 1 17 1 SFCC PMODE n Format n ranges from 0 to 6 to select the font and pitch combination All other values are invalid n pitch code cpi An asterisk hex 2A may be substituted for m or n Whenever the asterisk replaces m or n its current value does not change Values other than those shown in the table below are ignored PMODE switches to the Primary Character Set and selects font...

Page 90: ...or hex 30 n 1 enables subscript printing hex 01 or hex 31 Details When the super subscript control code is received all characters print as superscript or subscript until reset by the super subscript reset control code or printer reset Emphasized print is ignored if super subscript printing is active When the BS feature is enabled from the control panel menu both superscript and subscript characte...

Page 91: ...rlining of all characters Format SFCC n Decimal SFCC 45 n Hex SFCC 2D nH BASIC CHR SFCC n n 0 disables automatic underlining hex 00 or hex 30 n 1 enables automatic underlining hex 01 or hex 31 Details When automatic underline is enabled all characters including spaces are underlined until the feature is disabled ...

Page 92: ...Cancels the printable control code operation activated by the SFCC 6 Format SFCC 7 Decimal SFCC 7 Hex SFCC 37 BASIC CHR SFCC 7 Indeterminate Conditions This feature is also selectable by control panel operations Emulation Reset Initializes all printing parameters to values previously saved When reset to the previously saved values the current line is set to the top of form position Font line spaci...

Page 93: ...bottom of the form are cleared Indeterminate Conditions Form length can also be set from the control panel menu If a VFU is enabled and loaded this command is ignored Set Form Length The form length is set to the number of In Lines lines defined by the quotient of n and the current line spacing so that the units are in inches Form length can also be set from the control panel menu Format SFCC L I ...

Page 94: ...6 inch Values of n other than 6 or 8 are ignored The SFCC command stores a line spacing value in 1 72 inch to be activated by the SFCC 2 sequence The default value for this stored value is 6 LPI 12 72 SFCC 2 asserts n 72 inch line spacing as set by SFCC A If no distance has been set by SFCC A the distance is 1 6 inch Decimal SFCC 76 80 73 59 n or SFCC 65 n followed by SFCC 2 Hex SFCC 4C 50 49 59 n...

Page 95: ...ine spacing control code is received all lines print at 8 lpi until a new line spacing is selected or power is reset The control code line spacing selection overrides the control panel line spacing setting Single Line Spacing Selects line spacing of 8 or 10 3 lpi for the current line only Formats ACK or SFCC f Decimal 6 or SFCC 102 Hex 06 or SFCC 66 BASIC CHR 6 or CHR SFCC CHR 6 Details The defaul...

Page 96: ...nch n 72 Inch increments Format SFCC A n followed by SFCC 2 Decimal SFCC 65 n followed by SFCC 2 Hex SFCC 41 nH followed by SFCC 2 BASIC CHR SFCC A n followed by CHR SFCC 2 n 1 to 24 all others are ignored Details When the SFCC A control sequence is received all line feed commands following an SFCC 2 sequences are at n 72 inch line spacing until a new line spacing is selected or power is reset The...

Page 97: ...n a multiple of the current dot row spacing the remainder is added to the next paper motion command Indeterminate Conditions Caution should be used when combining this control code with other print attributes such as Elongated Double High Superscript or Subscript overlapping lines may occur Vertical Tab Vertical Tab VT Prints the data in the buffer and advances the paper to the next vertical tab p...

Page 98: ...sequence The even dot mode must be used in conjunction with the odd dot plot control code ENQ 05 hex or SFCC e sequence The even dots are sent first followed by the odd dots allowing a maximum of 1632 dots in a single dot row at 120 dpi 13 6 inch line The vertical density remains the same as in normal density plotting Plot Mode Format Each data byte specifies six possible dot columns Using odd dot...

Page 99: ...eeded and automatic line feed is enabled a line feed LF is forced and the remaining plot data are printed as text on the next line graphic characters will wrap in this case The plot mode command may occur anywhere in the line but plot speed may decrease if it is not at the beginning of the line Normal Density Plot Mode Format 1 Send the plot command code ENQ 05 hex or the control sequence SFCC e 2...

Page 100: ...e second line of data 3 Send the odd dot plot control code ENQ 05 hex or control sequence SFCC e and a second line of data followed by a line terminator A line feed 0A hex used as the line terminator causes the contents of the buffer to be plotted and the paper advances a single dot row based on the vertical density of the current mode A CR if CR CR LF is configured may also be used with the same ...

Page 101: ...6E oxxxox 2F xxxxox O 4F xxxxoo o 6F xxxxox 0 30 ooooxx P 50 ooooxo p 70 ooooxx 1 31 xoooxx Q 51 xoooxo q 71 xoooxx 2 32 oxooxx R 52 oxooxo r 72 oxooxx 3 33 xxooxx S 53 xxooxo s 73 xxooxx 4 34 ooxoxx T 54 ooxoxo t 74 ooxoxx 5 35 xoxoxx U 55 xoxoxo u 75 xoxoxx 6 36 oxxoxx V 56 oxxoxo v 76 oxxoxx 7 37 xxxoxx W 57 xxxoxo w 77 xxxoxx 8 38 oooxxx X 58 oooxxo x 78 oooxxx 9 39 xooxxx Y 59 xooxxo y 79 xoo...

Page 102: ...ed in conjunction with the Odd Dot Plot code 05 hex Refer to the Graphics section for detailed plot mode information High Vertical Modifies the paper motion for a Density Graphics plot mode line to 1 144 inch rather than 1 72 inch The ENQ plot mode code should precede the DLE See the discussion in the section on dot graphics for more information When not preceded by a plot mode code DLE acts as a ...

Page 103: ...1 Notes GENICOM private code not part of the target printer s control codes Normal Density Prints dots at the odd Graphics numbered dot columns Format ENQ Decimal 5 Hex 05 BASIC CHR 5 Details This is the normal density graphics control code The ENQ code should occur before any printable data in the data stream Notes Refer to the Graphics section for more details on Plot Mode Graphics High Density ...

Page 104: ... E SSSSS E data is parsed and discarded and the number of characters specified by the parameters as download data are also discarded Download a Character Shape SFCC c The complete sequence SFCC c PP SSSSSE A data is parsed and discarded and the number of characters specified by the parameters as download data are also discarded Postnet Bar codes SFCC p xxxxx yyyy zz Sequence discarded Ribbon Minde...

Page 105: ...00029B 5000 Series Programmer s Manual 105 COMMAND LINE DEBUG The Genicom P Series emulation does not contain the command line debugger function for detecting and displaying error in Command Line Sequences ...

Page 106: ...48 NLQ 120 x 144 180 x 96 OCR 120 x 144 120 x 144 Character Sets Set No Emulation Target 0 CP 437 IBM PC 1 CP 8859 1 Multinational 2 None discarded ECMA 94 3 CP 8574 DEC Multinational 4 None discarded N A Extended Character Sets The emulation supports code page 850 only Form Length Maximum form length of the 5000 series is 22 inches All commands which set forms length in Inches Lines or lines by V...

Page 107: ...rizontally 96 dpi vertically HS 60 dpi horizontally 48 dpi vertically The 5000 series printers support 60 120 dpi horizontally and 72 144 dpi vertically Enhancements The following enhancements were made to the emulation These features do not exist as part of the target printer High Vertical Density Plot Mode Graphics A DLE code in a graphics line will cause the next graphic line feed to be 1 144 i...

Page 108: ...different 240 dpi graphics are printed on a 120 dpi grid Adjacent dots are OR ed together The aspect ratio of this printer height vs width of a graphic image is identical to the Proprinter PROPRINTER CONTROL CODES BEL Bell Sounds a momentary audible tone Decimal 7 Hex 07 BASIC CHR 7 BS Backspace Moves the print position one character to the left This code is normally used for overstriking a charac...

Page 109: ...When using a serial interface DC3 XOFF is sent to the host to indicate the printer is not ready to accept data When using a parallel interface a received DC3 is treated as a NUL Decimal 19 Hex 13 BASIC CHR 19 DC4 Device Code 4 Cancel double wide printing by line DC4 cancels one line double wide print set by an SO code It does not cancel continuous double wide printing set by ESC W 1 Decimal 20 Hex...

Page 110: ...aphics space Null is used by some escape sequences to end a series of parameters When used as a parameter of a sequence looking for an even or odd value it is considered even Example ESC S NULL causes superscripting to occur Decimal 0 Hex 00 BASIC CHR O SI Shift In SI causes condensed printing It sets the printer to 17 1 cpi 8 55 cpi if double wide printing is enabled Condensed printing remains in...

Page 111: ...Skip perforation OFF 116 ESC P n Proportional space mode 117 ESC Q n Deselect printer 117 ESC R Set all tabs to power on settings 117 ESC S n Super Sub script on 117 ESC T Super Sub script off 117 ESC U n Unidirectional print on off 117 ESC W n Double wide print on off 118 ESC X n m Set horizontal margins 118 ESC Y n1 n2 v1 vn Dual density graphics full speed 120 ESC Z n1 n2 v1 vn Quad density gra...

Page 112: ...d Not recommended for use with line draw characters n 1 enabled n 0 disabled Decimal 27 95 n Hex 1B 5F n BASIC CHR 27 _ n ESC n1 n2 Print Continuously from All Character Chart Allows printing all the 256 characters and symbols even those normally used as control codes in the all character chart The total number of characters to be printed from the all character chart is specified by n1 and n2 acco...

Page 113: ...4 03 Microsoft Code Page 852 Slavic 57 03 Microsoft Code Page 855 Cyrillic 5F 03 Microsoft Code Page 863 French Canadian The examples below show the m3 and m4 values for selecting Roman 8 Decimal 27 91 84 5 0 0 0 127 33 0 Hex 1B 5B 54 05 00 00 00 7F 21 00 BASIC CHR 27 rr CHR 5 CHR O CHRS O CHR O CHR 127 CHR 33 CHR 0 ESC 0 Set 8 Lines per Inch Sets the line spacing to 1 8 of an inch 8 lpi Decimal 2...

Page 114: ...rriage return n 0 disabled n 1 enabled Decimal 27 53 n Hex 1B 35 n BASIC CHR 27 5 n ESC 6 Select Character Set 2 All characters printable and control codes received after this command are selected from character set 2 A reset initialization or ESC 7 resets to character set 1 Decimal 27 54 Hex 1B 36 BASIC CHR 27 6 ESC 7 Select Character Set 1 All characters printable and control codes received afte...

Page 115: ...ng has no effect on form length Decimal 27 67 n Hex 1B 43 n BASIC CHR 27 C n ESC C 0 n Set Form Length in Inches The value of n sets the form length from 1 to 22 inches Top of form is set at the current vertical position Once set changing the line spacing has no effect on form length Decimal 27 67 0 n Hex 1B 43 00 n BASIC CHR 27 C CHR 0 n ESC D n1 n28 0 Set Horizontal Tab Stops Sets horizontal tab...

Page 116: ...lects Alternate NLQ 11 Italic Download USA Decimal 27 73 n Hex 1B 49 n BASIC CHR 27 I n ESC J n Variable Line Feed This command advances the paper a distance specified by the value of n in units of 1 216 inch The value n can be a value from 0 to 255 The variable line feed is not stored so there is no effect on line spacing values Decimal 27 74 n Hex 1B 4A n BASIC CHR 27 J n ESC N n Set Skip Perfor...

Page 117: ...ight positions starting at column 9 and clears all vertical tabs Decimal 27 82 Hex 1B 52 BASIC CHR 27 R ESC S n Set Superscript Subscript On If n is 1 then subscript 1 2 inch below the line is selected if it is 0 then superscript 1 2 inch above the line is selected Since these two attributes are mutually exclusive an ESC S command overrides any previous ESC S setting Also see ESC T below n 1 subsc...

Page 118: ... over the SO control code n 1 doublewide is enabled n 0 doublewide is disabled Decimal 27 87 n Hex 1B 57 n BASIC CHR 27 W n ESC X n m Set Horizontal Margins This sequence sets the left n and right m margins The interval is based on the current cpi setting Variable m must be greater than W and the sequence must include both variables Decimal 27 88 n m Hex 1B 5B n m BASIC CHR 27 X n m ...

Page 119: ...ics In that case carriage returns and line feeds are often ingested as graphics data On the other hand if there are more graphics data bytes than specified in the header then the printer interprets excess bytes as text or control codes This can also produce indeterminate results The two bytes n1 n2 specify the total number of image bytes that follow n2 is the most significant byte The total number...

Page 120: ...XT K 200 LPRINT 210 NEXT N 220 LPRINT DONE 230 END ESC K nl n2 v1 vn Normal Density Graphics This sequence sets a density of 60 dpi horizontally and 72 dpi vertically Decimal 27 75 nl n2 v1 vn Hex 1B 4B n1 n2 v1 vn BASIC CHR 27 K nl n2 v1 vn ESC L n1 n2 v1 vn Low Speed Double Density Graphics This sequence sets a density of 120 dpi horizontally and 72 dpi vertically Decimal 27 76 n1 n2 v1 vn Hex 1...

Page 121: ...v1 vn Quadruple Density Graphics Reduced Speed Sets a density of 240 dpi horizontally and 72 dpi vertically If horizontally adjacent dots are specified then the second dot is not printed Decimal 27 90 n1 n2 v1 vn Hex 1B 5A n1 n2 v1 vn BASIC CHR 27 Z nl n2 vl vn ...

Page 122: ...lines is ESC C n The sequence to set a 66 line form expressed in BASIC would be LPRINT CHR 27 C CHR 66 which could alternately be expressed as LPRINT CHR 27 CB In contrast when arguments 1 and 0 are used to turn something on and off you can send the argument in either binary or ASCII For example you can turn underline on by sending CHR 27 CHR 45 CHR 1 or you can send CHR 27 CHR 45 1 The physical s...

Page 123: ...ence mode at the intersection of the two modes For example when combining the double high and compressed modes an impossible combination the double high mode represented by the letter D at the intersection of the two modes will take precedence and become the active print mode PRINT MODE Normal Compressed Emphasized NLQ Super Subscript Double Wide Underline Double Strike Double High Proportional It...

Page 124: ...hen ESC Y or ESC Z graphics are selected This provides a sharper image of higher density All 12 dot rows will print when using 12 high characters in a superscript or subscript Superscript characters are not underlined in a different dot row Even though the escape sequence and data to print nine bit graphics are accepted the data byte containing the ninth bit is discarded and only the top eight bit...

Page 125: ...r 3 ESC T Assign a code page to variable 1 ESC j n Reverse n 216 paper move ESC 1 Select 7 72 inch line spacing UNSUPPORTED ESCAPE SEQUENCES The following escape sequences from the FX 286e command set are not supported by this emulation and are therefore discarded ESC EM Sheet feeder ESC User defined character set ESC User defined characters ESC 8 Paper out sensor on ESC 9 Paper out sensor off ESC...

Page 126: ... printing if printer was halted by pressing the On Line key on the control panel DC2 Device Control 2 12H Cancel condensed mode This ends the current print buffer and causes its contents to print The condensed print mode is then canceled and printing resumes at 10 cpi 5 cpi double wide or 12 cpi 6 cpi double wide depending on which one was previously selected DC3 Device Control 3 13H Serial Interf...

Page 127: ...cur NUL Null 00H Causes no action when received alone It is used by some sequences to terminate the parameter list SI Shift In 0FH Select condensed print mode Ends the current print buffer and causes its contents to be printed This code then enables the condensed printing mode Characters are condensed to 17 1 cpi for the pica pitch 10 cpi and 20 cpi for the elite pitch 12 cpi Double wide printing ...

Page 128: ...de Is received at this time a vertical move equal to the current line spacing is performed If the command to erase tabs is received ESC B NUL or ESC bn NUL received VT codes will produce no vertical motion but will cause a CR to occur A maximum of 16 vertical tab positions are allowed for each of the eight channels If there are tabs in the currently selected table but no tabs set beyond the curren...

Page 129: ...ct n 72 inch line spacing 134 ESC B n1 n16 NUL Set vertical tab stops 136 ESC C n Set page length in lines 132 ESC C NUL n Set page length in inches 132 ESC D nl n2 NUL Set horizontal tab stops 136 ESC E Select emphasized mode 141 ESC F Cancel emphasized mode 141 ESC G Select double strike mode 141 ESC H Cancel double strike mode 141 ESC I n Printable code area expansion 145 ESC J n Single variabl...

Page 130: ...OFF 140 ESC t n Select a code page 147 ESC w n Turn double high printing ON OFF 143 ESC x n Select NLQ or Draft printing 144 ESC t 3 0 m1 m2 m3 Assign a code page to one of four variables 0 1 2 or 3 147 ESC T n1 n2 m1 m5 Assign a code page to variable l 148 ESC m nl n2 vl vn Select graphics mode Epson set bit image 153 ESC s n Reassign graphics mode 153 ESC m nl n2 Select 9 pin graphics 141 ...

Page 131: ...ording to functionality Special areas of interest such as character spacing print modes and graphics have separate sections The sequences are separated as follows Margins Line Spacing Character Spacing Tabs Horizontal and Vertical Paper Movement Print Position Print Modes Special Character Printing Miscellaneous Commands Dot Graphics ...

Page 132: ...ngths of zero or greater than 22 inches will be ignored and leave the existing form unchanged The parameter limits are 1 255 Decimal 27 67 0 n Hex 1B 43 00 nH BASIC CHR 27 C CHR 0 CHR n ESC N n Set Skip Over Perforation Sets a bottom margin region to avoid printing on the perforation when using continuous forms The parameter n determines the number of print lines to be included in the skip area Th...

Page 133: ... CHR 27 I CHR n ESC Q n Set Right Margin Sets the right margin to n columns in the current pitch When proportional mode is selected the settings are the same as they would be for pica pitch 10cpi horizontal The minimum space between the left and right margin is the width of two pica characters Note that before the right margin is set this command sequence causes all print data to be flushed Column...

Page 134: ...nch Line Spacing 6 lpi Sets the line spacing to 1 6 inch Decimal 27 50 Hex 1B 32 BASIC CHR 27 2 ESC 3 n Select n 216 Inch Line Spacing Sets the line spacing to n 216 of an inch This permits line spacing from 0 inches 0 216 to 1 18 inches 255 216 This command is recommended with n 24 to set the proper line spacing when printing graphics Decimal 27 51 n Hex 1B 33 nH BASIC CHR 27 3 CHR n ESC A n Sele...

Page 135: ...BASIC CHR 27 P ESC p n Turn Proportional Mode On Off Turns the proportional print mode on or off according to the value of n n Effect l Unidirectional printing on 0 Unidirectional printing off This command overrides the condensed print mode Decimal 27 74 n Hex 1B 4A nH BASIC CHR 27 J CHR n ESC SP n Set Intercharacter Spacing Sets the amount of space added to each character in increments of 1 120 i...

Page 136: ...l 27 66 n1 n16 0 Hex 1B 42 n1H n16H 00 BASIC CHR 27 CHR 66 CHR n1 CHR n16 CHR 0 ESC D n1 n32 NUL Set Horizontal Tab Stops Sets up to 32 horizontal tab stops at the indicated column numbers The list of tab stops must be terminated by a NUL code Any column that is not referenced in the list is cleared by this command Therefor the command ESC D NUL will clear all horizontal tabs The parameters must b...

Page 137: ...ed by this command Therefor the command sequence ESC b c NUL will clear all vertical tab stops within the channel c The parameters n1 n2 etc must be in ascending order and the limits of the parameter values are 1 255 decimal Vertical tabs are converted to absolute positions as they are set There is no automatic linkage between the value of line spacing and vertical tab positions subsequent changes...

Page 138: ...sequence does not affect spacing of subsequent line actions The parameter values allow a vertical movement from 0 to 1 18 inches 255 216 If n is not an exact multiple of 3 216 1 72 inch then the movement is approximate The parameter n 24 can be used to get the exact line spacing for the eight bit graphics mode Zero is a valid parameter value that produces no vertical motion n Spacing 21 7 dots 24 ...

Page 139: ...ting on 0 Unidirectional printing off When turning unidirectional printing off the command should be the first character in the line to be printed bidirectionally Decimal 27 85 n Hex 1B 55 nH BASIC CHR 27 U CHR n ESC n1 n2 Set Absolute Print Position Specifies the distance from the current left margin where subsequent characters are to be printed If the position specified is beyond the right margi...

Page 140: ...4 n1 224 n2 1 Expressed In BASIC this is CHR 27 CHR 92 CHR 224 CHR 1 Example 2 If you want to move 4 inches to the left then 65 536 480 65 056 65 056 256 254 with a remainder of 32 n1 32 n2 254 Expressed in BASIC this is CHR 27 CHR 92 CHR 32 CHR 254 Decimal 27 92 n1 n2 Hex 1B 5C n1H n2H BASIC CHR 27 CHR 92 CHR n1 CHR n2 ESC s n Turn Half Speed Print Mode ON OFF Turns the half speed print mode on o...

Page 141: ...rint speed is half of the normal speed because the characters are printed twice The second pass is offset about 1 120 inch for draft fonts and 1 240 inch for NLQ fonts Decimal 27 69 Hex 1B 45 BASIC CHR 27 E ESC F Cancel Emphasized Print Mode Cancels the emphasized printing mode turned on by ESC E Decimal 27 70 Hex 1B 46 BASIC CHR 27 F ESC G Select Double Strike Mode Causes the contents of the prin...

Page 142: ...ript printing mode Characters are printed at their normal size and previous baseline positions Decimal 27 84 Hex 1B 54 BASIC CHR 27 T ESC SO Select Double Wide Printing 1 Line Performs the same function as the SO control code Decimal 27 14 Hex 1B 0E BASIC CHR 27 CHR 14 ESC W n Turn Double Wide Printing Mode ON OFF Turns double wide printing on or off according to the parameter n as follows n 1 dou...

Page 143: ...e page is selected the characters will be 128 255 from the specified code page printed in italics Decimal 27 52 Hex 1B 34 BASIC CHR 27 4 ESC 5 Cancel Italic Mode This command cancels the italic print mode set by the ESC 4 code Decimal 27 53 Hex 1B 35 BASIC CHR 27 5 ESC 6 Printable Code Area Expansion This command enables the printing of codes 128 159 decimal as characters If the upper section of t...

Page 144: ...Double Strike 32 Double Width 64 Italic 128 Underline Decimal 27 33 Hex 1B 21 BASIC CHR 27 1 CHR n ESC k n Select Font Style Selects the Roman Courier typeface if n is 0 and Sans Serif Gothic if n is 1 This command will not activate the selection but sets the style to be activated by the ESC x n sequence Refer to the Functional Differences section on page 7 4 for a description of typefaces used De...

Page 145: ...f the character that is printed Note that this chart assumes that an ESC 6 command has already been received and that the italics mode has been selected via ESC t or emulation option 2 for the upper section of the table range 128 255 Otherwise control codes such as FF CR etc would be executed in the region 128 159 inclusive instead of printing an international character This sequence causes some A...

Page 146: ...n sign Decimal 27 73 n Hex 1B 49 nH BASIC CHR 27 I CHR n ESC R n Selects the International Character Set Selects the international character substitution set for the ASCH codes between 35 and 126 decimal inclusive The following parameters define which substitution set is selected n Country 0 USA 1 France 2 Germany 3 UK 4 Denmark I 5 Sweden 6 Italy 7 Spain I 8 Japan 9 Norway 10 Denmark 11 Spain II ...

Page 147: ... t sequence either the binary or ASCII value can be used for ml Listed below are the values for m2 and m3 required to assign specific code pages to the select variable ml Note that this sequence is similar to the ESC T sequence except that fewer code page choices are available Also when using this command assignments can be made to any of the four different select variables used by the ESC t seque...

Page 148: ...ed by the emulation however they must appear in the sequence and represent some value or zero The following table lists the parameters required to select the different code pages m4 m3 Code Page 00 00 No change from current setting 01 B5 Code page 437 USA 03 52 Code page 850 multilingual 03 54 Code page 852 03 55 Code page 853 Cyrillic 03 59 Code page 857 03 5C Code page 860 03 61 Code page 865 No...

Page 149: ... to zero This command has no effect on graphics or user defined characters Decimal 27 61 Hex 1B 3D BASIC CHR 27 ESC Set Most Significant Bit MSB to One Sets the most significant bit of all incoming data to one This command has no effect on graphics or user defined characters Decimal 27 62 Hex 1B 3E BASIC CHR 27 ESC Initialize Printer Flushes all data in the print buffer preceding the command and t...

Page 150: ...data data Since this control sequence has no terminator you need to specify exactly in the header the number of bytes that you want to be interpreted as graphics If there are fewer graphics data bytes than specified in the header then the printer treats subsequent text and control codes as graphics In that case carriage returns and line feeds are often ingested as graphics data On the other hand i...

Page 151: ...trols the bottom pin of that column The first byte of data v1 Is the first column v2 is the second column and so on The illustration below shows byte values of various dot combinations Weight Wire Graphics Dot Pattern 128 1 64 2 32 3 16 4 8 5 4 6 2 7 1 8 0 0 0 112 136 132 130 65 49 65 130 132 136 112 0 0 Image Byte Values Graphics Programming Example 100 WIDTH LPT1 255 110 FOR N 1 TO 4 115 LPRINT ...

Page 152: ... will be printed Decimal 27 76 n1 n2 v1 vn Hex 1B 4C v1H vnH BASIC CHR 27 L CHR n1 CHR n2 CHR v1 CHR vn ESC Y n1 n2 v1 vn High Speed Double Density Graphics Sets a density of 120 dpi horizontally and 72 dpi vertically If horizontally adjacent dots are sent they will be printed Decimal 27 89 n1 n2 v1 vn Hex 1B 59 n1H n2H v1H vnH BASIC CHR 27 Y CHR n1 CHR n2 CHR v1 CHR vn ESC Z n1 n2 v1 vn Quadruple...

Page 153: ... 120 7 Double density plotter 120 Decimal 27 42 n1 n2 v1 vn Hex 1B 2A n1H n2H v1H vnH BASIC CHR 27 CHR m CHR n1 CHR n2 CHR v1 CHR vn ESC s n Reassign Graphics Mode Reassigns the dot density to the graphics mode specified by ESC K ESC L ESC Y or ESC Z s K L Y or Z n dot density see values below n Horizontal dpi Vertical dpi 0 60 72 1 120 72 2 120 72 3 240 72 4 80 120 72 5 72 60 72 6 90 120 72 7 144...

Page 154: ... CHR s CHR n ESC m n1 n2 Select 9 Pin Graphics Turns on the 9 bit graphics mode for n1 n2 x 256 columns The variable m determines the density as follows m 1 double density m 0 single density Decimal 27 94 m n1 n2 Hex 1B 5E m n1 n2 BASIC CHR 27 CHR m CHR nl CHR n2 NOTE This emulation does not support the 9 bit operation The byte containing the 9th bit is discarded and only the top eight bits are us...

Page 155: ...l be set to the left margin Indeterminate conditions If the right margin has been exceeded the backspace is ignored Decimal 8 Hex 08H BASIC CHR 8 HT Horizontal Tab HT will set the active print position to the next horizontal tab position Indeterminate conditions If there are tab s set but no tab s are set between the active print position and the right margin the active print position will advance...

Page 156: ...form feed Decimal 12 Hex 0CH BASIC CHR 12 CR Carriage Return Line terminator CR will return the active print position to the left margin If the enabled by menu selection the printer will execute a line feed immediately after executing the CR Decimal 13 Hex 0DH BASIC CHR 13 SO Shift Out Shift Out locks character set G1 into GL Decimal 14 Hex 0EH BASIC CHR 14 SI Shift In Shift In locks character set...

Page 157: ...he printer interprets the characters following CAN as normal text CAN also cancels a Device Control String when received within the command string of that DCS Decimal 24 Hex 18H BASIC CHR 24 SUB Substitute Sub immediately ends an escape or control sequence Indeterminate Conditions Sub prints as a space character for sixel graphics data Decimal 26 Hex 1AH BASIC CHR 26 ESC Escape ESC introduces an e...

Page 158: ...ASCII code 9B hexadecimal When the parallel interface is used the 8 bit environment is always available For the serial interface single character 8 bit controls are available if the interface has been set for eight data bits via the printer menu For either interface single character 8 bit controls must be enabled by menu selection Unless stated otherwise any sequence received with illegal paramete...

Page 159: ...74 or 138 Hex 1B 4A or 8A BASIC CHR 27 CHR 74 PLD Partial Line Down The active vertical position will move downward by one half of the current line feed distance to create an appearance of subscripting The ESC K sequence is also used to effect recovery to the original active vertical position following an ESC L partial line up sequence code sequence Indeterminate conditions If the command exceeds ...

Page 160: ...143 DCS Device Control String Introduces a device control string Indeterminate Conditions A DCS control character received in an escape sequence control sequence or control string aborts the sequence and begins a new device control string Decimal 27 80 or 144 Hex 1B 50 or 90 BASIC CHR 27 P or CHR 144 CSI Control String Introducer Introduces a sequence of one or more bytes that constitute a control...

Page 161: ...he start of this control string is recognized but all of the data that follows is ignored until this sequence is either aborted or terminated by an ST sequence Decimal 27 94 or 158 Hex 1B 5E or 9E BASIC CHR 27 CHR 94 or CHR 158 APC Application Program Command APC introduces an Application Program Command String APC control strings are ignored Indeterminate Conditions The start of this control stri...

Page 162: ...nderline mode 22 Cancel Bold Mode 24 Cancel Underline Mode 53 Overscore mode 55 Cancel overscore Decimal 155 n1 n2 m Hex 9B n1H h2H 6D BASIC CHR 155 CHR n1 CHR n2 m DECRLGS Request Logo Status This command applies to the serial interface only It requests a status report of the logos available for printing The logo string contains a list of all the valid logos loaded in the printer and their commen...

Page 163: ...of 1 will not contain an ID string in this implementation The nnn within the reply to a DECRFS with a Ps parameter of 2 represents decimal number indicating the number of bytes of RAM available for storing forms and logos Replies Reply with Ps 1 DCS 1 ST 90 31 22 7B 9C Reply with Ps 2 DCS 2 nnn ST 90 32 22 nnn 9C Reply with Ps 0 DCS 1 ST DCS 2 nnn ST 90 31 22 7B 9C 90 32 22 nnn 9C Decimal 155 Ps 5...

Page 164: ...thin a form is not allowed Decimal 155 P1 59 P2 59 Pn 59 38 124 Hex 9B P1H 3B P2H 3B PnH 3B 26 7C BASIC CHR 155 CHR P1 CHR 59 CHR P2 CHR 59 CHR Pn CHR 59 DECILG Select Logo Sequence Prints the selected logo contained in printer memory Pn defines the ID of the selected logo Indeterminate Conditions If no logo exists for the ID specified the sequence is ignored At the end of a select logo sequence t...

Page 165: ... a two digit hexadecimal number equivalent to the ASCII value of the control character to be encoded When a control character is required within the form data the control character must be entered in its hexadecimal format and preceded by the CNTL encoding character Form Data Switch Character Designates the insertion of the form s fill in data The character is always in the range from 20 through 7...

Page 166: ... string Ps 3 Delete all stored forms Indeterminate Conditions The FORM ID string identifies the forms to be deleted If more than one Form ID is listed separate them with semicolons Form Ids with more than ten characters are ignored If you try to delete a form while it is printing the printer will ignore the delete command Decimal 144 Ps 38 113 FORMS ID 156 Hex 90 PsH 26 71 FORMS ID 9C BASIC CHR 14...

Page 167: ...t page and continues merging with the fill in data that follows If there is more than one set of fill in data the same form constant data is merged with the new fill in data to create additional forms The FORM NAME is the first ten characters of the loaded form s ID or the full form ID if it is ten characters or less in length If no such form exists the fill in data is printed as text data Decimal...

Page 168: ...command format is the following DCS Ps1 Ps2 Ps3 Psn q Sixel data ST The Protocol Selector is that portion of the form Ps1 Ps2 Pn3 Pn q Hex 90 Ps1 3B Ps2 3B Pn3 Pn q sixel data 9C Ps1 selects the horizontal grid size and aspect ratio this will implicitly define the vertical grid size The following table defines the parameter selections Ps1 Horizontal DPI Vertical DPI Aspect Ratio 0 100 50 200 100 1...

Page 169: ...0 through 7 that defines the length of the comment field Logo Length A five digit number 00001 through 65535 that defines the length of the logo record Row Records R S N1 N2 R Height of the segment in mils S Row starting color 0 white 1 black N1 N2 Length of segment in mils Row terminator Indeterminate Conditions Logos can be loaded at any time except during another download operation and during a...

Page 170: ...atin Greek Supplemental 1 F ISO Latin 9 Supplemental 1 b Decimal 144 Ps u D D ST Hex 90 Ps 21 75 D D 9C BASIC CHR 144 Ps u D D CHR 156 DECBARC Start Bar Coding Generates bar codes using data that follows the sequence Bar code parameters are defined by the last DECSBCA sequence The printer continues to encode bar codes until it receives the Stop Bar Code sequence General Command Syntax ESC SP 0 Ind...

Page 171: ...st begin and end on the same page Since mode settings fonts and spacing parameters can be changed between the time the form is loaded and the item is selected the environment of the form PUM or SSU should be established in the form data If ESC CAN or SUB is embedded in the form string it will terminate form loading and the form will be discarded Encoding DCS RIS CAN or SUB in a form string will al...

Page 172: ...0029B 172 When using bar codes as part of the fill in data make sure that the control character encoding character of the bar code differs from the switch character in the Select Form sequence Bar codes must start and end on the same page of a form ...

Page 173: ...white background Decimal 27 37 32 49 Hex 1B 25 20 31 BASIC CHR 27 1 SOCS Epson Select Other Coding System Selects the Epson FX emulation General Command Syntax ESC SP 2 Decimal 27 37 32 48 Hex 1B 25 20 32 BASIC CHR 27 2 S7C1R Select 7 Bit Code In a 7 bit environment this sequence allows receipt of 7 bit control strings only General Command Syntax ESC SP 6 Indeterminate Conditions For all subsequen...

Page 174: ...ex 1B 25 3D BASIC CHR 27 ROCS Stop Bar Coding Return from Other Coding System Stops bar code printing Once bar coding is stopped the font selection and associated attributes are restored to the conditions prevailing prior to bar code printing General Command Syntax ESC Decimal 27 37 64 Hex 1B 25 40 BASIC CHR 27 CUU Cursor Up Causes the active print position to move to the corresponding column at t...

Page 175: ...e causes the printer to use 7 bit encoding for all C1 control characters transmitted All C1 characters are then represented as two character ESC sequences General Command Syntax ESC SP F Decimal 27 32 70 Hex 1B 20 46 BASIC CHR 27 F NOTE Pn1 is a decimal value that specifies the height of the font as a percentage of the height set by the GSS sequence Pn2 is a decimal value that specifies the width ...

Page 176: ...ommand Syntax ESC Pn1 Pn2 SP G Indeterminate Conditions A vertical spacing value which exceeds the current form length will be ignored If the parameter value is omitted the current setting will not be changed 5000 Specific The LPI parameter may range from 1 to 17280 decipoints 24 inches but must be less than or equal to the printable area of the form The printable area is defined as the area betwe...

Page 177: ... Ps 32 73 Hex 1B 5B Ps 20 49 BASIC CHR 27 Ps I Ps Spacing Unit 2 Decipoint 1 720 inch 7 Pixel 1 600 inch SHS Select Horizontal Spacing Ps selects the horizontal pitch General Command Syntax ESC Ps SP K Ps Horizontal Pitch 0 10 characters per inch 1 12 characters per inch 2 15 characters per inch 3 6 characters per inch Decimal 27 91 Ps 32 75 Hex 1B 5B Ps 20 4B BASIC CHR 27 Ps K SVS Select Vertical...

Page 178: ...PR Horizontal Position Relative This sequence will move the active print position to the right relative to the current position Parameter p1 specifies the number of units to move HPR cannot be used to move beyond the right margin General Command Syntax ESC Pn a Indeterminate Conditions Parameters greater than the physical print width will cause a default to the right margin unless the auto wrap pr...

Page 179: ...h 66 lines 11 inches Active position Column 1 on the current line Top Margin Line 1 Bottom Margin Line 66 Left Margin Column 1 Right Margin Column 136 Underlining Disabled Bolding Disabled Italics Disabled Double Underline Disabled Overline Disabled Expansion No character expansion GL Character Set US ASCII GR Character Set Digital Supplemental G0 US ASCII G1 VT100 Graphic Character Set G2 Digital...

Page 180: ... print within the top and bottom margins General Command Syntax ESC Pn d Indeterminate Conditions If the new vertical position is greater than the forms length then the sequence will be ignored If p1 is omitted or zero Pn is interpreted as the default value of 1 Decimal 27 59 Pn 76 Hex 1B 5B Pn 64 BASIC CHR 27 Pn d VPR Vertical Position Relative The current vertical position will be advanced by th...

Page 181: ...estion mark character ANSI Defined Parameter Values Ps Mode Mnemonic Mode Function 11 PUM Position Unit Mode 20 LNM Linefeed New Line Mode DEC Private Parameter Values Ps Mode Mnemonic Mode Function 7 DECAWM Autowrap Mode 29 DECPSM Pitch Select Mode 40 DECCRNLM Carriage Return New Line Mode The meanings for these follows PUM Position Unit Mode Selects a unit of measurement used with the escape seq...

Page 182: ...ge Return will return the active position to the left margin on the current line VFU Load Vertical Format Unit This sequence will download the VFU from the host All data following this load sequence is placed into the VFU memory until terminated with the End Load sequence Any command entered during the load is ignored except the End Load sequence All data must be in the VFU load format If an error...

Page 183: ...or 9 the entire sequence is ignored General Command Syntax ESC P1 Y The table of values of nnn follows P1 nnn Move Forward to Channel P1 nnn Move Backward to Channel 000 1 900 1 001 2 901 2 002 3 902 3 003 4 903 4 004 5 904 5 005 6 905 6 006 7 906 7 007 8 907 8 008 9 908 9 009 10 909 10 010 11 910 11 011 12 911 12 Decimal 27 59 P1 38 121 Hex 1B 5B P1 26 79 BASIC CHR 27 P1 Y Notes Selecting any oth...

Page 184: ... CHR 27 Pn j VPB Vertical Position Backward The current vertical position will be changed moving the active position in the reverse direction by the specified amount The movement is not permitted to cross the top margin of the current form General Command Syntax ESC Pn k Indeterminate Conditions If the parameter is omitted Pn is interpreted as the default value of 1 If a parameter should request a...

Page 185: ... unsolicited status reports DSR Sequences to Enable or Disable Unsolicited Reports Request Sequence Printer Response ESC 1n Disables all unsolicited reports ESC 2n Enable brief unsolicited status reports and sends an extended status report ESC 3n Enable extended unsolicited status reports and sends an extended status report Responses Cursor Position Report ESC Pn1 Pn2R Pn1 is the active line Pn2 i...

Page 186: ... Bar Open 26 212 All Others Notes This option will work only if the printer s serial interface is active and the RTS option on the host is set to true The units reported by the Cursor Position Report can be character positions decipoints or pixels dependent on the settings of PUM and SSU Emulation strap S1 enable disables unsolicited error reports Emulation strap S2 selects brief or extended statu...

Page 187: ...orms Length 66 lines 11 inches Active position Column 1 on the current line Top Margin Line 1 Bottom Margin Line 66 Left Margin Column 1 Right Margin Column 136 Underlining Disabled Bolding Disabled Italics Disabled Double Underline Disabled Overline Disabled Expansion No character expansion GL Character Set US ASCII GR Character Set Digital Supplemental G0 US ASCII G1 VT100 Graphic Character Set ...

Page 188: ...PC A 12 UPC E 13 Postnet 14 Code 128 15 Code 128 UCC P2 Width for Narrow Bars and Spaces Sets width for the narrow bars and spaces in units specified by SSU Default 10 pixels 12 decipoints P3 Width for Quiet Zone Not implemented P4 Width for Wide Bars and Spaces Sets width for the wide bars and spaces in units specified by SSU Default 30 pixels 36 decipoints P5 Intercharacter Gap Sets the intercha...

Page 189: ... last printable line The page home line is the position of the first printable line on the page after a form feed General Command Syntax ESC Pn1 Pn2 r Decimal 27 71 Pn1 Pn2 86 Hex 1B 5B Pn1 3B Pn2 72 BASIC CHR 27 Pn1 Pn2 r Indeterminate Conditions If Pn1 is 0 or omitted the top margin is unchanged If Pn2 is 0 or omitted the bottom margin is unchanged If Pn2 is greater than the form length the bott...

Page 190: ...s If Pn1 is 0 or omitted the left margin is unchanged If Pn2 is 0 or omitted the right margin is unchanged If Pn2 is greater then the printable width the right margin is set to the right limit If the sequence sets the left margin to the right of the right margin the command is ignored If the active position is less than the new left margin the active position is set to the left margin Decimal 27 7...

Page 191: ...DECSVTS Set Vertical Tab Stops This sequence will set multiple vertical tab stops DECSVTS allows up to 16 tab stops to be set at once Up to 67 vertical tabs can be stored The default is set to stop at every line The Pn values can be in any order in the escape sequence The value units are in decipoints pixels or lines depending on the selection of PUM and SSU General Command Syntax ESC Pn1 Pn2 Pn16...

Page 192: ... 16 7 characters per inch 5 5 characters per inch 6 6 characters per inch 7 6 6 characters per inch 8 8 25 characters per inch 9 15 characters per inch Decimal 27 71 Ps 91 Hex 1B 5B Ps 77 BASIC CHR 27 Ps w DECVERP Set Vertical Pitch This sequence will set the number of lines per inch on the page Ps selects the vertical pitch as defined in the following chart General Command Syntax ESC Ps z Select ...

Page 193: ...Inch 1 30 Dots per Inch 2 60 Dots per Inch 2 40 Dots per Inch 3 70 Dots per Inch 3 50 Dots per Inch 4 80 Dots per Inch 4 60 Dots per Inch 5 90 Dots per Inch 5 66 Dots per Inch 6 100 Dots per Inch 6 75 Dots per Inch 7 110 Dots per Inch 7 86 Dots per Inch 8 120 Dots per Inch 8 100 Dots per Inch 9 130 Dots per Inch 9 120 Dots per Inch 10 140 Dots per Inch 10 150 Dots per Inch 11 150 Dots per Inch 11 ...

Page 194: ...izontal line to the right 1 Draw a vertical line down P2 Select the X Start Position This parameter selects the horizontal start position on the page in decipoints P3 Select the Y Start Position This parameter selects the vertical start position on the page in decipoints P4 Select the Line Length Select the line length in the X direction for an X line For a Y line it specifies the Y direction leng...

Page 195: ...mands from different levels of the PPL emulation Coded Characters Character processing within the PPL3 emulation is broken down into several categories of characters C0 Control Set 00H 1FH 0 31 decimal GL Graphics Characters 94 graphic characters in the range of 21H 7EH 33 126 decimal referred to as the left hand graphics set C1 Control Set 80H 9FH 128 159 decimal GR Graphics Characters 94 graphic...

Page 196: ...some environments only 7 bits are used to encode characters In these environments the standard 7 bit character set applies This set includes only the C0 and GL character sets and the special characters represented by hexadecimal values 20 and 7F 7 Bit Character Set 8 Bit Left Half ...

Page 197: ...8 bit environment the low order 7 bits determine whether a character is printable or is a control character The standard 8 bit code table consists of the entries above as well as the 8 bit right half table that follows Standard 8 Bit Code Table Right Half ...

Page 198: ...ction of both a font and a graphic character set to specify a character to be printed The font is made up of a type style a size and a design regular bold italics Choosing a graphics character set involves the following steps Designate the graphics character set as one of the logical sets G0 G1 G2 or G3 Assign map one of the sets above into the graphic left GL or graphics right GR logical set Desi...

Page 199: ...ss received in an escape sequence control sequence or control string In these instances CAN causes the sequence or string being processed to abort CR Carriage Return 0DH CR sets the active horizontal position to the Line Home Position even when the active horizontal position is to the left of the Line Home Position If Carriage Return New Line Mode DECCRNLM is set the printer also moves down one Ve...

Page 200: ...ter set G0 as the GL character set SO Shift Out 0EH SO also named Locking Shift One LS1 maps character set G1 as the GL character set SUB Substitute 1AH This sequence aborts the sequence in progress SUB in a control string generally aborts the string in progress Need a reference to a local equivalent of table 2 2 in the spec SUB in printable text causes the error character to be printed The error ...

Page 201: ... CCH ESC T 1B 54 9 5 MW ESC U 1B 55 9 6 SPA ESC V 1B 56 9 7 EPA ESC W 1B 57 9 8 Reserved ESC X 1B 58 9 9 Reserved ESC Y 1B 59 9 10 Reserved ESC Z 1B 5A 9 11 CSI ESC 1B 5B 9 12 ST ESC 1B 5C 9 13 OSC ESC 1B 5D 9 14 PM ESC 1B 5E 9 15 APC ESC _ 1B 5F CSI Control Sequence Introducer CSI CSI introduces a control sequence A CSI control character received in an escape sequence control sequence or control ...

Page 202: ...n on Page Coordinate System later in the chapter RI Reverse Index 8DH RI moves the active vertical position up one Vertical Advance Increment VAI The maximum allowable movement is to the top margin This is discussed further in the section on Page Coordinate System later in the chapter SS2 Single Shift 2 8EH SS2 temporarily maps character set G2 into GL to print one character SS3 Single Shift 3 8FH...

Page 203: ...a 94 character graphic character set has been mapped into the GL region 7FH is always ignored If a 96 character graphic character set has been mapped into the GL region 7FH causes the specified character from that set to be printed If 7FH is undefined in that character set the error character is printed Hex A0 If a 94 character graphic character set is selected into GR A0H causes the error charact...

Page 204: ... See 7 See 7 See 7 See 7 See 7 See 7 20H See 8 Ignore Ignore Ignore See 8 Ignore Ignore A0H See 8 Ignore Ignore Ignore See 8 Ignore Ignore 7FH Ignore Ignore Ignore Ignore Ignore Ignore Ignore FFH Ignore Ignore Ignore Ignore Ignore Ignore Ignore Action taken 1 Character aborts the command then introduces a new command 2 Character aborts the command then CAN is processed 3 Character aborts the comma...

Page 205: ...is in the range of 30H to 7EH It indicates the end of an escape sequence The intermediate characters if any and the final character taken together define the function of the sequence Control Sequence Syntax Control sequences differ from escape sequences in that they have parameters that modify the function of the control sequence The general format for a control CSI The control sequence introducer...

Page 206: ...uence Parameter Values Within Control Sequences Parameter values are either numeric values or selection indices Numeric values typically specify a distance or a quantity pertaining to a control function Selective parameters are interpreted as specifying a choice from an available list for a parameter Parameter values must be unsigned digits Leading zeroes are permitted but ignored If no value is r...

Page 207: ...lect Mode 216 DECPSP Proportional Spacing Mode 217 DECRFS Request Font Status requests a font report 217 DECRVEC Draw Relative Vector 218 DECSHORP Set Horizontal Pitch 219 DECSHTS Set Horizontal Tab Stops max of 16 220 DECSLPP Set Lines per Physical Page 221 DECSLRM Set Left and Right Margins 222 DECSTBM Set Top and Bottom Margins 223 DECSTR Soft Terminal Reset 225 DECSVTS Set Vertical Tab Stops m...

Page 208: ...tribute selection 240 SGR Select Graphics Rendition font selection 243 SHS Set Horizontal Spacing 244 SPI Set Pitch Increment 246 SSU Select Size Unit 247 SVS Set Vertical Spacing 248 TBC Tab Clear 249 VPA Vertical Position Absolute 249 VPB Vertical Position Backwards 250 VPR Vertical Position Relative 250 Sixel Graphics Commands DECGCR Graphics Carriage Return 258 DECGNL Graphics Next Line 258 DE...

Page 209: ...tings ASCII is assigned to G0 and mapped into GL Format Mnemonic ESC SP L ISO 4873 level 1 Decimal 27 32 76 Hex 1B 20 4C BASIC CHR 27 L Mnemonic ESC SP M ISO 4873 level 2 Decimal 27 32 77 Hex 1B 20 4D BASIC CHR 27 M Mnemonic ESC SP N ISO 4873 level 3 Decimal 27 32 78 Hex 1B 20 4E BASIC CHR 27 N CPR Cursor Position Report Response by a printer to an application for a Printer Status Request DSR curs...

Page 210: ... 3 1 then is executed CUU Cursor Up Executes Vertical Position Backwards VPB CUU exists for backwards compatibility with older printers only Use VPB instead of CUU Future printers may not implement CUU Source Application Destination Level 3 outmoded command Description See VPB DA Printer Attributes Requests the printer product identification The printer responds to the DA command by sending a Prin...

Page 211: ... possible extensions Parameter Hex Decimal Protocol Extension 34 4 Sixel graphics 35 5 Katakana character set 36 6 Reserved 38 8 Reserved 39 9 Variable page format select 31 30 10 Text ruling vector drawing 31 31 11 Reserved 31 32 12 Hebrew character sets The reply to the DA request is sent to the host only after all preceding data except DSR has been processed and printed This provides a way for ...

Page 212: ...e host only after all preceding data except DSR has been processed and printed This provides a way for host software to determine when all preceding data has been successfully printed DA2 Secondary Printer Attributes Requests a Secondary Printer Attributes Report Source Print manager Destination Levels 1 2 3 Format CSI PS C Ps if present must equal 0 Description The printer responds to the DA2 req...

Page 213: ...ing the intermediate and final characters of the designating sequence used to explicitly select the supplemental character set See SCS in this chapter for a list of intermediate and final characters To assign DEC Supplemental as the User Preference character set use the following DECAUPSS command DCS 0 u 5 ST To assign ISO Latin 1 Supplemental as the User Preference set use the following DECAUPSS ...

Page 214: ...pplication Destination Level 2 Format CSI 7 h Set Autowrap mode CSI 7 1 Reset Autowrap mode Description When DECAWM is set and the active position is beyond the right margin printable characters that follow are printed on the next line beginning at the Line Home Position When DECAWM is reset all printable characters received beyond the right margin are ignored truncated The printer never autowraps...

Page 215: ...4 0 1 CR acts as Carriage Return Description If DECCRNLM is set and a CR is received the active position advances to the Line Home Position of the next line If DECCRNLM is reset and a CR is received the active position returns to the Line Home Position of the current line Notes to Software Print managers developed by Digital handle record terminators without using Carriage Return New Line Mode Thi...

Page 216: ...tal pitch selected by DECSHORP Source Application Destination Levels 2 3 outmoded command Format CSI 2 9 h Sets Horizontal Pitch Select Mode CSI 2 9 1 Resets Horizontal Pitch Select Mode Description When the selected font cannot be modified algorithmically to match the pitch selected by DECSHORP DECPSM defines whether to use the pitch from the font or to print the characters at an unnatural pitch ...

Page 217: ... Destination Level 3 Format CSI 2 7 h Sets Proportional Spacing Mode CSI 2 7 1 Resets Proportional Spacing Mode Description When a proportional font is in use and DECPSP is reset the printer prints characters on a monospaced grid DECPSP has no effect on tab settings DECRFS Request Font Status Requests a font report Source Print manager Destination Levels 2 3 Format CSI Ps Description The selective...

Page 218: ...ted The starting point of the line is the current position X lines are horizontal with respect to the intended reading page orientation and Y lines are vertical with respect to the intended reading page orientation The DECRVEC command does not change the active position It is not affected by the First Character Flag Since a vector has length and width it is considered a filled rectangle The rectan...

Page 219: ... font 1 720 centipoints 10 cpi 2 600 centipoints 12 cpi 3 550 centipoints 13 2 cpi 4 440 centipoints 16 5 cpi 5 1440 centipoints 5 cpi 6 1200 centipoints 6 cpi 7 1090 centipoints 6 6 cpi 8 870 centipoints 8 25 cpi 9 480 centipoints 15 cpi 11 420 centipoints approx 17 1 cpi or 14 240 in 12 840 centipoints approx 8 5 cpi 13 400 centipoints 18 cpi 14 800 centipoints 9 cpi 15 700 centipoints approx 10...

Page 220: ...ted in a particular printer results in a fallback See the discussion of horizontal resolution in the Programming Supplement for a list of pitches supported DECSHTS Set Horizontal Tab Stops Adds one or more tab stops to the horizontal tab table max of 16 Source Application Destination Level 2 Format CSI Pn Pn u Description Pn is a number of units depending on Positioning Unit Mode PUM and Select Si...

Page 221: ...ts the form length to the logical paper size Pn is a number of units depending on Positioning Unit Mode PUM and Select Size Unit SSU The following table lists the parameter values for a small selection of page lengths as a function of vertical pitch These values are used only when PUM is reset Lines Per Page Length in Inches 2 3 4 6 8 12 11 3 N A 11 N A 22 N A 44 8 5 2 N A N A 17 N A 34 51 8 5 17 ...

Page 222: ...raw Vector DECVEC and Draw Relative Vector DECRVEC draw lines outside the margins During justification if the required spacing between words is less than the specified minimum width of the space character text may exceed the right margin If margins are less than one Horizontal Advance Increment HAI apart text may exceed the right margin The printer sets the margins relative to the page origin as s...

Page 223: ... as a side effect of other actions Also changing the origin with DECOPM changes the locations of the left and right margins with respect to the paper Side Effects DECSNC causes a conditional Sheet Feed The selected parameter affects all subsequent sheets If Pn equals 0 the printer sets Pn to 1 A maximum of 99 copies can be selected If Pn is greater than 99 the printer sets Pn to 99 DECSTBM Set Top...

Page 224: ...g the page origin causes the margins to move Changing the top and bottom margins does not affect vertical tab stops The active position is affected only if it is outside the new margins Set Lines per Physical Page DECSLPP Page Format Select PFS Variable Page Format Select DECVPFS and the reset commands affect margin settings Side Effects DECSTBM sets the Page Home Line equal to the top margin and ...

Page 225: ... printer sets all the Initial State Values listed in the Programming Supplement to the DECSTR conditions The printer does not run self test change the current communication settings or clear the input buffer Side Effects DECSTR resets Printer Status Report DSR events including communication failure and input buffer overflow The printer performs a conditional Form Feed DECSTR affects justification ...

Page 226: ...nging the top margin does not charge the position of tab stops Changing the pitch with Set Vertical Pitch DECVERP modifies tab positions to keep the number of lines between tab stops constant The printer allows at least one tab per line along the longest paper supported at the smallest built in line spacing Tab stops can be set outside the current margins however the printer does not use tab stops...

Page 227: ... has length and width it is considered a filled rectangle The rectangle is not centered on the endpoints DECVEC rectangles are positioned identically relative to the endpoints as relative vectors See DECRVEC Error Handling If Ps1 is any value other than 0 or 1 the entire command is ignored Missing parameters are interpreted as 0 If the printer receives a DECVEC command with too many parameters the...

Page 228: ...cal paper size in use The reduction is never more than 1 4 inch on each edge or a total of 1 2 inch The DECVERP parameters 11 16 are the counterparts to 1 6 They are intended to support traditional lines page requirements on a print area that is slightly less than 11 inches long The exact vertical pitch produced for parameters 11 16 is printer dependent The result is defined as lines page on the p...

Page 229: ...inter sends additional reports whenever any reportable status condition changes state The printer processes the DSR request except for cursor position reports immediately upon receipt asynchronously to the rest of the data stream This allows the printer to respond to the request when an error has halted the printing process and the input buffer is full The selective parameters for the Printer Stat...

Page 230: ...tion The brief report parameters are as follows Ps Meaning 3 Error 30 Error Extended Report Description Each Pn value is an error code of up to three digits Error codes occur in pairs a generic code followed by a specific code CSI 36 216 n Printer paper out error CSI 26 212 n Non paper error Notes If unsolicited reports are enabled errors are reported as they occur If no errors occurred the printe...

Page 231: ...ge of the width set by the GSS command Pn2 Meaning 0 Sets width to 100 of width set by GSS n Percentage of the width set by GSS The modification remains in effect until the next GSM or Graphic Size Selection GSS command occurs in the data stream or until reset or power down The GSM command can be used in the middle of a line without affecting the alignment of characters along the baseline Side Eff...

Page 232: ...fines the width The GSS selection remains in effect until the next occurrence of GSS in the data stream reset or power down The height and width selected may be further modified by Graphic Size Modification GSM The GSS command can be used in die middle of a line without affecting the alignment of characters along the baseline Side Effects GSS sets GSM to 100 100 The GSS command affects line spacin...

Page 233: ...nit Mode PUM and Select Size Unit SSU When lining attributes are invoked by Select Graphic Rendition SGR HPA underlines double underlines overlines or strikes through from the current position to the target position The First Character Flag has no effect on HPA Error Handling If Pn is to the left of the Left Margin Position the printer sets the horizontal position to the Left Margin Position Sets ...

Page 234: ... place the active horizontal position to the left of the Line Home Position or to the right of the Line End Position When lining attributes are invoked by Select Graphic Rendition SGR HPB underlines double underlines overlines or strikes through from the current position to the target position The First Character Flag has no effect on HPB Error Handling If the resulting active position would be to...

Page 235: ...endition SGR HPR underlines double underlines overlines or strikes through text from the current position to the target position The First Character Flag has no effect on HPB Error Handling If the resulting position would be to the right of the Right Margin Position the printer sets the horizontal position equal to the Right Margin Position and sets the Right Margin Flag When the Right Margin Flag...

Page 236: ...B 4F The character that follows SS3 is selected from G3 Shift Out SO SO 0E See Locking Shift 1 Shift In SI SI 0F See Locking Shift 0 Locking Shift 0 LS0 SI 0F G0 becomes the active GL character set Locking Shift 1 LS1 SO 0E G1 becomes the active GL character set Locking Shift 2 LS2 ESC n 1B 6E G2 becomes the active GL character set Locking Shift 3 LS3 ESC o 1B 6F G3 becomes the active GL character...

Page 237: ... heights are set by control functions or are taken from the currently selected font The Positioning Unit Mode PUM establishes the unit for the numeric parameters of the following sequences HPA HPB HPR VPA VPB CUU VPR DECSHTS DECSVTS DECSLPP DECSTBM DECSLRM RIS Reset to Initial State Resets printer state variables to their initial values RIS has the same effect as Soft Terminal Reset DECSTR Source ...

Page 238: ...e Application Destination Levels 1 2 3 Format ESC I1 I2 In F Description I1 is an intermediate character selected from the following table I1 Character Hex Code Map into G set 94 Character Sets Left parenthesis 28 G0 Right parenthesis 29 G1 Asterisk 2A G2 Plus sign 2B G3 96 Character Sets Minus sign 2D G1 Period 2E G2 Slash 2F G3 ...

Page 239: ...wedish 7 37 DEC Swiss 3D Norwegian Danish 60 DEC Supplemental 5 25 35 DEC Technical 3E DEC Special Graphics 0 30 DEC Portuguese 6 25 36 User Preference Supplemental1 3C 96 Character Sets ISO Latin 1 Supplemental A 41 ISO Latin Hebrew Supplemental H 48 ISO Latin 9 Supplemental Euro b 62 1For compatibility with older printers set the User Preference Supplemental character set to the DEC Supplemental...

Page 240: ... Attributes Selects printing attributes including lining functions superscript and subscript functions and emphasis functions Source Application Destination Levels 1 2 3 Format CSI Ps Ps Ps m Selects standard attributes CSI Ps Ps Ps m Selects Digital private attributes Description Select an attribute using standard SGR parameters as follows Ps Action 0 Turn off all attributes standard and private ...

Page 241: ...lect Character Attributes You can send more than one parameter at a time separating them with semicolons Do not mix standard and private parameters in one command The printer uses the selected attribute across line and page boundaries until the attribute is turned off or until a reset or power down Lining Attributes Underline double underline overline and strike through attributes affect all print...

Page 242: ...r compatible font is available The printer uses the Superscript Vertical Offset CFFF 3 5 3 1 field to determine the superscript offset from the baseline and the Subscript Vertical Offset CFFF 3 5 3 3 field to determine the subscript offset from the baseline Line feed distance Graphic Size Modification GSM and active position are not affected by superscript or subscript Superscripts and subscripts ...

Page 243: ...font using DECATFF the printer uses the default assignments See the Programming Supplement for the initial state values of SGR parameters If you use SGR to select a proportional font make sure that Proportional Spacing Mode DECPSP is set The select font command can be used anywhere in the data stream The selected font remains in effect until any of die following occurs The printer receives another...

Page 244: ...ediate effect Select the SHS parameter as follows Ps Centipoints Characters Inch 0 720 10 1 600 12 2 480 15 3 1200 6 SHS does not affect character size or horizontal tab stops The printer saves the HAI value upon receipt of SHS even when DECPSP is set however it does not use the value until DECPSP is reset The HAI value chosen remains in effect until one of the following occurs Another SHS command...

Page 245: ...ption These sequences define how C1 codes are encoded from the host to the printer or from the printer to the host The sequences select whether the interface uses 8 bit encoding or 7 bit equivalent ESC Fe encoding These equivalents are given in the third column of the table on page 196 These sequences are processed in sequence with all other data Therefore it is recommended that software send thes...

Page 246: ... HAI size determined by current font n HAI size in units depending on PUM and SSU The printer saves the HAI value upon receipt of SHS even when DECPSP is set however it does not use the value until DECPSP is reset The RAI and VAI values chosen remain in effect until one of the following occurs Another SPI command A Set Horizontal Pitch DECSHORP command A Set Horizontal Spacing SHS command Reset or...

Page 247: ...or pixels as the unit for certain control functions as noted under the individual commands in this chapter In some cases SSU works with Positioning Unit Mode PUM to determine the unit used If PUM is reset characters are used regardless of the SSU setting If PUM is set decipoints centipoints or pixels are used based on the SSU setting In other cases SSU is used alone and PUM has no effect SSU remai...

Page 248: ...has no immediate effect Select the SVS parameter as follows Ps Centipoints LPI 0 1200 6 1 1800 4 2 2400 3 3 600 12 4 900 8 5 1416 6 30mm 5mm 6 2136 4 30mm 7 5mm 7 2856 3 30mm 10 mm 8 720 12 30mm 2 5 mm 9 3600 2 in SVS does not affect character size or vertical tab stops The following table shows the resulting error accumulation over 25 centimeters Error Parameter Lines 1 300 in Inches Millimeters ...

Page 249: ... Unit Mode PUM and regardless of whether the tab stop is on the grid See also Horizontal Tab HT and Vertical Tab VT Error Handling Unrecognized parameters are ignored VPA Vertical Position Absolute Moves to a new active vertical position The horizontal position is unchanged Motion occurs either up or down Source Application Destination Levels 2 3 Format CSI Pn d 9 11 6 4 Description Select the VPA...

Page 250: ...s command interacts with coordinate system bounds If the Pn is more than the current vertical position then the current vertical position is set to top margin and the first character flag is set There is no change if Pn is less than 5 decipoints VPR Vertical Position Relative Moves the active vertical position down by the specified number of units The horizontal position does not change Source App...

Page 251: ... print area size Character adjustment using the First Character flag Partial line motion Side effects of positioning controls Conditional Form Feed Conditional Sheet Feed Page break The page coordinate system defines a logical page The relationship between a logical page and physical printed pages is determined by the paper size Coordinate System Models There are two coordinate system models the c...

Page 252: ...odel the coordinates of a print position are specified in decipoint units exactly 1 720 inch centipoint units exactly 1 7200 inch or printer dependent pixels The point model is more complex than the character cell model It requires that a particular location in the character box be specified as the origin of the character box Subsequent point mode addressing is relative to this origin The origin f...

Page 253: ...ystem origin is at 1 1 in pixels decipoints or centipoints For a 300 dpi printer the next diagonal pixel is at 2 2 in pixel units but at 25 25 in centipoints Similarly a decipoint coordinate of 2 2 is at 11 11 in centipoints Positioning and Movement Active Horizontal Position This is the horizontal position where printing will occur next It is updated after each print operation Active Vertical Pos...

Page 254: ...ne beyond bottom margin leads to Form Feed All Form Feed Absolute All Sets FCF Clears RMF Clears PLU PLD and Superscript Subscript Horizontal Position Absolute Absolute Movement is possible with in left and right margin All Pn less than right margin Resets RMF Other Pn values Sets the RMF Horizontal Position Backward Relative Maximum backward movement possible is up to left margin All Command igno...

Page 255: ...count In RESET mode command sets the FCF flag Vertical Position Backward Relative Can go up to top margin All Clears PLU PLD count and Superscript Subscript count Sets the FCF if the resulting vertical position is above top margin Vertical Position Relative Relative Performs the FF if resulting vertical position is below bottom margin All Clears PLU PLD count and Superscript Subscript count In RES...

Page 256: ... group Grid The positions on the page where the printer places pixels Pixel Aspect Ratio The relationship between the length of the pixel to its width For example a square pixel has a pixel aspect ratio of 1 to 1 or 100 to 100 A pixel twice as high as it is wide has a pixel aspect ratio of 2 to 1 or 200 to 100 Pixel Spot The actual area imaged for each pixel The shape and size of a pixel spot is p...

Page 257: ...argin Advancing the graphics active position to the next horizontal grid position The String Terminator ST control character causes the printer to exit Sixel Graphics mode and return to text mode A Graphics Carriage Return DECGCR command or a Graphics New Line DECGNL command moves the graphics active position to the graphics left margin The Graphics New Line command also moves the graphics active ...

Page 258: ...Return Moves the graphics active horizontal position to the graphics left margin Format DECGNL Graphics Next Line Moves the graphics active position to the graphics left margin and down one line of sixels six actual grid units Format Description This command is affected by page coordinate bounds ...

Page 259: ... an arbitrary distance unit Pn2 describes the horizontal size of a pixel in the same distance unit For example to define a pixel to be half as wide as it is tall send 200 100 for Pn1 and Pn2 The pixel aspect ratio times the horizontal grid size Ps3 of the protocol selector yields the vertical grid size Pn3 and Pn4 define the horizontal and vertical extent respectively in pixels Level 3 printers ig...

Page 260: ... value are treated as the maximum value If no sixel printable character follows the repeat count the repeat count is ignored If a graphics control code is received within a DECGRI sequence the repeat sequence is ignored This includes sequences in the range 21 to 2F 3A and 3C to 3E If multiple parameters are received separated by semicolons the printer uses the first parameter and ignores the rest ...

Page 261: ...e characters below hexadecimal 20 are printed out as periods on the right side An SP or hexadecimal 20 causes a blank apace in the equivalent print position By examining the printout you can see what data was actually sent to the printer 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 0123456789ABCDEF OD 0A 54 48 45 20 54 57 4F 20 44 4F 54 53 20 59 THE TWO DOTS Y 4F 55 20 4A 55 53 54 20 53 41 57 2...

Page 262: ...00029B 262 APPENDIX B FONT PRINT SAMPLES The following samples were printed at 10 characters per inch CPI at 6 lines per inch LPI HIGH SPEED FONT GOTHIC DRAFT DATA PROCESSING FONT GOTHIC NEAR LETTER QUALITY CHARACTER GRAPHICS FONT ...

Page 263: ...GEK 00029B 5000 Series Programmer s Manual 263 CORRESPONDENCE FONT BETTER QUALITY THAN DRAFT BETTER SPEED THAN NLQ OCR A FONT OCR B FONT COURIER NLQ FONT ITALIC NLQ FONT ...

Page 264: ...Appendix B Font Samples GEK 00029B 264 HIGH SPEED 2 ...

Page 265: ...s for this to be accomplished depending on the setting of ANSI emulation option 1 ANSI emulation option 1 is used to enable the SI shift In and SO shift out ASCII codes to activate and deactivate special mode functions In this case the special mode function is bar codes With ANSI emulation option 1 in active code SO will turn on or activate the bar code mode SI will turn bar codes off Enter the PO...

Page 266: ...en POSTNET codes without exiting bar code printing A comma will add no additional space between symbols The distance between two symbols will be the quiet zone 0 4 inch A space character will add 0 1 inch of space between symbols One space character and the quiet zone will equal a total of 0 5 inch A horizontal tab will add the appropriate number of empty spaces to go to the next tab before starti...

Page 267: ...to top of bar code after printing is ignored while using POSTNET See Appendix D General Printer Options Group 2 If the symbol exceeds the right margin the symbol is cut off at the margin POSTNET codes cannot be used on the same line as the high speed font Exit the bar code mode before sending other control codes or escape sequences ...

Page 268: ...endix D Descriptions of Strapping Options GEK 00029B 268 APPENDIX D DESCRIPTION OF STRAPPING OPTIONS This appendix contains descriptions for firmware strap settings which are changed using the Set Up menu ...

Page 269: ...sy Demand per character Enabled Disabled 19 Software control of Busy Disabled Enabled 20 Busy Does not reflect ONLINE LOCAL FAULT PO status Reflects ONLINE LOCAL FAULT PO status 21 Busy Does not reflect FAULT ONLINE LOCAL status Reflects FAULT ONLINE LOCAL status 22 Busy Does not reflect PO ONLINE LOCAL PO status Reflects PO ONLINE LOCAL PO status 23 ACK Does not reflect PO Reflects PO 24 ACK Does...

Page 270: ...Disabled 01 03 Reserved for future use 04 Prime on Select Disabled Enabled 05 No Fault on PO or Deselect Disabled Enabled 06 07 Reserved for future use 08 8 bit Data Enabled Bit 8 equals 0 09 32 Reserved for future use Bits 33 64 Function If Enabled If Disabled 33 39 Reserved for future use 40 Parallel timeout Disabled Enabled 41 64 Reserved for future use ...

Page 271: ... C sequence Reset when ESC C is received 04 Reserved 05 Reserved 06 GENCIC control Set 80 8F as control Reset 80 9F per GENCS2 07 GENCS2 control Set 80 9F 15 print Reset 80 9F ignore 08 Line grid control LF next LPI grid LF LF 09 Dbl strike shadow control Double Strike Shadow 10 Character Graphics Postnet Char Graphics in SCR 2 esc 12m Canadian Postnet in SGR 2 esc 12m 11 Bit 8 control 8th bit is ...

Page 272: ...aracter Set Select default Character set 2 Character set 1 06 Default Form Length 12 Form 11 Form 07 Reserved Copy of AUTOLF_ON_CR from Print Control Menu 08 Reserved Copy of AUTOCR_ON_VM from Print Control Menu 09 NLQ II Can use mulitnational No multinational 10 Reserved Copy of AUTOCR_ON_LF from Print Control Menu 11 Reserved Copy of AUTOCR_ON_FF from Print Control Menu 12 Ignore Esc I Ignore Es...

Page 273: ... font control Codes 128 255 are Code Page Codes 128 255 are Italics 03 Default Print Quality Default print quality is NLQ Default print quality is draft 04 Default Perf Skip 1 inch perf skip default No perf skip default 05 Ignore Esc I Ignore Esc I command Process Esc I command 06 136 Col Simulate 136 Columns Standard 132 Columns 07 32 Reserved ...

Page 274: ...e Disable Disable Disable 11 Gothic Draft Disable Enable Disable Disable 12 Char Graphics Enable Enable Disable Disable 13 Gothic NLQ Disable Disable Enable Disable 14 Courier NLQ Enable Disable Enable Disable 15 High Speed Disable Enable Enable Disable 16 OCR A NLQ Enable Enable Enable Disable 17 OCR B NLQ Disable Disable Disable Enable 18 Italics NLQ 13 16 Alternate Font Selection Defaults Enabl...

Page 275: ...GEK 00029B 5000 Series Programmer s Manual 275 APPENDIX E DSC CODE CHARTS ...

Page 276: ...Appendix E DSC Code Charts GEK 00029B 276 ...

Page 277: ...GEK 00029B 5000 Series Programmer s Manual 277 ...

Page 278: ...Appendix E DSC Code Charts GEK 00029B 278 ...

Page 279: ...GEK 00029B 5000 Series Programmer s Manual 279 ...

Page 280: ...Appendix E DSC Code Charts GEK 00029B 280 ...

Page 281: ...GEK 00029B 5000 Series Programmer s Manual 281 ...

Page 282: ...Appendix E DSC Code Charts GEK 00029B 282 ...

Page 283: ...GEK 00029B 5000 Series Programmer s Manual 283 ...

Page 284: ...Appendix E DSC Code Charts GEK 00029B 284 ...

Page 285: ...GEK 00029B 5000 Series Programmer s Manual 285 ...

Page 286: ...Appendix E DSC Code Charts GEK 00029B 286 ...

Page 287: ...GEK 00029B 5000 Series Programmer s Manual 287 ...

Page 288: ...Appendix E DSC Code Charts GEK 00029B 288 ...

Page 289: ...GEK 00029B 5000 Series Programmer s Manual 289 ...

Page 290: ...Appendix E DSC Code Charts GEK 00029B 290 ...

Page 291: ...GEK 00029B 5000 Series Programmer s Manual 291 ...

Page 292: ...Appendix E DSC Code Charts GEK 00029B 292 ...

Page 293: ...GEK 00029B 5000 Series Programmer s Manual 293 ...

Page 294: ...Appendix E DSC Code Charts GEK 00029B 294 ...

Page 295: ...GEK 00029B 5000 Series Programmer s Manual 295 ...

Page 296: ...Appendix E DSC Code Charts GEK 00029B 296 ...

Page 297: ...GEK 00029B 5000 Series Programmer s Manual 297 ...

Page 298: ...Appendix E DSC Code Charts GEK 00029B 298 ...

Page 299: ...GEK 00029B 5000 Series Programmer s Manual 299 ...

Page 300: ...Appendix E DSC Code Charts GEK 00029B 300 ...

Page 301: ...GEK 00029B 5000 Series Programmer s Manual 301 ...

Page 302: ...Appendix E DSC Code Charts GEK 00029B 302 ...

Page 303: ...GEK 00029B 5000 Series Programmer s Manual 303 ...

Page 304: ...Appendix E DSC Code Charts GEK 00029B 304 ...

Page 305: ...GEK 00029B 5000 Series Programmer s Manual 305 ...

Page 306: ...Appendix E DSC Code Charts GEK 00029B 306 ...

Page 307: ...GEK 00029B 5000 Series Programmer s Manual 307 ...

Page 308: ...Appendix E DSC Code Charts GEK 00029B 308 ...

Page 309: ...GEK 00029B 5000 Series Programmer s Manual 309 ...

Page 310: ...26 Vertical Tab Set VTS 28 VFU Channel Command GENVFU 44 Control Codes 14 Control Sequence Introducer CSI 19 Control Sequence Introducer CSI 14 Device Control 1 DC1 14 Device Control 3 DC3 14 Electronic Vertical Format Unit 42 ESC See CSI Control Sequence Introducer ESC See Operating System Command Escape ESC 14 Escape Sequence Directory 16 EVFU See Electronic Vertical Format Unit Channel control ...

Page 311: ...5 Superscript subscript printing cancel 142 Superscript subscript printing select 142 Underlining 141 Unidirectional print mode select 139 Unidirectional printing turn on off 139 Variable line feed single 138 Vertical tab stops set 136 Vertical tabs multi channel 0 7 set 137 Control Codes 126 BEL Bell 126 BS Backspace 126 CAN Cancel 126 CR Carriage Return 126 DC1 Device Control 1 126 DC2 Device Co...

Page 312: ...al tab stops set DECSVTS 191 Vertical tab set 159 Control codes 155 BEL Bell 155 BS Backspace 155 CAN Cancel 157 CR Carriage return 156 DC1 Device Control 1 156 DC3 Device Control 3 157 ESC Escape 157 FF Form feed 156 SI Shift in 156 SO Shift out 156 SUB Substitute 157 VT Vertical tab 156 line terminators 10 O operating system command OSC 9 P PPL 3 195 7 bit Versus 8 bit environments 196 C1 contro...

Page 313: ...Return Slew Zero or Edit Mode 66 DC1 Ready Select 66 DC3 Busy Select 67 DLE High vertical density graphics 67 ENQ Normal density plot line 67 EOT High density plot line 67 ETX End of transmission 67 FF Form Feed 67 HT Horizontal Tab 67 LF Line Feed 67 RS Record Separator 67 SI Shift In 68 SO Shift Out 68 SP Space 68 UNDL Underline 68 US Unit Separator 68 VT Vertical Tab 68 Bell code BEL 66 Control...

Page 314: ... Set Cancel 88 Font Selection 89 High density graphics 103 High horizontal density graphics 102 High vertical density graphics 102 Normal density graphics 103 Overscoring 90 Print Control Codes 92 Select International Character Set 84 Set Form Length in Lines 93 Set Forms Length in Inches 93 Set line spacing 1 6 inch 94 Set line spacing 1 8 inch 95 Set line spacing 7 72 inch 96 Set line spacing n ...

Reviews: