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