HP Value Serial/USB Receipt Printer II User guide

Category
Print & Scan
Type
User guide
Programming Guide
HP Value Serial/USB
Receipt Printer II
© Copyright 2016 HP Development Company, L.P.
The information contained herein is subject to change without notice. The only warranties for HP products and
services are set forth in the express warranty statements accompanying such products and services. Nothing herin
should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial edits or
omissions contained herein.
First Edition: October 2016
Document Part Number: 907769-001
www.hp.com
Contents 3
Contents
Chapter 1: Diagnostics and Conguration ..........................................9
Start-up Diagnostics ...........................................................................9
Runtime diagnostics .........................................................................10
Remote diagnostics ..........................................................................10
Indicators ...........................................................................................12
Printer conguration ........................................................................13
Conguring the printer ....................................................................14
Communication interface settings ..................................................15
Diagnostics modes ............................................................................ 16
Enable or disable data scope mode .................................................16
Enable or disable receipt test mode ................................................17
Electronic Journal Datascope Diagnostic ....................................... 17
Printer emulations ............................................................................17
Printer settings and functions .........................................................18
Select the emulation/software options sub-menu to set: ..........................18
Select the hardware options sub-menu to set: .............................................19
Select the rmware features sub-menu to set: .............................................. 19
Chapter 2: Programming the Printer .................................................20
Overview of commands ....................................................................20
Comparison to A793 .........................................................................20
Character appearance.......................................................................22
Width specications ..........................................................................22
Standard........................................................................................................................22
Compressed .................................................................................................................22
Print zones .........................................................................................22
Print zones for 80mm paper ............................................................. 22
Rotated printing commands ............................................................23
Emulation modes ..............................................................................23
Print setup in emulation modes .......................................................23
Chapter 3: Programming Commands ................................................24
Commands listed by function ..........................................................24
Printer actions ...................................................................................24
Print and paper feed ........................................................................24
Vertical and horizontal positioning ................................................ 25
Text characteristics ...........................................................................25
Graphics ............................................................................................26
Status .................................................................................................26
Batch mode ..................................................................................................................26
Real time .......................................................................................................................27
Automatic status back / Unsolicited status mode .........................................27
Contents4
Bar codes ............................................................................................ 27
Page mode ........................................................................................28
Macros ................................................................................................28
User data storage ..............................................................................28
Flash download .................................................................................28
Settings commands ..........................................................................29
Miscellaneous conguration commands ........................................29
Command conventions ..................................................................... 30
Command descriptions .....................................................................30
Printer actions ...................................................................................30
Clear printer .................................................................................................................30
Perform full knife cut ................................................................................................30
Perform partial knife cut .........................................................................................31
Generate tone .............................................................................................................31
Select peripheral device (for multi-drop) .........................................................31
Initialize printer ..........................................................................................................32
Select sensors to stop printing .............................................................................32
Enable or disable panel button ............................................................................32
Generate pulse to open cash drawer .................................................................33
Select cut mode and cut paper ............................................................................33
Set timeout value for low-power idle state .....................................................34
Set printer into low-power idle state ..................................................................34
Print test form .............................................................................................................34
Port Idle Timeout .......................................................................................................34
Print and paper feed .........................................................................35
Print and feed paper one line ................................................................................ 35
Print and carriage return .........................................................................................35
Feed n print lines .......................................................................................................35
Feed n dot rows ..........................................................................................................36
Add n extra dot rows ................................................................................................36
Print ................................................................................................................................37
Print and feed paper ................................................................................................. 37
Print and feed n lines ................................................................................................37
Vertical and horizontal positioning .................................................38
Horizontal tab .............................................................................................................38
Set horizontal and vertical minimum motion units ...................................... 38
Set column ...................................................................................................................38
Set absolute starting position ............................................................................... 39
Set vertical line spacing to 1/6 inch ....................................................................39
Set vertical line spacing...........................................................................................40
Set horizontal tab positions ...................................................................................40
Set relative print position .......................................................................................41
Select justication .....................................................................................................42
Set left margin ............................................................................................................42
Set printing area width ............................................................................................43
Text characteristics commands ........................................................44
Select double-wide characters .............................................................................44
Select single-wide characters ...............................................................................44
Select 90 degree counter-clockwise rotated print ........................................44
Contents 5
Select pitch (column width) ..................................................................................45
Set right-side character spacing ..........................................................................45
Select print mode ......................................................................................................46
Select or cancel user-dened character set .....................................................47
Dene user-dened character set .......................................................................47
Dene extended user-dened character set ...................................................48
Select or cancel underline mode .........................................................................48
Copy character set from ROM to RAM ...............................................................49
Cancel user-dened character ..............................................................................49
Select or cancel emphasized mode ....................................................................49
Select or cancel double-strike...............................................................................50
Select or cancel italic print .....................................................................................50
Select international character code ................................................................... 51
Select or cancel 90 degree clockwise rotated print ......................................52
Select international character set ....................................................................... 52
Select or cancel upside-down print mode .......................................................53
Select character size .................................................................................................54
Select or cancel white/black reverse print mode...........................................55
Set smoothing ............................................................................................................55
Select superscript or subscript modes ...............................................................56
Select active user-dened character set ...........................................................56
Download font list .....................................................................................................57
Congure use of font set.........................................................................................57
Congure line spacing .............................................................................................57
Double-byte fonts .............................................................................58
Lock permanent font ash area ............................................................................58
Erase user ash sector ..............................................................................................58
Select font ID number ..............................................................................................59
Select font style number ......................................................................................... 59
Save font ID number as default font at power up .........................................59
Get double-byte font CRC (font ID) .....................................................................59
Get double-byte font CRC (font ID and font style) ........................................59
Download font ............................................................................................................60
Graphics .............................................................................................60
Download BMP logo .................................................................................................60
Select bit image mode .............................................................................................61
Turn on/o TIFF compression ...............................................................................61
Print advanced raster graphics .............................................................................62
Select single-density graphics ..............................................................................62
Select double-density graphics ...........................................................................62
Select the current logo ............................................................................................63
Dene downloaded bit image ..............................................................................64
Print downloaded bit image ..................................................................................65
Print raster graphics .................................................................................................65
Print Flash Logo ..........................................................................................................66
Dene Flash Logos ....................................................................................................66
Logo print with knife cut ........................................................................................66
Set temporary max target speed .........................................................................67
Convert 6-dots/mm bitmap to 8-dots/mm bitmap ......................................67
Enable constant speed logos ................................................................................67
Contents6
Status .................................................................................................68
Status command introduction .............................................................................68
Batch mode ........................................................................................68
Transmit peripheral device status (RS-232C printers only) ........................68
Transmit paper sensor status ................................................................................69
Transmit printer ID ....................................................................................................69
Transmit printer ID, remote diagnostics extension .......................................71
Transmit status ...........................................................................................................74
Send printer software version ...............................................................................75
Real time commands .........................................................................75
Preferred implementation ......................................................................................76
Alternate implementation ......................................................................................76
Rules for using real time commands ..................................................................76
Moving data through the buer ..........................................................................76
Busy line and fault conditions ...............................................................................77
Real time status transmission................................................................................77
Real time request to printer ...................................................................................79
Real time printer status transmission .................................................................80
Real time commands disabled .............................................................................80
Automatic Status Back ...................................................................... 81
Enable/disable Automatic Status Back (ASB) ..................................................81
Unsolicited status mode ...................................................................84
Select or cancel unsolicited status mode (USM) ............................................84
Recognizing data from the printer ...................................................................... 86
Bar codes ............................................................................................ 87
QR code Overview ..................................................................................................... 87
Select model for QR code ......................................................................................87
Set size for QR code module .................................................................................87
Set data parsing mode for QR Code ...................................................................88
Select error correction level for QR Code .........................................................88
Store symbol data for QR Code ............................................................................88
Print symbol data for QR code ..............................................................................89
Transmit QR code print size ...................................................................................90
Select printing position of HRI characters ........................................................92
Select pitch of HRI characters ...............................................................................92
Select bar code height ............................................................................................. 92
Print bar code ..............................................................................................................92
Print multiple barcodes ...........................................................................................94
Print GS1 DataBar, null terminated .....................................................................95
Print GS1 DataBar, data length specied ..........................................................95
Set GS1 DataBar parameters .................................................................................96
Select PDF 417 parameters ....................................................................................96
Select bar code width ..............................................................................................97
Set DataMatrix Parameters ....................................................................................98
Set DataMatrix module size ...................................................................................99
Store DataMatrix data in symbol storage area ............................................. 100
Print DataMatrix symbol data in the symbol storage area ...................... 101
Page mode .......................................................................................102
Print and return to standard mode .................................................................. 102
Cancel print data in page mode ........................................................................102
Print data in page mode ......................................................................................102
Contents 7
Select page mode................................................................................................... 103
Select standard mode ........................................................................................... 104
Select print direction in page mode ................................................................ 104
Set print area in page mode ............................................................................... 105
Set absolute vertical print position in page mode ..................................... 106
Set relative vertical print position in page mode........................................ 106
Macros ..............................................................................................107
Select or cancel macro denition ..................................................................... 107
Execute macro ......................................................................................................... 107
User data storage ............................................................................108
Write to user data storage ................................................................................... 108
Read from user data storage ..............................................................................108
Select memory type (SRAM/ash) where to save logos
or user-dened fonts ............................................................................................. 108
Flash memory user sectors allocation ............................................................. 109
Flash object area pack ..........................................................................................109
Flash object delete ................................................................................................. 109
Expanded ash memory allocation ................................................................. 110
Select ash area for storing logos and user-dened characters ........... 110
Return ash area size ............................................................................................. 110
Erase user ash sector ........................................................................................... 111
Lock permanent font ash area ......................................................................... 111
Flash download ...............................................................................111
Switch to ash download mode .......................................................................112
Erase all ash contents except boot sector ................................................... 112
Return main program ash CRC ........................................................................ 112
Download application .......................................................................................... 113
Reset rmware .........................................................................................................113
Settings commands ........................................................................114
Save current settings .............................................................................................114
Restore factory settings........................................................................................ 114
Upload current settings ....................................................................................... 114
Upload factory settings ........................................................................................ 114
Download settings ................................................................................................. 114
Miscellaneous conguration commands ......................................115
Set diagnostics mode ............................................................................................ 115
Enable or disable knife ......................................................................................... 115
Enable or disable paper low sensor ................................................................. 115
Set max power ......................................................................................................... 115
Set printer emulation ............................................................................................ 116
Reset settings to default values ........................................................................ 116
Set partial cut distance ......................................................................................... 116
Set default font ........................................................................................................ 116
Set font size ...............................................................................................................117
Enable or disable Code 128 check digit calculation ..................................117
Enable or disable barcode ITF leading zero .................................................. 117
Enable or disable barcode string terminator ................................................117
Set paper low threshold extension .................................................................. 118
Enable or disable USM canned status ............................................................. 118
Send diagnostic pages to comm port ............................................................. 118
Enable or disable EJ action via operator control ......................................... 118
Contents8
Set ne adjustment of partial cut steps ......................................................... 119
Set printer ID mode ............................................................................................... 119
Set default code page at power on ..................................................................119
Set Asian ASCII characters to narrow...............................................................119
Set vertical white space ........................................................................................ 120
Set printer tone ....................................................................................................... 120
Enable or disable shutdown mode .................................................................. 120
Set shutdown mode timeout ............................................................................. 120
Appendix A:
Commands listed by hexadecimal code ..........................................121
Appendix B:
Resident Character Sets ....................................................................126
Character sets ..................................................................................126
Character code table Page 0 (PC437: USA, Standard Europe): ....126
Character code table Page 1 (PC850: Multilingual Latin I): .........127
Character code table Page 2 (PC852: Latin II): ..............................128
Character code table Page 3 (PC860: Portuguese): ......................129
Character code table Page 4 (PC863: Canadian French): .............130
Character code table Page 5 (PC865: Nordic): ..............................131
Character code table Page 6 (PC858: Multilingual I + Euro): .......132
Character code table Page 7 (PC866: Russian):.............................133
Character code table Page 8 (WPC1252: Latin I): .........................134
Character code table Page 9 (PC862: Hebrew): ............................135
Character code table Page 10 (PC737: Greek): .............................136
Character code table Page 11 (PC874: Thai): ................................137
Character code table Page 12 (PC857: Turkish): ...........................138
Character code table Page 13 (WPC1251: Cyrillic): ......................139
Character code table Page 14 (WPC1255: Hebrew): .....................140
Character code table Page 15 (KZ_1048: Kazakh): .......................141
Character code table Page 16 (WPC1256: Arabic): .......................142
Character code table Page 17 (WPC1250: Central Europe):.........143
Character code table Page 18 (WPC28591: Latin 1): ....................144
Character code table Page 19 (WPC28592: Latin 2): ....................145
Character code table Page 20 (WPC28599: Turkish): ...................146
Character code table Page 21 (WPC28605: Latin 9): ....................147
Character code table Page 22 (PC864: Arabic): .............................148
Character code table Page 23 (PC720: Arabic): .............................149
Character code table Page 24 (WPC1254: Turkish): .....................150
Character code table Page 25 (WPC28596: Arabic): .....................151
Character code table Page 26 (KATAKANA: Asia): ........................152
Character code table Page 27 (PC775: Baltic): ..............................153
Character code table Page 28 (WPC1257: Baltic): ........................154
Character code table Page 29 (WP28594: Baltic): ........................155
Chapter 1: Diagnostics and Conguration
9
Chapter 1: Diagnostics and Conguration
The printer performs a number of diagnostics that provide useful information about the operating status of the printer.
The following diagnostic tests are available.
• Start-updiagnostics
Performedduringtheprintersstart-upcycle.
• Runtimediagnostics
Performed during normal printer operation.
• Remotediagnostics
Maintained during normal operation and reported in the print test.
• Theprintercanbeconguredwiththefollowingsettingsandfunctionsthroughthecongurationmenuthatisprinted
onthereceipt.Formoreinformationonconguringtheprinter,see“Printerconguration”onpage13.
Communication interfaces
Diagnostic modes
Printer emulations/software options
Hardware options
PaperType
Firmware features
Start-up Diagnostics
Whentheprinterreceivespowerorperformsahardwarereset,itautomaticallyperformsthestartupdiagnostics(also
knownaslevel0diagnostics)duringthestart-upcycle.Thefollowingdiagnosticsareperformed:
• Turnoffmotors
• PerformbootCRCcheckofthermwareROMandtestmainprogramCRC
FailurecausesStart-upDiagnosticstostop;theprinterbeepsandtheLEDashesasetnumberoftimes,indicatingthe
natureofthefailure.Thetableinthe“Indicators”section(page12)describesthespecictoneandLEDsequences.
• Checkifpaperispresent
• Returntheknifetothehomeposition
Failurecausesafaultcondition.Thetableinthe“Indicators”section(page12)describesthespecictoneandLED
sequences.
• Checkifreceiptcoverisclosed
Failuredoesnotinterruptthestart-upcycle.
Atpowerup,iftheLEDblinkstwice,everyfourseconds,theobjectstorageareasarebeinginitialized.Thisprocesscould
takeuptotwominutes.Oncetheobjectstorageareainitializationiscompletetheprinterwillcontinuewithitsnormal
startupprocedureandoperation.DONOTRESETTHEPRINTERUNTILTHISPROCESSISCOMPLETE.
Whenthestart-updiagnosticsarecomplete,theprintermakesatwo-tonebeep(lowthenhighfrequency),thepaperfeed
buttonisenabled,andtheprinterisreadyfornormaloperation.
Iftheprinterhasnotbeenturnedonbefore,oranewEEPROMhasbeeninstalled,thedefaultvaluesfortheprinter
functionswillbeloadedintotheEEPROMduringstart-updiagnostics,andtheprinterwillmakeaquickfour-tonebeep
(highthenlowfrequency,twice)
Chapter 1: Diagnostics and Conguration10
Runtime diagnostics
Runtimediagnostics(sometimescalledlevel2diagnostics)runduringnormalprinteroperation.Whenthefollowing
conditionsoccur,theprinterautomaticallyturnsofftheappropriatemotorsanddisablesprintingtopreventdamagetothe
printer:
• Paper out
• Receiptcoveropen
• Knifeunabletohome
• Printhead too hot
• Voltagesoutofrange
TheLEDontheoperatorpanelwillsignalwhentheseconditionsoccuraswellasindicatewhatstateormodetheprinter
is in.
Remote diagnostics
Remotediagnostics(sometimescalledlevel3diagnostics)keepstrackofthefollowingtalliesandprintsthemonthe
receiptduringtheprinttest.Seethesampletestprintoutonthenextpage.Thesetalliescanbeusedtodeterminethe
printers state of health.
• Modelnumber
• Serialnumber
• CRCnumber
• Numberoflinesprinted
• Numberofknifecuts
• Numberofhourstheprinterhasbeenon
• Numberofashcycles
• Numberofcutterjams
• Numberoftimesthecoverisopened
• Numberofbarcodesprinted
• Numberofreceiptcharactersprinted
• Numberofprinterfaults
• Maximumtemperaturereached
• Numberofdotsprinted
• Numberofdotsprintedoncurrentprinthead
• Numberofprintheadchanges
• Numberofreceiptmechanismchanges
• Numberofknifemechanismchanges
• Numberofthermistorerrors
• Numberoflowvoltageerrors
• Numberofhighvoltageerrors
• Numberofrmwarestarts
• NumberofEEPROMupdates
Chapter 1: Diagnostics and Conguration
11
For more information about See this section
Accessing the remote diagnostic tallies “Command descriptions in Chapter 3: Programming Commands
(Status commands: Transmit printer ID, remote diagnostics extension,
Hexadecimal 1D 49 40 n)
Print test will vary per model or printer conguration.
(Shown approximately 60% of size.)
- Set Firmware Features - > 8 clicks
*** A798II - Diagnostics Form ***
Model number : A798-780X-TD00
Serial number : 0000000000
Loader Firmware
P/N : PN#: 189-799L111
Date : Nov 10 2015
Flash Firmware
Revision : V1.46
CRC : 9701
P/N : 189-798A146B
H/W parameters
Flash Memory Size : 8 Mbytes
Flash Logos/Fonts : 1600 kbytes
Flash User Storage : 576 kbytes
Flash Perm’nt Fonts : 2240 kbytes
Flash Journal Size : 640 kbytes
SRAM Size : 512 kbytes
Head settting : H
Motor ID : 1
Paper Type Setting : Type 0, Monochrome
Color Density Adj : n/a
Print Density, Mono : 100%
Max Speed : 180 mm/sec
Paper Width : 80 mm
Max Power : Level 1
Knife : Enabled
Partial Cut : 135 steps
Paper Low Sensor : Enabled
No Paper Low Extension
Comm. Interface
Interface : USB
RX Buer Size : 4096
USB Driver Type : Printer Class
Interface : RS232
RX Buer Size : 4096
Parameters
Baud Rate : 115200
Data Bits : 8
Stop Bit : 1
Parity : NONE
Flow Control : DTR/DSR
Reception Errors : Ignore
Resident Code Pages : 437, 720, 737, 775, 850
852, 857, 858, 860, 862...
Press Feed Button Within the
Next Two Seconds
***To Enter Printer Cong Menu***
A798IIDiagnosticsForm
Chapter 1: Diagnostics and Conguration12
Indicators
Theprintercommunicatesvariousconditionsbothvisually,withthegreenLEDoraudibly,withaseriesoftonesorbeeps.
The following table lists these indicators.
Indicator Sequence Condition
LED Continuous, ashing quickly Paper out
Cover open
Knife unable to home
LED Continuous, ashing slowly Paper is low
Printhead too hot
Voltages low/high
LED Continuous, Double LED ash Write to permanent memory in progress
Tone Two-tone beep Start-up diagnostics completed successfully
(low frequency, high frequency)
LED Two-Tone beep When entering ash download mode*
and Tone (high frequency, low frequency)
Continuous, quick blinking of LED
*Note: The printer enters ash download mode when a download command is sent to
the printer.
The printer is also able to communicate its status to the host application if the application has been programmed to receive
this information
For more information about See this section
Error conditions and correcting them Troubleshooting in the User Guide
Communication of printer status to the host application “Command descriptions in Chapter 3: Programming
Commands, Status sections.
Chapter 1: Diagnostics and Conguration
13
Printer conguration
Printersareshippedwithallthefunctionsandparameterspresetatthefactory.Settingsforvariousprinterparameters
canbechanged.Thismenuisprintedonthereceiptandscrollsthroughinstructionsforselectingandchanginganyofthe
functions or parameters.
Caution: Be extremely careful changing any of the printer settings to avoid inadvertently changing other settings that
might affect the performance of the printer.
Thefollowingfunctionsandparameterscanbechangedinthescrollingcongurationmenu(exceptasnoted):
• CommunicationInterfaces
Baud rate
Parity
Hardware(DTR/DSR)orsoftware(XON/XOFF)
owcontrol
Data reception errors
AlternateDTR/DSR
USBDriver
USBNAK
• DiagnosticsModes
Normal
Datascope(withorwithoutgraphics)
Receipttest
• PrinterEmulations
Nativemode
A794 emulation
A793emulation
LEGACYemulation
• Emulation/Softwareoptions
PrinterIDmode
Default lines per inch
Carriage return usage
Code128CheckDigit
Default font
Fontsize
Journal Print
• Hardware options
Monochromeprintdensity
MaxPower
Partial cut distance
Fine partial cut steps
Paper low sensor
Paperlowthresholdextension
Printheadsetting(cannotchange)
• Firmware features
Paper selection lockout
Beep after knife cut
Cash drawer open after knife cut
Energy-savingsTimeoutValue
For more information about See this section
Using the conguration menu “Conguring the printer
to congure the printer on page 14.
Chapter 1: Diagnostics and Conguration14
1 Turn power off to printer.
2 Make sure receipt paper is loaded in the printer before
proceeding. Make sure cover is closed.
3 Applypowertoprinterandimmediatelypressandhold
thepaperfeedbuttonuntilthecongurationprintout
begins.
• Theprinterbeeps,thenprintsDiagnosticsFormI.
• Pressthepaperfeedbuttonwithintwosecondsto
enterthecongurationmainmenu.
• TheprinterprintsDiagnosticsFormII,followed
bythePrinterCongurationMenu,andwaitsfor
amainmenuselectiontobemade(seesample
printoutonpage11;shortclicksareused,except
whenanswering“yes”orvalidatingselection).
4 Tocommunicatewiththeprinter,youwillpressthe
paperfeedbuttonusingeithershortorlongclicks.Use
alongclickfor“yes”(morethanonesecond)anda
shortclickfor“no.”Followtheprintedinstructionsto
make selections.
5 Continuethroughyourmenuselectionsuntilyouare
asked,“SaveNewParameters?”Select“Yes.”
a ResetthePrinter.
b Openthereceiptcover.
Press and hold the paper feed button while closing
the receipt cover.
Thediagnosticprintoutveriesyournewsettings.






