Brother PJ-623 User Manual

PJ-600 Series Printer
ESC/P Command Reference
Version 1.00
Model Name: PJ-622/623/662/663
<Written By> Brother Industries, Ltd.
1
Machine Model: PJ-622/623/662/663
IMPORTANT - PLEASE READ CAREFULLY
This documentation (“Documentation”) gives you information that will assist you in controlling your Machine Model. You may use the Documentation only if you first agree to the following conditions. If you do not agree to the following conditions, you may not use the Documentation.
Condition of Use You may use and reproduce the Documentation to the extent necessary for your own use of your Machine Model (“Purpose”). Unless expressly permitted in the Documentation, you may not;
(i) copy or reproduce the Documentation for any purpose other than the Purpose, (ii) modify, translate or adapt the Documentation, and/or redistribution to any third
party, (iii) rent or lease the Documentation to any third party, or, (iv) remove or alter any copyright notices or proprietary rights legends included within
the Documentation.
No Warranty a. Any updates, upgrades or alteration of the Documentation or Machine Model will be
performed at the sole discretion of Brother. Brother may not respond to any request or inquiry about the Documentation.
b. THIS DOCUMENTATION IS PROVIDED TO YOU "AS IS" WITHOUT WARRANTY OF
ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE. BROTHER DOES NOT REPRESENT OR WARRANT THAT THIS DOCUMENTATION IS FREE FROM ERRORS OR DEFECTS.
c. IN NO EVENT SHALL BROTHER BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE,
INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER, ARISING OUT OF THE USE, INABILITY TO USE, OR THE RESULTS OF USE OF THE DOCUMENTATION OR ANY SOFTWARE PROGRAM OR APPLICATION YOU DEVELOPED IN ACCORDANCE WITH THE DOCUMENTATION.
2
Contents
ESC/P commands ......................................................................................................................4
1-1 Print
1-2 Characters...........................................................................................................................
1-3 Resolution ...........................................................................................................................
1-4 List of commands ................................................................................................................
1-5 Command details ............................................................................................................ 10
1. Paper feed commands ................................................................................................... 10
2. Print area setting commands.......................................................................................... 12
3. Tab setting commands.................................................................................................... 13
4. Print position setting commands .................................................................................... 14
5. Character selection commands...................................................................................... 16
6. Character style commands............................................................................................. 19
7. Character definition commands...................................................................................... 23
8. Supplemental function commands ................................................................................. 24
9. Others............................................................................................................................. 25
Advanced commands............................................................................................................ 27
2-1 List of commands ............................................................................................................ 27
2-2 Command details ............................................................................................................ 28
Character code tables ........................................................................................................... 29
1. Advanced graphics code table........................................................................................ 29
2. Italic characters code table............................................................................................. 30
3. International characters.................................................................................................. 31
Defferences with old machine model .................................................................................. 32
Notes....................................................................................................................................... 32
area.............................................................................................................................
3

ESC/P commands

1-1 Print area

[Paper types and sizes]
Thermal cut paper: A4/Letter/Legal sizes and any size Thermal roll paper: 210 mm (width)
* Any size is within a range of 210- to 216-mm wide and 25.4- to 567.3-mm long.
[Print area] The printable area differs depending on the paper type; however, with any paper listed above, the top margin, left margin and page width of the print area are the same as with A4 paper. If the page length (8-inch page width) has been specified, the length specified with ESC/P will be applied as the page length.
Left margin
Paper length
Right margin
Page width
Print area
Paper width
Top margin
Bottom margin
Page length
4
300 dpi (300 × 300) print area (dots)
A4 Letter Legal Any
Paper width 2480 2550 2550 2480 ~ 2550
Paper length 3507 3300 4200 300 ~ 6700
Top margin 30 30 30 30
Bottom margin 3330 3230 4130 230 ~ 6630
Left margin 40 40 40 40
Right margin 2440 2440 2440 2440
Page width 2400 2400 2400 2400
Page length 3300 3200 4100 200 ~ 6600
200 dpi (203 × 200) print area (dots)
A4 Letter Legal Any
Paper width 1680 1727 1727 1680 ~ 1727
Paper length 2338 2200 2800 200 ~ 4467
Top margin 20 20 20 20
Bottom margin 2220 2153 2753 153 ~ 4420
Left margin 27 27 27 27
Right margin 1651 1651 1651 1651
Page width 1624 1624 1624 1624
Page length 2200 2133 2733 133 ~ 4400
[Limitations] Bit image data that extends out of the print area is discarded and not printed. The limitations of
the right margin are not applied to bit images.
Character codes that extend past the right margin are printed on the next line as a result of an
overflow line feed.
5

