Bar Codes; Page Mode; Macros; User Data Storage - CognitiveTPG A798 Programming Manual

Thermal receipt printer
Hide thumbs Also See for A798:
Table of Contents

Advertisement

32
Chapter 4: Programming Commands

Bar codes

Code (hexadecimal)
Command
1D 48 n
Select printing position for HRI characters
1D 66 n
Select pitch for HRI characters
1D 68 n
Select bar code height
1D 6B m d1...dk 00
Print bar code
or
1D 6B m n d1...dn
1D 6B FF n
Print Multiple Barcodes
1D 6B n d1... 00
Print GS1 Databar (formerly RSS), null terminated
1D 6B m n L n H d1... dn
Print GS1 Databar (formerly RSS), data length specified
1D 70 a b c d e f
Select PDF 417 parameters
1D 71 a b c d e f L f H
Set GSI Databar (formerly RSS) parameters
1D 77 n
Select bar code width

Page mode

Code (hexadecimal)
Command
0C
Print and return to standard mode
18
Cancel print data in page mode
1B 0C
Print data in page mode
1B 4C
Select page mode
1B 53
Select standard mode
1B 54 n
Select print direction in page mode
1B 57 n1, n2...n8
Set print area in page mode
1D 24 nL nH
Set absolute vertical print position in page mode
1D 5C nL nH
Set relative vertical print position in page mode

Macros

Code (hexadecimal)
Command
1D 3A
Select or cancel macro definition
1D 5E r t m
Execute macro

User data storage

Code (hexadecimal)
Command
1B 27 m a0 a1 a2 d1...dm
Write to user data storage
1B 34 m a0 a1 a2
Read from user data storage
1B 6A k
Read from non-volatile memory (NVRAM)
1B 73 n1 n2 k
Write to non-volatile memory (NVRAM)
1D 22 n
Select memory type (SRAM/flash) where to save logos or user-defined fonts
1D 22 55 n1 n2
Flash memory user sectors allocation
1D 22 80
Expanded flash memory allocation
1D 22 81 n
Select flash area for storing logos and fonts
1D 40 n
Erase user flash sector
A798-PG00001C
Revision C 12/09
Page
83
83
83
84
85
87
87
88
86
89
Page
90
90
90
91
92
92
93
94
94
Page
95
95
Page
96
96
96
96
97
97
98
98
99

Advertisement

Table of Contents
loading

Table of Contents