IBM 4610 SureMark GR3 Operating instructions

IBM 4610 SureMark Fiscal Printer
Turkey - Models GR3/GR5/GB3/GB5
Programming Guide Supplement
Version 21 01
Document Number (FTU90N21-PDF)
Owner: Alejandra Cartamil
Copy Printed: January 7, 2005 at 12:24 p.m.
CURRENCY STATEMENT
This version of the document was printed from an on-line system and must only be used for reference
purposes. The official copy of this document is the on-line version. Please preserve the integrity of the
documentation by destroying any obsolete versions and by not removing any pages from this printed
copy. A comment form is provided at the end of the document for your suggestions on the document
content and format.
— Page 1 of 183

Review and Approval Process
This document will be reviewed, approved, and reissued whenever significant updates have been made.
Reviewers
Document Distribution and Change Notification
This document is available to all R&DS personnel on the ALLENG database. When reissued with changes,
the document owner will notify all users, either by personal note, or general notice on the appropriate forum.
Archival Requirements
This specification is a strategic asset, maintain indefinitely
Document Availability
This document is stored in ALLENG with the Filename and Filetype of <FTU90N21 PDF>. Follow
the Product/Project Document Storage (ALLENG) Procedure, as defined in the G84 Department Operating
Manual (DOM), to view/copy this document.
Quality Records
Version Reviewers
All versions Erkut Erdemir - Turkey Marketing
Record Name Where Kept How Identified Retention Period
Review Record. Martinez TEAM CONNECTION
(family FISCAL), Component
TU90.
Heading in document.GA + 2 years.
Approval Record. Martinez TEAM CONNECTION
(family FISCAL), Component
TU90.
Heading in document.GA + 2 years.
Notification Record. Martinez TEAM CONNECTION
(family FISCAL), Component
TU90.
Heading in document.GA + 2 years.
Page 2 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programming

Summary of Changes
Changes resulting in document revisions will be summarized in this table in reverse chronological sequence.
Revision numbers and letters will highlight the text changed in new document versions.
Version Date Change Description
| v21 01| Jan 7, 2004|•There are not changes in the spec for this version.
|•This version of Programming Guide Supplement corresponds to
| microcode EC level 21.
v20 01 Dic 22, 2004 •Commands:
−18 cmd. (Set Fiscal Mode): the rules were changed.
−19 cmd. (Currency Management): the rules were changed.
•Training Mode:
−the rules were changed.
•This version of Programming Guide Supplement corresponds to
microcode EC level 20.
v19 01 Sep 2, 2004 •There are not changes for this version.
•This version of Programming Guide Supplement corresponds to
microcode EC level 19.
v18 01 Aug 27, 2004 •There are not changes for this version.
•This version of Programming Guide Supplement corresponds to
microcode EC level 18.
I v17 01I Aug 8, 2004I•Commands:
I−18 cmd. (Set Fiscal Mode): calculation and rules were added.
I−19 cmd. (Currency Management): rules were added.
I−D5 cmd. (Payment): payment types were changed.
I−06 cmd. (End Transaction): calculation were changed.
I−07 cmd. (Cancel Transaction): calculation were changed.
I−13 cmd. (Close Sale Period): calculation were changed.
I−DB cmd. (Electronic Read Counters and Accumulators): note 2
I was changed.
I•Printouts:
I−X-Report (Old Lira): was changed.
I−X-Report (New Lira): was changed.
I−Closure Report (Old Lira): was changed.
I−Closure Report (New Lira): was changed.
I−Extended Fiscal Memory Report (Old Lira): was changed.
I−Extended Fiscal Memory Report (New Lira): was changed.
I−Short Fiscal Memory Report (Old Lira): was changed.
I−Short Fiscal Memory Report (New Lira): was changed.
I•This version of Programming Guide Supplement corresponds to
I microcode EC level 17.
v14 01 May 23, 2004 •There are not changes in the spec for this version.
•This version of Programming Guide Supplement corresponds to
microcode EC level 14.
Summary of Changes — Page 3 of 183

