IBM 1xR, 2xR User Manual

0 (0)
SureMark 4610 Printers
Programming Guide for Models 1xR and 2xR

GA27-5005-01
SureMark 4610 Printers
Programming Guide for Models 1xR and 2xR

GA27-5005-01
Note
Before using this information and the products it support, be sure to read the general information in “Notices” on page 111, and the Safety Information – Read This First manual, GA27-4004, and Warranty Documents that ships with this product.
This edition applies to IBM SureMark Printer Models 2xR and 1xR.
This edition replaces GA27-5005-01.
Current versions of the Retail Store Solutions documentation are available on the IBM Retail Store Solutions Website at www.ibm.com/solutions/retail/store/support. Select the product category and click on Publications to find the latest version of the document.
A form for reader's comments is also provided at the back of this publication. If the form has been removed, address your comments to:
IBM Corporation Retail Store Solutions Information Development Department ZBDA PO Box 12195 Research Triangle Park, North Carolina 27709 USA
When you send information to IBM, you grant IBM a nonexclusive right to use or distribute whatever information you supply in any way it believes appropriate without incurring any obligation to you.
© Copyright IBM Corporation 2008, 2011.
US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

Contents

Figures ..............vii
Tables ...............ix
About this book ...........xi
Who should read this guide .........xi
How this guide is organized .........xi
Related publications ...........xi
Publications accessibility ..........xii
Notice statements ............xii
Providing feedback ............xii
Summary of changes ........xiii
October 2011..............xiii
||
June 2009 ...............xiii
April 2009 ..............xiii
Chapter 1. Introducing the 4610 Models
1xRand2xR.............1
Operating system requirements ........1
RS-232 interface ............1
4690 OS ...............2
Hardware requirements...........2
Updating the firmware ...........3
Chapter 2. Communication parameters . 5
RS-232 serial parameter ...........6
RS-232 commands summary by function .....6
Alphabetized commands summary ......10
System commands ............13
Verify previous commands completed ....13
Status request ............13
Reset printer .............13
EC/Request/Real-time status request.....14
Retrieve Native Mode Status (when printer is in
|
compatibility mode) ..........14
||
Retrieve Native Mode Device ID (when printer is
|
in compatibility mode) .........14
||
Extended address command-request printer ID 15
Printer ID format ...........15
Emulation mode for Model 1xR / 2xR .....16
Emulation of Non-IBM printers........17
Preset or onetime-set commands .......18
Memory allocation ...........18
Double-byte characters .........20
Download graphics (logo) commands ....20
Predefine messages ...........22
Download user-defined characters ......23
User-defined code page mapping ......28
Request checksum of flash memory sector . . . 29
Retrieve checksum of each downloaded logo or
each stored message ..........29
Flash storage write ...........30
Erase flash sector ...........30
Microcode tolerance (MCT) information - loading 31 Microcode tolerance (MCT) information - request 31
Setup commands ............35
Set print mode ............35
||
Set or cancel double-wide mode ......37
Set or cancel double-high mode ......37
Set or cancel underline mode .......38
Set or cancel overline mode ........38
Set or cancel invert mode .........38
Set or cancel emphasized printing ......38
Select maximum print speed........39
Set or cancel unidirectional printing .....39
Set document length for landscape print....39
Request document length for landscape print . . 40
Set print station ............40
Select user-defined or resident character sets . . 41
Set code page.............41
Set intercharacter spacing for single byte
character sets .............42
Set intercharacter spacing for double byte
character sets .............42
Set or cancel rotated characters .......43
Set print station parameters ........43
Select 1/8-inch line spacing ........43
Select 1/6-inch line spacing ........44
Select color printing ..........44
Set line spacing using minimum units ....45
Set sheet eject length ..........45
Set horizontal tab positions ........46
Set left margin position .........46
Set right margin position .........47
Set relative position...........47
Set low paper calibration .........48
Align positions ............48
Set error recovery function ........49
Define document wait time ........49
Status sent to system ..........50
Select character for reprinted lines ......50
Re-initialize the printer .........51
Enable or disable the beeper ........51
Enable or disable the feed buttons .....52
Enable or disable upside-down printing ....52
Select character size for scalable fonts ....53
Fix font matrix ............54
Print logo inline ............54
Set or cancel strike-through ........55
Select thermal paper ..........55
Bar code commands ...........56
Print bar code ............56
Select horizontal size of bar code ......61
Select bar code height ..........61
Select printing position of human readable
information (HRI) ...........61
Select font for HRI ...........62
Print PDF417 bar code..........62
© Copyright IBM Corp. 2008, 2011 iii
Select PDF417 ECC (error correction codewords)
level ................63
Select aspect ratio PDF417 bar code .....63
Enable PDF417 truncation ........64
Print character commands .........64
Print and line feed ...........64
Print and line feed ...........64
Print, form feed, and cut the paper (FF) ....64
Print and feed paper n lines ........65
Print and feed paper using minimum units . . . 65
Print graphic messages ..........65
Select and print a graphics (logo) command . . 65 Print predefined graphics (logo) command . . . 67
Enable watermark printing ........68
Print predefined messages ........68
Check processing commands - 2CR only ....69
MICR read .............69
Flip check ..............71
Miscellaneous commands..........71
Horizontal tab ............71
Backspace for composite characters .....71
Return home (select print head location)....72
Paper cut/DI eject ...........73
Generate drive pulse for cash drawer.....73
Retrieve the flash storage.........73
Retrieve size of user flash storage ......74
Prepare printer for shut down (S3) .....74
||
Asynchronous (real-time) commands ......74
Real-time requests ...........74
Data buffer management and batch printing . . . 76
Marker command ...........76
Reset line count ............77
Disable line count ...........77
Hold printing until buffer is released .....77
Release print buffer...........78
Chapter 3. Page mode printing
commands .............79
Select page mode ............79
Select standard mode ...........79
Select printable area ...........79
Select printing direction/position .......80
Set vertical position............80
Set relative vertical position .........80
Set left margin position (standard mode), set
absolute print position (page mode) ......81
Set relative horizontal position ........81
Set printing position ...........82
Print, form feed and cut the paper.......82
Print page in page mode ..........83
Clear print data in page mode ........83
Chapter 4. Document handling ....85
Portrait mode..............85
Landscape mode ............86
Landscape printing commands .......86
Chapter 5. Status information .....89
Message from the printer ..........89
Status byte 1 .............90
Status byte 2 .............90
Status byte 3 .............90
Status byte 4 .............91
Status byte 5 .............91
Status byte 6 .............91
Status byte 7 .............91
Status byte 8 .............92
Status byte 9 .............92
Status byte 10 ............93
Status byte 11.............93
Status byte 12 ............93
Status byte 13 ............94
Status byte 14 ............94
||
Status byte 15 ............94
||
Status byte 16 ............95
||
Chapter 6. Character fonts ......97
Thermal printing font ...........97
Proportional fonts ............97
Preparing the fonts ...........97
Implementing proportional fonts ......98
Layout using align commands .......98
Layout using set tab position .......99
Proportional font conversion utility .....99
Chapter 7. Tests and diagnostics . . . 101
Low paper sensing and calibration ......101
Firmware offline tests (Models 2xR) ......102
Summary of the offline test menus (Models 2xR) 103 Changing the interface card or logic card . . . 104 Storing a new serial number in the firmware 105
Earlier methods for offline tests ......106
Firmware offline tests (Models 1xR) ......107
Summary of the offline test menus (Models 1xR) 108 Storing a new serial number in the firmware
after a logic or interface card change ....109
Customer receipt test ..........109
Notices ..............111
Electronic emission notices .........113
Federal Communications Commission statement 113 European Union EMC Directive conformance
statement ..............113
Industry Canada Class A Emission Compliance
statement ..............114
Avis de conformité aux normes d'Industrie
Canada ..............114
Germany ..............114
Australia and New Zealand .......114
Chinese Class A warning statement .....115
Japanese Electrical Appliance and Material
Safety Law statement ..........115
Japanese power line harmonics compliance
statement ..............115
Japanese VCCI Council Class A statement . . . 115 Japan Electronics and Information Technology Industries Association (JEITA) statement . . . 115
Korean communications statement .....115
Taiwanese Class A warning statement ....116
Taiwan contact information .........116
iv SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Cable ferrite requirement .........116
Electrostatic discharge ..........116
Product recycling and disposal .......117
Battery return program ..........118
For Taiwan: .............118
For the European Union: ........119
For California: ............119
Flat panel displays ...........120
Monitors and workstations .........120
Trademarks ..............120
Index ...............121
Contents v
vi SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR

Figures

1. Proportional font example........27
2. Composite Characters .........72
3. Paper feed and document feed buttons 102
4. Pressing the power button .......103
5. Example of the offline selection main menu 103
6. Offline tests activation ........107
7. Example of the offline selection main menu 108
© Copyright IBM Corp. 2008, 2011 vii
viii SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR

Tables

1. RS-232 operating systems supported ....1
||
2. Driver documentation by operating system 6
3. RS-232 commands organized by function 6
4. Commands in alphabetical order .....10
5. Device Type = 30...........15
6. Printer memory allocation defaults.....19
7. Unicode positions for code page 858 - 2 bytes
for each mapping location .......28
8. MCT command definitions .......31
9. Print characteristics ..........35
||
10. Characters that select font A, B, and C . . . 35
|| ||
11. Width and height for scalable fonts ....53
12. Code 128 character set .........58
13. Print bar code examples ........61
14. Print direction ...........80
15. Summary of status conditions ......89
16. Status byte 1 ............90
17. Status byte 2 ............90
18. Status byte 3 ............90
19. Status byte 5 ............91
20. Status byte 7 ............91
21. Status byte 8 ............92
22. Status byte 9 ............92
23. Status byte 10 ............93
24. Status byte 11 ............93
25. Status byte 12 ............93
26. Status byte 13 ............94
27. Status byte 14 ............94
28. Status byte 15 ............94
||
29. Status byte 16 ............95
||
30. MCT load command settings for low paper
and critically low paper ........101
31. Summary of the offline test menu items 103
32. Summary of the offline test menu items 108
||
© Copyright IBM Corp. 2008, 2011 ix
x SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR

About this book

This guide provides programming commands and other technical information for your IBM SureMark Models 2xR and 1xR printers.

Who should read this guide

This guide is intended for use by programming personnel who are installing, setting up, or modifying the IBM SureMark printer Models 2xR and 1xR.

How this guide is organized

This publication is organized as follows: v Chapter 1, “Introducing the 4610 Models 1xR and 2xR,” on page 1 describes the
hardware features of the 4610 Models 2xR and 1xR.
v Chapter 2, “Communication parameters,” on page 5 provides the communication
variables and commands required to customize your printer.
v Chapter 3, “Page mode printing commands,” on page 79 describes the
communication parameters for page mode printing.
v Chapter 4, “Document handling,” on page 85 describes the communication
parameters for document handling.
v Chapter 5, “Status information,” on page 89 describes the communication
parameters for the byte status information.
v Chapter 6, “Character fonts,” on page 97 describes the communication
parameters for the character fonts.
v Chapter 7, “Tests and diagnostics,” on page 101 is an overview of the MICR and
flipper tests, and the offline diagnostic tests available on the Models 2xR and 1xR.

Related publications

The following IBM publications are available from the IBM Retail Store Solutions Web site at www.ibm.com/solutions/retail/store/support. Select Publications.
v Safety Information – Read This First, GA27-4004 v IBM SureMark Printers: User's Guide for Models 2CR and 2NR, GA27-5003 v IBM SureMark Printers: Hardware Service Guide for Models 2CR and 2NR,
GA27-5004
v IBM SurePOS 700 Series: System Reference, SA27-4224 v IBM SurePOS 500 Series: System Reference, SA27-4255. v POSS Programming Reference and User's Guide, SC30-3560.
The following IBM printers and point-of-sales terminals require the following diskettes, which can be downloded from the IBM Retail Store Solutions Website at www.ibm.com/solutions/retail/store/support. Select Other Systems and Devices under Peripherals.
v IBM SureMark 4610 Printers: Fonts and Logos Utility Diskette
v IBM SureMark 4610 Printers: Firmware Update Diskettes
v IBM 4693 Point-of-Sale Terminals Reference Diskette
© Copyright IBM Corp. 2008, 2011 xi
v IBM 4694/4695 Point-of-Sale Terminals Service Diskette

Publications accessibility

The softcopy version of this guide and other related publications are accessibility enabled.

Notice statements

Notices in this guide are defined as follows:
Notes These notices provide important tips, guidance, or advice.
Important These notices provide information or advice that might help you
Attention These notices indicate potential damage to programs, devices, or
CAUTION These statements indicate situations that can be potentially
DANGER These statements indicate situations that can be potentially lethal
avoid inconvenient or problem situations.
data. An attention notice is placed just before the instruction or situation in which damage could occur.
hazardous to you. A caution statement is placed just before the description of a potentially hazardous procedure step or situation.
or extremely hazardous to you. A danger statement is placed just before the description of a potentially lethal or extremely hazardous procedure step or situation.

Providing feedback

Your feedback is important in helping IBM provide accurate and high-quality information.
To provide feedback to IBM:
v Print the reader's comment form included in the back of this document. v Complete the form, including a reference to the specific location of the text (for
example, the page or table number) in question.
v Return the completed form to IBM by mail or you can give the form to an IBM
representative.
Between major revisions of this document, there might be minor technical updates. The latest version of this document is available on the IBM Retail Store Solutions Website at www.ibm.com/solutions/retail/store/support/. Click Publications to search for the most current version of this document.
xii SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR

Summary of changes

October 2011

|
| |
| |

June 2009

April 2009

This update provides additional changes throughout the entire book from the new spec and the subject matter expert.
Changes or additions to the text are indicated by a change bar to the left of the text.
This update provides additional changes throughout the entire book from the new spec and the subject matter expert.
This update provides changes throughout the book from the new spec.
© Copyright IBM Corp. 2008, 2011 xiii
xiv SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR

Chapter 1. Introducing the 4610 Models 1xR and 2xR

| | | |
The IBM SureMark printer Models 1xR and 2xR printers consist of a high-speed thermal station and an impact station for printing inserted documents. For further information about the physical specifications of Models 2xR and 1xR, refer to the User's Guide for Models 2xR and 1xR, GA27-5003-00.

Operating system requirements

Drivers can be downloaded from the Retail Store Solutions Web site at www.ibm.com/solutions/retail/store/support/.

RS-232 interface