- Characters

[Font specifications]
Type ANK characters Font Courier, Sans Serif Size 10, 12, 15 CPI
Proportional
The conversions from CPI (characters per inch) to dots are shown below.
300 dpi (300 × 300) 200 dpi (203 × 200) 10 CPI 30 × 45 dots 20 × 45 dots
12 CPI 25 × 45 dots 17 × 45 dots 15 CPI 20 × 45 dots 14 × 45 dots

- Resolution

[Resolution conversion]
With ESC/P, the basic resolution is 360 dpi. However, since the printer resolution is 200 or 300 dpi, the resolution is converted. The resolution is converted according to the horizontal character position, the vertical feed amount (line feed amount), bit images, non-standard characters and download fonts.
[Limitations] The line thickness and position may change since the resolution of bit images is converted in each line and that of non-standard characters and download fonts is converted when the character is registered.
6

- List of commands

This printer supports the following ESC/P commands.
1. Paper feed commands
Command Code Function CR 0Dh Carriage return
FF 0Ch Form feed LF 0Ah Line feed ESC 0 1Bh 30h Specify line feed of 1/8 inch ESC 2 1Bh 32h Specify line feed of 1/6 inch ESC 3 n 1Bh 33h nnh Specify line feed of n/180 inch ESC A n 1Bh 41h nnh Specify line feed of n/60 inch ESC + n 1Bh 2Bh nnh Specify line feed of n/360 inch ESC J n 1Bh 4Ah nnh Specify forward paper feed of n/180 inch
2. Print area setting commands
Command Code Function ESC C n 1Bh 43h nnh Specify page length in lines
ESC C 0 n 1Bh 43h 00h nnh Specify page length in inches ESC N n 1Bh 4Eh nnh Specify skip perforation ESC O 1Bh 4Fh Cancel skip perforation
3. Tab setting commands
Command Code Function ESC B n n...0 1Bh 42h nnh...00h Specify vertical tab position
VT 0Bh Perform vertical tab ESC D n n...0 HT 09h Perform horizontal tab
4. Print position setting commands
Command Code Function ESC l n 1Bh 6Ch nnh Specify left margin
ESC Q n 1Bh 51h nnh Specify right margin BS
ESC $ n m 1Bh 24h nnh mmh Specify absolute position ESC ¥ (ESC \)n m
1Bh 44h nnh...00h
08h
1Bh 5Ch nnh mmh Specify relative position
Specify horizontal tab position
Backspace
7
5. Character selection comm
Command Code Function ESC k n 1Bh 6Bh nnh Select font
ESC P 1Bh 50h Specify 10 cpi ESC M
ESC g 1Bh 67h Specify 15 cpi ESC p n 1Bh 70h nnh Apply/cancel proportional characters
ESC S n 1Bh 53h nnh Apply superscript/subscript ESC T 1Bh 54h Cancel superscript/subscript
ESC t n 1Bh 74h nnh Select character code table ESC R n 1Bh 52h nnh Select international character set
ands
1Bh 4Dh
Specify 12 cpi
6. Character style commands
Command Code Function ESC x n 1Bh 78h nnh Select text quality
SI, ESC SI 0Fh, 1Bh 0Fh Specify reduced characters DC2
SO, ESC SO 0Eh, 1Bh 0Eh
DC4 14h Cancel auto-cancelling double-width characters ESC W n 1Bh 57h nnh Specify/cancel double-width characters ESC w n 1Bh 77h nnh Specify/cancel double-height characters
ESC E 1Bh 45h Apply bold style
ESC F 1Bh 46h Cancel bold style
ESC G 1Bh 47h Apply double-strike printing ESC H 1Bh 48h Cancel double-strike printing ESC- n 1Bh 2Dh nnh Apply/cancel underlining ESC SP n 1Bh 20h nnh Specify character spacing
ESC q n 1Bh 71h nnh Select character style ESC 4 1Bh 34h Apply italics ESC 5 1Bh 35h Cancel italics ESC ! n 1Bh 21h nnh Global formatting
12h
Cancel reduced characters Specify auto-cancelling double-width
characters
7. Character definition commands
Command Code Function
ESC & 0 n n... 1Bh 26h 00h nnh.... Define download characters
ESC % n 1Bh 25h nnh Apply/cancel download character set ESC : 0 n 0
ESC 6 1Bh 36h Cancel upper control codes ESC 7 1Bh 37h Apply upper control codes
1Bh 3Ah 00h nnh 00h
Copy character set
8
8. Supplement
Command Code Function ESC @ 1Bh 40h Initialize printer
al function commands
9. Others
Command Code Function ESC K n m 1Bh 4Bh nnh mmh 8-dot single-density bit image
ESC L n m 1Bh 4Ch nnh mmh 8-dot double-density bit image ESC Y n m
ESC Z n m 1Bh 5Ah nnh mmh 8-dot quadruple-density bit image ESC * m n1 n2.. 1Bh 2Ah mmh n1h n2h... Select bit image ESC ? m n 1Bh 3Fh mmh nnh Convert bit image ESC / m 1Bh 2Fh mmh Select VFU channel ESC b m n...0 1Bh 62h mmh nnh ...00h Specify VFU tab position
1Bh 59h nnh mmh
8-dot double-speed double-density bit image
9

