Control codes and escape sequences, Horizontal tab, Line feed – Welch Allyn MCP8850B HPIR THERMAL PRINTER - User Manual User Manual
Page 4: Form feed, Carriage return, Cancel, Double width on, Double width off, Set print mode, Esc null ! n

4
Control Codes and Escape Sequences
International Character Sets
Fax
Function
Code
Decimal
Hex
Horizontal tab
HT
9
09
Line feed
LF
10
0A
Form feed
FF
12
0C
Carriage return
CR
13
0D
Cancel
CAN
24
18
Double width on
SO
14
0E
Double width off
Si
15
0F
Set print mode
ESC NULL ! n
27 0 33 n
1B 00 21 n
Set barcode start position
ESC NULL $ n1 n2
27 0 36 n1 n2
1B 00 24 n1 n2
Set bit image (8 pin single density)
ESC NULL * 0 n1 n2 [d]
27 0 42 0 n1 n2 [d]
1B 00 2A 00 n1 n2 [d]
Set bit image (8 pin double density)
ESC NULL * 1 n1 n2 [d]
27 0 42 1 n1 n2 [d]
1B 00 2A 01 n1 n2 [d]
Set bit image (24 pin single density)
ESC NULL * 32 n1 n2 [d]
27 0 42 32 n1 n2 [d]
1B 00 2A 20 n1 n2 [d]
Set bit image (24 pin double density)
ESC NULL * 33 n1 n2 [d]
27 0 42 33 n1 n2 [d]
1B 00 2A 21 n1 n2 [d]
Underline on
ESC NULL – 1
27 0 45 1
1B 00 2D 01
Underline off
ESC NULL – 0
27 0 45 0
1B 00 2D 00
Reset
ESC NULL @
27 0 64
1B 00 40
Set page length
ESC NULL C n
27 0 67 n
1B 00 43 n
Set horizontal tabs
ESC NULL D n
27 0 68 n
1B 00 44 n
Set bit image
ESC NULL K n1 n2 [d]
27 0 75 n1 n2 [d]
1B 00 4B n1 n2 [d]
Country select
ESC NULL R n
27 0 82 n
1B 00 52 n
Double width on
ESC NULL W 1
27 0 87 1
1B 00 57 01
Double width off
ESC NULL W 0
27 0 87 0
1B 00 57 00
Compressed bit image graphics
ESC NULL Z n1 [d1] … n24 [d24]
27 0 90 n1 [d1] … n24 [d24]
1B 00 5A n1 [d1] … n24 [d24]
Print & feed paper
ESC NULL d n
27 0 100 n
1B 00 64 n
Label advance
ESC NULL f
27 0 102
1B 00 66
Reversed on
ESC NULL i 1
27 0 105 1
1B 00 69 01
Reversed off
ESC NULL i 0
27 0 105 0
1B 00 69 00
Double height on
ESC NULL w 1
27 0 119 1
1B 00 77 01
Double height off
ESC NULL w 0
27 0 119 0
1B 00 77 00
Inverse on
ESC NULL { 1
27 0 123 1
1B 00 7B 01
Inverse off
ESC NULL { 0
27 0 123 0
1B 00 7B 00
Graphics
ESC n [d]
27 n [d]
1B n [d]
Roman 8 character set
ESC <248>
27 248
1B F8
ECMA 94 character set
ESC <249>
27 249
1B F9
Underline off
ESC <250>
27 250
1B FA
Underline on
ESC <251>
27 251
1B FB
Normal width on
ESC <252>
27 252
1B FC
Double width on
ESC <253>
27 253
1B FD
Self test
ESC <254>
27 254
1B FE
Reset
ESC <255>
27 255
1B FF
Set barcode height (1 < n < 255)
GS h n
29 104 n
1D 68 n
Print UPC-A barcode
GS k 0 [d] NULL
29 107 0 [d] 0
1D 6B 00 [d] 00
Print UCP-E barcode
GS k 1 [d] NULL
29 107 1 [d] 0
1D 6B 01 [d] 00
Print EAN13 barcode
GS k 2 [d] NULL
29 107 2 [d] 0
1D 6B 02 [d] 00
Print EAN8 barcode
GS k 3 [d] NULL
29 107 3 [d] 0
1D 6B 02 [d] 00
Print Code 39 barcode
GS k 4 [d] NULL
29 107 4 [d] 0
1D 6B 04 [d] 00
Print 2 of 5 barcode
GS k 5 [d] NULL
29 107 5 [d] 0
1D 6B 05 [d] 00
Print Codabar barcode
GS k 6 [d] NULL
29 107 6 [d] 0
1D 6B 06 [d] 00
Print CODE128 barcode
GS k 7 n [d]
29 107 7 n [d]
1D 6B 07 n [d]
Set barcode magnification (2 < n < 4)
GS w n
29 119 n
1D 77 n
Country
Code
Decimal
Hex
USA
ESC NULL R 0
27 0 82 0
1B 00 52 00
France
ESC NULL R 1
27 0 82 1
1B 00 52 01
Germany
ESC NULL R 2
27 0 82 2
1B 00 52 02
UK
ESC NULL R 3
27 0 82 3
1B 00 52 03
Denmark I
ESC NULL R 4
27 0 82 4
1B 00 52 04
Sweden
ESC NULL R 5
27 0 82 5
1B 00 52 05
Italy
ESC NULL R 6
27 0 82 6
1B 00 52 06
Spain
ESC NULL R 7
27 0 82 7
1B 00 52 07
Japan
ESC NULL R 8
27 0 82 8
1B 00 52 08
Norway
ESC NULL R 9
27 0 82 9
1B 00 52 09
Denmark II
ESC NULL R 10
27 0 82 10
1B 00 52 0A
Martel Instruments Limited
Stanelaw Way, Tanfield Lea Industrial Estate, Stanley, Durham DH9 9XG, UK
Tel: +44 (0)1207 290266
Fax: +44 (0)1207 290239
Email: [email protected]
USA Sales Office: 14892 Trojan Circle, Huntington Beach, CA 92647
Tel: (714) 892-0086
Fax: (714) 892-0096
Email: [email protected]
Website: www.martelinstruments.com
MCP8850B/UG/B
© MARTEL
INSTRUMENTS
All instruments designed and
manufactured in Great Britain.
The manufacturer reserves
the right to alter specifications
without prior notice