Programming Guide
Printer without Imaging Printer with Imaging
Page
Contents
Contents A776 Configurable Slip Commands
B780 Configuration Commands
Bar codes Mode Macros Micr check reader commands
User data storage
Contents Print and paper feed
Convert 6-dots/mm bitmap to 8-dots/mm bitmap
113
100
106
114
129
121
126
132
143
140
142
144
154
152
153
156
Contents
Where to find advanced technical information
How to use this Guide
Where to find the basics
Support
About this Guide
Remote diagnostics
Startup Diagnostics
Runtime diagnostics
Printer Status, Ethernet and Indicators
Ethernet terms and default setup
Ethernet Terminology
Ethernet Default Setup
Green slip-in light in front of the paper feed button
Indicators
Indicator Sequence Condition
For more information about See this section
A760 wide slip station 66 columns
Migrating from existing CognitiveTPG printers
A758 wide slip station 66 columns
Command Description Difference between the A756 A776
24 n1 n2
Moving from the A756 to the A776 Emulation commands
NL nH
A776 Emulation Commands
A776 Configuration Commands
Select A776 Narrow Slip 51-column Compressed Print Option
Select A776 Delete Slip Trailing Spaces Option
Select A776 21 and 25-line Rotated Slip Print Options
Select Cover Open Option
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 Left Margin and Print Width
A776 Slip Character Spacing
A776 Slip Minimum Units
A776 Slip Print Justification
Moving from A756/A758 to A776 Two-color Commands
Ascii
LogoEZ colorization commands
Discription
Migrating from the A721 7221 printer to the B780
B780 Emulation Commands
B780 Configuration Commands
Select DH Pitch and Rotated Text Columns
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 Option to Trim Full Dots
Migrating to a new printer
Overview of Printing Characteristics
Programming the Printer 23
Rotated Scaled Shading
Receipt character specification
Character appearance
Standard
Programming the Printer 25
Print zones
Print zones for receipt station 80 mm paper
1B 64 n command, with n =
Print zones for slip station
Programming the Printer 27
Print Zones for Slip, Validation
Lines Inches
Rotated printing commands
Printer actions
Commands listed by function
Commands in bold are ColorPOS commands
Vertical and horizontal positioning
Text characteristics
Print and paper feed
Graphics
31
Status
Batch mode
Unsolicited status mode Code hexadecimal Command
Real-time
Mode
Micr check reader commands
Bar codes
Macros
Flash download
Ethernet setup commands
User data storage
1D 97 m n User storage status
Image Commands
Programming commands 35
Clear printer
Command conventions
Command descriptions
Perform partial knife cut
Close form
Open form
Generate tone
Initialize printer
Select peripheral device for multi-drop
Selects the device to which the host computer sends data
Set slip paper eject length
Select paper sensors to output paper end signals
Select receipt or slip for setting line spacing
This command is ignored if n is out of range
Programming commands 39
Select sensors to stop printing
Enable or disable panel button
Default Bit of n Function
Set slip paper waiting time
Release Paper
Generate pulse to open cash drawer
Sends a pulse to open the cash drawer
Set current color
If m is out of the specified range, the command is ignored
After a power loss or reset the default value m=0 is reset
Select cut mode and cut paper
Select slip station
Set Interpretation of Set current color
Programming commands 43
Select receipt station
Hexadecimal 1E Decimal
Print and eject slip
Print test form
Print and feed paper one line
Print and carriage return
Feed n dot rows
Programming commands 45
Range of n Default
Add n 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
Set horizontal tab positions
Programming commands 49
Set vertical line spacing
Value of k
Set relative print position
Compatibility information A776 receipt vs. A756 receipt
Set left margin
Programming commands 51
Select justification
GS L nL nH
Set printing area width
Default of y
Set horizontal and vertical minimum motion units
GS P x y
Select single-wide characters
Text characteristics commands
Select double-wide characters
Select 90 degree counter-clockwise rotated print
Selects the character pitch for a print line
Standard mode the horizontal motion unit is used
Select pitch column width
Set right-side character spacing
Character sets cannot be used together on the same line
Select print mode
Select or cancel user-defined character set
Slip s =
Define user-defined character set
Values and ranges Receipt
Programming commands 57
Select or cancel underline mode
This command is ignored if n is out of the specified range
Copy character set from ROM to RAM
Select double-strike
Cancel user-defined character
Select or cancel emphasized mode
Select or cancel italic print
Printer output is the same as in emphasized mode
Cancel double-strike
Select international character set
Character sets cannot be mixed on the same line
Select or cancel 90 degree clockwise rotated print
Select or cancel upside-down print mode
Select character code table
Hex Decimal Height
Select or cancel white/black reverse print mode
Character height selection
Set smoothing
This command is only valid for the receipt station
Reverse color text mode ColorPOS
CB hex Kanji CE hex Korean
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
Print downloaded font information
Select active user-defined character set
Programming commands 65
Define extended user-defined character set
Values and ranges
Download BMP logo
Select bit image mode
Value of m Mode No. of dots vertical No. of dots horizontal
Print advanced raster graphics
Advanced raster graphics is not available in page mode
Dot single-density N1 + 256 × n2
Value of r
Define Flash Logos
Select double-density graphics
Print Flash Logo
XHxL 1024 max printable xHxL = 72 = 576 dots wide YHyL
Define downloaded bit image
Print downloaded bit image
Download logo image ColorPOS
Print raster monochrome graphics ColorPOS
Print raster color graphics ColorPOS
Max n1 =
Programming commands 71
Monochrome shade mode ColorPOS
Color shade mode ColorPOS
Apply shading to logo ColorPOS
Merge watermark mode ColorPOS
Logo print with color plane swap ColorPOS
Hexadecimal 1D 89 n m Decimal
Programming commands 73
Form and merge real-time surround graphic ColorPOS
Save graphics buffer as logo ColorPOS
This command is ignored in page mode
Background logo print mode ColorPOS
Apply margin message mode ColorPOS
Shade and store logo ColorPOS
Set temporary max target speed
See Print downloaded bit image command
Logo print with knife cut
Decimal Values
Example
Programming commands 77
Set LogoEZ colorization ColorPOS
Value of f
= 3 link margin message printing
LogoEZ utility default settings
Modify the settings within the utility
Programming commands 79
Set LogoEZ attribute mapping ColorPOS
Programming commands Original attribute mapped table
Attributes substituted table Bit on
Convert 6-dots/mm bitmap to 8-dots/mm bitmap
Enable constant speed logos
Programming commands 81 Related information
Hexadecimal 1B 75 Decimal
Status command introduction
Transmit peripheral device status
Value of returned byte Bit
Transmit printer ID
Programming commands 83
Transmit paper sensor status
ESC
= 4 Logo Definition Bit Off/On Hex Decimal Function
Printer ID Specification ID Hexadecimal
Transmits the printer ID specified by n as follows
Programming commands 85
Transmit printer ID, remote diagnostics extension
Preforms the remote diagnostic function specified by n
GS I @ n
Programming commands Value of n
Hex Dec Remote diagnostic item Function
Programming commands 87
Transmit status
A776 B780 Programming Guide
Real-time commands
Send printer software version
Alternate implementation
Rules for using real-time commands
Preferred implementation
Moving data through the buffer
Real-time status transmission
Busy line and fault conditions
Programming commands 91
= Transmit error status Bit Status Hex Decimal Function
A776 B780 Programming Guide
Real-time request to printer
Real-time printer status transmission
Real-time commands disable
Programming commands 95
Unsolicited status mode
Select or cancel unsolicited status mode USM
Second byte error information
Bit Off/On Hex Decimal Status for USM
Third byte paper sensor information
Fourth byte paper sensor information -- A776
Recognizing data from the printer
Batch mode response
Unsolicited status mode USM
Real time response
Select bar code height
Select printing position of HRI characters
Select pitch of HRI characters
Print bar code
Length
Programming commands 101 Exceptions
Bar code
Programming commands Bar code
Illegal data cancels this command
Undercut, default 0, can be set 0 to a-1
Set GS1 DataBar formerly RSS parameters
Print GS1 DataBar formerly RSS, null terminated
Programming commands 103
Print GS1 DataBar formerly RSS, data length specified
Type
Print multiple barcodes
GS k
Defaults
Sample symbol description
Programming commands 105
GS p a b c d e f
Sets the bar code width to n dots
Related Information Value Dimension Row height
Select bar code width
Character Size
Reset to power-on parameters
Size
Exceptions
Slip Page Mode Enabled
Mode configurations
Slip Page Mode Improved
Slip Page Mode Disabled Print and return to standard mode
Select page mode
Programming commands 109
Select print direction in page mode
Select standard mode
This command is effective only in page mode
Set print area in page mode
Programming commands 111
Set relative vertical print position in page mode
Command is effective only in page mode
Set absolute vertical print position in page mode
NL + nH × 256 × vertical or horizontal motion unit inches
Execute macro
Select or cancel macro definition
Contents of the macro can be defined up to 2048 bytes
Read Micr data and transmit
Micr commands
Programming commands Formulas
Status Status byte value
Define parsing format, save in Nvram
Micr parsing
Transmit last Micr read
Define parsing format, do not save permanently
Field separator
Error number One digit returned
Status Two digits returned
Country code One digit returned
Sample parsing formats
Programming commands ESC w p T ‘/ a ‘/ C ‘/ S CR
Programming commands 119
Check serial number
Exception table entry format
Loading the exception table
Which writes the two byte word n1n2 to word k in Nvram
Bits within byte
Write to user data storage
Programming commands 121
Maintaining the exception table
Write to non-volatile memory Nvram
Read from user data storage
Read from non-volatile memory
Select memory type SRAM/flash
Memory allocation sequence
Flash memory user sectors allocation
Expanded flash memory allocation
22 80 31 nL nH Sectors to logo/font area 22 80 32 nL nH
Value of n = 49 Ascii n = 1 HEX
Programming commands Values and ranges
Erase user flash sector
Programming commands 125 = 50 Ascii n = 2 HEX
User storage status ColorPOS
Download mode
Hexadecimal 1B 5B 7D Decimal 27 91
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
Set raw Tcpip port
Default enabled
Set Gateway
Telnet Daemon
Programming commands 131
Dhcp auto-configuration
Inactivity timeout
Keep-alive pings
Hexadecimal ID B0 Parameters None
Imaging Commands
Calibrate Scanner
Value Definition
Set Image Format Properties
Configure/Change Image Transmission Port
Set Top Entry Startup Delay
Configure Binarization Methods and Attributes
Method
Decimal Value Definition
Define/Update Application Tag Values
Programming commands 135
T6.G4 binary, else 1=Black is Zero
Hexadecimal 1D B6 Parameters None
Attach Scan Application Tags
Return Imager Status
Hexadecimal 1D B7
Hexadecimal 10 04 Parameters None
Real-Time Imager Status
Value Definition Decimal Meaning
Bit Meaning
Wait for Scan & Optionally Transmit
Real-Time Error Status
Real-Time Cancel Image Transmission
Hexadecimal 10 05 Parameters None Return None
Bit 1 =1 front image sensor covered
Sensors currently covered none = 0 value
Bit 0 =1 rear image sensor covered
Bit 2 =1 image cover open
Ccitt T.6 compression binary Tiff
Transmit Image
LZW lossless, also used in GIF compressed grayscale Tiff
Reserved for Jpeg lossy
Structure containing the tags and images
Programming commands 141
Bytes Scanned image Tiff structure length
Hexadecimal 1D BA p
As in the Image Status Command return
Eject from Scanner
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 Description
DH Emulation 145
List of DH 4700 Emulation Commands
Hexadecimal Code Command Name
List of DH emulation Commands
Hexadecimal Code Command Name
List of DH 4700 Command Descriptions
Printer Function Commands
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
DH Emulation 151
Double-High Off
Underline Print
Underline Off
Double-High Font
Graphics 5 Dot
Graphics Commands
Graphics
DH Emulation 153
Transmitted status is shown in the table
Printer Status Commands
Status 3 Bit
Status 6 Bit
DH Emulation 155
Commands listed by hexadecimal code
Appendix a Commands by hexadecimal code
157
34 m a0 a1 a2
Appendix a Commands by hexadecimal code Code hexadecimal
159
Or …n160 Print raster color graphics
M n o Apply margin message mode
X y o p q
161
Appendix B Resident Character Sets
Code Page 437 US
Code page 737 Greek
163
Code page 850 Multilingual
Code Page 852 Slavic
165
Code Page 857 Turkish
Code page 858 with Eurosymbol
167
Code page 860 Portugese
Code page 862 Hebrew
169
Code page 863 French Canadian
Code page 865 Nordic
171
Code page 866 Cyrillic
Code page 1252 Windows Latin
173
Page
There are two methods for activating Electronic Journal
1F 03 18 01 n Auto Journal Mode via Configuration Command
Electronic Journal Storage
Journal Flash buffer
Exception Conditions in Auto Journal Mode
Journal RAM 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 C6 Return Journal Flash Size
1F 0A C5 Return Journal Status
Returns one byte of status
Journal flash Buffer used
Page
A776-PG00001 Rev. C 12/09