- Command details

1. Paper feed commands

CR
[ N a m e ] Carriage return [Code] 0Dh [Function] Returns the cursor position to the left edge. [De tai ls] If automatic line feed has been specified with the utility, a line feed command
(LF) is performed after a carriage return command (CR) is performed.
FF
[ N a m e ] Form feed [Code] 0Ch [Function] Feeds the paper to the next page separation. [De tai ls] At this time, the SO and ESC SO commands are cancelled.
The feed specifications depend on the specified feed mode.
LF
[ N a m e ] Line feed [Code] 0Ah [Function] Feeds the paper by one line, according to the specified line feed amount. [De tai ls] At this time, the SO and ESC SO commands are cancelled.
ESC 0
[ N a m e ] Specify line feed of 1/8 inch [ C o d e ] 1Bh 30h [Function] Specifies a line feed of 1/8 inch (about 0.32 cm).
ESC 2
[ N a m e ] Specify line feed of 1/6 inch [ C o d e ] 1Bh 32h [Function] Specifies a line feed of 1/6 inch (about 0.42 cm). [De tai ls] The default line feed setting is 1/6 inch.
ESC 3 n
[ N a m e ] Specify line feed of n/180 inch [ C o d e ] 1Bh 33h nnh [Function] Specifies a line feed of n/180 inch.
ESC A n
[ N a m e ] Specify line feed of n/60 inch [ C o d e ] 1Bh 41h nnh [Function] Specifies a line feed of n/60 inch. [De tai ls] The allowable setting range is 0≤n≤85 (55h).
ESC + n
[ N a m e ] Specify line feed of n/360 inch [ C o d e ] 1Bh 2Bh nnh [Function] Specifies a line feed of n/360 inch.
10
Loading...
+ 22 hidden pages