HP Deskjet 320 Solutions Guide - Page 179

AHP PCL Printer Commands and Control Codes

Page 179 highlights

A HP PCL Printer Commands and Control Codes HP PCL Printer Command Summary Command Topic Reset and Self-Test Control Paper Input Control (Media Source) Print Mode Dry Time2 Underline Line Termination End-of-Line Wrap Transparent Print Data Enhancement Control3 Display Functions SI/SO Control3 Table A-1. HP PCL Printer Command Summary Printer Feature Printer Command Decimal Equivalent Printer Control Commands Reset Self-test Eject page Feed from tray Manual feed1 Unidirectional left to right Bidirectional Unidirectional right to left Dry time in seconds Single fixed Double fixed Single float Double float Turn off CR=CR, LF=LF, FF=FF CR=CR+LF, LF=LF, FF=FF CR=CR, LF=CR+LF, FF=CR+FF CR=CR+LF, LF=CR+LF, FF=CR+FF Turn on Turn off No. of bytes E c E E c z Ec&¬0H Ec&¬1H Ec&¬2H Ec&k0W Ec&k1W Ec&k2W Ec&b#T Ec&d1D Ec&d2D Ec&d3D Ec&d4D Ec&d@ Ec&k0G Ec&k1G Ec&k2G Ec&k3G Ec&s0C Ec&s1C Ec&p#X[data] 027 069 027 122 027 038 108 048 072 027 038 108 049 072 027 038 108 050 072 027 038 107 048 087 027 038 107 049 087 027 038 107 050 087 027 038 098 # 084 027 038 100 049 068 027 038 100 050 068 027 038 100 051 068 027 038 100 052 068 027 038 100 064 027 038 107 048 071 027 038 107 049 071 027 038 107 050 071 027 038 107 051 071 027 038 115 048 067 027 038 115 049 067 027 038 112 #...# 088 Line-by-line on Line-by-line off Turn on Turn off Line-by-line on Line-by-line off Ec&k0E Ec&k1E E c Y E c Z Ec&k0F Ec&k1F 027 038 107 048 069 027 038 107 049 069 027 089 027 090 027 038 107 048 070 027 038 107 049 070 Hex Equivalent 1B 45 1B 7A 1B 26 6C 30 48 1B 26 6C 31 48 1B 26 6C 32 48 1B 26 6B 30 57 1B 26 6B 31 57 1B 26 6B 32 57 1B 26 62 # 54 1B 26 64 31 44 1B 26 64 32 44 1B 26 64 33 44 1B 26 64 34 44 1B 26 64 40 1B 26 6B 30 47 1B 26 6B 31 47 1B 26 6B 32 47 1B 26 6B 33 47 1B 26 73 30 43 1B 26 73 31 43 1B 26 70 #...# 58 1B 26 6B 30 45 1B 26 6B 31 45 1B 59 1B 5A 1B 26 6B 30 46 1B 26 6B 31 46 # Indicates the numeric value field. 1. This command is not used by the older model C2614A HP DeskJet Portable printer. 2. This command is only used by the HP DeskJet 310 and 320 printers. 3. This is an obsolete command. Hewlett-Packard suggests that it not be used in code developed for HP DeskJet 300 Series printers. HP PCL Printer Commands and Control Codes A-1

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202

HP PCL Printer Commands and Control Codes
A-1
A
HP PCL Printer Commands and Control Codes
HP PCL Printer Command Summary
Table A-1.
HP PCL Printer Command Summary
Command Topic
Printer Feature
Printer Command
Decimal Equivalent
Hex Equivalent
Printer Control Commands
Reset and Self-Test
Control
Reset
E
c
E
027 069
1B 45
Self-test
E
c
z
027 122
1B 7A
Paper Input Control
(Media Source)
Eject page
E
c
&
¬
0H
027 038 108 048 072
1B 26 6C 30 48
Feed from tray
E
c
&
¬
1H
027 038 108 049 072
1B 26 6C 31 48
Manual feed
1
E
c
&
¬
2H
027 038 108 050 072
1B 26 6C 32 48
Print Mode
Unidirectional left to right
E
c
&k0W
027 038 107 048 087
1B 26 6B 30 57
Bidirectional
E
c
&k1W
027 038 107 049 087
1B 26 6B 31 57
Unidirectional right to left
E
c
&k2W
027 038 107 050 087
1B 26 6B 32 57
Dry Time
2
Dry time in seconds
E
c
&b#T
027 038 098 # 084
1B 26 62 # 54
Underline
Single fixed
E
c
&d1D
027 038 100 049 068
1B 26 64 31 44
Double fixed
E
c
&d2D
027 038 100 050 068
1B 26 64 32 44
Single float
E
c
&d3D
027 038 100 051 068
1B 26 64 33 44
Double float
E
c
&d4D
027 038 100 052 068
1B 26 64 34 44
Turn off
E
c
&d@
027 038 100 064
1B 26 64 40
Line Termination
CR=CR, LF=LF, FF=FF
E
c
&k0G
027 038 107 048 071
1B 26 6B 30 47
CR=CR+LF, LF=LF, FF=FF
E
c
&k1G
027 038 107 049 071
1B 26 6B 31 47
CR=CR, LF=CR+LF, FF=CR+FF
E
c
&k2G
027 038 107 050 071
1B 26 6B 32 47
CR=CR+LF, LF=CR+LF, FF=CR+FF
E
c
&k3G
027 038 107 051 071
1B 26 6B 33 47
End-of-Line Wrap
Turn on
E
c
&s0C
027 038 115 048 067
1B 26 73 30 43
Turn off
E
c
&s1C
027 038 115 049 067
1B 26 73 31 43
Transparent Print
Data
No. of bytes
E
c
&p#X[data]
027 038 112 #...# 088
1B 26 70 #...# 58
Enhancement
Control
3
Line-by-line on
E
c
&k0E
027 038 107 048 069
1B 26 6B 30 45
Line-by-line off
E
c
&k1E
027 038 107 049 069
1B 26 6B 31 45
Display Functions
Turn on
E
c
Y
027 089
1B 59
Turn off
E
c
Z
027 090
1B 5A
SI/SO Control
3
Line-by-line on
E
c
&k0F
027 038 107 048 070
1B 26 6B 30 46
Line-by-line off
E
c
&k1F
027 038 107 049 070
1B 26 6B 31 46
#
Indicates the numeric value field.
1.
This command is not used by the older model C2614A
HP DeskJet Portable
printer.
2.
This command is only used by the
HP DeskJet 310 and 320
printers.
3.
This is an obsolete command. Hewlett-Packard suggests that it not be used in code developed for HP DeskJet 300 Series printers.