|
|
|
|
|
| |
|
|
| |
|
|
|
||| |
|
|
|
||
||||||| |
|||||||
||||||
| | | | |
|
|||||| | | |
|
|||||| | | |
|
|||||| | | |
|
|||||| | |
|
|||||| | | |
|
|||||| | |
The RS-232 interface supports systems with the following operating systems:
Table 1. RS-232 operating systems supported
Operating System
IBM 4690 Yes V5R2 and
Windows XP Yes Yes Yes Yes
Microsoft Windows Embedded for Point of Service (WEPOS) 1.11
Microsoft Windows Embedded POSReady 2009
Microsoft Windows 7 (Professional/ Ultimate)
IBM Retail Environment for SUSE Linux (IRES)
Novell Linux Point of Service (NLPOS)
SUSE Linux Enterprise Desktop (SLED) 11
SUSE Linux Enterprise Server (SLES) 11
JavaPOS Drivers
1.9.6 or later
Ye s Ye s Ye s Ye s
Ye s Ye s Ye s Ye s
Ye s Ye s Ye s Ye s
Ye s Ye s
Ye s Ye s
Ye s Ye s
Ye s Ye s
OPOS Drivers
1.9.6 or later
POS Subsystem
1.9.6 or later
Windows Native Drivers (NWD)
Direct IO Comments
V6R2
*
© Copyright IBM Corp. 2008, 2011 1
|
|
|
| |
|
|
| |
|
|
|
||| |
|
|
|
||
||||||
| | | |
|||||||
| | | |
Table 1. RS-232 operating systems supported (continued)
JavaPOS
Drivers Operating System
SUSE Linux Enterprise Point of Service (SLEPOS) 11
PC DOS 2000 Yes
* The 2NR/2CR printers are supported in compatibility mode in V5R2, but 4690 OS can only update the firmware starting with the 0820 maintenance package. The 1NR is supported in compatibility mode in V5R2, but requires package 0900 for firmware update. All of these models are supported in compatibility or native mode in V6R2.7.
1.9.6 or
later
Ye s Ye s
OPOS Drivers
1.9.6 or later
POS Subsystem
1.9.6 or later
Windows Native Drivers (NWD)
Direct IO Comments
|
|

4690 OS

Customers must be at these application levels (or higher) when running the 4690 OS:
Application Name Note: Some of these applications will only
support the printers if they are set in TI3/4 compatibility mode.
IBM SUREPOS Application Client/Server Environment for 4690 OS
IBM Chain Drug Sales Application 5669-212 9701 with PRPQ 5799-QYP
IBM 4680/4690 General Sales Application 5696-546 9701 with APAR IR33229 and
IBM 4680/4690 Supermarket Application 5696-536 9701 with APAR IR33228 plus
|||
Linux See note Release 1.4
Note: 4690 Terminal Services for Windows NT is required when you use Windows NT 4.0 or Windows 2000 as the primary operating system with this 4690 application.

Hardware requirements

SureMark printers operate with the following systems:
v IBM 4694 v IBM 4695 (RS-232 connection only and with power supply) v PC or other store controller with an RS-232 or USB port v SurePOS 100 Series v SurePOS 700 Series v SurePOS 500 Series v SurePOS 300 Series v IBM Self Checkout
|
v IBM Anyplace Kiosk
Product Number
5745-C44 N/A
Maintenance Level
PRPQ 5799-QYN
PRPQ 5799-QYL
2 SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR

Updating the firmware

A SureMark printer that is RS-232 attached has the capability to receive SureMark firmware updates from its attached host system unit. To update the firmware, use the latest drivers from the IBM Retail Store Solutions Web site: www.ibm.com/solutions/retail/store.
Chapter 1. Introducing the 4610 Models 1xR and 2xR 3
4 SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR

Chapter 2. Communication parameters

RS-232 serial parameter ...........6
RS-232 commands summary by function .....6
Alphabetized commands summary ......10
System commands ............13
Verify previous commands completed ....13
Status request ............13
Reset printer .............13
EC/Request/Real-time status request.....14
Retrieve Native Mode Status (when printer is in
|
compatibility mode) ..........14
||
Retrieve Native Mode Device ID (when printer is
|
in compatibility mode) .........14
||
Extended address command-request printer ID 15
Printer ID format ...........15
Emulation mode for Model 1xR / 2xR .....16
Emulation of Non-IBM printers........17
Preset or onetime-set commands .......18
Memory allocation ...........18
Double-byte characters .........20
Download graphics (logo) commands ....20
Predefine messages ...........22
Download user-defined characters ......23
Thermal code page ..........24
Proportional font ..........25
Impact code page ..........27
User-defined code page mapping ......28
Request checksum of flash memory sector . . . 29 Retrieve checksum of each downloaded logo or
each stored message ..........29
Flash storage write ...........30
Erase flash sector ...........30
Microcode tolerance (MCT) information - loading 31 Microcode tolerance (MCT) information - request 31
Setup commands ............35
Set print mode ............35
||
Set or cancel double-wide mode ......37
Set or cancel double-high mode ......37
Set or cancel underline mode .......38
Set or cancel overline mode ........38
Set or cancel invert mode .........38
Set or cancel emphasized printing ......38
Select maximum print speed........39
Set or cancel unidirectional printing .....39
Set document length for landscape print....39
Request document length for landscape print . . 40
Set print station ............40
Select user-defined or resident character sets . . 41
Set code page.............41
Set intercharacter spacing for single byte
character sets .............42
Set intercharacter spacing for double byte
character sets .............42
Set or cancel rotated characters .......43
Set print station parameters ........43
Select 1/8-inch line spacing ........43
Select 1/6-inch line spacing ........44
Select color printing ..........44
Set line spacing using minimum units ....45
Set sheet eject length ..........45
Set horizontal tab positions ........46
Set left margin position .........46
Set right margin position .........47
Set relative position...........47
Set low paper calibration .........48
Align positions ............48
Set error recovery function ........49
Define document wait time ........49
Status sent to system ..........50
Select character for reprinted lines ......50
Re-initialize the printer .........51
Enable or disable the beeper ........51
Enable or disable the feed buttons .....52
Enable or disable upside-down printing ....52
Select character size for scalable fonts ....53
Fix font matrix ............54
Print logo inline ............54
Set or cancel strike-through ........55
Select thermal paper ..........55
Bar code commands ...........56
Print bar code ............56
Print bar code examples ........61
Select horizontal size of bar code ......61
Select bar code height ..........61
Select printing position of human readable
information (HRI) ...........61
Select font for HRI ...........62
Print PDF417 bar code..........62
Select PDF417 ECC (error correction codewords)
level ................63
Select aspect ratio PDF417 bar code .....63
Enable PDF417 truncation ........64
Print character commands .........64
Print and line feed ...........64
Print and line feed ...........64
Print, form feed, and cut the paper (FF) ....64
Print and feed paper n lines ........65
Print and feed paper using minimum units . . . 65
Print graphic messages ..........65
Select and print a graphics (logo) command . . 65 Print predefined graphics (logo) command . . . 67
Enable watermark printing ........68
Print predefined messages ........68
Check processing commands - 2CR only ....69
MICR read .............69
Flip check ..............71
Miscellaneous commands..........71
Horizontal tab ............71
Backspace for composite characters .....71
Return home (select print head location)....72
Paper cut/DI eject ...........73
Generate drive pulse for cash drawer.....73
Retrieve the flash storage.........73
© Copyright IBM Corp. 2008, 2011 5
Retrieve size of user flash storage ......74
Prepare printer for shut down (S3) .....74
||
Asynchronous (real-time) commands ......74
Real-time requests ...........74
Data buffer management and batch printing . . . 76
Unless noted otherwise, the communication parameters in this section apply to SureMark printers that attach to a POS system with an RS-232 (EIA232) cable connection.
If you use the RS-485 or USB communications interface, refer to either the SureMark driver documentation in the appropriate IBM book for your operating system (see Table 2) or, when using OPOS drivers, to the OLE for Retail POS Application Programming Guide.
Table 2. Driver documentation by operating system
Operating System IBM Publication
4690 OS Version 1 and Version 2
DOS IBM Point-of-Sale Subsystem for DOS Programming
OS/2, Windows NT, Windows 95, and Windows
3.1x
Marker command ...........76
Reset line count ............77
Disable line count ...........77
Hold printing until buffer is released .....77
Release print buffer...........78
IBM 4690 OS API Specification for IBM 4610 Printers
Reference
IBM Point-of-Sale Subsystem Programming Reference and User's Guide
The 4690 OS manual is available on the current maintenance diskette for the IBM 4690 operating system. Current versions of all publications are available on the RSS web site.

RS-232 serial parameter

Protocol DTR/DSR mode or XON/XOFF mode
Baud Rate 9600, 19200, 115200
Start 1 bit Data 8 bits Parity None Stop 1 bit

RS-232 commands summary by function

The commands listed in Table 3 are described in detail in the following sections.
Table 3. RS-232 commands organized by function
Description Command Page
System Commands
EC/Request/Real-time status request
Enable/disable the feed buttons ESCc5nX'1B6335;n' 52.
Extended address command (request printer ID)
Re-initialize the printer ESC @ or X'1B40'. 51
Reset printer DLE ENQ @ or X'100540' 13
Status request ESC v or X'1B76' 13
DLE ENQ 4 or X'100534' Immediate or X'1B008000' Buffered 14
GS | SOH or X'1D4901' This is an IMMEDIATE command. 15
6 SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Table 3. RS-232 commands organized by function (continued)
Description Command Page
System Commands
Verify previous commands
X'1B00;80;00' 13
completed
Preset or Onetime-Set Commands
Download graphics (logo)
GS * logo# n1 n2 data or X'1D2A';logo#;n1;n2;data 20
commands
Download user-defined characters ESC & s n m data or X'1B26;s;n;m;data' 23
Erase flash EPROM sector ESC # n or X'1B23;n' 30
Flash storage write ESC ' n1 n2 data or X'1B27;n1;n2;data' 30
Microcode tolerance (MCT)
ESC M nhlor X'1B4D;n;h;l'. 31
information - loading
Microcode tolerance (MCT)
ESC S n or X'1B53;n' 31
information - request
Predefine messages GS : message# data GS : or X'1D3A; message#;data;'X'1D3A' 22
Send checksum of flash EPROM
ESC " n or X'1B22;n' 29
sector
Setup Commands
Align positions ESC a n or X'1B61;n'. 48
Define document wait time ESC f xyor X'1B66;x;y' 49
Enable/disable upside-down
ESC { n or X'1B7B;n' 52
printing
Fix font matrix ESC : n or X'1B3A n' 54
Print logo inline GS J d n1 n2 data or X'1D4A;d;n1;n2;data' 54
Request document length for
GS N X'02' Null or X'1D4E0200' 40
landscape print
Request document length for landscape print
GSc1n where n = 2 bytes indicating the length of the document in print motor steps.
“Request document length for landscape print” on page 40
Select 1/8-inch line spacing ESC 1 or X'1B31'. 43
Select 1/6-inch line spacing ESC 2 or X'1B32' 44
Select color printing ESC r n or X'1B72;n' 44
Select character for reprinted lines ESC + n or X'1B2B;n' 50
Select character size for scalable
GS ! n or X'1D21;n' 53
fonts
Select maximum print speed ESC / n or X'1B2F;n' 39
Select thermal paper GS; n or X'1D 3B n' “Select
thermal paper” on page 55
Select user-defined or resident
ESC % n or X'1B25;n' 41
character sets
Set code page ESC t n or X'1B74;n' 41
Chapter 2. Communication parameters 7
Table 3. RS-232 commands organized by function (continued)
Description Command Page
System Commands
Set document length for landscape print
Set error recovery function ESC c 4 n or X'1B63;34;n' 49
Set horizontal tab positions ESC D [n1 n2] NUL NUL or X'1B44[n1 n2]0000' 46
Set intercharacter spacing ESC SP n or X'1B20;n' 42
Set left margin position ESC $ n1 n2 or X'1B24;n1;n2' 46
Set line spacing using minimum units
Set or cancel double-wide mode ESC W n or X'1B57;n' 37
Set or cancel double-high mode ESC h n or X'1B68;n' 37
Set or cancel emphasized printing ESC G n or X'1B47;n' 38
Set or cancel invert mode ESC H n or X'1B48;n' 38
Set or cancel overline mode ESC x‘5F’ n or X'1B5F;n' 38
Set or cancel rotated character ESC V n or X'1B56;n' 43
Set or cancel underline mode ESC − n or X'1B2D;n': 38
Set or cancel unidirectional printing
Set print mode ESC ! n or X'1B21;n' 35
Set print station ESC c 0 n or X'1B6330;n' 40
Set print station parameters ESC c 1 n or X'1B6331;n' 43.
Set relative position ESC \ n1 n2 or X'1B5C;n1;n2' 47
Set right margin position ESC ] n1 n2 or X'1B 5D;n1;n2'' “Set right
Set sheet eject length ESC C n or X'1B43;n' 45
Status sent to system ESC ) n or X'1B29;n' 50
Bar Code Commands
Enable PDF417 truncation GS T n or X'1D54;n' 64
Select Aspect Ratio PDF417 bar code
Print bar code GS k n NUL or X'1D6B;n;data;00' 56
Print PDF417 bar code GS P data NUL or X'1D50;data;00' 62
Select bar code height GS h n or X'1D68;n' 61
Select font for HRI GS f n or X'1D66;n' 62
Select horizontal size of bar code GS w n or X'1D77;n' 61
Select printing position of human-readable information (HRI)
GSc1n where n = 2 bytes indicating the length of the document in print motor steps.
ESC 3 n or X'1B33;n' 45
ESC U n or X'1B55;n' 39
GS S r;c or X'1D53;r;c' 63
GS H n or X'1D48;n' 61
“Set document length for landscape print” on page 39
margin position” on page 47
8 SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Table 3. RS-232 commands organized by function (continued)
Description Command Page
System Commands
Select PDF417 ECC Level GS R n or X'1D52;n1;n2' 63
Print Character Commands
Print and line feed LF or X'0A' or CR or X'0D' 64
Print, form feed, and cut the
FF or X'0C' 64
paper (FF)
Print and feed paper n lines ESC d n or X'1B64;n' 65
Print and feed paper using
ESC J n X'1B4A;n' 65
minimum units
Print Graphic Messages
Select and print a graphics (logo)
ESC * d w h data or X'1B2A;d;w;h;data' 65
command
Print predefined graphics (logo)
GS / m logo# or X'1D2F;m;logo#' 67
command
Print predefined messages GS ^ message# or X'1D5E;message#' 68.
Miscellaneous Commands
Retrieve checksum of each
ESC | n1 n2 or X'1B7C n1 n2' 29 downloaded logo or each stored message
Tab to next tab stop HT or X'09' 71
Return home (select print head
ESC <nor 1B3C;n 72 location)
Paper cut/DI eject ESC i or ESC m -- X'1B69' or X'1B6D' 73
Generate drive pulse for cash
ESC p mn1n2or X'1B70;m;n1;n2' 73. drawer
Retrieve the flash storage ESC 4 n1 n2 X'1B34;n1;n2' 73
Retrieve size of user flash storage ESC 4 x '03 FF FF FF' or X'1B3403FFFFFF' 74
Check Processing Commands
Flip check ESC 5 or X'1B35' 71
MICR read ESC I or X'1B49' 69
Asynchronous (Real-Time) Commands
Real-time requests DLE ENQ n or X'1005n' 74
Data Buffer Management and Batch Printing
Reset line count ESC 6 or X'1B36' 77
Disable line count ESC 8 n or X'1B38'n 77
Hold printing until buffer is
ESC 7 or X'1B37' 77 released
Release print buffer DLE ENQ 1 X'10;05;31'' 78
Page Mode Printing Commands
Select page mode ESC L or X'1B4C' 79
Select standard mode ESC S or X'1B4f' 79
Select printable area ESC X or X'1B58;x;y;dx;dy' 79
Select printing direction/position ESC T n or X'1B54;n' 80
Chapter 2. Communication parameters 9
Table 3. RS-232 commands organized by function (continued)
Description Command Page
System Commands
Set vertical position GS $ y or X'1D24;y' 80
Set relative vertical position GS \ y or X'1D5C;y' 80
Set right margin position ESC ] n1 n2 or X'1B5D;n1;n2'' 47
Set left margin position (standard mode), Set absolute print position (page mode)
Set relative horizontal position ESC <5C>h n1 n2 or X'1B5C;n1;n2' 81
Set printing position GS ] xyor X'1D5D;x;y' 82
Print and form feed and cut the paper
Print page in page mode ESC FF or X'1B0C' 83
Clear print data in page mode CAN or X'18' 83
ESC $ n1 n2 or X'1B24;n1;n2' 81
FF or X'0C' 82

Alphabetized commands summary

Table 4. Commands in alphabetical order
Description Command Page
Align positions ESC a n or X'1B61;n' 48
Clear print data in page mode CAN or X'18' 83
Disable line count ESC 8 n or X'1B38'n 77
Define document wait time ESC f xyor X'1B66;x;y' 49
Download double-byte characters 485/USB Syntax: X'1B28;s;n;data' RS232 Syntax: ESC s ( n data or
X'1B;28;s;n;data''
Download graphics (logo) commands
Download user-defined characters ESC & s n m data or X'1B26;s;n;m;data' 23
Enable PDF417 truncation GS T n or X'1D54;n' 64
Enable/disable the feed buttons ESCc5nX'1B6335;n' 52.
Enable/disable two-color printing GS; n or X'1D3B n' 55
Enable/disable upside-down printing
Erase flash EPROM sector ESC # n or X'1B23;n' 30
Extended address command-request printer ID
Fix font matrix ESC : n or X'1B3A;n' 54
Flash storage write ESC ' n1 n2 data or X'1B27;n1;n2;data' 30
Flip check ESC 5 or X'1B35' 71
Generate drive pulse for cash drawer
Hold printing until buffer is released
Impact code page MCT commands. 27
GS * logo# n1 n2 data or X'1D2A;logo#;n1;n2;data' 20
ESC { n or X'1B7B n' 52
GS | or X'1D4901' 15
ESC p mn1n2or X'1B70;m;n1;n2' 73
ESC 7 or X'1B37' 77
20
10 SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Table 4. Commands in alphabetical order (continued)
Description Command Page
MICR read ESC I or X'1B49' 69
Microcode tolerance (MCT)
ESC M nhlor X'1B4D;n;h;l' 31
information - loading
Microcode tolerance (MCT)
ESC S n or X'1B53;n' 31
information - request
Paper cut/DI eject ESC i or ESC m or X'1B69' or X'1B6D' 73
Predefine messages GS : message# data GS : or X'1D3A;message#;data;1D3A' 22
Print and feed paper n lines ESC d n or X'1B64;n' 65
Print and feed paper using
ESC J n or X'1B4A;n' 65
minimum units
Print and line feed LF or X'0A' 64
Print and line feed CR or X'0D' 64
Print bar code GS k n NUL or X'1D6B;n;data;00' 56
Print logo inline GS J d n1 n2 data or X'1D4A;d;n1;n2;data' 54
Print page in page mode ESC FF or X'1B0C' 83
Print PDF417 bar code GS P data NUL or X'1D;50;data;00' 62
Print predefined graphics (logo)
GS / m logo# or X'1D2F;m;logo#' 67
command
Print predefined messages GS ^ message# or X'1D5E;message#' 68
Proportional font ESC & s n m data or X'1B26;s;n;m;data' 25
Real-time requests DLE ENQ m or X'1005n' 74
Re-initialize the printer ESC @ or X'1B40' 51
Request document length for
GS N X'02' Null or X'1D4E;02;00' 40
landscape print
Reset line count ESC 6 or X'1B36' 77
Retrieve size of user flash storage ESC 4 x '03 FF FF FF' or X'1B34;03;FF;FF;FF' 74
Retrieve the flash storage ESC 4 n1 n2 X'1B34;n1;n2' 73
Retrieve checksum of each
ESC | n1 n2 or X'1B7C;n1;n2' 29 downloaded logo or each stored message
Return home (select print head
ESC < n or X'1B3C;n' 72 location)
Select and print a graphics (logo)
ESC * d w h data or X'1B2A;d;w;h;data' 65 command
Select aspect ratio PDF417 bar code GS S r;c or X'1D53;r;c' 63
Select bar code height GS h n or X'1D68;n' 61
Select character for reprinted lines ESC + n or X'1B2B;n' 50
Select character size for scalable
GS ! n or X'1D21;n' 53 fonts
Select color printing ESC r n or X'1B72;n' 44
Select font for HRI GS f n or X'1D66;n' 62
Select horizontal size of bar code GS w n or X'1D77;n' 61
Select page mode ESC L or X'1B;4C' 79
Chapter 2. Communication parameters 11
Table 4. Commands in alphabetical order (continued)
Description Command Page
Select PDF417 ECC level GS R n or X'1D52;n1;n2' 63
Select printable area ESC X or X'1B58;x;y;dx;dy' 79
Select printing direction/position ESC T n or X'1B54;n' 80
Select printing position of human-readable information (HRI)
Select standard mode ESC S or X'1B4f' 79
Select user-defined or resident character sets
Select 1/6-inch line spacing ESC 2 or X'1B32' 44
Select 1/8-inch line spacing ESC 1 or X'1B31' 43
Send checksum of flash EPROM sector
Select maximum print speed ESC / n or X'1B2F;n' 39
Set code page ESC t n or X'1B74;n' 41
Set document length for landscape print
Set error recovery function ESC c 4 n or X'1B63;34;n' 49
Set horizontal tab positions ESC D [n1 n2] NUL NUL or X'1B44[n1n2]0000' 46
Set intercharacter spacing ESC SP n or X'1B20;n' 42
Set left margin position ESC $ n1 n2 or X'1B24;n1;n2' 46
Set left margin position (standard mode), Set absolute print position (page mode)
Set line spacing using minimum units
Set or cancel double-high mode ESC h n or X'1B68;n' 37
Set or cancel double-wide mode ESC W n or X'1B57;n' 37
Set or cancel emphasized printing ESC G n or X'1B47;n' 38
Set or cancel invert mode ESC H n or X'1B48;n' 38
Set or cancel overline mode ESC x‘5F’ n or X'1B5F;n' 38
Set or cancel rotated character ESC V n or X'1B56;n' 43
Set or cancel underline mode ESC − n or X'1B2D;n' 38
Set or cancel unidirectional printing
Set print mode ESC ! n or X'1B21;n' 35
Set print station parameters ESC c 1 n or X'1B63;31;n' 43
Set print station ESC c 0 n or X'1B63;30;n' 40
Set printing position GS ] xyor X'1D5D;x;y' 82
Set relative horizontal position ESC <5C>h n1 n2 or X'1B5C;n1;n2' 81
Set relative position ESC \ n1 n2 or X'1B5C;n1;n2' 47
Set right margin position ESC ] n1 n2 or X'1B5D;n1;n2'' 47
Set low paper calibration GSc2orX'1D63;32' 48
GS H n or X'1D48;n' 61
ESC % n or X'1B25;n' 41
ESC " n or X'1B22;n' 29
GSc1n 39
ESC $ n1 n2 or X'1B24;n1;n2' 81
ESC 3 n or X'1B33;n' 45
ESC U n or X'1B55;n' 39
12 SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Table 4. Commands in alphabetical order (continued)
Description Command Page
Set relative vertical position GS \ y or X'1D5C;y' 80
Set sheet eject length ESC C n or X'1B43;n' 45
Set vertical position GS $ y or X'1D24;y' 80
Status request ESC v or X'1B76' 13
Status sent to system ESC ) n or X'1B29;n' 50
Tab to next tab stop HT or X'09' 71
Thermal code page MCT commands; see Table 8 on page 31. 24