Version Date Change Description
v13 01 May 4, 2004 •Lifetime Accumulators for old and new Lira: were created.
•Fiscal Memory:
−fiscal memory map was changed.
−new Lira table was added.
•13 cmd. (Close Sale Period):
−calculation of lifetime accumulators for old Lira were added.
−calculation of lifetime accumulators for new Lira were added.
•19 cmd. (Currency Management): set new Lira was added.
•DA cmd. (Electronic Read Fiscal Memory Tables):
−read new Lira table was added.
−response of daily entry table was changed.
•DB cmd. (Electronic Read Counters and Accumulators):
−byte 4 - bit 3 (Lifetime Accumulators) was added.
−byte 35 - bit 2 (New Lira Set) was added.
−lifetime accumulators for old Lira were added.
−lifetime accumulators for new Lira were added.
•FNEWCUR flag: was added.
•Msg′s C60, C61, D09 and D10: were created.
•Fiscal Voucher:
−for new Lira was added.
•X-Report:
−for old Lira was changed.
−for new Lira was added.
•Closure Report:
−for old Lira was changed.
−for new Lira was added.
•Fiscal Memory Report:
−for old Lira was changed.
−for new Lira was added.
•This version of Programming Guide Supplement corresponds to
microcode EC level 13.
v10 01 May 19, 02 •There are not changes in the spec for this version.
•This version of Programming Guide Supplement corresponds to
microcode EC level 10.
v0F 01 Mar 18, 02 •There are not changes in the spec for this version.
•This version of Programming Guide Supplement corresponds to
microcode EC level 0F.
v0E 01 Dic 23, 02 •There are not changes in the spec for this version.
•This version of Programming Guide Supplement corresponds to
microcode EC level 0E.
v0D 01 Dic 6, 02 •F7 cmd. (Command Buffer Management): was added.
•This version of Programming Guide Supplement corresponds to
microcode EC level 0D.
v0C 01 Nov 26, 02 •RC 201: was changed.
•This version of Programming Guide Supplement corresponds to
microcode EC level 0C.
v0B 01 Jul 22, 02 •CD cmd. (Cash Drawer Management): was added.
•This version of Programming Guide Supplement corresponds to
microcode EC level 0B.
Page 4 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programming

Version Date Change Description
v0A 02 Jun 13, 02 •There are not changes in the spec for this version.
•This version of Programming Guide Supplement corresponds to
microcode EC level 0A.
v07 01 Mar 13, 02 •There are not changes in the spec for this version.
•This version of Programming Guide Supplement corresponds to
microcode EC level 07.
v06 03 Jan 3, 02 •F4 cmd. (Head Position & Open/Close Throat): open and close
throat were added.
•This version of Programming Guide Supplement corresponds to
microcode EC level 06.
v05 01 Dic 11, 01 •Printer and Fiscal Unit Status - GB3/GB5 Models (USB): byte 10
was changed.
•This version of Programming Guide Supplement corresponds to
microcode EC level 05.
v04 02 Nov 28, 01 •RC′s 193, 213, 225, 226 and 237: were eliminated.
•RC′s 204, 210 and 235: were added.
•RC′s 200, 203, 206 and 214: were changed.
•Msg′s 108, 109, 110, 111 and 112: were added.
•The accumulators Tra_Pay_Type_0, Tra_Pay_Type_1,
Tra_Pay_Type_2, Tra_Pay_Type_3, Tra_Pay_Type_4,
Tra_Payment, Day_Pay_Type_0, Day_Pay_Type_1,
Day_Pay_Type_2, Day_Pay_Type_3, Day_Pay_Type_4 and
Day_Payment: were added.
•D5 cmd. (Payment): payment types were added.
•D8 cmd. (Not Paid): new accumulators were added.
•06 cmd. (End Transaction): payment accumulators were added.
•DB cmd. (Electronic Read Counters and Accumulators): payment
types accumulators are showed.
•1C cmd. (Set Training Mode Off): was eliminated.
•1D cmd. (Set Training Mode On): was eliminated.
•X-Report and Closure Report: daily payment types accumulators
are printed.
•Fiscal Memory size: was changed to 512 Kbytes (524288 bytes) -
Type 27C040.
•This version of Programming Guide Supplement corresponds to
microcode EC level 04.
v04 01 Oct 30, 01 •Printer and Fiscal Unit Status - GB3/GB5 Models (USB): was
added.
•This version of Programming Guide Supplement corresponds to
microcode EC level 04.
Summary of Changes — Page 5 of 183

