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

ESC ! Global formatting

Page 43 highlights

ESC/P Command Reference ESC ! Global formatting ASCII: ESC ! n Hexadecimal: 1B 21 n Parameters 0≤n≤255 Description  Specifies a combination of print modes.  Specifies modes depending on the bit value of n.  When the ESC ! code is used, a combination of multiple print modes can be specified at one time.  The priority order is from Bit 5 to Bit 2.  Bit 0 is available only if Bit 1 is 0.  Selected character styles are canceled, and the characters return to the normal style.  Canceling double-width characters also cancels compressed (half-width) characters. Bit 7 1 Underline 0 Cancel 6 Italics Cancel 5 Double width Cancel 4 Double height Cancel 3 Bold Cancel 2 1 Compressed Proportional Cancel Cancel 0 12 cpi 10 cpi Example  To apply underlining and specify double-width characters at the same time: Code: ABC ESC ! A2h ABC ESC ! 00h ABC FF Print result: ABCABCA B C - 37 - 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
- 37 -
5. Control Command Details
ESC !
Global formatting
ASCII:
ESC
!
n
Hexadecimal: 1B
21
n
Parameters
0≤
n
≤255
Description
Specifies a combination of print modes.
Specifies modes depending on the bit value of n.
When the ESC ! code is used, a combination of multiple print modes can be specified at one time.
The priority order is from Bit 5 to Bit 2.
Bit 0 is available only if Bit 1 is 0.
Selected character styles are canceled, and the characters return to the normal style.
Canceling double-width characters also cancels compressed (half-width) characters.
Bit
7
6
5
4
3
2
1
0
1
Underline
Italics
Double
width
Double
height
Bold
Compressed Proportional
12 cpi
0
Cancel
Cancel
Cancel
Cancel
Cancel
Cancel
Cancel
10 cpi
Example
To apply underlining and specify double-width characters at the same time:
Code:
ABC ESC !
A2h ABC ESC !
00h ABC FF
Print result: ABC
ABC
A
B
C