HP Deskjet 320 Solutions Guide - Page 180

Table A-1., HP PCL Printer Command Summary Continued

Page 180 highlights

Command Topic Paper Size † Line Spacing Page Orientation † Page Length † Perforation Skip Mode † Top Margin † Text Length † Side Margins † Text Scale Mode Cursor Positioning Table A-1. HP PCL Printer Command Summary (Continued) Printer Feature Printer Command Decimal Equivalent Page Control Commands Default paper size US executive US letter US legal A4 Number of lines per inch Landscape Portrait Number of lines per page On Off Number of lines Number of lines Clear Left (column no.) Right (column no.) Off On Move to row no. Move to column no. Horizontal no. (decipoints) Vertical no. (decipoints) Horizontal no. (dots) Vertical no. (dots) Horizontal motion index (no. of 1/ 120th inch moves) Ec&¬0A Ec&¬1A Ec&¬2A Ec&¬3A Ec&¬26A Ec&¬#D Ec&¬1O Ec&¬0O Ec&¬#P Ec&¬1L Ec&¬0L Ec&¬#E Ec&¬#F E c 9 Ec&a#L Ec&a#M Ec&k5W Ec&k6W Ec&a#R Ec&a#C Ec&a#H Ec&a#V Ec*p#X Ec*p#Y Ec&k#H 027 038 108 048 065 027 038 108 049 065 027 038 108 050 065 027 038 108 051 065 027 038 108 050 054 065 027 038 108 #...# 068 027 038 108 049 079 027 038 108 048 079 027 038 108 #...# 080 027 038 108 049 076 027 038 108 048 076 027 038 108 #...# 069 027 038 108 #...# 070 027 057 027 038 097 #...# 076 027 038 097 #...# 077 027 038 107 053 087 027 038 107 054 087 027 038 097 #...# 082 027 038 097 #...# 067 027 038 097 #...# 072 027 038 097 #...# 086 027 042 112 #...# 088 027 042 112 #...# 089 027 038 107 #...# 072 Vertical motion index (no. of 1/48th inch moves) Ec&¬#C 027 038 108 #...# 067 † These printer commands are listed in the order in which they must be sent. # Indicates the numeric value field. Hex Equivalent 1B 26 6C 30 41 1B 26 6C 31 41 1B 26 6C 32 41 1B 26 6C 33 41 1B 26 6C 32 36 41 1B 26 6C #...# 44 1B 26 6C 31 4F 1B 26 6C 30 4F 1B 26 6C #...# 50 1B 26 6C 31 4C 1B 26 6C 30 4C 1B 26 6C #...# 45 1B 26 6C #...# 46 1B 39 1B 26 61 #...# 4C 1B 26 61 #...# 4D 1B 26 6B 35 57 1B 26 6B 36 57 1B 26 61 #...# 52 1B 26 61 #...# 43 1B 26 61 #...# 48 1B 26 61 #...# 56 1B 2A 70 #...# 58 1B 2A 70 #...# 59 1B 26 6B #...# 48 1B 26 6C #...# 43 A-2 HP PCL Printer Commands and Control Codes

  • 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

A-2
HP PCL Printer Commands and Control Codes
Page Control Commands
Paper Size
Default paper size
E
c
&
¬
0A
027 038 108 048 065
1B 26 6C 30 41
US executive
E
c
&
¬
1A
027 038 108 049 065
1B 26 6C 31 41
US letter
E
c
&
¬
2A
027 038 108 050 065
1B 26 6C 32 41
US legal
E
c
&
¬
3A
027 038 108 051 065
1B 26 6C 33 41
A4
E
c
&
¬
26A
027 038 108 050 054 065
1B 26 6C 32 36 41
Line Spacing
Number of lines per inch
E
c
&
¬
#D
027 038 108 #...# 068
1B 26 6C #...# 44
Page Orientation
Landscape
E
c
&
¬
1O
027 038 108 049 079
1B 26 6C 31 4F
Portrait
E
c
&
¬
0O
027 038 108 048 079
1B 26 6C 30 4F
Page Length
Number of lines per page
E
c
&
¬
#P
027 038 108 #...# 080
1B 26 6C #...# 50
Perforation Skip
Mode
On
E
c
&
¬
1L
027 038 108 049 076
1B 26 6C 31 4C
Off
E
c
&
¬
0L
027 038 108 048 076
1B 26 6C 30 4C
Top Margin
Number of lines
E
c
&
¬
#E
027 038 108 #...# 069
1B 26 6C #...# 45
Text Length
Number of lines
E
c
&
¬
#F
027 038 108 #...# 070
1B 26 6C #...# 46
Side Margins
Clear
E
c
9
027 057
1B 39
Left (column no.)
E
c
&a#L
027 038 097 #...# 076
1B 26 61 #...# 4C
Right (column no.)
E
c
&a#M
027 038 097 #...# 077
1B 26 61 #...# 4D
Text Scale Mode
Off
E
c
&k5W
027 038 107 053 087
1B 26 6B 35 57
On
E
c
&k6W
027 038 107 054 087
1B 26 6B 36 57
Cursor Positioning
Move to row no.
E
c
&a#R
027 038 097 #...# 082
1B 26 61 #...# 52
Move to column no.
E
c
&a#C
027 038 097 #...# 067
1B 26 61 #...# 43
Horizontal no. (decipoints)
E
c
&a#H
027 038 097 #...# 072
1B 26 61 #...# 48
Vertical no. (decipoints)
E
c
&a#V
027 038 097 #...# 086
1B 26 61 #...# 56
Horizontal no. (dots)
E
c
*p#X
027 042 112 #...# 088
1B 2A 70 #...# 58
Vertical no. (dots)
E
c
*p#Y
027 042 112 #...# 089
1B 2A 70 #...# 59
Horizontal motion index (no. of 1/
120th inch moves)
E
c
&k#H
027 038 107 #...# 072
1B 26 6B #...# 48
Vertical motion index (no. of
1/48th inch moves)
E
c
&
¬
#C
027 038 108 #...# 067
1B 26 6C #...# 43
† These printer commands are listed in the order in which they must be sent.
# Indicates the numeric value field.
Table A-1.
HP PCL Printer Command Summary (Continued)
Command Topic
Printer Feature
Printer Command
Decimal Equivalent
Hex Equivalent