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
100
106
113
114
121
126
129
132
140
142
143
144
152
153
154
156
Contents
How to use this Guide
Where to find the basics
Where to find advanced technical information
Support
About this Guide
Startup Diagnostics
Runtime diagnostics
Remote diagnostics
Printer Status, Ethernet and Indicators
Ethernet terms and default setup
Ethernet Terminology
Ethernet Default Setup
Indicators
Indicator Sequence Condition
Green slip-in light in front of the paper feed button
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
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 Slip Character Spacing
A776 Slip Minimum Units
A776 Slip Left Margin and Print Width
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 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 Option to Trim Full Dots
Migrating to a new printer
Overview of Printing Characteristics
Programming the Printer 23
Receipt character specification
Character appearance
Rotated Scaled Shading
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
Batch mode
Unsolicited status mode Code hexadecimal Command
Status
Real-time
Micr check reader commands
Bar codes
Mode
Macros
Ethernet setup commands
User data storage
Flash download
1D 97 m n User storage status
Image Commands
Programming commands 35
Clear printer
Command conventions
Command descriptions
Close form
Open form
Perform partial knife cut
Generate tone
Select peripheral device for multi-drop
Selects the device to which the host computer sends data
Initialize printer
Set slip paper eject length
Select receipt or slip for setting line spacing
This command is ignored if n is out of range
Select paper sensors to output paper end signals
Programming commands 39
Enable or disable panel button
Default Bit of n Function
Select sensors to stop printing
Set slip paper waiting time
Generate pulse to open cash drawer
Sends a pulse to open the cash drawer
Release Paper
Set current color
After a power loss or reset the default value m=0 is reset
Select cut mode and cut paper
If m is out of the specified range, the command is ignored
Select slip station
Programming commands 43
Select receipt station
Set Interpretation of Set current color
Hexadecimal 1E Decimal
Print test form
Print and feed paper one line
Print and eject slip
Print and carriage return
Programming commands 45
Range of n Default
Feed n dot rows
Add n 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 vertical line spacing to 1/6 inch
Set column
Set absolute starting position
Programming commands 49
Set vertical line spacing
Set horizontal tab positions
Value of k
Set relative print position
Compatibility information A776 receipt vs. A756 receipt
Programming commands 51
Select justification
Set left margin
GS L nL nH
Default of y
Set horizontal and vertical minimum motion units
Set printing area width
GS P x y
Text characteristics commands
Select double-wide characters
Select single-wide characters
Select 90 degree counter-clockwise rotated print
Standard mode the horizontal motion unit is used
Select pitch column width
Selects the character pitch for a print line
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
Select or cancel underline mode
This command is ignored if n is out of the specified range
Programming commands 57
Copy character set from ROM to RAM
Select double-strike
Cancel user-defined character
Select or cancel emphasized mode
Printer output is the same as in emphasized mode
Cancel double-strike
Select or cancel italic print
Select international character set
Select or cancel 90 degree clockwise rotated print
Select or cancel upside-down print mode
Character sets cannot be mixed on the same line
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
Text strike-through mode ColorPOS
Select font ID number
CB hex Kanji CE hex Korean
Select font style number
Save font ID number as default font at power up
Download font
Download font list
Print downloaded font information
Programming commands 65
Define extended user-defined character set
Select active 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
Advanced raster graphics is not available in page mode
Dot single-density N1 + 256 × n2
Print advanced raster graphics
Value of r
Select double-density graphics
Print Flash Logo
Define Flash Logos
XHxL 1024 max printable xHxL = 72 = 576 dots wide YHyL
Define downloaded bit image
Print downloaded bit image
Print raster monochrome graphics ColorPOS
Print raster color graphics ColorPOS
Download logo image ColorPOS
Max n1 =
Programming commands 71
Monochrome shade mode ColorPOS
Color shade mode ColorPOS
Merge watermark mode ColorPOS
Logo print with color plane swap ColorPOS
Apply shading to logo 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
See Print downloaded bit image command
Logo print with knife cut
Set temporary max target speed
Decimal Values
Programming commands 77
Set LogoEZ colorization ColorPOS
Example
Value of f
= 3 link margin message printing
Modify the settings within the utility
Programming commands 79
LogoEZ utility default settings
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
Status command introduction
Transmit peripheral device status
Hexadecimal 1B 75 Decimal
Value of returned byte Bit
Programming commands 83
Transmit paper sensor status
Transmit printer ID
ESC
= 4 Logo Definition Bit Off/On Hex Decimal Function
Printer ID Specification ID Hexadecimal
Transmits the printer ID specified by n as follows
Transmit printer ID, remote diagnostics extension
Preforms the remote diagnostic function specified by n
Programming commands 85
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
Rules for using real-time commands
Preferred implementation
Alternate 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
Batch mode response
Unsolicited status mode USM
Recognizing data from the printer
Real time response
Select printing position of HRI characters
Select pitch of HRI characters
Select bar code height
Print bar code
Length
Programming commands 101 Exceptions
Bar code
Illegal data cancels this command
Undercut, default 0, can be set 0 to a-1
Programming commands Bar code
Set GS1 DataBar formerly RSS parameters
Programming commands 103
Print GS1 DataBar formerly RSS, data length specified
Print GS1 DataBar formerly RSS, null terminated
Type
Print multiple barcodes
GS k
Sample symbol description
Programming commands 105
Defaults
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
Reset to power-on parameters
Size
Character Size
Exceptions
Mode configurations
Slip Page Mode Improved
Slip Page Mode Enabled
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
Command is effective only in page mode
Set absolute vertical print position in page mode
Set relative 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
Micr commands
Programming commands Formulas
Read Micr data and transmit
Status Status byte value
Micr parsing
Transmit last Micr read
Define parsing format, save in Nvram
Define parsing format, do not save permanently
Error number One digit returned
Status Two digits returned
Field separator
Country code One digit returned
Sample parsing formats
Programming commands ESC w p T ‘/ a ‘/ C ‘/ S CR
Programming commands 119
Check serial number
Loading the exception table
Which writes the two byte word n1n2 to word k in Nvram
Exception table entry format
Bits within byte
Write to user data storage
Programming commands 121
Maintaining the exception table
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
Memory allocation sequence
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
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
Default enabled
Set Gateway
Set raw Tcpip port
Telnet Daemon
Dhcp auto-configuration
Inactivity timeout
Programming commands 131
Keep-alive pings
Imaging Commands
Calibrate Scanner
Hexadecimal ID B0 Parameters None
Value Definition
Set Image Format Properties
Configure/Change Image Transmission Port
Set Top Entry Startup Delay
Configure Binarization Methods and Attributes
Method
Define/Update Application Tag Values
Programming commands 135
Decimal Value Definition
T6.G4 binary, else 1=Black is Zero
Attach Scan Application Tags
Return Imager Status
Hexadecimal 1D B6 Parameters None
Hexadecimal 1D B7
Real-Time Imager Status
Value Definition Decimal Meaning
Hexadecimal 10 04 Parameters None
Bit Meaning
Real-Time Error Status
Real-Time Cancel Image Transmission
Wait for Scan & Optionally Transmit
Hexadecimal 10 05 Parameters None Return None
Sensors currently covered none = 0 value
Bit 0 =1 rear image sensor covered
Bit 1 =1 front image sensor covered
Bit 2 =1 image cover open
Transmit Image
LZW lossless, also used in GIF compressed grayscale Tiff
Ccitt T.6 compression binary 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
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 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
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
DH Emulation 151
Underline Print
Underline Off
Double-High Off
Double-High Font
Graphics Commands
Graphics
Graphics 5 Dot
DH Emulation 153
Printer Status Commands
Status 3 Bit
Transmitted status is shown in the table
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
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
Returns one byte of status
1F 0A C6 Return Journal Flash Size
Journal flash Buffer used
Page
A776-PG00001 Rev. C 12/09