LP 990 (260-2879) Control Codes Faxback Doc. # 4684 HP LASERJET SERIES II A summary of the commands available in this emulation are listed in the table below. FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL CONTROL CODES Back space BS 08 8 Horizontal tab HT 09 9 Line feed LF 0A 10 Form feed FF 0C 12 Carriage return CR 0D 13 Shift out SO 0E 14 Shift in SI 0F 15 Escape ESC 1B 27 Space SP 20 32 JOB CONTROL ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Interface self test ESC z 1B 7A 27 122 Printer reset ESC E 1B 45 27 69 Number of copies ESC &|nX 1B 26 6C 58 27 38 108 n 88 LINE and PAGE CONTROL ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Paper handling Current page unchanged ESC &10H 1B 26 6C 30 48 27 38 108 48 72 Paper cassette ESC &|1H 1B 26 6C 31 48 27 38 108 49 72 Manual feed ESC &|2H 1B 26 6C 32 48 27 38 108 50 72 Envelope manual feed &|3H 1B 26 6C 33 48 27 38 108 51 72 Second cassette unit &|4H 1B 26 6C 34 48 27 38 108 52 72 Envelope feeder &|6H 1B 26 6C 36 48 27 38 108 54 72 PAGE LENGTH and SIZE ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Page size Executive ESC &|1A 1B 26 6C 31 41 27 38 108 49 65 Letter ESC &|2A 1B 26 6C 32 41 27 38 108 50 65 Legal ESC &|3A 1B 26 6C 33 41 27 38 108 51 65 Invoice ESC &|24A 1B 26 6C 32 34 41 27 38 108 50 52 65 A4 ESC &|26A 1B 26 6C 32 36 41 27 38 108 50 54 65 B5 ESC &|31A 1B 26 6C 33 31 41 27 38 108 51 49 65 Monarch ESC &|80A 1B 26 6C 38 30 41 27 38 108 56 48 65 Commercial 10 (Business)ESC &|81A 1B 26 6C 38 31 41 27 38 108 56 49 65 International DL ESC &|90A 1B 26 6C 39 30 41 27 38 108 57 48 65 International C5 ESC &|91A 1B 26 6C 39 31 41 27 38 108 57 40 65 Page length Number of lines ESC &|nP 1B 26 6C n 50 27 38 108 n 80 Page orientation Portrait ESC &|0O 1B 26 6C 30 4F 27 38 108 48 79 Landscape ESC &|10 1B 26 6C 31 4F 27 38 108 48 79 MARGINS and TEXT LENGTH ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Top Margin Number of lines ESC &|nE 1B 26 6C n 45 27 38 108 n 69 Text Length Number of lines ESC &|nF 1B 26 6C n 46 27 38 108 n 70 Left margin Left (column number) ESC &|anL 1B 26 61 30 4C 27 38 97 48 76 Right margin Right (column number) ESC &|anM 1B 26 61 n 4D 27 38 97 n 77 Clear side margin settings ESC 9 1B 39 27 57 PERFORATION SKIP MODE ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Perforation skip Disable ESC &|0L 1B 26 6C 30 4C 27 38 108 48 76 Enable ESC &|1L 1B 26 6C 31 4C 27 38 108 49 76 HORIZONTAL COLUMN SPACING ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Horizontal motion index Number of 1/120" increments ESC &knH 1B 26 6B 48 27 38 107 n 72 VERTICAL LINE SPACING ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Set vertical motion index Number of 1/48" increments ESC &|nC 1B 26 6C n 43 27 38 108 n 67 Set lines per inch 1 lines/inch ESC &|1C 1B 26 6C 31 44 27 38 108 49 68 2 lines/inch ESC &|2D 1B 26 6C 32 44 27 38 108 50 68 3 lines/inch ESC &|3D 1B 26 6C 33 44 27 38 108 51 68 4 lines/inch ESC &|4D 1B 26 6C 34 44 27 38 108 52 68 6 lines/inch ESC &|6D 1B 26 6C 36 44 27 38 108 54 68 8 lines/inch ESC &|8D 1B 26 6C 38 44 27 38 108 56 68 12 lines/inch ESC &|12D 1B 26 6C 31 32 44 27 38 108 49 50 68 16 lines/inch ESC &|16D 1B 26 6C 31 36 44 27 38 108 49 54 68 24 lines/inch ESC &|24D 1B 26 6C 31 34 44 27 38 108 50 52 68 48 lines/inch ESC &|48D 1B 26 6C 31 38 44 27 38 108 52 56 68 CURSOR CONTROL HORIZONTAL and VERTICAL ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Horizontal Columns ESC &anC 1B 26 61 n 43 27 38 97 n 67 Dots ESC *pnX 1B 2A 70 n 58 27 42 112 n 88 Decipoints ESC &anH 1B 26 61 n 48 27 38 97 n 72 Vertical Lines ESC &anR 1B 26 61 n 52 27 38 97 n 82 Dots ESC *anY 1B 2A 70 n 59 27 42 112 n 89 Decipoints ESC &anV 1B 26 61 n 56 27 38 97 n 86 Forward half line feed ESC = 1B 3D 27 61 LINE TERMINATION ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Print line termination CR=CR LF=LF FF=FF ESC &k0G 1B 26 6B 30 47 27 38 107 48 71 CR=CR+LF LF=LF FF=FF ESC &k1F 1B 26 6B 31 47 27 38 107 49 71 CR=CR LF=CR+LF FF=CR+LF ESC &k2G 1B 26 6B 32 47 27 38 107 50 71 CR=CR+LF CL=CR+LF ESC &k3G 1B 26 6B 33 47 27 38 107 51 71 FF=CR+FF PUSH/POP POSITION ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Push/Pop position Push ESC &f0S 1B 26 66 30 53 27 38 102 48 83 Pop ESC &f1S 1B 26 66 31 53 27 38 102 49 83 CHARACTER and FONT CONTROL SYMBOL SET SELECTION ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Primary font symbol set Roman-8 ESC (8U 1B 28 38 55 27 40 56 85 Math8 ESC (0A 1B 28 30 41 27 40 48 65 Math7 ESC (8M 1B 28 38 4D 27 40 56 77 Line Draw ESC (0B 1B 28 30 42 27 40 48 66 ISO 60:Norwegian Version 1 ESC (0D 1B 28 30 44 27 40 48 68 ISO 61:Norwegian Version 2 ESC (1D 1B 28 31 44 27 40 49 68 Roman Extensions ESC (0E 1B 28 30 45 27 40 48 69 ISO 4:United Kingdom ESC (1E 1B 28 31 45 27 40 49 70 ISO 25:French ESC (0F 1B 28 30 46 27 40 48 70 ISO 69:French ESC (1F 1B 28 31 46 27 40 49 71 German ESC (0G 1B 28 30 47 27 40 48 71 ISO 21:German ESC (1G 1B 28 31 47 27 40 49 71 Greek8 ESC (8G 1B 28 38 47 27 40 56 73 ISO 15:Italian ESC (0I 1B 28 30 49 27 40 48 75 ISO 14:JIS-ASCII ESC (0K 1B 28 30 4B 27 40 48 75 ISO 57:Chinese ESC (2K 1B 28 32 4B 27 40 50 77 Technical-7 ESC (1M 1B 28 31 4D 27 40 49 78 ISO 100:ECMA-94 (Latin 1) ESC (0N 1B 28 30 4F 27 40 48 79 OCR A ESC (0O 1B 28 30 4F 27 40 48 79 OCR B ESC (1O 1B 28 31 4F 27 40 49 83 ISO 11:Swedish ESC (0S 1B 28 30 53 27 40 48 83 Spanish ESC (1S 1B 28 31 53 27 40 49 83 ISO 17:Spanish ESC (2S 1B 28 32 53 27 40 50 83 ISO 10:Swedish ESC (3S 1B 28 33 53 27 40 51 83 ISO 16:Portuguese ESC (4S 1B 28 34 53 27 40 52 83 ISO 84:Portuguese ESC (5S 1B 28 35 53 27 40 53 83 ISO 85:Spanish ESC (6S 1B 28 36 53 27 40 54 83 ISO 6:ASCII ESC (0U 1B 28 30 55 27 40 48 85 Legal ESC (1U 1B 28 31 55 27 40 49 85 ISO 2:Intl Reference Version ESC (2U 1B 28 32 55 27 40 50 85 OEM-1 ESC (7U 1B 28 37 55 27 40 55 85 PC-8 ESC (10U 1B 28 31 30 55 27 40 49 48 85 PC-8 (D/N) ESC (11U 1B 28 31 31 55 27 40 49 49 85 Pi Font ESC (15U 1B 28 31 35 55 27 40 49 53 85 Secondary font symbol set ESC )nm 1B 29 n m 27 41 n m SPACING ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Primary font character spacing Proportional ESC (s1P 1B 28 73 31 50 27 40 115 49 80 Fixed ESC (s0P 1B 28 73 30 50 27 40 115 48 80 Secondary font character spacing Proportional ESC (s1P 1B 28 73 31 50 27 40 115 49 80 Fixed ESC (s0P 1B 28 73 30 50 27 40 115 48 80 PITCH ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Primary font pitch ESC (snH 1B 28 73 n 48 27 40 115 n 72 Secondary font pitch ESC )snH 1B 29 73 n 48 27 41 115 n 72 POINT SIZE ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Primary font point size ESC (snV 1B 28 73 n 56 27 40 115 n 72 Secondary font point size ESC )snV 1B 29 73 n 56 27 41 115 n 72 STYLE ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Primary font style Upright ESC (s0S 1B 28 73 30 53 27 40 115 48 83 Italic ESC (s1S 1B 28 73 31 53 27 40 115 49 83 Secondary font style Upright ESC )s0S 1B 28 73 30 53 27 40 115 48 83 Italic ESC )s1S 1B 28 73 31 53 27 40 115 49 83 CHARACTER THICKNESS ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Primary font thickness Ultra thin ESC (s-7B 1B 28 73 2D 37 42 27 40 115 45 55 42 Thin ESC (s-5B 1B 28 73 2D 35 42 27 40 115 45 53 42 Light ESC (s-3B 1B 28 73 2D 33 42 27 40 115 45 51 42 Medium ESC (s0B 1B 28 73 30 42 27 40 115 48 42 Bold ESC (s3B 1B 28 73 33 42 27 40 115 51 42 Black ESC (s5B 1B 28 73 35 42 27 40 115 53 42 Ultra Black ESC (s7B 1B 28 73 37 42 27 40 115 55 42 Secondary font thickness ESC )snB 1B 29 73 n 42 27 41 115 n 66 TYPEFACE ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Primary font typeface Line Printer ESC (s0T 1B 28 73 30 54 27 40 115 48 84 Pica ESC (s1T 1B 28 73 31 54 27 40 115 49 84 Elite ESC (s2T 1B 28 73 32 54 27 40 115 50 84 Courier ESC (s3T 1B 28 73 33 54 27 40 115 51 84 Helvetica ESC (s4T 1B 28 73 34 54 27 40 115 52 84 Times Roman ESC (s5T 1B 28 73 35 54 27 40 115 53 84 Gothic ESC (s6T 1B 28 73 36 54 27 40 115 54 84 Script ESC (s7T 1B 28 73 37 54 27 40 115 55 84 Prestige ESC (s8T 1B 28 73 38 54 27 40 115 56 84 Caslon ESC (s9T 1B 28 73 39 54 27 40 115 57 84 Orator ESC (s10T 1B 28 73 31 30 54 27 40 115 49 48 84 Presentations ESC (s11T 1B 28 73 31 31 54 27 40 115 49 49 84 Optima ESC (s17T 1B 28 73 31 37 54 27 40 115 49 55 84 Garamond ESC (s18T 1B 28 73 31 38 54 27 40 115 49 56 84 Cooper Black ESC (s19T 1B 28 73 31 39 54 27 40 115 49 57 84 Coronet Bold ESC (s20T 1B 28 73 32 30 54 27 40 115 50 48 84 Broadway ESC (s21T 1B 28 73 32 31 54 27 40 115 50 49 84 Bauer Bodini Black Condensed ESC (s22T 1B 28 73 32 32 54 27 40 115 50 50 84 Century Schoolbook ESC (s23T 1B 28 73 32 33 54 27 40 115 50 51 84 University Roman ESC (s24T 1B 28 73 32 34 54 27 40 115 50 52 84 Secondary font typeface ESC )snT 1B 28 73 n 54 27 40 115 n 84 FONT PITCH ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Primary & Secondary font pitch (Alternate method) 10.00 pitch ESC &k0S 1B 26 6B 30 53 27 38 107 48 83 16.66 pitch ESC &k2S 1B 26 6B 32 53 27 38 107 50 83 12.00 pitch ESC &k4S 1B 26 6B 34 53 27 38 107 52 83 Font default Primary font ESC (3@ 1B 28 33 40 27 40 51 64 Secondary font ESC )3@ 1B 29 33 40 27 40 51 64 UNDERLINE ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Automatic underline Fixed position ESC &d0D 1B 26 64 30 44 27 38 100 48 68 Floating position ESC &d3D 1B 26 64 33 44 27 38 100 51 68 Cancel ESC &d@ 1B 26 64 40 27 38 100 64 FONT MANAGEMENT ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Font ID Font ID number ESC *cnD 1B 2A 63 44 27 42 99 n 68 Character and font control Delete all fonts ESC *c0F 1B 2A 63 30 46 27 42 99 48 70 Delete all temporary fonts ESC *c1F 1B 2A 63 31 46 27 42 99 48 70 Delete font ESC *c2F 1B 2A 63 32 46 27 42 99 49 70 Delete character code ESC *c3F 1B 2A 63 33 46 27 42 99 50 70 Make font temporary ESC *c4F 1B 2A 63 34 46 27 42 99 51 70 Make font permanent ESC *c5F 1B 2A 63 35 46 27 42 99 52 70 Copy/Assign current font ESC *c6F 1B 2A 63 36 46 27 42 99 53 70 FONT SELECTION BY ID NUMBER ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Designate download fonts Primary font ESC (nX 1B 28 n 58 27 40 n 88 Secondary font ESC )nX 1B 29 n 58 27 41 n 88 SOFT FONT CREATION ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Download font description Number of bytes ESC )snW 1B 29 73 n 57 27 41 115 n 87 [DATA] Download character descriptor ESC (snW 1B 28 73 n 57 27 40 115 n 87 [DATA] Character code Decimal ASCII ESC *cnE 1B 2A 63 n 45 27 42 99 n 69 GRAPHICS CONTROL RASTER GRAPHICS ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Resolution 75 dots per inch ESC *t75R 1B 2A 74 37 35 52 27 42 116 55 53 82 100 dots per inch ESC *t100R 1B 2A 74 31 30 30 52 27 42 116 49 48 48 82 150 dots per inch ESC *t150R 1B 2A 74 31 35 30 52 27 42 116 49 53 48 82 300 dots per inch ESC *t300R 1B 2A 74 33 30 30 52 27 42 116 51 48 48 82 Start raster graphics Left graphics margin ESC *r0A 1B 2A 72 30 41 27 42 114 48 65 Current cursor ESC *r1A 1B 2A 72 31 41 27 42 114 49 65 Transfer raster graphics Number of bytes ESC *bnW 1B 2A 62 n 57 27 42 98 n 87 [DATA] End raster graphics ESC *rB 1B 2A 72 42 27 42 114 66 RECTANGLE DIMENSIONS ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Rectangle width (Horizontal Size) Number of dots ESC *cnA 1B 2A 63 n 48 27 42 99 n 65 Number of decipoints ESC *cnH 1B 2A 63 n 48 27 42 99 n 72 Rectangle height (Vertical size) Number of dots ESC *cnB 1B 2A 63 n 42 27 42 99 n 63 Number of decipoints ESC *cnV 1B 2A 63 n 56 27 42 99 n 86 RECTANGLE AREA FILL ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Print rule/pattern Black rule ESC *c0P 27 2A 63 30 50 27 42 99 48 80 Gray scale pattern ESC *c2P 27 2A 63 32 50 27 42 99 50 80 Defined pattern ESC *c3P 27 2A 63 33 50 27 42 99 51 80 Defined pattern Horizontal lines ESC *c1G 27 2A 63 31 47 27 42 99 49 71 Vertical lines ESC *c2G 27 2A 63 32 47 27 42 99 50 71 +45 deg. lines ESC *c3G 27 2A 63 33 47 27 42 99 51 71 -45 deg. lines ESC *c4G 27 2A 63 34 47 27 42 99 52 71 Grid ESC *c5G 27 2A 63 35 47 27 42 99 53 71 45 deg. grid ESC *c6G 27 2A 63 36 47 27 42 99 54 71 Gray scale pattern 2% gray ESC *c2G 27 2A 63 32 47 27 42 99 50 71 10% gray ESC *c10G 27 2A 63 31 30 47 27 42 99 49 49 71 15% gray ESC *c15G 27 2A 63 31 35 47 27 42 99 49 53 71 30% gray ESC *c30G 27 2A 63 33 30 47 27 42 99 51 48 71 45% gray ESC *c45G 27 2A 63 34 35 47 27 42 99 52 53 71 70% gray ESC *c70G 27 2A 63 37 30 47 27 42 99 55 48 71 90% gray ESC *c90G 27 2A 63 39 30 47 27 42 99 57 48 71 100% gray ESC *c100G 27 2A 63 31 30 30 47 27 42 99 49 48 48 71 MACRO CONTROL MACRO ID and CONTROL ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Macro ID Macro ID number ESC &fnY 1B 26 66 n 59 27 38 102 n 89 Define macro control Start macro definition ESC &f0X 1B 26 66 30 58 27 38 102 48 88 Stop macro definition ESC &f1X 1B 26 66 31 58 27 38 102 49 88 Execute macro ESC &f2X 1B 26 66 32 58 27 38 102 50 88 Call macro ESC &f3X 1B 26 66 33 58 27 38 102 51 88 Enable auto macro overlay ESC &f4X 1B 26 66 34 58 27 38 102 52 88 Disable auto macro overlay ESC &f5X 1B 26 66 35 58 27 38 102 53 88 Delete all macros ESC &f6X 1B 26 66 36 58 27 38 102 54 88 Delete all temp. macros ESC &f7X 1B 26 66 37 58 27 38 102 55 88 Delete macro ESC &f8X 1B 26 66 38 58 27 38 102 56 88 Make macro temporary ESC &f9X 1B 26 66 39 58 27 38 102 57 88 Make macro permanent ESC &f10X 1B 26 66 31 30 58 27 38 102 49 48 88 OTHER CONTROL ------------------------------------------------------------------------------ FUNCTION SEQUENCE MNEMONIC HEXADECIMAL DECIMAL ------------------------------------------------------------------------------ Select display functions mode ESC Y 1B 59 27 89 Cancel display functions mode ESC Z 1B 5A 27 90 Transparent print data Number of bytes ESC &pnX 1B 26 70 n 58 27 38 112 n 88 [DATA] Line wrap Enabled ESC &s0C 1B 26 73 30 43 27 38 115 48 67 Disabled (default) ESC &s1C 1B 26 73 31 43 27 38 115 49 67 (smm 07/27/93)