Table 1. Change Summary
Version Date Change Description
v03 01 Oct 10, 01 •E0 cmd. (Print Fiscal, Return and Diplomatic Receipt): was
changed.
•E3 cmd. (End Fiscal, Return and Diplomatic Receipt): was changed.
•0F cmd. (Cancel Fiscal, Return and Diplomatic Receipt): was
changed.
•E2 cmd. (Print Waybill Receipt): was changed.
•E5 cmd. (End Waybill Receipt): was changed.
•11 cmd. (Cancel Waybill Receipt): was changed.
•C0 cmd. (Print Credit Card Slip): was changed.
•C1 cmd. (End Credit Card Slip): was changed.
•DD cmd. (Start Application-Originated Report): was changed.
•EB cmd. (Ordinary Print Line on DI Station): was changed.
•This version of Programming Guide Supplement corresponds to
microcode EC level 03.
v02 02 Oct 04, 01 •13 cmd. (Close Sale Period): new calculations were added.
•X-Report Printout: was changed.
•Closure Report: was changed.
•Application-Originated Report on DI Printout: was changed.
•Turkish Character 0x8D (141): was added.
•Fiscal Logo for Thermal Station: was added.
•This version of Programming Guide Supplement corresponds to
microcode EC level 02.
v01 01 Jun 26, 01 •DD cmd. (Start Application-Originated Report): was changed.
•EB cmd. (Ordinary Print Line on DI Station): was changed.
•EC cmd. (Line Feed): in DI station, the line feed is portrait only.
•EE cmd. (Cut Customer Receipt): cmd. extension 00 was added.
•ED cmd. (Ready Document): cmd. extension 01 was added.
•EF cmd. (Document Eject): for portrait orientation print only.
•E0 cmd. (Print Fiscal, Return and Diplomatic Receipt): was
changed.
•E3 cmd. (End Fiscal, Return and Diplomatic Receipt): was changed.
•E7 cmd. (Diagnostic and Alignment Utilities): was changed.
•0F cmd. (Cancel Fiscal, Return and Diplomatic Receipt): was
changed.
•E2 cmd. (Print Waybill Receipt): was changed.
•E5 cmd. (End Waybill Receipt): was changed.
•11 cmd. (Cancel Waybill Receipt): was changed.
•C0 cmd. (Print Credit Card Slip): was changed.
•C1 cmd. (End Credit Card Slip): was changed.
•C3 cmd. (Line Feed Credit Card Slip): was changed.
•C8 cmd. (Set Barcode Parameters): was added.
•C9 cmd. (Print Barcode): was added.
•CA cmd. (Print and Download Graphics): was added.
•E8 cmd. (Set Number of Dot Rows per LF): DI station landscape
was added.
•F4 cmd. (Head Position & Open/Close Throat): was changed to
right and left.
•F8 cmd. (Report Printer EC): cmd. extension 01 and 02 were added.
•RC′s 104, 105, 119, 123, 124, 125, 208 and 209: were added.
•This version of Programming Guide Supplement corresponds to
microcode EC level 01.
Page 6 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programming

Contents
1.0 Fiscal Hardware Technical Specification .................................. 15
1.1 4610 Suremark Fiscal Printer ........................................ 15
1.1.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.1.2 Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.1.3 Characters Per Inch ........................................... 15
1.2 Fiscal Security Characteristics ........................................ 16
1.2.1 Method of Sealing ............................................ 16
1.2.2 Fiscal Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1.2.3 Fiscal Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1.2.4 Fiscal Memory - A5 pattern ...................................... 17
1.2.5 Fiscal Label . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.0 Printer and Fiscal Unit Status ........................................ 19
2.1 For GR3/GR5 Models (RS-485) ...................................... 19
2.1.1 Version/Country Code Definitions ................................... 21
2.2 For GB3/GB5 Models (USB) ........................................ 22
2.2.1 Version/Country Code Definitions ................................... 25
3.0 Fiscal Accounting Technical Description .................................. 27
3.1 Fiscal Printer Operation ........................................... 27
3.2 Definition of Terminology .......................................... 27
3.3 POS Fiscal General Information and Rules ................................ 29
3.3.1 Fiscal Memory Connection ....................................... 29
4.0 Fiscal Accounting Variables and Command Reference .......................... 31
4.1 Definition of Accounting Variables ..................................... 31
4.1.1 Definition of Transaction Accumulators ............................... 32
4.1.2 Definition of Transaction Counters .................................. 33
4.1.3 Definition of Daily Accumulators ................................... 34
4.1.4 Definition of Daily Counters ...................................... 35
4.1.5 Definition of Lifetime Accumulators ................................. 36
4.1.6 Definition of Lifetime Counters .................................... 36
4.2 Fiscal Hardware Functions .......................................... 37
4.2.1 J4/CE Jumper Description ....................................... 37
4.2.2 J4/CE Jumper Procedure ........................................ 37
4.2.3 Calculations while the jumper is active: ................................ 37
4.2.3.1 J4/CE Jumper Function Rules .................................. 38
4.2.4 Display Checking ............................................. 38
4.3 Initialization Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
4.4 Training Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
4.4.1 Training Mode Rules .......................................... 41
4.5 Command Set Summary List ........................................ 42
4.5.1 Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
4.5.2 Sales Transaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
4.5.3 Close Sale Period ............................................. 42
4.5.4 Fiscal Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
4.5.5 Credit Card Slip Printing ........................................ 42
4.5.6 Fiscal Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
4.5.7 Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
4.5.8 Printer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
4.5.9 Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Contents — Page 7 of 183

