LP 1000 (260-2804) Hewlett-Packard Control Codes Faxback Doc. # 4726
The following table shows codes that are effective in the Hewlett-Packard
LaserJet+ emulation mode.
___________________________________________________________________________
Hex |Dec |ASCII |Function
_____|_____|_______|_______________________________________________________
08 |08 |BS |Backspace
_____|_____|_______|_______________________________________________________
0A |10 |LF |Line Feed
_____|_____|_______|_______________________________________________________
0C |12 |FF |Form Feed
_____|_____|_______|_______________________________________________________
0D |13 |CR |Carriage Return
_____|_____|_______|_______________________________________________________
0E |14 |SO |Shift Out; selects secondary character font
_____|_____|_______|_______________________________________________________
0F |15 |SI |Shift In; selects primary character font
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Move cursor horizontally (by columns)
26 | 38 | & | n = col. no., or
61 | 97 | a | "+" n or "-" n for relative movement
n | n | n |
43 | 67 | C |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Move cursor horizontally (by decipoints)
26 | 38 | & | n = decipoint no., or
61 | 97 | a | "+" n or "-" n for relative movement
n | n | n |
48 | 72 | H |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set left margin
26 | 38 | & | n = col. no.
61 | 97 | a |
n | n | n |
4C | 76 | L |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set right margin
26 | 38 | & | n = col. no.
61 | 97 | a |
n | n | n |
4D | 77 | M |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Move cursor vertically (by lines)
26 | 38 | & | n = line no., or
61 | 97 | a | "+n" or "-n" for relative movement
n | n | n |
52 | 82 | R |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Move cursor vertically (by decipoints)
26 | 38 | & | n = decipoint no., or
61 | 97 | a | "+n" or "-n" for relative movement
n | n | n |
56 | 86 | V |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Stop automatic underlining
26 | 38 | & |
64 | 100 | d |
40 | 64 | @ |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Start automatic underlining
26 | 38 | & |
64 | 100 | d |
44 | 68 | D |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Push/pop position
26 | 38 | & | n=0 to push
66 | 102 | f | 1 to pop
n | n | n |
53 | 83 | S |
_____|_____|_______|_______________________________________________________
1B |27 :ESC |Macro control
26 | 38 | & | n = function no.
66 | 102 | f | (0 to 10)
n | n | n |
58 | 88 | X |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Macro ID
26 | 38 | & | n = macro ID number
66 | 102 | f |
n | n | n |
59 | 89 | Y |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set line termination mode
26 | 38 | & | n = mode no.
6B | 107 | k | (0 to 3; default = 0)
n | n | n |
47 | 71 | G |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set HMI
26 | 38 | & | n/120" = HMI
6B | 107 | k | n = 0 to 126
n | n | n |
48 | 72 | H |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set/cancel compressed pitch
26 | 38 | & | n = 0 for standard pitch
6B | 107 | k | 2 for compressed
n | n | n |
53 | 83 | S |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set VMI
26 | 38 | & | n/48" = VMI
6C | 108 | 1 | n = 0 to 126
n | n | n |
43 | 67 | C |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set lines per inch
26 | 38 | & | n = lines per inch
6C | 108 | 1 | (1, 2, 3, 4, 6, 8, 12, 16, 24, or 48)
n | n | n |
44 | 68 | D |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set top margin
26 | 38 | & | n = lines from top
6C | 108 | 1 | (0 to 64 at current VMI)
n | n | n |
45 | 69 | E |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set text length
26 | 38 | & | n = lines from top margin
6C | 108 | 1 | (current VMI)
n | n | n |
46 | 70 | F |
_____|_____|_______:_______________________________________________________
1B |27 |ESC |Paper input control;
26 | 38 | & | ignored (LP 1000 executes CR - FF)
6C | 108 | 1 |
n | n | n |
48 | 72 | H |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Perforation skip ON/OFF
26 | 38 | & | n = 0 -- Skip OFF (text length disabled)
6C | 108 | 1 | 1 -- Skip ON (default)
n | n | n |
4C | 76 | L |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set page orientation
26 | 38 | & | n = 0 -- portrait
6C | 108 | 1 | 1 -- landscape
n | n | n |
4F | 79 | 0 |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set paper size
26 | 38 | & | n = lines per page
6C | 108 | 1 | (at current VMI)
n | n | n |
50 | 80 | P |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Print multiple copies
26 | 38 | & | n = number of copies
6C | 108 | 1 | (1 to 99)
n | n | n |
58 | 88 | X |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Ignore control codes
26 | 38 | & | n = number of bytes to print
70 | 112 | p |
n | n | n |
58 | 88 | X |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Enable/disable automatic wrap-around
26 | 38 | & | n = 0 -- enable
73 | 115 | s | 1 -- disable
n | n | n |
43 | 67 | C |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Select symbol set for primary font;
28 | 40 | ( | n1 and n2 specify symbol set
nl | nl | nl |
n2 | n2 | n2 |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set primary font defaults
28 | 40 | ( | n = 0 to 3
n | n | n |
40 | 64 | @ |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Designate download font as primary
28 | 40 | ( | n = font ID no.
n | n | n |
58 | 88 | X |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set stroke weight for primary font
28 | 40 | ( | n = stroke weight
73 | 115 | s | (-7 to 7; default = 0)
n | n | n |
42 | 66 | B |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set character pitch for primary font
28 | 40 | ( | n = pitch
73 | 115 | s | (default = 10)
n | n | n |
48 | 72 | H |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Select proportional/monospaced for primary font
28 | 40 : ( | n = 0 -- monospaced
73 | 115 | s | 1 -- proportional
n | n | n |
50 | 80 | P |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Select character style for primary font
28 | 40 | ( | n = 0 -- upright
73 | 115 | s | 1 -- italic
n | n | n |
53 | 83 : S |
_____:_____|_______|_______________________________________________________
1B |27 |ESC |Select typeface for primary font
28 | 40 | ( | n = 0 to 10
73 | 115 | s |
n | n | n |
54 | 84 | T |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set Character height for primary font
28 | 40 | ( | n = point size (n/72")
73 | 115 | s |
n | n | n |
56 | 86 | V |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Download Character
28 | 40 | ( | n = number of byte
73 | 115 | s |
n | n | n |
57 | 87 | W |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Select symbol set for secondary font;
29 | 41 | ) | n1 and n2 specify symbol set
n1 | n1 | n1 |
n2 | n2 | n2 |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set secondary font defaults
29 | 41 | ) | n = 0 to 3
n | n | n |
40 | 64 | @ |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Designate download font as secondary
29 | 41 | ) | n = font ID no.
n | n | n |
58 | 88 | X |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set stroke weight for secondary font
29 | 41 | ) | n = stroke weight
73 | 115 | s | (-7 to 7; default = 0)
n | n | n |
42 | 66 | B |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set character pitch for secondary font
29 | 41 | ) | n = pitch
73 | 115 | S | (default = 10)
n | n | n |
48 | 72 | H |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Select proportional/monospaced for secondary
29 | 41 | ) |font
73 | 115 | s | n = 0 -- monospaced
n | n | n | 1 -- proportional
50 | 80 | P |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Select character style for secondary font
29 | 41 | ) | n = 0 -- upright
73 | 115 | s | 1 -- italic
n | n | n |
53 | 83 | S |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Select typeface for secondary font
29 | 41 | ) | n = 0 to 10
73 | 115 | s |
n | n | n |
54 | 84 | T |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set Character height for secondary font
29 | 41 | ) | n = point size (n/72")
73 | 115 | s |
n | n | n |
56 | 86 | V |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Create font descriptor
29 | 41 | ) | n = number of byte
73 | 115 | s |
n | n | n |
57 | 87 | W |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Transfer raster graphics
2A | 42 | * | n = number of graphic date
62 | 98 | 1 |
n | n | n |
57 | 87 | W |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set horizontal rule/pattern size (in dots)
2A | 42 | * | 1 dot = 1/300"
63 | 99 | c |
n | n | n |
41 | 65 | A |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set vertical rule/pattern size (in dots)
2A | 42 | * | 1 dot = 1/300"
63 | 99 | c |
n | n | n |
42 | 66 | B |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Specify font ID
2A | 42 | * | n = 1 to 32767
63 | 99 | c |
n | n | n |
44 | 68 | D |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Specify Character code
2A | 42 | * | (for downloaded character)
63 | 99 | c | n = 0 to 255
n | n | n |
45 | 69 | E |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Font and character control
2A | 42 | * | n = 1 to 6
63 | 99 | c |
n | n | n |
46 | 70 | F |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Designate pattern ID
2A | 42 | * | n = 1 to 6 for patterns
63 | 99 | c | n = 1 to 100 for gray scales
n | n | n |
47 | 71 | G |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set horizontal rule/pattern size (in decipoints)
2A | 42 | * | 1 decipoint = 1/720"
63 | 99 | c |
n | n | n |
48 | 72 | H |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Print rule/pattern
2A | 42 | * | n = 0 -- rule
63 | 99 | c | 2 -- gray scale
n | n | n | 3 -- predefined pattern
50 | 80 | P |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Set vertical rule/pattern size (in decipoints)
2A | 42 | * | 1 decipoint = 1/720"
63 | 99 | c |
n | n | n |
56 | 86 | V |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Move cursor horizontally (by dots)
2A | 42 | * | n = dot no.; or
70 | 112 | p | "+n" or "-n" for relative movement
n | n | n |
58 | 88 | X |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Move cursor vertically (by dots)
2A | 42 : * | n = dot no.; or
70 | 112 | p | "+n" or "-n" for relative movement
n | n | n |
59 | 89 | Y |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |End raster graphics
2A | 42 | * |
72 | 114 | r |
42 | 66 | B |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Start raster graphics
2A | 42 | * | n = 0 -- start from left limit
72 | 114 | r | 1 -- start from AP
n | n | n |
41 | 65 | A |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Select raster graphics resolution
2A | 42 | * | n = 75, 100,150, or 300
74 | 116 | t |
n | n | n |
52 | 82 | R |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Clear left and right margin
39 | 57 | 9 |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Half line feed
3D | 61 | = |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Reset
45 | 69 | E |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Start disable of function codes
59 | 8 | Y |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Stop disable of function codes
5A | 90 | Z |
_____|_____|_______|_______________________________________________________
1B |27 |ESC |Interface self-test
7A | 122 | Z |
_____:_____:_______:_______________________________________________________
(dkh-07/27/93)
Privacy Policy