Star Micronics CBM-820 manual Print Control Functions, List of ESC/POS Commands

Models: CBM-820

1 132
Download 132 pages 45.64 Kb
Page 45
Image 45
9. Print Control Functions

9. Print Control Functions

This printer supports one command mode: the ESC/POS mode.

The ESC/POS mode emulates the Epson TM-295 slip printer.

This chapter provides you with all of the commands supported by this printer.

9.1 List of ESC/POS Commands

Command

Function

 

Code

Standard

Page

Page

 

Mode

Mode

 

 

 

 

 

 

 

 

 

 

 

 

HT

Horizontal Tab

09H

 

 

 

37

 

 

 

 

 

 

 

LF

Line Feed

0AH

 

 

 

37

 

 

 

 

 

 

 

FF

Prints and Ejects Single Sheet, and Prints and

0CH

 

 

 

38

 

Returns in Paper Mode

 

 

 

 

 

 

 

 

 

 

 

DLE EOT

Sends Status at Real Time

10H 04H n

 

 

39

 

 

 

 

 

 

 

CAN

Cancels Print Data in Page Mode

18H

 

Disabled

 

42

 

 

 

 

 

 

ESC SP

Sets Space Size to Right of Characters

1BH 20H n

 

 

42

 

 

 

 

 

 

 

ESC !

Selects Print Mode in Batch

1BH

21H n

 

 

43

 

 

 

 

 

 

ESC #

Sets Memory Switch

1BH 23H N

 

 

44

 

(Unique Extension Command)

n1 n2 n3 n4

 

 

 

 

 

 

 

 

 

ESC %

Selects/Deselects Download Character Set

1BH 25H n

 

 

46

 

 

 

 

 

 

 

ESC &

Defines Download Characters

1BH

26H y c1 c2

 

 

47

 

 

 

 

 

 

ESC

Selects Bit Image Mode

1BH 2AH m

 

¢

49

 

 

 

 

 

 

ESC 2

Sets 1/6-inch Line Feed

1BH 32H

 

 

51

 

 

 

 

 

 

ESC 3

Sets n/60-inch Line Feed (Approximate Value)

1BH 33H n

 

 

51

 

 

 

 

 

 

ESC =

Selects Peripheral Device

1BH 3DH n

 

 

52

 

 

 

 

 

 

 

ESC @

Initializes Printer

1BH

40H

 

 

53

 

 

 

 

 

 

ESC C

Sets Single Sheet Ejection Length

1BH 43H

 

 

53

 

 

 

 

 

 

ESC D

Sets Horizontal Tab Position

1BH 44H

 

 

54

 

 

 

 

 

 

 

ESC F

Selects/Deselects Ejection of Single Sheet in

1BH

46H n

 

 

55

 

Reverse Direction

 

 

 

 

 

 

 

 

 

 

 

ESC J

Print and n/60-inch Paper Feed

1BH 4AH n

 

 

55

 

(Approximate Value)

 

 

 

 

 

 

 

 

 

 

 

ESC K

Print and n/60-inch Reverse Paper Feed

1BH 4BH n

 

Disabled

56

 

(Approximate Value)

 

 

 

 

 

 

 

 

 

 

 

ESC L

Selects Page Mode

1BH 4CH n

(Line)

Disabled

57

 

 

 

 

 

 

ESC R

Selects International Characters

1BH 52H n

 

 

58

 

 

 

 

 

 

ESC T

Selects Character Print Direction in Page Mode

1BH 54H n

(Set)

 

59

 

 

 

 

 

 

 

– 34 –

Page 45
Image 45
Star Micronics CBM-820 manual Print Control Functions, List of ESC/POS Commands