4.5.10 Original Equipment Manufacturer .................................. 43
4.5.11 Miscellaneous .............................................. 43
5.0 Command Set Reference ........................................... 45
5.1 Initialization Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
5.1.1 16 - SET DATE AND TIME ..................................... 47
5.1.1.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
5.1.1.2 Set Date and Time Rules ..................................... 47
5.1.2 18 - SET FISCAL MODE ....................................... 48
5.1.2.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
5.1.2.2 Set Fiscal Mode Calculations ................................... 48
5.1.2.3 Set Fiscal Mode Rules ....................................... 48
5.1.3 1A - SET DISPLAY ADDRESS ................................... 49
5.1.3.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
5.1.3.2 Set Display Address Rules ..................................... 49
5.1.4 1B - SERIALIZE FISCAL MEMORY ............................... 50
5.1.4.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
5.1.4.2 Serialize Fiscal Memory Rules .................................. 50
5.1.5 20 - LOAD TAX RATE TABLE ................................... 51
5.1.5.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
5.1.5.2 Load TAX Rate Table Rules ................................... 51
5.1.6 22 - SET DEPARTMENT NAMES ................................. 52
5.1.6.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
5.1.6.2 Set Department Names Rules ................................... 52
5.1.7 C4 - FISCAL PARAMETER CONFIGURATION ........................ 53
5.1.7.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
5.1.8 D7 - SET HEADER .......................................... 54
5.1.8.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
5.1.8.2 Set Header Rules .......................................... 54
5.2 Utility Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
5.2.1 19 - CURRENCY MANAGEMENT ................................ 56
5.2.1.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
5.2.1.2 Currency Management Rules ................................... 56
5.2.2 DA - ELECTRONIC READ FISCAL MEMORY TABLES .................. 58
5.2.2.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
5.2.3 DB - ELECTRONIC READ COUNTERS AND ACCUMULATORS ............ 62
5.2.3.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
5.2.3.2 Response to the Electronic Read Counters and Accumulators ................ 63
5.2.4 F1 - COMMUNICATE POWER ON STATUS .......................... 71
5.2.4.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
5.2.5 F7 - COMMAND BUFFER MANAGEMENT .......................... 72
5.2.5.1 Example: Command Buffer Management - Additional Information Response ....... 73
5.2.5.2 Command Buffer Management Rules .............................. 73
5.2.6 F9 - REPORT CURRENT STATUS ................................ 74
5.2.6.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
5.3 Sales Period in Progress Commands .................................... 75
5.4 Sale Transaction in Progress Commands .................................. 75
5.5 General Fiscal Voucher Rules ........................................ 76
5.5.1 01 - PRINT HEADER ......................................... 77
5.5.1.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
5.5.2 D2 - ITEM SALE ............................................ 78
5.5.2.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
5.5.2.2 Item Sale Calculations ....................................... 78
5.5.2.3 Item Sale Rules ........................................... 79
5.5.3 D3 - NEGATIVE ITEM SALE .................................... 80
Page 8 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programming

5.5.3.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
5.5.3.2 Negative Item Sale Calculations .................................. 80
5.5.3.3 Negative Item Sale Rules ..................................... 81
5.5.4 D4 - SUBTOTAL/TOTAL TRANSACTION ........................... 82
5.5.4.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
5.5.4.2 Subtotal/Total Transaction Calculations ............................. 82
5.5.4.3 Subtotal/Total Transaction Rules ................................. 82
5.5.5 D5 - PAYMENT ............................................ 83
5.5.5.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
5.5.5.2 Payment Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
5.5.5.3 Payment Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
5.5.6 D8 - NOT PAID ............................................. 85
5.5.6.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
5.5.6.2 Not Paid Calculations ....................................... 85
5.5.6.3 Not Paid Rules ........................................... 86
5.5.7 D9 - DISCOUNT/UPLIFT ON SUBTOTAL ........................... 87
5.5.7.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
5.5.7.2 Discount/Uplift on Subtotal Calculations ............................ 87
5.5.7.3 Discount/Uplift on Subtotal Rules ................................ 88
5.5.8 06 - END TRANSACTION ...................................... 89
5.5.8.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
5.5.8.2 End Transaction Calculations ................................... 89
5.5.8.3 End Transaction Rules ....................................... 91
5.5.9 07 - CANCEL TRANSACTION ................................... 92
5.5.9.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
5.5.9.2 Cancel Transaction Calculations ................................. 92
5.5.9.3 Cancel Transaction Rules ..................................... 93
5.6 Fiscal, Return & Diplomatic Receipt in Progress Commands ...................... 94
5.6.1 E0 - PRINT FISCAL, RETURN AND DIPLOMATIC RECEIPT .............. 95
5.6.1.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
5.6.2 E3 - END FISCAL, RETURN AND DIPLOMATIC RECEIPT ................ 96
5.6.2.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
5.6.2.2 End Fiscal, Return and Diplomatic Receipt Calculations ................... 96
5.6.3 0F - CANCEL FISCAL, RETURN AND DIPLOMATIC RECEIPT ............. 98
5.6.3.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
5.6.3.2 Cancel Fiscal, Return and Diplomatic Receipt Calculations ................. 98
5.7 Waybill Receipt in Progress Commands .................................. 99
5.7.1 E2 - PRINT WAYBILL RECEIPT ................................. 100
5.7.1.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
5.7.2 E5 - END WAYBILL RECEIPT ................................... 101
5.7.2.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
5.7.2.2 End Waybill Receipt Calculations ................................ 101
5.7.3 11 - CANCEL WAYBILL RECEIPT ................................ 102
5.7.3.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
5.7.3.2 Cancel Waybill Receipt Calculations ............................... 102
5.8 Credit Card Slip in Progress Commands .................................. 103
5.8.1 Credit Card Slip Rules .......................................... 103
5.8.2 C0 - PRINT CREDIT CARD SLIP ................................. 104
5.8.2.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
5.8.2.2 Print Credit Card Slips Rules ................................... 104
5.8.3 C1 - END CREDIT CARD SLIP .................................. 105
5.8.3.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
5.8.3.2 End Credit Card Slips Calculations ................................ 105
5.8.3.3 End Credit Card Slips Rules .................................... 105
5.8.4 C3 - LINE FEED CREDIT CARD SLIP .............................. 106
Contents — Page 9 of 183

