Brother International PJ-883 ESC/ P Brother Command Reference - Page 52

ESC D Specify horizontal tab position

Page 52 highlights

ESC/P Command Reference ESC D Specify horizontal tab position ASCII: ESC D Hexadecimal: 1B 44 [n]k [n]k NUL 00h Parameters 1≤n≤255, 0≤k≤32 Description  The horizontal tab position is the character width (when the command was specified)*n from the left margin.  Enter n values in ascending order and end the settings with NUL.  If an n value is smaller than a previous one, tab setting is ended.  Even if the character width is changed after the horizontal tab positions have been specified, the horizontal tab position settings do not change.  ESC D NUL cancels all horizontal tab positions.  If the left margin is moved, the horizontal tab positions are also moved by the same amount.  Up to 32 horizontal tab positions can be specified. However, horizontal tab positions beyond the right margin are invalid and only become valid when a change in the right margin setting or left margin setting moves the print area to include those tab positions.  The character width when the horizontal tabs are specified includes the settings for the character spacing, full-width character spacing or half-width character spacing. In addition, when a pitch of 10 cpi, 12 cpi, or 15 cpi, compressed characters or double-width characters are specified, that character width is considered as the unit.  When proportional pitch is specified with ESC p, horizontal tab positions are specified at 10 cpi.  When the printer is turned on, a horizontal tab position is specified every 8 columns at 10 cpi. Even if the character width is changed before the horizontal tab positions has been specified, the horizontal tab positions do not change. Left edge Left margin position ・ Tab position Tab position Right margin position Column 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ・ ・ Unprinted area HT code HT code Printable area Unprinted area Example: After the left margin is specified as Column 3 and the right margin as Column 15, horizontal tabs were specified at Column 5 and Column 10, and HT were performed. - 46 - 5. Control Command Details

  • 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

ESC/P Command Reference
- 46 -
5. Control Command Details
ESC D
Specify horizontal tab position
ASCII:
ESC
D
n
k
NUL
Hexadecimal: 1B
44
n
k
00h
Parameters
1≤
n
≤255
,
0≤
k
≤32
Description
The horizontal tab position is the character width (when the command was specified)*n from the left
margin.
Enter n values in ascending order and end the settings with NUL.
If an n value is smaller than a previous one, tab setting is ended.
Even if the character width is changed after the horizontal tab positions have been specified, the horizontal
tab position settings do not change.
ESC D NUL cancels all horizontal tab positions.
If the left margin is moved, the horizontal tab positions are also moved by the same amount.
Up to 32 horizontal tab positions can be specified. However, horizontal tab positions beyond the right
margin are invalid and only become valid when a change in the right margin setting or left margin setting
moves the print area to include those tab positions.
The character width when the horizontal tabs are specified includes the settings for the character spacing,
full-width character spacing or half-width character spacing. In addition, when a pitch of 10 cpi, 12 cpi, or
15 cpi, compressed characters or double-width characters are specified, that character width is
considered as the unit.
When proportional pitch is specified with ESC p, horizontal tab positions are specified at 10 cpi.
When the printer is turned on, a horizontal tab position is specified every 8 columns at 10 cpi.
Even if the character width is changed before the horizontal tab positions has been specified, the
horizontal tab positions do not change.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Unprinted area
HT code
Left edge
Left margin position
Right margin position
Printable area
Example:
After the left margin is specified as Column 3 and the right margin as Column 15,
horizontal tabs were specified at Column 5 and Column 10, and HT were performed.
Column
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Tab position
Tab position
HT code
Unprinted area