Manuals
/
Cognitive Solutions
/
Computer Equipment
/
Printer
Cognitive Solutions
A799
manual
Programming Commands
Models:
A799
1
122
142
142
Download
142 pages
30.19 Kb
119
120
121
122
123
124
125
126
Specifications
Text characteristics
Range of n Default
Sample symbol description
Indicators
Diagnostics and Configuration
Reset firmware
Runtime diagnostics
Print setup in emulation modes
Real time commands
Page 122
Image 122
122 Chapter 4: Programming Commands
Revision D 12/09
A799-PG00001D
Page 121
Page 123
Page 122
Image 122
Page 121
Page 123
Contents
Programming Guide
Page
Contents
A799 Programming Guide
Contents Vertical and horizontal positioning
Text characteristics commands
Status
Real time commands
Graphics
110
Unsolicited status mode
105
111
119
117
118
120
Where to find advanced technical information
How to use this guide
Where to find the basics
Support
A799 Programming Guide
About this Guide
Diagnostics and Configuration
Start-up Diagnostics
Runtime diagnostics
Remote diagnostics
For more information about See this section
Using the Printer , in the A799 User Guide
Indicators
Indicator Sequence Condition
Printer configuration
Configuring the printer
RS-232C serial interface settings
Communication interface
To run the data scope mode
Diagnostic modes
Enable or disable data scope mode
To exit the data scope mode
To run the receipt test mode
Enable or disable receipt test mode
Electronic Journal Datascope Diagnostic
To exit the receipt test mode
Printer settings and functions
Select the emulation/software options sub-menu to set
Select the hardware options sub-menu to set
Diagnostics and Configuration
24 n1 n2
Overview of commands
Comparison to A793
2A m n1 n2 d1...dn
1D 2A n1 n2 d1...dn
Two-color commands comparison A794 to A799
1B 59 n1 n2 d1...dn
TPG ColorPOS two-color and color interpreted commands
TPG LogoEZ colorization commands Hexadecimal
Print zones
Width specifications
Character appearance
Print zones for 80mm paper
Upside down Rotated CW
Rotated printing commands
Print zones for 82.5mm paper
1B 7B n 1B 56 n
Print setup in emulation modes
Emulation modes
Printer actions
Commands listed by function
Code hexadecimal Command
Print and paper feed
26 s c1 c2
Text characteristics
Vertical and horizontal positioning
Graphics
Status
Unsolicited status mode
Batch mode
Real time
User data storage
Mode
Macros
Ethernet setup commands
Flash download
Clear printer
Command conventions
Command descriptions
Generate tone
Perform full knife cut
Perform partial knife cut
Select peripheral device for multi-drop
Select paper sensors to output paper-end signals
Initialize printer
Generate pulse to open cash drawer
Enable or disable panel button
Select sensors to stop printing
Select cut mode and cut paper
Set current color
Set paper type ColorPOS
A799 native
Set interpretation of Set current color command
Print test form
US t
Feed n print lines
Print and feed paper one line
Print and carriage return
Feed n dot rows
Add n extra dot rows
Print
Print and feed paper
Print and feed n lines
Set column
Horizontal tab
Set horizontal and vertical minimum motion units
GS P x y
Compatibility information A799 receipt vs. A793 receipt
Set absolute starting position
Set vertical line spacing to 1/6 inch
Value of k
Set vertical line spacing
Set horizontal tab positions
Set relative print position
To move to the left
Set left margin
Range of n Default
Select justification
GS L nL nH
Set printing area width
Maximum value of the printable Area
Select single-wide characters
Text characteristics commands
Select double-wide characters
Select 90 degree counter-clockwise rotated print
Pitch Columns
Select pitch column width
Set right-side character spacing
80mm Paper 82.5mm Paper
Mm paper
Select print mode
Value of n Bit1 Function
Exception
Select or cancel user-defined character set
Define user-defined character set
Values and ranges
Select or cancel underline mode
Define extended user-defined character set
Copy character set from ROM to RAM
Cancel user-defined character
Select or cancel emphasized mode
Select or cancel double-strike
Select or cancel italic print
Select or cancel 90 degree clockwise rotated print
Select international character code
Select international character set
Select or cancel upside-down print mode
Value of n A799 native mode A793 emulation Emulation
Character height selection
Select or cancel white/black reverse print mode
Select character size
Hex Decimal Width Height
Reverse color text mode ColorPOS
Set smoothing
Select font style number
Text strike-through mode ColorPOS
Select font ID number
Hexadecimal 1D F0 01 n Decimal 29 240 1 n Value of n 128
Download font list
Save font ID number as default font at power up
Download font
Select superscript or subscript modes
Select active user-defined character set
Download BMP logo
Select bit image mode
Select double-density graphics
Print advanced raster graphics
Select single-density graphics
Value of r
Select the current logo
GS # n
Define downloaded bit image
Value of n Value of n1 Value of n2 Value of d
Print raster graphics
Value of m Print mode Vertical DPI
Print downloaded bit image
Value and range of m
Print raster monochrome graphics ColorPOS
Print raster color graphics ColorPOS
Define Flash Logos
Download logo image ColorPOS
Print Flash Logo
Max n1 =
Apply shading to logo ColorPOS
Merge watermark mode ColorPOS
Monochrome shade mode ColorPOS
Form and merge real time surround graphic ColorPOS
Color shade mode ColorPOS
Logo print with color plane swap ColorPOS
Hexadecimal 1D 89 n m Decimal
Background logo print mode ColorPOS
Save graphics buffer as logo ColorPOS
1D 99 l m n o
Apply margin message mode ColorPOS
Shade and store logo ColorPOS
Value of l
Values of m
Logo print with knife cut
Set temporary max target speed
Decimal Values
Value descriptions
Set LogoEZ colorization
Value of f
= 2 link watermark printing
S = 0, 0
LogoEZ utility default settings
Set LogoEZ attribute mapping
Original attribute mapped table
Attributes substituted table
Enable constant speed logos
Convert 6-dots/mm bitmap to 8-dots/mm bitmap
Hexadecimal 1B 75 Decimal
Status command introduction
Transmit peripheral device status RS-232C printers only
Value of returned byte Bit
Hexadecimal 1B 75 n Decimal
Request alternate status A793 emulation only
Transmit paper sensor status
Value and Range of n Value of n Function Description
= 2 or 50 Type ID Bit Off/On Hex Decimal Function
Printer ID Specification ID Hexadecimal
Transmit printer ID
= 4 or 52 Logo Definition Bit Off/On Hex Decimal Function
GS I @ n
Transmit printer ID, remote diagnostics extension
Hex Dec Remote diagnostic item Function
Value of n
Transmit status
Send printer software version
Preferred implementation
Real time commands
Rules for using real time commands
Alternate implementation
Real time status transmission
Busy line and fault conditions
Moving data through the buffer
= Transmit RS-232C Busy Status
Bit Status Hex Decimal Function
= Transmit error status Bit Status Hex Decimal Function
= Transmit receipt paper status
Real time request to printer
Value of byte Bit Status Hex Decimal Function
Real time commands disabled
Real time printer status transmission
GS a n
Select or cancel unsolicited status mode USM
Default USM disabled
Hexadecimal 1D 61 n Decimal 29 97 n Value of n
Second byte error information
Bit Off/On Hex Decimal Status for USM
Fourth byte paper sensor information
Recognizing data from the printer
Batch mode response
Unsolicited status mode USM
Select printing position of HRI characters
Print bar code
Select pitch of HRI characters
Select bar code height
Integer n = nHnL 1D 6B m nL nH d1 . . . dn
Bar code
Length
Print multiple barcodes
GS k
Type
Print GS1 DataBar formerly RSS, null terminated
Print GS1 DataBar formerly RSS, data length specified
Set GS1 DataBar formerly RSS parameters
Value and Ranges Description
Select bar code width
Sample symbol description
Related Information Value Dimension Row height
Print data in page mode
Print and return to standard mode
Cancel print data in page mode
Hexadecimal 0C Decimal
Select page mode
Select standard mode
Select print direction in page mode
Set print area in page mode
Maximum area specification in page mode
GS \ nL nH
Set absolute vertical print position in page mode
Set relative vertical print position in page mode
GS r t m
Select or cancel macro definition
Execute macro
Hexadecimal 1D 5E r t m Decimal 29 94 r t m Value of r
Read from non-volatile memory
Write to user data storage
Read from user data storage
Write to non-volatile memory Nvram
Flash memory user sectors allocation
1F 26 s c1 c2 character 1 data ... character k data
Expanded flash memory allocation
US & s c1 c2 character 1 data ... character k data
31 38 s c1 c2 character 1 data ... character k data
Erase user flash sector
Value of n = 49 Ascii n = 1 HEX
User storage status ColorPOS
For m =
Switch to flash download mode
Return boot sector firmware part number
Get firmware CRC
Return segment number status of flash memory
Select flash Memory sector to download
Return microprocessor CRC
Erase selected flash sector
Erase all flash contents except boot sector
Return main program flash CRC
Download to active flash sector
Setting IP address
Reset firmware
Restore default settings
Setting Net Mask
BootP
Setting the Gateway
Setting raw Tcpip port
LP Daemon
Keep-alive pings
Dhcp auto-configuration
Inactivity timeout
N1=
Programming Commands
By command code
2E m n rL rH d1 … dn
59 n1 n2 d1...dn
4B n1 n2 d1...dn
57 n1, n2...n8
5C n1 n2
4C nL nH
AL aH cL cH d1...dn
2A n1 n2 d1...dn
B c d e fL fH
6B m d1...dk
6B m n d1...dn
M n o
08 01 n1 n2 n3 n4
Appendix B Resident Character Sets
Character sets
Code page 437 US
Code page 737 Greek
Code page 850 Multilingual
Code page 852 Slavic
Code page 857 Turkish
Code page 858 with Eurosymbol
Code page 860 Portuguese
Code page 862 Hebrew
Code page 863 French Canadian
Code page 865 Nordic
Code page 866 Cyrillic
Code page 1252 Windows Latin
Top
Page
Image
Contents