Conguring the printer
Thecongurationmenuallowsyoutoselectfunctionsorchangevarioussettingsfortheprinter.Instructionsprintedonthe
receiptguideyouthroughtheprocesses.
Caution: Be extremely careful changing any of the printer settings to avoid changing other settings that might affect the
performance of the printer.
Chapter 1: Diagnostics and Conguration
15
Communication interface settings
Tochangethecommunicationinterfacesettings,enterthecongurationmenu,select“SetCommunicationInterface”from
the main menu.
Caution: Be extremely careful changing any of the printer settings to avoid inadvertently changing other settings that
might affect the performance of the printer.
Pressthepaperfeedbuttonasinstructedonthecongurationmenutoselectthesettingsyouwanttochange.
• Baudrate
115200baud
57600baud
38400baud
19200baud
9600baud
4800 baud
2400baud
1200baud
• Parity
NoParity
EvenParity
OddParity
• Flowcontrolmethod
Software(XON/XOFF)
Hardware(DTR/DSR)
• Datareceptionerrors
Ignoreerrors
Print“?”
• AlternateDTR/DSR
Enabled
Disabled
• USBDriver
Printer Class
Comm Class
• USBNAK
RejectPacketsWhenError
AcceptPacketsWhenError
Note: Press the paper feed button for at least one second to validate the selection.
For more information about See this section
Setting the RS-232C Serial interface settings “Conguring the printer on page 14
Chapter 1: Diagnostics and Conguration16
Diagnostics modes
Tochangethediagnosticmodesenterthecongurationmenu,select“SetDiagnosticsModes”fromthemainmenuand
selectoneofthefollowingmodes:
• Normal: normal operating mode of the printer.
• Datascope:thereceiptprinterprintsincomingcommandsanddatainhexadecimalformattohelptroubleshoot
communicationproblems.ThereareDataScopemodesforbothwithandwithoutgraphics.
• Receipt test:thereceiptprinterprintsallcodepagestoverifyproperprintingofthereceipt.
Caution: Be extremely careful changing any of the printer settings to avoid inadvertently changing other settings that
might affect the performance of the printer.
See“Conguringtheprinter,”page14forinstructionsonhowtoenterthecongurationmenu.
Enable or disable data scope mode
Thedatascopemodetestprintsahexadecimaldumpofalldatasenttotheprinter:“1”printsashexadecimal31,“A”as
hexadecimal41andsoon.Thishelpstroubleshootcommunicationproblemsandrunsduringanormalapplication(after
beingenabledthroughprinterconguration).
Note: Data scope mode is usually considered a level 1 diagnostic test.
Datascopemodeisenabledanddisabledbyselectingthe“DiagnosticsModes”sub-menuofthecongurationmenu.
Pressthepaperfeedbuttonasinstructedonthe“DiagnosticsModesMenu”toenableordisablethedatascopemodetest.
• Off,normalmode(Datascopemodedisabled)
• Datascopemodewithorwithoutgraphics(enabled)
Note: Press the paper feed button for at least one second to validate the selection.
To run the data scope mode:
1 Afteryouhaveenabledthedatascopemode,exitthecongurationmenu.
2 Runatransactionfromthehostcomputer.
Allcommandsanddatasentfromthehostcomputerwillbeprintedashexadecimalcharactersasshowninthe
illustration.
To exit the data scope mode:
1 Enterthecongurationmenuagain.
2 Disablethedatascopemode.
3 Exitthecongurationmenu.
Theprinterison-lineandcancommunicatenormallywiththehostcomputer.
For more information about See this section
Enabling the data scope mode “Conguring the printer on page 14
Chapter 1: Diagnostics and Conguration
17
Enable or disable receipt test mode
Thereceipttestmodeveriesproperreceiptprinting.Receipttestisenabledanddisabledbyselectingthe“Diagnostics
Modes”sub-menuofthecongurationmenu.See“Conguringtheprinter”onpage14forinstructionsonhowtoenterthe
congurationmenu.
To run the receipt test mode:
1 Enablethereceipttestmodeinthecongurationmenu.
2 Exitthecongurationmenu.
3 Push the paper feed button. The receipt station prints all code pages and cuts the receipt.
4 Torepeatthistest,pushthepaperfeedbuttonagain.
To exit the receipt test mode:
1 Enterthecongurationmenuagain.
2 Disable the receipt test mode.
3 Exitthecongurationmenu.
Theprinterison-lineandcanagaincommunicatenormallywiththehostcomputer.
Electronic Journal Datascope Diagnostic
1F031802n=1,turnonelectronicjournaldatascope,runtimeonly
1F031802n=0,n>1,turnoffelectronicjournaldatascope,runtimeonly
1F031803n=1,turnonelectronicjournaldatascope,congurationsavedoverpowercycle
1F031803n=0,n>1,turnoffelectronicjournaldatascope,congurationsavedoverpowercycle
Whenenabled,“AutoJournal:Datascope”printsontheseconddiagnosticpage.
Thisdiagnosticisfordebuggingpurposes,andshouldbeusedonlyunderthedirectionofcustomer
support.
Printer emulations
Tochangetheprinteremulationssettings,enterthecongurationmenu,select“Emulation/SoftwareOptions”fromthe
mainmenuandanswer“Yes”to“Setprintermode?”printedonthereceipt.Thiswilltakeyoutotheinstructionsfor
setting the printer emulation.
Caution: Be extremely careful changing any of the printer settings to avoid inadvertently changing other settings that
might affect the performance of the printer.
Pressthepaperfeedbuttonasinstructedtoselecttheprinteremulationyouwant.
• Nativemode
• A794emulation
• A793emulation
• LEGACYemulation
Note: Press the paper feed button for at least one second to validate the selection.
For more information about See this section
Setting the printer emulation “Conguring the Printer” on page 14
Chapter 1: Diagnostics and Conguration18
Printer settings and functions
Tochangetheprintersettingsandfunctions,enterthecongurationmenu,selectthesub-menufromthemainmenuand
answerthequestionsprintedonthereceiptuntilyoucometotheinstructionsforselectingtheprintersettings.
Caution: Be extremely careful changing any of the printer settings to avoid inadvertently changing other settings that
might affect the performance of the printer.
Pressthepaperfeedbuttonasinstructedtoselecttheprintersettingsyouwant.
Select the emulation/software options sub-menu to set:
• PrinterMode
ThisfunctionisusedtosettheprinteremulationtoNative,A794,A793orLegacyemulation.
• PrinterIDmode
ThisfunctionisusedtodeterminewhatprinterIDvalueisreturnedinresponsetoaTransmitprinterIDcommand(1D
49 n)whentheprinterisinA794emulationmode.TheprintercanbeconguredtosendbacktheIDoftheA798II,
A794,A793orApplicationCompatibleEscapeCommandsystems.
• Defaultlinesperinch
Thisfunctionallowsyoutosetthedefaultforlinesperinchto:
• 8.13linesperinch
• 7.52linesperinch
• 6.77linesperinch
• 6.00linesperinch
• Carriagereturnusage
This function allows the printer to ignore or use the carriage return(hexadecimal0D)commanddependingonthe
application.Someapplicationsexpectthecommandtobeignoredwhileothersusethecommandasaprintcommand.
• Code128CheckDigit
Enablesordisablesthecalculationofthecheckdigit.
• Defaultfont
SetsthedefaultformonochromeandLEGACYemulations.
• Fontsize
Allowsusertosetfontsizefortheemulationbeingused.
• JournalPrint
Enablesordisablesoperatoraction.
Chapter 1: Diagnostics and Conguration
19
Select the hardware options sub-menu to set:
• Printdensity(monochromepapersonly)
Adjustsprintheadenergyleveltodarkenprintoutoradjustforpapervariations.Whenprinterprintshigh-density
printlines(textorgraphics),itautomaticallyslowsdown.FactorysettingfortheA798IIis100%.
WARNING: Choose a print density setting no higher than necessary to achieve acceptable print density. Failure to
observe this rule may result in a printer service call and may void the printer warranty. Running at a higher energy level
will reduce the printhead life. Consult your HP technical support specialist if you have questions.
• Powersupplylevel(Maxpower)
Youcanchoosefromthesepowersettingstomatchthepowersupply:
Auto
LevelI(55W)
LevelII(75W)
LevelIII(90W)
• Partialcutdistance
Allowstheusertosetthedistancethattheknifewillcutacrossareceiptin5stepincrementsbetween110-160.
• Finepartialcutsteps
Allowstheusertosettheamountofextrastepstheknifewillcutacrossareceipt,between0and4.
• Paperlowsensor
Senseswhenthepaperrollisgettinglowonpaper.
• Paperlowthresholdextension
Allowstheusertosettheamountoffootagefortheextensionin5footincrementsbetween-10and20feet.
For more information about See this section
Setting the printer functions “Conguring the printer on page 14
and settings
Select the rmware features sub-menu to set:
• Paperselectionlockout
• Beepafterknifecut
• Cashdraweropenafterknifecut
• Energy-savingstimeoutvalue
Allowstheusertoenableandsetthetime-outvalueto15,30,60,120,or240minutes,ortodisablethefeature.
Chapter 2: Programming the Printer20
Chapter 2: Programming the Printer
Overview of commands
Commandscontrolalloperationsandfunctionsoftheprinter.Thisincludesselectingthesizeandplacementofcharacters
andgraphicsonthereceipttofeedingandcuttingthepaper.Theprogrammingcommandshavebeenorganized,inorderof
hexadecimalcodewithinfunctionalgroups.Forthisreason,“related”commandsmaynotbelistedadjacenttooneanother.
Theoperationofvariousprintersmaybeemulatedbythecommands,includingthefollowing:
• A793/A794
• Native
• LEGACY
Anyofthecommandsmaybeusedinanycombinationtoprogramahostcomputertocommunicatewiththeprinter
(unlessotherwisenoted).
Somecommandslistedanddescribedheremaynotbeimplementedandareidentiedas“notimplemented.”Ifreceived,
theyareignoredandnotsenttotheprintbufferasdata.
Anynonlegalcommandshavetheirparametersenttotheprintbufferasdata.
Comparison to A793
ThefollowingtabledetailsthelistofcommandswhosebehaviordiffersbetweentheA793,A794,andA798IIbecauseof
thephysicaldifferencesofa6dots/mmhead(A793)versusan8dots/mmhead(A794andA798II).
Command Description Dierence between previous product
and new product emulation mode.
15 n Feed n dot rows This command will move the paper on the receipt in
n/203 inch steps instead of n/152 inch steps.
16 n Add n extra dot rows The dot rows will be measured in n/203 inches versus
n/152 inches.
1B 20 n Set right-side character spacing This command sets the right side spacing to “n horizontal
motion units. By default, these units are in terms of 1/203
inches versus 1/152 inches.
1B 24 n1 n2 Set absolute starting position For graphics commands, the position is scaled to best
match A793. In text mode, the equivalent character
position is calculated.
1B 26 s c1 c2 n1 d1...nn dn] Dene user-dened character set Since the dots on the A798II printhead are smaller, user
dened characters that were used on the previous printers
will appear smaller on the A798II printer.
1B 2A m n1 n2 d1...dn Select bit image mode In A793 emulation mode, graphics are scaled to best
match the size of the graphic in the A793 printer.
1B 33 n Set line spacing This command uses n in terms of n/360 inches. Since the
A793 had a fundamental step of 1/152 inch and the A798II
has a fundamental step of 1/203 inch, the actual line
spacing will not exactly match the requested spacing.
Continued...
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155

HP Value Serial/USB Receipt Printer II User guide

Category
Print & Scan
Type
User guide

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI