Programming Guide
A776 B780 Two-Color Thermal/Impact Hybrid Printer
Printer without Imaging Printer with Imaging
A776-PG00001 Rev. C
Information to the User
Contents
A776 B780 Programming Guide
Select B780 Slip Right Text Margin and Text Column Options
Select receipt or slip for printing slip for MICR read
Select receipt or slip for setting line spacing
Select paper sensors to output paper end signals
Select peripheral device for multi-drop
Select or cancel user-defined character set
Select or cancel 90 degree clockwise rotated print
Select or cancel white/black reverse print mode
Select or cancel upside-down print mode
Status
Contents
Graphics
A776 B780 Programming Guide
Rules for using real-time commands
Set absolute vertical print position in page mode
Set relative vertical print position in page mode
Select or cancel unsolicited status mode USM
area for storing logos and user-defined characters
Return boot sector firmware part number
Erase all flash contents except boot sector
Return segment number status of flash memory
viii Contents
Contents
x Contents
A776 B780 Programming Guide
A776-PG00001 C 12/09
Where to find advanced technical information
How to use this Guide
Where to find the basics
Chapter 1 About this Guide
2 Chapter 1 About this Guide
A776 B780 Programming Guide
A776-PG00001 C 12/09
Runtime diagnostics
Chapter 2 Printer Status and Indicators
Startup Diagnostics
Remote diagnostics
Ethernet Terminology
Ethernet terms and default setup
BootP
MAC address
Ethernet Default Setup
Indicators
Green slip-in light in front of the paper feed button
Chapter 3 Migrating to A776 and B780
Migrating from existing CognitiveTPG printers
26 s c1 c2 n1 d1...nn dn
Moving from the A756 to the A776 Thermal printhead differences
24 n1 n2
2A m n1 n2 d1...dn
4C nL nH
Moving from the A756 to the A776 Emulation commands
Moving from the A756, A758, or A760 to the A776 Slip differences
57 nL nH
Set A776 Printer ID
A776 Emulation Commands
A776 Configuration Commands
Set A776 Printer Emulation
Select A776 Narrow Slip 51-column Compressed Print Option
Select A776 Delete Slip Trailing Spaces Option
Select Cover Open Option
Select A776 First Line of Print Option in Text and Page Mode
Select A776 21 and 25-line Rotated Slip Print Options
12 Chapter 3 Migrating to a new printer
Select A776 Slip Eject Option
Set Page Mode Margin Mechanical Adjustment
Set Page Mode Option to Trim Full Dots
Select 45/60 Column Slip Option
A776 Slip Minimum Units
A776 Configurable Slip Commands A776 Double High Slip Character Print
A776 Slip Character Spacing
A776 Slip Left Margin and Print Width
Moving from A756/A758 to A776 Two-color Commands
LogoEZ colorization commands
A776-PG00001 C 12/09
Page
Set Printer ID Mode
B780 Emulation Commands
B780 Configuration Commands
Migrating from the A721 7221 printer to the B780
Select DH Pitch and Rotated Text Columns
Select Slip Lines per Inch
18 Chapter 3 Migrating to a new printer
Select Number of Lines of Validation for B780
Select Slip Right Margin in Page Mode
Select Two - Sensor Option for B780
Select B780 Map User Character Option for B780
Select Concurrent Print to Receipt for B780
Select B780 Map Logo Option for B780
Select Cover Open Option for B780
Select B780 with A776 Slip Functions
Set Page Mode Margin Mechanical Adjustment
Set Page Mode Option to Trim Full Dots
Select Cover Open Option for B780
22 Chapter 3 Migrating to a new printer
A776 B780 Programming Guide
A776-PG00001 C 12/09
Overview of Printing Characteristics
Chapter 4 Programming the Printer
Standard
Receipt character specification
Character appearance
Compressed
Print zones
Print zones for receipt station 80 mm paper
Print zones for slip station
Print Zones for Slip, Validation
Rotated printing commands
Chapter 5 Programming Commands
Commands listed by function
Printer actions
Vertical and horizontal positioning
Text characteristics
Print and paper feed
26 s c1 c2
Graphics
1F 26 s c1 c2
Real-time
Batch mode
Status
1D 90 m x y o p q
Bar codes
Page mode
MICR check reader commands
Macros
Flash download
Ethernet setup commands
User data storage
73 n1 n2 k
1D B4 nL nH t0. . .tm
Image Commands
1D C5 nL nH m d1-dn-1
1D B9 s t m nL nH pL pH
Clear printer
Command conventions
Command descriptions
Printer actions
Perform partial knife cut
Close form
Open form
Generate tone
Set slip paper eject length
Select peripheral device for multi-drop
Initialize printer
Set unidirectional print on impact station
Select receipt or slip for printing slip for MICR read
Select receipt or slip for setting line spacing
Select paper sensors to output paper end signals
1B 63 33 n
Enable or disable panel button
Select sensors to stop printing
Set slip paper waiting time
Generate pulse to open cash drawer
Release Paper
Set current color
Select cut mode and cut paper
Select slip station
Set paper type ColorPOS
Select receipt station
Set Interpretation of “Set current color”
Print and eject slip
Print test form
Print and feed paper one line
Print and carriage return
Feed n dot rows
Add n extra dot rows
3 extra dot rows
Print and reverse feed paper
Print
Print and feed paper
Print and feed n lines
Reverse feed n dots
Print and reverse feed n lines
Reverse feed n lines
Horizontal tab
Set vertical line spacing to 1/6 inch
Set column
Set absolute starting position
3.33 mm 0.13”
Set vertical line spacing
Set horizontal tab positions
n is always less than or equal to the
Set relative print position
To move to the left
To move to the right
Select justification
Set left margin
Continued
Set horizontal and vertical minimum motion units
Set printing area width
Continued
Select single-wide characters
Text characteristics commands
Select double-wide characters
Select 90 degree counter-clockwise rotated print
Select pitch column width
Set right-side character spacing
Compressed
Select print mode
Select or cancel user-defined character set
Define user-defined character set
Continued
Select or cancel underline mode
Copy character set from ROM to RAM
Select double-strike
Cancel user-defined character
Select or cancel emphasized mode
Continued
Select international character set
Cancel double-strike
Select or cancel italic print
Continued
Select character code table
Select or cancel 90 degree clockwise rotated print
Select or cancel upside-down print mode
Select character size
Select or cancel white/black reverse print mode
Continued
Reverse color text mode ColorPOS
Set smoothing
Text strike-through mode ColorPOS
Select font ID number
Select font style number
Download font list
Save font ID number as default font at power up
Download font
Select superscript or subscript modes
Any invalid byte s, c1, c2, n1, n2 aborts the command
Define extended user-defined character set
Select active user-defined character set
The bytes are printed down and across each cell See the illustration
Graphics
Select bit image mode
Download BMP logo
Continued
8-dot single-density
Print advanced raster graphics
Advanced raster graphics is not available in page mode
n1 + 256 × n2
Define Flash Logos
Select double-density graphics
Print Flash Logo
Select the current logo downloaded bit image
Define downloaded bit image
Print downloaded bit image
Print raster monochrome graphics ColorPOS
Print raster color graphics ColorPOS
Download logo image ColorPOS
GS 0x86 m
Monochrome shade mode ColorPOS
Color shade mode ColorPOS
GS 0x87 m
Merge watermark mode ColorPOS
Logo print with color plane swap ColorPOS
Apply shading to logo ColorPOS
Form and merge real-time surround graphic ColorPOS
Background logo print mode ColorPOS
Save graphics buffer as logo ColorPOS
Apply margin message mode ColorPOS
Shade and store logo ColorPOS
1D 99 l m n o
Logo print with knife cut
Set temporary max target speed
Set LogoEZ colorization ColorPOS
Example
Continued
Example
Skip “s” feed paper dot rows 15 s command
Example
Continued
Set LogoEZ attribute mapping ColorPOS
Continued
m bit on
80 Chapter 5 Programming commands Original attribute mapped table
Continued
attribute mapped
Enable constant speed logos
Convert 6-dots/mm bitmap to 8-dots/mm bitmap
Batch mode
Status command introduction
Transmit peripheral device status
Status
Transmit paper sensor status
Transmit printer ID
Continued
Transmits the printer ID specified by n as follows
Transmit printer ID, remote diagnostics extension
Preforms the remote diagnostic function specified by n
The table that follows describes the variables
Continued
Transmit status
Continued
Continued
Real-time commands
Send printer software version
Alternate implementation
Rules for using real-time commands
Preferred implementation
Moving data through the buffer
Busy line and fault conditions
Real-time status transmission
Continued
Continued
92 Chapter 5 Programming commands
3 = Transmit error status
2 = Transmit RS-232C Busy Status Bit Status Hex Decimal Function
Decimal
Chapter 5 Programming commands 93 4 = Transmit receipt paper status
Status
Function
Real-time request to printer
Real-time commands disable
Real-time printer status transmission
Exceptions
Unsolicited status mode
Select or cancel unsolicited status mode USM
Continued
Chapter 5 Programming commands 97 First Byte printer Information
Second byte error information
Off/On Hex
Third byte paper sensor information
Chapter 5 Programming commands
Continued
Bit Off/On Hex
Recognizing data from the printer
Select bar code height
Select printing position of HRI characters
Select pitch of HRI characters
Print bar code
The command is only valid at the beginning of a line
Continued
Set GS1 DataBar formerly RSS parameters
Chapter 5 Programming commands 103
Print GS1 DataBar formerly RSS, data length specified
Print GS1 DataBar formerly RSS, null terminated
ASCII
Print multiple barcodes
Begin multiple barcodes one line
Sample symbol description
Select PDF 417 parameters
Continued
Select bar code width
Page mode
Sets the bar code width to n dots
Page size
Slip page mode considerations
Suggested command sequence to print bank check
Character Size
Slip Page Mode Enabled
Page mode configurations
Slip Page Mode Improved
Slip Page Mode Disabled Print and return to standard mode
Select page mode
Select standard mode
Select print direction in page mode
ESC W n1, n2 ...n8
Set print area in page mode
Continued
1B 57 n1, n2 ...n8
Continued
Set absolute vertical print position in page mode
Set relative vertical print position in page mode
29 92 nL nH
Macros
Select or cancel macro definition
Execute macro
Continued
MICR commands
MICR reading
Read MICR data and transmit
Define parsing format, save in NVRAM
MICR parsing
Transmit last MICR read
Define parsing format, do not save permanently
Other parameters
Continued
Sample parsing formats
Chapter 5 Programming commands 117
ESC w p 18 A CR
All characters in the transit number Field separator
Continued
Check serial number
which writes the two byte word n1n2 to word k in NVRAM
Loading the exception table
Exception table entry format
Example
User data storage
Maintaining the exception table
Write to user data storage
Example
Write to non-volatile memory NVRAM
Read from user data storage
Read from non-volatile memory
Select memory type SRAM/flash
Continued
Flash memory user sectors allocation
Expanded flash memory allocation
1D 22
Select flash area for storing logos and user-defined characters
Erase user flash sector
Continued
User storage status ColorPOS
Continued
allocation commands
Flash download
memory sector to download
Return boot sector firmware part number
Return segment number status of flash memory
Get firmware CRC
Erase selected flash sector
Erase all flash contents except boot sector
Return main program flash CRC
Download to active flash sector
Set IP address
Reset firmware
Restore default settings
Set Net Mask
Telnet Daemon
Set Gateway
Set raw TCPIP port
BootP
DHCP auto-configuration
Inactivity timeout
Keep-alive pings
Hexadecimal ID B0 Parameters None
Imaging Commands
Calibrate Scanner
Value
Set Image Format Properties
Configure/Change Image Transmission Port
Set Top Entry Startup Delay
Hexadecimal 1D B1 m n
Value
Configure Binarization Methods and Attributes
Method
Definition
Return None
Define/Update Application Tag Values
Decimal Value
Definition
Hexadecimal 1D B6 Parameters None
Attach Scan Application Tags
Return Imager Status
Hexadecimal 1D B7
Value
Real-Time Imager Status
Hexadecimal 10 04 Parameters None
Definition
Wait for Scan & Optionally Transmit
Real-Time Error Status
Real-Time Cancel Image Transmission
Hexadecimal 10 05 Parameters None Return None
Decimal
Value
Definition
Meaning
Transmit Image
Value
Definition
Decimal
Value
Definition
Meaning
Value
Eject from Scanner
Hexadecimal 1D BA p
Definition
Get Buffered Image List
Free Image
Free Imager Buffering
Get Buffered Image Attributes
Transmit Printer Type Extended Existing Command
Configure Scan Options
Configure Max Scan Width & Height
Hexadecimal 1D C6 m n Parameters
Chapter 6 DH emulation for B780
List of DH 4700 Emulation Commands
Command Name
Hexadecimal Code
146 Chapter 6 DH emulation
List of DH emulation Commands continued
Command Name
Hexadecimal Code
Setup Parameters
List of DH 4700 Command Descriptions
Printer Function Commands
End of Text
Document Clamp Open
Reset Printer
Cash Drawer
Self Test
Form Eject
Clamp Delay
Document Clamp Close
Download
Buffered Validate
Print Characteristics Commands
Print Speed
Buffer Clear
Character Set
Double-High Off
Underline Print
Underline Off
Double-High Font
Graphics 5 Dot
Graphics Commands
Graphics
Continued
Status 6 Bit
Printer Status Commands
Status 3 Bit
Status-Firmware
Chapter 6 DH Emulation 155
A776-PG00001 C 12/09
A776 B780 Programming Guide
26 s c1 c2
Commands listed by hexadecimal code
Appendix A
27 m a0 a1 a2 d1…dm
Code hexadecimal
Command
Appendix A Commands by hexadecimal code
Page
Code hexadecimal
158 Appendix A Commands by hexadecimal code
Command
73 n1 n2 k
6B n d1
5E r t m
6B m nL nH d1... dn
71 a b c d e fL fH
9A n m o
8B n m o
90 m x y o p q
1D C5 nL nH m d1-dn-1
08 03 n1 n2 n3 n4
08 01 n1 n2 n3 n4
08 02 n1 n2 n3 n4
08 04 n1 n2 n3 n4
Appendix B Resident Character Sets
Code Page 437 US
A776-PG00001 C 12/09
Code page 737 Greek
Appendix B Resident Character Sets
A776 B780 Programming Guide
Code page 850 Multilingual
164 Appendix B Resident Character Sets
A776-PG00001 C 12/09
Code Page 852 Slavic
A776-PG00001 C 12/09
A776 B780 Programming Guide
Code Page 857 Turkish
166 Appendix B Resident Character Sets
A776-PG00001 C 12/09
Code page 858 with Eurosymbol
A776-PG00001 C 12/09
A776 B780 Programming Guide
Code page 860 Portugese
168 Appendix B Resident Character Sets
A776-PG00001 C 12/09
Code page 862 Hebrew
A776-PG00001 C 12/09
A776 B780 Programming Guide
Code page 863 French Canadian
170 Appendix B Resident Character Sets
A776-PG00001 C 12/09
Code page 865 Nordic
A776-PG00001 C 12/09
A776 B780 Programming Guide
Code page 866 Cyrillic
172 Appendix B Resident Character Sets
A776-PG00001 C 12/09
Code page 1252 Windows Latin
A776-PG00001 C 12/09
A776 B780 Programming Guide
Page
1F 0A C2 - Disable
1F 03 18 01 n Auto Journal Mode via Configuration Command
Auto Journal Mode via Runtime Command 1F 0A C1 - Enable
Appendix C Electronic Journal
Exception Conditions in Auto Journal Mode
Journal RAM buffer
Journal Flash buffer
1F 0A C3 Clear Journal
Printing and Erasing the Journal Flash Buffer
Operator Activation of Journal Print and Erase
1F 0A C4 Print Journal
1F 0A C7 Write Journal RAM Data to Flash
1F 0A C5 Return Journal Status
1F 0A C6 Return Journal Flash Size
178 Appendix C Electronic Journal
Page
A776-PG00001 Rev. C 12/09