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