3-1. Page Mode

Format Definition

<NUL>

 

 

 

00

 

Function

ENGLISH

Control codes

 

 

Hexadecimal codes

 

<ESC> “C”<LF> <NUL>

1B

43 0A 00

Clear format

 

 

 

 

 

 

 

<ESC>

“D n1n2n3n4” <LF>

1B

44 n1n2n3n4 0A

Define print area

 

 

 

 

 

 

<ESC> “L n1n2 ; x1x2x3x4

1B

4C n1n2 3B x1x2x3x4

Define ruled line format

 

, y1y2y3y4, x5x6x7x8

2C y1y2y3y4 2C x5x6x7x8

 

 

, y5y6y7y8, d, w” <LF>

2C y5y6y7y8 2C d 2C w 0A

 

 

<NUL>

 

 

 

00

 

 

 

<ESC> “E n1n2” <LF>: <NUL>

1B

45 n1n2 0A 00

Cancel ruled line format

 

<ESC> “PC n1n2 ; x1x2x3x4

1B 50 43 n1n2 3B x1x2x3x4

Define character string format

 

, y1y2y3y4, w, h,

 

2C y1y2y3y4 2C w 2C h 2C

 

 

c, r1r2, d1d2” <LF> <NUL>

c 2C r1r2 2C d1d2 0A 00

 

 

 

 

 

 

<ESC> “PB n1n2 ; x1x2x3x4

1B 50 42 n1n2 3B x1x2x3x4

Define bar code format

 

, y1y2y3y4, w, b,

 

2C y1y2y3y4 2C w 2C b 2C

 

 

m, h1h2h3h4” <LF> <NUL>

m 2C h1h2h3h4 0A 00

 

 

 

 

 

 

 

<ESC> “Y d1d2” <LF> <NUL>

1B

59 d1d2 0A 00

Define character pitch

 

Print Data Settings

 

 

 

 

 

 

 

 

 

 

Control codes

 

 

Hexadecimal codes

Function

 

 

 

 

 

<ESC> “RC n1n2 ; a1.....an”

1B 52 43 n1n2 3B a1a2.…an

Set character string data

 

<LF> <NUL>

 

 

0A 00

 

 

<ESC> “RB n1n2 ; a1.....an”

1B 52 42 n1n2 3B a1a2.…an

Set bar code data

 

<LF> <NUL>

 

 

0A 00

 

 

 

 

 

 

 

 

 

<ESC>

“Q

;

x1x2x3x4,

1B 51 3B x1x2x3x4 2C

Store dot graphic data into image

 

y1y2y3y4, 1234,

 

y1y2y3y4 2C1234 2C

memory

 

w1w2w3, n11n12n13

w1w2w3 2C n11n12n13

 

 

n.…n1k <LF>.…nm1nm2

n.…n1k <LF>.…nm1nm2

 

 

.…nmk” <LF> <NUL>

.…nmk” 0A 00

 

 

 

 

 

 

 

 

 

<ESC>

“H

m

x1x2x3x4,

1B 48 m x1x2x3x4 2C

Copy BMP file to printer

 

y1y2y3y4, (BMP file data)

y1y2y3y4 2C (BMP file data)

 

 

,” <LF> <NUL>

 

2C

0A 00

 

 

 

 

 

 

 

<ESC> “G n1n2, n3n4” <ESC>

1B

47 n1n2 2C n3n4 1B 30

Call download character

 

“0”

 

 

 

 

 

 

 

 

 

 

 

 

<ESC> “X” <LF> <NUL>

1B

58 0A 00

Clear image data

 

– 6 –

Page 9
Image 9
Star Micronics TSP400 Series user manual Mode, Format Definition, Print Data Settings