Star Micronics SP2000 manual ESC/POS Mode Commands, Control Hexadecimal Function Codes U200 U300

Page 50

2. ESC/POS Mode Commands

The following table lists the TM-U200 and TM-U300 emulation commands that are supported by this printer.

2-1. Control Codes List

Control

Hexadecimal

Function

TM-

TM-

Codes

Codes

 

U200

U300

 

 

 

 

 

 

<HT>

09

 

Horizontal tab

OK

OK

<LF>

0A

 

Line feed

OK

OK

<CR>

0D

 

Prints and carriage return

OK

OK

 

 

 

 

 

<DLE> <EOT>

10 04

Enables real-time status send

OK

 

 

 

 

 

 

<DLE> <ENQ>

10 05

Real-time request to printer

OK

 

 

 

 

 

 

 

<ESC> SP

1B

20

Sets size of space to right of character

OK

OK

<ESC> !

1B

21

Enables batch print mode

OK

OK

<ESC> #

1B

23

Sets memory switch

 

 

 

 

 

 

 

 

<ESC> %

1B

25

Enables/disables download

OK

OK

 

 

 

character set

 

 

 

 

 

 

 

 

<ESC> &

1B

26

Defines download character

OK

OK

 

 

 

 

 

 

<ESC> *

1B

2A

Selects bit image mode

OK

OK

<ESC> -

1B

2D

Selects/cancels underlining

OK

OK

 

 

 

 

 

 

<ESC> 2

1B

32

Selects 1/6-inch line spacing

OK

OK

 

 

 

 

 

 

<ESC> 3

1B

33

Selects n/144-inch line spacing

OK

OK

 

 

 

 

 

 

<ESC> =

1B

3D

Selects peripheral device

OK

 

<ESC> ?

1B

3F

Cancels download character

OK

OK

<ESC> @

1B

40

Initializes the printer

OK

OK

 

 

 

 

 

 

<ESC> D

1B

44

Sets horizontal tab position

OK

OK

 

 

 

 

 

 

<ESC> E

1B

45

Enables/disables emphasized mode

OK

OK

 

 

 

 

 

 

<ESC> G

1B

47

Enables/disables double-strike mode

OK

OK

<ESC> J

1B

4A

Prints and n/144-inch paper feed

OK

OK

<ESC> K

1B

4B

Prints and n/144-inch reverse paper feed

OK

OK

48

Image 50
Contents Dot Matrix Printer SP2000 Series Programmer’s Manual Table of Contents Control Codes Star Mode Control Hexadecimal Function CodesESC W Print Position Control Dot Graphics Control Auto Cutter Control SP2500 type printers only Other Commands Control Code Details Function Value of n Character Table Hex Dec DSW 1 Digits Per Line Function Code Function Function Value Rotation Specification Function MSW FF Command Function SP2520/2560 Ptint Position ControlCR Code Function Code Function Function Function ABC Code Example Print Sample M2 m4 m6 m8 m10 M1 m3 m5 m7 m9 m11 MSB LSB Char. Code = 21H Char. Code = 22H Char. Code = 23H Example of transmitting data 10 x n1 ms 10 x n2 ms SUB Auto Cutter Control SP2500 type printers only Function Command to Set the Page Format Cancels printer buffer & Initialize printer Code HEX Outline Paper near end sensor N4 CountryCountry Comdex dual auto-cutter Paper near end sensorValue of n Character Table Parameter Setting CR code See below CR codePara Setting Treatment of missing data during reverse mode EOT ENQ ETB Value of n Hex ESC/POS Mode Commands Control Hexadecimal Function Codes U200 U300ESC R Ignored Commands Auto Status Specifications Header 1 First Byte Bit Content Status Header 2 Second Byte Bit Content Status Printer Status Printer Status 5 Sensor Information Seventh Byte Method to Identify States Control Code Reception Data Appendix Character Code Tables Star Mode Character table IBM Character set #2 Code Character table Katakana Character table IBM Character set #1 Star Mode Star Mode Code Page #855 Cyrillic Bulgarian Star Mode Code Page #772 Lithuanian Code Page #774 Lithuanian Code Page #874 Thai Star Mode Star Mode Star Mode Star Mode Star Mode ESC/POS Mode ESC/POS Mode 1 Katakana 2 PC858 Multilingual 3 PC860 Portuguese 4 PC863 Canadian-French 5 PC865 Nordic ESC/POS Mode
Related manuals
Manual 170 pages 46.11 Kb