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