Verify previous commands completed

X'1B00;80;00' 13

System commands

This section describes the system commands.
Verify previous commands completed
Syntax:
X'1B00;80;00'
Purpose:
This command is used to ensure that all commands preceding it have been completed. The application waits for the status return with status byte 5, bit 1 set.
Remarks:
The printer status is returned in status bytes 1–16. Status byte 5, bit 1 is set after this request has been executed. See Chapter 5, “Status information,” on page 89 for more information.
Error Conditions:
None

Status request

Syntax:
ESC v or X'1B76'
Purpose:
The printer status is sent to the system. This command will be processed in the order it was received.
Remarks:
The printer status is returned in status bytes 1–16. See Chapter 5, “Status information,” on page 89 for more information. For RS-232 printers, this command is always buffered and processed in the order it is received.
Error Conditions:

Reset printer

Syntax:
None
DLE ENQ @ or X'100540'
Chapter 2. Communication parameters 13
Purpose:
The printer stops if processing a command and begins its reset routine. The print buffer is canceled. All commands are erased. All printer settings go back to default values.
Remarks:
None
Error Conditions:
None

EC/Request/Real-time status request

Syntax:
DLE ENQ 4 or X'100534' Immediate or X'1B008000' Buffered
Purpose:
To send the printer status to the system.
Remarks:
The printer status is returned in status bytes 1–16. Status byte 5 bit is set after the EC request is executed. When used as a buffered command, this command can be used to insure that all commands preceding it have been completed. The application waits for the status to return with Status Bytes 5, bit 1 set. (See Chapter 5, “Status information,” on page 89.)
Error conditions:
None
|
|
| |
| |
| | |
|
| |
|
|
| |
| |

Retrieve Native Mode Status (when printer is in compatibility mode)

Syntax:
GS N ENG NULL or X'1D;4E;05;00'
Purpose:
To read the native mode status when in compatibility mode.
Remarks:
16 status bytes of data will be sent over the serial following the status bytes. Status byte 5 is set, indicating that there is extra data attached.
Note: Supported on 2xR/1NR printers.
Error conditions:
None

Retrieve Native Mode Device ID (when printer is in compatibility mode)

Syntax:
GS N ENG NULL or X'1D;4E;05;01'
Purpose:
To read out the native mode device ID when in compatibility mode.
| | |
|
Remarks:
Following the 8 compatibility mode status bytes is the native mode device ID status bytes.
Note: Supported on 2xR/1NR printers.
14 SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Loading...
+ 114 hidden pages