5.8.4.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
5.8.4.2 Line Feed Credit Card Slips Rules ................................ 106
5.9 Miscellaneous Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
5.9.1 C8 - SET BARCODE PARAMETERS ............................... 108
5.9.1.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
5.9.1.2 Set Barcode Parameters Rules ................................... 108
5.9.2 C9 - PRINT BARCODE ........................................ 109
5.9.2.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
5.9.2.2 Print Barcode Rules ........................................ 109
5.9.3 CA - PRINT AND DOWNLOAD GRAPHICS .......................... 111
5.9.3.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
5.9.3.2 Print Graphics Flow ........................................ 114
5.9.3.3 Download/print Graphics Flow .................................. 114
5.9.3.4 Print Graphic Example. ...................................... 114
5.9.4 CD - CASH DRAWER MANAGEMENT ............................. 116
5.9.4.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
5.10 Report Printing Commands ........................................ 117
5.10.1 13 - CLOSE SALE PERIOD (Z-Report) .............................. 118
5.10.1.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
5.10.1.2 Close Sale Period Calculations .................................. 118
5.10.1.3 Close Sale Period Rules ..................................... 120
5.10.2 14 - PRINT X-REPORT ....................................... 121
5.10.2.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
5.10.2.2 Print X-Report Calculations ................................... 121
5.10.2.3 Print X-Report Rules ....................................... 121
5.10.3 15 - FISCAL MEMORY REPORT ................................. 122
5.10.3.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
5.10.3.2 Fiscal Memory Report Calculations .............................. 122
5.10.3.3 Fiscal Memory Report Rules .................................. 122
5.10.4 DD - START APPLICATION-ORIGINATED REPORT ................... 124
5.10.4.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
5.10.5 DE - END APPLICATION-ORIGINATED REPORT ..................... 125
5.10.5.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
5.10.5.2 End Application-Originated Report Calculations ....................... 125
5.10.5.3 End Application-Originated Report Rules ........................... 125
5.10.6 General Application-Originated Lines and Reports Rules ..................... 126
5.11 Printer Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
5.11.1 EA - ORDINARY PRINT LINE IN CR/SJ STATION ..................... 134
5.11.1.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
5.11.1.2 Ordinary Print Line in CR/SJ Station Rules .......................... 134
5.11.2 EB - ORDINARY PRINT LINE IN DI STATION ....................... 135
5.11.2.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
5.11.2.2 Application-Originated Printing in DI Station Rules ..................... 135
5.11.3 EC - LINE FEED ........................................... 136
5.11.3.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
5.11.3.2 Line Feed Rules .......................................... 136
5.11.4 ED - READY DOCUMENT .................................... 137
5.11.4.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
5.11.5 EE - CUT CUSTOMER RECEIPT ................................ 138
5.11.5.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
5.11.6 E8 - SET NUMBER OF DOT ROWS PER LINE FEED ................... 139
5.11.6.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
5.11.6.2 Set Number of Dot Rows per Line Feed Rules ........................ 139
5.11.7 EF - DOCUMENT EJECT ..................................... 140
5.11.7.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Page 10 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin

5.11.8 F4 - HEAD POSITION & OPEN/CLOSE THROAT ...................... 141
5.11.8.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
5.12 Original Equipment Manufacturer Commands .............................. 142
5.12.1 00 - SYSTEM COMMANDS .................................... 143
5.12.1.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
5.12.1.2 System Commands Rules .................................... 143
5.12.2 E7 - DIAGNOSTIC AND ALIGNMENT UTILITIES ..................... 144
5.12.2.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
5.12.3 F8 - REPORT PRINTER EC .................................... 147
5.12.3.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
5.12.4 FA - RESET FISCAL PRINTER .................................. 150
5.12.4.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
5.12.4.2 Reset Fiscal Printer Rules .................................... 150
5.12.5 FB - RUN DIAGNOSTICS ..................................... 151
5.12.5.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
5.12.6 FC - REPORT MICROCODE EC ................................. 152
5.12.6.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
5.12.7 FF - DUMP RAM & FISCAL MEMORY ............................ 153
5.12.7.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
5.12.7.2 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
5.12.7.3 Dump RAM & Fiscal Memory Rules ............................. 153
6.0 Fiscal Unit Return Codes ........................................... 155
6.1 4690 OS Hardware Return Code Descriptions ............................... 155
6.2 DOS/WINDOWS and 4690 OS Return Code Descriptions ....................... 155
6.3 Return Code Conversion Table (4690 OS to DOS/WINDOWS) .................... 176
7.0 Fiscal Software and Hardware Interface Information ........................... 179
7.1 Supported Printer Typefaces ......................................... 179
7.2 Error Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
7.3 Power Line Disturbance (PLD) ....................................... 181
8.0 Suggestions for Application Developers ................................... 183
Contents — Page 11 of 183

Page 12 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin

Figures
1. Printer and Fiscal Unit Status - GR3/GR5 Models - Part 1 of 2 . . . . . . . . . . . . . . . . . . . 19
2. Printer and Fiscal Unit Status - GR3/GR5 Models - Part 2 of 2 . . . . . . . . . . . . . . . . . . . 20
3. Printer and Fiscal Unit Status - GB3/GB5 Models - Part 1 of 3 . . . . . . . . . . . . . . . . . . . 22
4. Printer and Fiscal Unit Status - GB3/GB5 Models - Part 2 of 3 . . . . . . . . . . . . . . . . . . . 23
5. Printer and Fiscal Unit Status - GB3/GB5 Models - Part 3 of 3 . . . . . . . . . . . . . . . . . . . 24
6. Print Graphic Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Figures — Page 13 of 183

Page 14 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin

1.0 Fiscal Hardware Technical Specification
1.1 4610 Suremark Fiscal Printer
1.1.1 Features
The 4610 SureMark fiscal printer is the TI-3/4 printer with a second thermal station which is used as a
journal station. Since 4610 SureMark in based on the TI-3/4, it has the same SBCS logic card as a the
TI-3/4.
The printer features are:
•Customer Receipt Station (CR) - thermal printing
•Summary Journal Station (SJ) - thermal printing
•Document Insert Station (DI) - impact printing (GR3 and GB3 models only)
•User defined character sets
•RS-485 communication interfaces (only GR3 and GR5 models)
•USB communication interfaces (only GB3 and GB5 models)
•Barcode printing capability (all stations)
•PDF417 barcode generation (CR and SJ stations only)
•Paper Cutter (CR station only)
1.1.2 Models
* ======================================== *
* MODEL * INTERFACE * POWER * STATIONS *
* * * * SJ * DI *
* ----- * --------- * -------- * --- * --- *
* GR3 * RS-485 * Terminal * Yes * Yes *
* GR5 * RS-485 * Terminal * Yes * No *
* GB3 * USB * Brick * Yes * Yes *
* GB5 * USB * Brick * Yes * No *
* ======================================== *
Where:in MODEL, G = fiscal printer with 3 stations (thermal/impact)
1.1.3 Characters Per Inch
•Thermal Printing (CR and SJ stations)
−15 CPI => 44 characters/line
−12 CPI => 34 characters/line
•Impact Printing (DI stations
−15 CPI => 47 characters/line
−12 CPI => 37 characters/line
Fiscal Hardware Technical Specification — Page 15 of 183

1.2 Fiscal Security Characteristics
The IBM POS fiscal solution is based on the concept of a ′fiscal printer′.
Because of the restrictions in most countries relative to the definition of a ′fiscal machine′, a distributed POS
must have the fiscal electronics sealed in the printer. The printer becomes the ′fiscal machine′ in a
distributed POS. This solution prevents fraud by ensuring absolutely that what is printed is recorded in the
fiscal electronics.
In this case the only fiscal dependency remaining on the POS terminal that the printer is attached to is the
ability to sense connection of the POS displays.
Our system provides that capability by having all the POS I/O wired in parallel which allows the fiscal
printer to monitor the serial I/O responses to polls from the configured displays. If a display is disconnected
or stops operating, the fiscal printer will inhibit further printing until the display resumes operation.
1.2.1 Method of Sealing
IBM seals the printer with a single screw covered by a lead plug.
The CE uses an official tool to stamp the authorized fiscal logo into the lead seal when it is inserted into the
opening over the screw.
1.2.2 Fiscal Processing
The IBM fiscal printer has a special electronics board sealed in the fiscal base which intercepts the data from
the POS terminal and processes it before sending it to the printer to be printed. The ensures that nothing is
printed that does not completely comply with the fiscal law requirements and that all data is captured in the
fiscal printer non-volatile memory.
The fiscal processor logic board has 32K bytes of static RAM and a time of day clock module both backed
up by a 10 year lithium battery. A fixed pattern in the memory is checked each time the printer is powered
on as an alternative to having a battery voltage sensor.
For 4610 SureMark RS-485, a DS80C320 microprocessor is used to process the data and perform arithmetic.
For 4610 SureMark USB, a DS80C390 microprocessor is used to process the data and perform arithmetic.
All fiscal data is calculated by the fiscal processor board and any totals sent from the POS terminal are
verified before printing is allowed.
The microprocessor has special internal circuitry which detects power down situations with enough warning
to save all fiscal data in the battery backed up memory.
There is a J4/CE jumper which is used to reset the RAM after a repair or in the event of a temporary data
error in the RAM. The J4/CE jumper can also be used to control some commands so that only the CE can
perform them.
A battery jumper is available on fiscal printer logic card to allow a certification test to verify that the
processor card would detect a low battery condition.
1.2.3 Fiscal Memory
IBM uses a 2 megabit EPROM (electronically programmable read-only memory) sealed in a tub of epoxy
on the base of the fiscal printer for the long term fiscal memory. At the end of each day the daily totals are
written to the fiscal memory. The fiscal processor logic board generates the appropriate voltages and logic to
write data to an EPROM. EPROMs are completely non-volatile and have a life span measured in decades
rather than years.
Page 16 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin

Because it is covered with epoxy the EPROM data cannot be erased. (Although EPROMs start at all
′ones′, so if the fiscal seal is breached any ′one′ bits could be programmed to ′zero′ even in previously
recorded data.)
The IBM fiscal printer can store 3840 days of data at 64 bytes of data per day.
The IBM fiscal printer provides electronic readout of the fiscal data (if allowed by law) to allow a tax
inspector to readout the data electronically, possibly from the store controller/server, as opposed to having to
printout the data from each cash register on the register tape.
1.2.4 Fiscal Memory - A5 pattern
The fiscal microcode writes the pattern ″A5″ in address 82 (hexa) in the fiscal memory to be able to detect
the eprom connection.
It is read for all fiscal commands. If it isn′t found, the fiscal microcode returns the error code 109.
1.2.5 Fiscal Label
The fiscal label is attached to the base of the fiscal printer and contains the same serial number that is
electronically written in the fiscal memory.
Since the label is part of the same field replaceable unit as the fiscal base with epoxied fiscal memory there is
no danger of having a serial number mismatch.
In accordance with many of the fiscal laws, the integrated mounting hardware for the IBM 469X POS
terminals has been modified to allow visibility of the fiscal label and fiscal seal to a person walking around
the POS terminal without requiring any disassembly.
Fiscal Hardware Technical Specification — Page 17 of 183

Page 18 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin

2.0 Printer and Fiscal Unit Status
2.1 For GR3/GR5 Models (RS-485)
The fiscal unit response to the application program is contained in the fiscal unit status, which is 9 bytes
long (6 bytes for the printer status and 3 bytes for fiscal unit status).
For compatibility reasons, the printer status bytes received from the 4610 are mapped in the closest possible
way to the model 3 status bytes.
The ″MAPPED FROM″ column shows from which byte/bit of the 4610 status bytes was the returned taken
form.
The following table shows the content of the fiscal unit status.
BYTE BIT CONTENT MAPPED FROM
BYTE BIT
0 PRINTER UNIT STATUS n/a
0 (LSB) COMMAND COMPLETE
Set to 1 when the command is complete.
1 LEFT HOME POSITION 1 2
Set to 1 when the print head is in the left home position.
2 RESERVED (Always = ′0′) n/a
3 MICR PRESENT n/a
Set to 1 when the micr is present.
4 RESERVED (Always = ′0′) n/a
5 HOME ERROR 31
6 DOCUMENT ERROR 32
The document not inserted after document station was selected
and the wait timed out.
7 (MSB) COMMAND REJECT
1 PRINTER UNIT STATUS
0 (LSB) CASH RECEIPT PRINT ERROR 1 6
Paper cover is open or the CR station is out of paper.
1 RESERVED (Always = ′0′) n/a
2 PRINTER KEY PRESSED 7 4
Set to 1 when a printer key operation is in progress.
3 EC LEVEL 51
Set to 1 when responding to an EC level request.
4 SJ COVER OPEN 56
Set to 1 when the cover in SJ station is open.
5 DOCUMENT READY 20
Set to 0 when the DI station is ready for printing.
This occurs when both document sensors are made and the document
has been fed to the first print position.
6 DOCUMENT PRESENT UNDER THE FRONT SENSOR
Set to 0 when a document is under the front document sensor. 2 1
7 CASH RECEIPT PRINT ERROR
Paper cover is open or the CR station is out of paper.
Figure 1. Printer and Fiscal Unit Status - GR3/GR5 Models - Part 1 of 2
Printer and Fiscal Unit Status — Page 19 of 183

BYTE BIT CONTENT MAPPED FROM
BYTE BIT
2 PRINTER UNIT STATUS
0 (LSB) LEFT HOME POSITION 1 2
Set to 1 when the print head is in the left home position.
1 DOCUMENT ERROR 32
The document not inserted after DI station was selected and
the wait timed out.
2 DOCUMENT PRESENT UNDER THE TOP SENSOR 2 2
Set to 0 when a document is under the top document sensor.
3 RESERVED (Always = ′0′) n/a
4 FLASH EPROM LOAD ERROR OR MCT LOAD ERROR 3 3
5 RIBBON COVER OPEN 1 5
Set to 1 when the ribbon cover is open.
6 RESERVED (Always = ′0′) n/a
7 (MSB) SJ STATION PAPER FAULT 5 7
Set to 1 when the paper is not present.
3 PRINTER UNIT STATUS 4
Contains the printer EC level with all status messages.
4 RESERVED (Always = ′00′) n/a
5 PRINTER UNIT STATUS 6
Contains the current line count the printer is on.
6 FISCAL UNIT STATUS (Note 1)
0 (LSB) RESERVED (Always = ′0′)
1 IPL STATUS
When set, it indicates that status byte 8 contains the IPL completion
status; and bit 4 of byte 6 is set as it was at IPL time.
2 IPL IN PROGRESS
Set to indicate that the fiscal unit is performing the IPL sequence.
3 MICROCODE EC
When set it indicates that status byte 8 contains the microcode EC.
4PLD
This bit is set at IPL time to indicate that a command was in execution
during PLD and that all modifications caused by the suspended command have been deleted.
5 ASYNCHRONOUS STATUS
When set it indicates that the fiscal unit is executing an internal
command (e.g. POR sequence) or it received an asynchronous status from the printer.
6 INTERMEDIATE STATUS
When set it indicates that execution of a command is still in progress.
7 (MSB) FISCAL UNIT BUSY
Set to 1 when a command is received while a previous command is still in execution.
7 ADDITIONAL DATA VERSION/COUNTRY CODE - x22 (34)
7 (MSB) ADDITIONAL DATA (Note 2)
6-5 VERSION CODE (hardware model)
4610 SureMark GR3/GR5 (RS-485) = x01 (01)
4-0 COUNTRY CODE
Turkey = x00010 (02)
8 FISCAL UNIT RETURN CODE (Note 3)
9 - n ADDITIONAL DATA (if byte 7 bit 7 is on)
------------------------------------------------------------------------------------------------------------
Note : Bit 7 is the most significant bit and bit 0 is the least significant bit.
Note 1: When fiscal unit status byte 5 is 00 then command is complete.
Note 2: Where additional data follows the nine fiscal status bytes.
Note 3: When fiscal unit return code is 43 hex. (6710 ), it means that
no error is indicated on this status message.
Figure 2. Printer and Fiscal Unit Status - GR3/GR5 Models - Part 2 of 2
Page 20 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
This manual suits for next models
3
Table of contents
Other IBM Printer manuals

IBM
IBM 6400 - Model 008 B/W Line-matrix Printer Manual

IBM
IBM 1585 (MT 4539) User manual

IBM
IBM 6400 Series User manual

IBM
IBM INFO PRINT 3000 Manual

IBM
IBM 221 User manual

IBM
IBM 3160 Technical manual

IBM
IBM 6400 Series User manual

IBM
IBM InfoColor 70 User manual

IBM
IBM 6400 Series User manual

IBM
IBM 5225 Manual