IBM 4610 SureMark GR3, 4610 SureMark GB3, 4610 SureMark GR5, 4610 SureMark GB5 Programming Manual Supplement

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
— Page 1 of 183
Review and Approval Process
This document will be reviewed, approved, and reissued whenever significant updates have been made.
Reviewers
Version Reviewers
All versions Erkut Erdemir - Turkey Marketing
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
Record Name Where Kept How Identified Retention Period
Review Record. Martinez TEAM CONNECTION
(family FISCAL), Component TU90.
Approval Record. Martinez TEAM CONNECTION
(family FISCAL), Component TU90.
Notification Record. Martinez TEAM CONNECTION
(family FISCAL), Component TU90.
Heading in document. GA + 2 years.
Heading in document. GA + 2 years.
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.
Msgs 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
v07 01 Mar 13, 02
v06 03 Jan 3, 02
v05 01 Dic 11, 01
v04 02 Nov 28, 01
There are not changes in the spec for this version.
This version of Programming Guide Supplement corresponds to microcode EC level 0A.
There are not changes in the spec for this version.
This version of Programming Guide Supplement corresponds to microcode EC level 07.
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.
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.
RCs 193, 213, 225, 226 and 237: were eliminated.
RCs 204, 210 and 235: were added.
RCs 200, 203, 206 and 214: were changed.
Msgs 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
Version Date Change Description
v03 01 Oct 10, 01
v02 02 Oct 04, 01
v01 01 Jun 26, 01
Table 1. Change Summary
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.
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.
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.
RCs 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 Co mmands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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 Co mmands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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 Co mmands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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 Prin t 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 Co mmands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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 machinein 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 onebits could be programmed to zeroeven 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 isnt 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 FROMcolumn 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
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.
BYTE BIT
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
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.
BYTE BIT
3 PRINTER UNIT STATUS 4
4 RESERVED (Always = ′00′) n/a
5 PRINTER UNIT STATUS 6
6 FISCAL UNIT STATUS (Note 1)
0 (LSB) RESERVED (Always = ′0′) 1 IPL STATUS
2 IPL IN PROGRESS
3 MICROCODE EC
4PLD
5 ASYNCHRONOUS STATUS
6 INTERMEDIATE STATUS
7 (MSB) FISCAL UNIT BUSY
7 ADDITIONAL DATA VERSION/COUNTRY CODE - x22 (34)
7 (MSB) ADDITIONAL DATA (Note 2) 6-5 VERSION CODE (hardware model)
4-0 COUNTRY CODE
Contains the printer EC level with all status messages.
Contains the current line count the printer is on.
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.
Set to indicate that the fiscal unit is performing the IPL sequence.
When set it indicates that status byte 8 contains the microcode EC.
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.
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.
When set it indicates that execution of a command is still in progress.
Set to 1 when a command is received while a previous command is still in execution.
4610 SureMark GR3/GR5 (RS-485) = x01 (01)
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
2.1.1 Version/Country Code Definitions
Country Name = Turkey
Models = GR3/GR5
Version Code (hardware model) = 02 (4610 SureMark RS-485 (Protocol SIO, Cable RS-485))
Country Code = 02
Version Code + Country Code:
Hexadecimal = 22
Decimal = 34
Fiscal Microcode EC Level = 21
Printer and Fiscal Unit Status — Page 21 of 183
2.2 For GB3/GB5 Models (USB)
The fiscal unit response to the application program is contained in the fiscal unit status, which is 15 bytes long (8 bytes for the fiscal printer status and 7 bytes for fiscal unit status). The following figure shows the content of the fiscal status.
BYTE BIT CONTENT
0 PRINTER UNIT STATUS
0 (LSB) COMMAND LOADED
1 CASH RECEIPT RIGHT HOME POSITION
2 LEFT HOME POSITION
3 DOCUMENT RIGHT HOME POSITION 4 RESERVED (Always = ′0′)
5 RIBBON COVER OPEN
6 CASH RECEIPT PRINT ERROR
7 (MSB) COMMAND REJECT
For USB buffered commands. Set to 1 when the command is received into the print buffer. Note: this is not when the line is actually printed. COMMAND COMPLETE For USB immediate command and flash storage commands. Set to 1 when the command is complete.
Set to 1 when the print head is in the cash receipt right home position.
Set to 1 when the print head is in the left home position.
Set to 1 when the print head is in the document right home position.
Set to 1 when the ribbon cover is open.
Paper cover is open or the CR station is out of paper.
1 PRINTER UNIT STATUS
0 (LSB) DOCUMENT READY
1 DOCUMENT PRESENT UNDER THE FRONT SENSOR
2 DOCUMENT PRESENT UNDER THE TOP SENSOR 3 RESERVED (Always = ′1′).
4 PRINT BUFFER HELD
5 OPEN THROAT POSITION
6 BUFFER EMPTY
7 (MSB) BUFFER FULL
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.
Set to 0 when a document is under the front document sensor.
Set to 0 when a document is under the top document sensor.
Set to a 1 when the print buffer is being held. Cleared when buffer released. The printer may be held due to a hold buffer command or one of the following printer errors:
- Ribbon cover open with commands to be printed on the DI station.
- CR print error with commands to the CR station.
Set to 1 when the print head is in the open throat position.
Set when there is no longer any print data or commands in the buffer.
Set when only 512 bytes remain in the buffer. Cleared when 3k bytes are free (RS-485 only).
Figure 3. Printer and Fiscal Unit Status - GB3/GB5 Models - Part 1 of 3
Page 22 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
BYTE BIT CONTENT
2 PRINTER UNIT STATUS
0 (LSB) MEMORY SECTOR IS FULL 1 HOME ERROR 2 DOCUMENT ERROR
3 FLASH EPROM LOAD ERROR OR MCT LOAD ERROR 4 RESERVED (Always = ′0′) 5 USER FLASH STORAGE SECTOR IS FULL 6 FIRMWARE ERROR
7 (MSB) FISCAL BIT
The document not inserted after document station was selected and the wait timed out.
CRC on the firmware failed. The printer is running out of the boot sector. ONLY system commands and firmware commands will be accepted.
Set to show a line completed printing.
3 PRINTER UNIT STATUS
4 PRINTER UNIT STATUS
0 (LSB) PRINTER ID REQUEST/EXTENDED ADDRESS CMD
1 EC LEVEL
2 MICR READ
3 MCT READ
4 USER FLASH READ 5 Reserved (Always = ′1′).
6 SJ COVER OPEN
7 SJ STATION PAPER FAULT
5 PRINTER UNIT STATUS
6 PRINTER UNIT STATUS
0 (LSB) JOURNAL STATUS SELECTION (Note 1)
1 2 PDF417 BAR CODE GENERATION PROBLEM
3 CASH DRAWER STATUS
4 PRINTER KEY PRESSED 5 RESERVED (Always = ′1′)
6 STATION SELECTED
7 (MSB) DOCUMENT FEED ERROR
Contains the printer EC level with all status messages.
Set to 1 when responding to a printer ID request.
Set to 1 when responding to an EC level request.
Set to 1 when responding to a MICR read command.
Set to 1 when responding to a MCT read command.
Set to 1 when responding to a user flash read command.
Set to 1 when the cover in SJ station is open.
Set to 1 when the paper is not present.
Contains the current line count the printer is on.
1 = Selected 0 = Not Selected
Set to 1 when there is a problem creating a pdf417 bar code image.
Set to 1 when cash draw is opened.
Set to 1 when a printer key operation is in progress.
Set when the DI station is selected. Clear when the CR station is selected.
Set when there is an error after a Flip Check or a MICR command is executed.
Figure 4. Printer and Fiscal Unit Status - GB3/GB5 Models - Part 2 of 3
Printer and Fiscal Unit Status — Page 23 of 183
BYTE BIT CONTENT
7 PRINTER UNIT STATUS (reserved for future use)
8 FISCAL UNIT STATUS
0 RESERVED (Always = ′0′) 1 IPL STATUS
2 IPL IN PROGRESS
3 MICROCODE EC
4PLD
5 ASYNCHRONOUS STATUS
6 INTERMEDIATE STATUS
7 FISCAL UNIT BUSY
9 FISCAL UNIT STATUS
0-5 RESERVED (Always = ′0′) 6 Host attempted to send a new command without reading the feature report for the
7 ADDITIONAL DATA
When set, it indicates that status byte 13 contains the IPL completion status and bit 4 of byte 8 is set as it was at IPL time.
Set to indicate that the fiscal unit is performing the IPL sequence.
When set it indicates that status byte 13 contains the microcode EC.
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.
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).
When set it indicates that execution of a command is still in progress.
Set to 1 when a command is received while a previous command is still in execution.
previous command.
(= 1 when any data is available; otherwise = 0)
10 COUNTRY CODE
11 ADDITIONAL DATA AND COUNTRY VERSION
0-4 VERSION CODE (hardware model)
5-6 RESERVED 7 ADDITIONAL DATA (Note 2)
12 FISCAL MICROCODE EC LEVEL
13 FISCAL UNIT RETURN CODE (Note 3)
14 FISCAL UNIT RETURN CODE (reserved for future use)
15-n ADDITIONAL DATA (if byte 9 bit 7 is ON)
--------------------------------------------------------------------------------------------------
Note : Bit 7 is the most significant bit and bit 0 is the least significant bit.
Note 1: In order to remain compatible with existing 4610 printer status definitions,
Note 2: Where additional data follows the sixteen fiscal status bytes.
02 = Turkey
4610 SureMark GB3/GB5 (USB) = x04 (04)
when reading the status bytes to determine which station is selected, the journal station selected status bit and the CR/DI station selected status bit must be checked in the following sequence: 1 - Check byte 6, bit 0 first
- If it is ′1′ then the journal station is selected
- If it is ′0′ then the journal station is not selected and status byte 6,
bit 6 must be cheched to determine which station is selected. If status byte 6, bit 6 is a ′0′ then the CR is selected. If status byte 6, bit 6 is a ′1′ then the DI is selected.
Note 3: When fiscal unit return code is 43 hex. (6710), it means that
no error is indicated on this status message.
Figure 5. Printer and Fiscal Unit Status - GB3/GB5 Models - Part 3 of 3
The fiscal unit return codes are defined in 6.0, “Fiscal Unit Return Codes” on page 155 .
Page 24 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
2.2.1 Version/Country Code Definitions
Country Name = Turkey
Models = GB3/GB5
Version Code (hardware model) = 04 (4610 SureMark USB (Protocol USB, Cable USB))
Country Code = 02
Fiscal Microcode EC Level = 21
Printer and Fiscal Unit Status — Page 25 of 183
Page 26 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
3.0 Fiscal Accounting Technical Description
This section discusses the fiscal printer operation, defines the terminology used in the operation of the printer, and describes the fiscal commands in terms of the function they provide.
3.1 Fiscal Printer Operation
The fiscal printer operates under control of an application program communicating with it through a serial link (Device Channel). It is designed to execute a predefined set of commands, logically sequenced according to the type of operations to be performed. The application program has no direct control of the resources residing in the fiscal unit, but it can retrieve data related to accumulators, counters, fiscal unit state and fiscal memory.
The fiscal printer performs the following operations, assuring that they are executed according to the fiscal law in Turkey:
Record serialization parameters
Record fiscal configuration options
Record store configuration options
Record sale amount and generate customer fiscal voucher
Record fiscal receipt amount and generate receipt receipt document
Record return receipt amount and generate return receipt document
Record diplomatic receipt amount and generate diplomatic receipt document
Record waybill receipt amount and generate waywill receipt document
Print X-Report
Record daily sales in the fiscal memory and generate closure report
Generate fiscal memory content reports
Print reports generated by the application program
Report selected data to the application program
Print Credit Slips
3.2 Definition of Terminology
Please study these definitions.
J4/CE Jumper is a procedure performed by service representatives that clears the battery-backed RAM. (CR) Customer Receipt
is the left side print station that prints from rolls of paper. This station prints the slip of paper that verifies that a sales transaction occurred.
(SJ) Summary Journal
is the right side print station that prints on rolls of paper and winds up the printed paper in the printer as the journal of the day’s printing.
(DI) Document Insert
is the print station that has the capability to insert forms from the top or the bottom of the printer and print either in a forward or reverse direction, where allowed.
Sale Period is a group of sale transactions over a given amount of time, usually measured daily.
Fiscal Accounting Technical Description — Page 27 of 183
Sale Transaction is a process of recording item sale and arriving at the amount to be paid by or to a
customer. The receiving of payment for merchandise or services is also included in a transaction.
Fiscal Voucher The fiscal voucher is the slip of paper that verifies that a sale transaction occurred and is
commonly called the “customer receipt” in US English. The fiscal voucher is printed in CR station of the printer.
TAX is value-added TAX. Rectify is an option on certain sale transaction commands used to modify, cancel, or undo a
previous operation.
Void is used when cancelling or voiding items. Bonus although not limited to this description, bonus items are items that are discounted by
means of a coupon or promotional sale.
Discount is the reduction of the item price (negative item), or the reduction of a part of a sales
transaction (item discount), or the reduction of an entire sales transaction (discount on subtotal).
Empties Although not limited to this description, empties are a type of return, such as the return
of an empty bottle to be used for recycling purposes.
Tendering is the process of concluding a sales transaction and accounting for the methods of
payment.
Cancel is used when cancelling or voiding an entire sale transaction. Ordinary Prin ting also known as application-originated (or normal) printing, these are print lines that do
not have a specific fiscal law function monitored or controlled by the printer.
Page 28 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
3.3 POS Fiscal General Information and Rules
3.3.1 Fiscal Memory Connection
Fiscal memory may not be disconnected. The microcode checks for a good connection at power up and before execution of the following commands:
01 - Print Header
06 - End Transaction
15 - Fiscal Memory Report
13 - Close Sale Period
If the fiscal memory is not connected, an error is reported to the application when the application attempts to execute the commands above.
Once the memory is detected as being disconnected, an error is sent to the application if any of the following commands are sent to the printer:
1B - Serialize Fiscal Printer
18 - Set Fiscal Mode
19 - Set Currency Thousand Separator
C4 - Fiscal Parameter Configuration
07 - Cancel Transaction
D2 - Item Sale
D3 - Negative Item Sale
D4 - Subtotal/Total Transaction
D5 - Payment
D9 - Discount/Uplift on Subtotal
E0 - Print Fiscal, Return and Diplomatic Receipt
E3 - End Fiscal, Return and Diplomatic Receipt
E2 - Print Waybill Receipt
E5 - End Waybill Receipt
C0 - Print Credit Card Slips
14 - X-Report
DD - Start Application-Originated Report
DE - End Application-Originated Report
All Printer Commands
If Fiscal memory is not connected, an error is reported to the application. Recovery from this error requires that the RAM is cleared using the hardware J4/CE jumper.
Fiscal Accounting Technical Description — Page 29 of 183
Page 30 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
4.0 Fiscal Accounting Variables and Command Reference
A detailed description of the rules governing the execution of fiscal commands and the effect on fiscal memory, accumulators, and counters is in this section.
Note: In all of the commands, bit 7 is the most significant bit and bit 0 is the least significant bit.
4.1 Definition of Accounting Variables
The following variables are defined in this section:
Transaction accumulators
Transaction counters
Daily accumulators
Daily counters
Lifetime accumulators
Lifetime counters
Fiscal Accounting Variables and Command Reference — Page 31 of 183
4.1.1 Definition of Transaction Accumulators
Table 2 and Table 3 list the accumulators used during a sale transaction.
Table 2. Transaction Accumulators Totals and Taxes
Accumulator Name
Tra_Tot_v(vv) Transaction total by TAX 0 549755813887 Tra_Tot Transaction total 0 549755813887 Tra_VAT_v(vv) Transaction TAX total 0 549755813887 Tra_VAT Transaction TAX total 0 549755813887
Table 3. Transaction Accumulators − Negative Items, Payment, a nd Subtotal Operations
Accumulator Name Description
Tra_Void_v(vv) Transaction voids total by TAX category 0 549755813887 Tra_Void Transaction voids total 0 549755813887 Tra_Bonu_v(vv) Transaction bonus total by TAX category 0 549755813887 Tra_Bonu Transaction bonus total 0 549755813887 Tra_Disc_v(vv) Transaction discounts total by TAX category 0 549755813887 Tra_Disc Transaction discounts total 0 549755813887 Tra_Empt_v(vv) Transaction empties total by TAX category 0 549755813887 Tra_Empt Transaction empties total 0 549755813887 Tra_Pay_Type_0 Transaction payment cash total 0 549755813887 Tra_Pay_Type_1 Transaction payment credit card total 0 549755813887 Tra_Pay_Type_2 Transaction payment check card total 0 549755813887 Tra_Pay_Type_3 Transaction payment currency total 0 549755813887 Tra_Pay_Type_4 Transaction payment other total 0 549755813887 Tra_Payment Transaction payment total 0 549755813887 Tra_Amt_Due Amount due/Change −549755813888 549755813887 Tra_Tdsc Transaction discount on subtotal 0 549755813887 Tra_Tupl Transaction uplift on subtotal 0 549755813887
Description Minimum
Range
Minimum
Range
Maximum Range
Maximum Range
Where:
vv = TAX category, range from 01 to 10.
Page 32 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
4.1.2 Definition of Transaction Counters
Table 4 lists the counters used during a sale transaction.
Table 4. Transaction Counters
Counter Name Description
Tra_N_Void Number of voided items 0 65535 Tra_N_Disc Number of discounted items 0 65535 Tra_N_Bonu Number of bonus items 0 65535 Tra_N_Empt Number of empties items 0 65535 Tra_N_Tdsc Number of discounts on subtotal 0 65535 Tra_N_Tupl Number of uplifts on subtotal 0 65535
Minimum
Range
Maximum
Range
Fiscal Accounting Variables and Command Reference — Page 33 of 183
4.1.3 Definition of Daily Accumulators
Table 5 and Table 6 list the accumulators that are used during a sales period.
Table 5. Daily Accumulators − Totals and Taxes
Accumulator Name Description
Day_Tot_v(vv) Individual totals by TAX category 0 140737488355327 Day_Tot Daily total 0 140737488355327 Day_VAT_v(vv) Daily TAX total by TAX category 0 140737488355327 Day_VAT Daily TAX total 0 140737488355327 Day_VATC Daily TAX total calculated at reporting time 0 140737488355327 Day_VATC_v(vv) Daily TAX total by TAX category calculated at reporting
time
Table 6. Daily Accumulators − Negative Items, Payment, a nd Subtotal Operations
Accumulator Name Description
Day_Void_v(vv) Daily voids total by TAX category 0 140737488355327 Day_Void Daily voids total 0 140737488355327 Day_Bonu_v(vv) Daily bonus total by TAX category 0 140737488355327 Day_Bonu Daily bonus total 0 140737488355327 Day_Disc_v(vv) Daily discounts total by TAX category 0 140737488355327 Day_Disc Daily discounts total 0 140737488355327 Day_Empt_v(vv) Daily empties total by TAX category 0 140737488355327 Day_Empt Daily empties total 0 140737488355327 Day_Pay_Type_0 Daily payment cash total 0 140737488355327 Day_Pay_Type_1 Daily payment credit card total 0 140737488355327 Day_Pay_Type_2 Daily payment check card total 0 140737488355327 Day_Pay_Type_3 Daily payment currency total 0 140737488355327 Day_Pay_Type_4 Daily payment other total 0 140737488355327 Day_Payment Daily payment total 0 140737488355327 Day_Tdsc Daily discount on subtotal 0 140737488355327 Day_Tupl Daily uplift on subtotal 0 140737488355327 Day_Canc_v(vv) Daily cancelled transaction total by TAX category 0 140737488355327 Day_Canc Daily cancelled transaction total 0 140737488355327 Day_WBill_Tot Daily waybill receipt total 0 140737488355327 Day_WBill_VTot Daily waybill receipt TAX total 0 140737488355327 Day_WBill_CTot Daily waybill receipt cancel total 0 140737488355327 Day_FRec_Tot Daily fiscal receipt total 0 140737488355327 Day_FRec_VTot Daily fiscal receipt TAX total 0 140737488355327 Day_FRec_CTot Daily fiscal receipt cancel total 0 140737488355327 Day_RRec_Tot Daily return receipt total 0 140737488355327 Day_RRec_VTot Daily return receipt TAX total 0 140737488355327 Day_RRec_CTot Daily return receipt cancel total 0 140737488355327 Day_DRec_Tot Daily diplomatic receipt total 0 140737488355327 Day_DRec_VTot Daily diplomatic receipt TAX total 0 140737488355327 Day_DRec_CTot Daily diplomatic receipt cancel total 0 140737488355327
Minimum
Range
0 140737488355327
Minimum
Range
Maximum Range
Maximum Range
Where:
vv = TAX category, range from 01 to 10.
Page 34 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
4.1.4 Definition of Daily Counters
Table 7 lists the counters used during a sales period.
Table 7. Daily Counters
Counter Name Description
Day_N_Vouc Number of fiscal vouchers 0 9999 Day_N_Fisc Number of fiscal slips printed 0 9999 Day_N_CFisc Number of fiscal slips cancelled 0 9999 Day_N_NFR Number of application-originated reports all stations 0 9999 Day_N_NFCR Number of NFR on CR station 0 9999 Day_N_NFJL Number of NFR on SJ station 0 9999 Day_N_NFDI Number of NFR on DI station 0 9999 Day_N_Cred Number of credit slips 0 9999 Day_N_Void Number of voided items 0 65535 Day_N_Disc Number of discounted items 0 65535 Day_N_Bonu Number of bonus items 0 65535 Day_N_Empt Number of empties items 0 65535 Day_N_Tdsc Number of discounts on subtotal 0 65535 Day_N_Tupl Number of uplifts on subtotal 0 65535 Day_N_Canc Number of cancelled transactions 0 9999 Day_N_WBill Number of waybill receipts 0 9999 Day_N_FRec Number of fiscal receipts 0 9999 Day_N_RRec Number of return receipts 0 9999 Day_N_DRec Number of diplomatic receipts 0 9999 Day_N_CWbl Number of cancelled waybill receipts 0 9999 Day_N_CFrc Number of cancelled fiscal receipts 0 9999 Day_N_CRrc Number of cancelled return receipts 0 9999 Day_N_CDrc Number of cancelled diplomatic receipts 0 9999 Day_N_Ract Number of repair actions 0 200 Day_N_Dump Number of fiscal memory reports 0 9999 Day_N_X Number of X-Reports 0 9999
Minimum
Range
Maximum
Range
Fiscal Accounting Variables and Command Reference — Page 35 of 183
4.1.5 Definition of Lifetime Accumulators
Table 8 lists the accumulators kept for the life of the fiscal printer.
Table 8. Lifetime Accumulators
Accumulator Name Description
Lif_Tot_OL Lifetime Total (old Lira) 0 18.446.744.073.709.600.000 (8 bytes - unsigned) Lif_VATC_OL Lifetime VAT total (old Lira) 0 18.446.744.073.709.600.000 (8 bytes - unsigned) Lif_Tot_NL Lifetime Total (new Lira) 0 18.446.744.073.709.600.000 (8 bytes - unsigned) Lif_VATC_NL Lifetime VAT total (new Lira) 0 18.446.744.073.709.600.000 (8 bytes - unsigned)
Where:
vv = TAX category, range from 01 to 10.
Minimum
Range
Maximum Range
4.1.6 Definition of Lifetime Counters
Table 9 lists the counters kept for the life of the fiscal printer.
Table 9. Lifetime Counters
Counter Name Description
Lif_N_Clos Closure number 1 3840 1 Lif_N_Ract Number of repair actions 0 200 1
Minimum
Range
Maximum
Range
See
Notes
Notes:
1. This counter must be recovered from the fiscal memory in the case of the J4/CE jumper activation procedure being performed.
Page 36 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
4.2 Fiscal Hardware Functions
4.2.1 J4/CE Jumper Description
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 J4/CE can perform them.
When the J4/CE jumper is activated, the RAM is cleared and all totals are reset. Available information, such as the serial number, is loaded from the fiscal memory to the RAM.
A battery jumper is available on the fiscal printer logic card to allow a certification test to verify that the processor card would detect a low battery condition.
4.2.2 J4/CE Jumper Procedure
The activate jumper procedure consists in:
Turn OFF the Fiscal Printer
Put J4/CE jumper in ON (ACTIVE) position
Turn ON the Fiscal Printer
The deactivate jumper procedure consists in:
Turn OFF the Fiscal Printer
Put J4/CE jumper in OFF (STORED) position
Turn ON the Fiscal Printer
4.2.3 Calculations while the jumper is active:
Recover the following counters from the fiscal memory tables
Lif_N_Clos Lif_N_Ract
Recover the following accumulators from the fiscal memory tables
Lif_Tot_OL Lif_VATC_OL
Lif_Tot_NL Lif_VATC_NL
Operate on the following counters as shown below and they are incremented on every IPL with J4/CE jumper in ON (ACTIVE) position.
Day_N_Ract = Day_N_Ract + 1 Lif_N_Ract = Lif_N_Ract + 1
Fiscal Accounting Variables and Command Reference — Page 37 of 183
4.2.3.1 J4/CE Jumper Function Rules
Only authorized service personnel can move the J4/CE jumper.
200 repair actions are allowed during the life of the fiscal printer and each repair action is stored in the fiscal memory.
When the repair action table is full, no more J4/CE jumper action can be issued and only the following commands are allowed:
15 - Fiscal Memory Report - Extended and Short
FF - Dump RAM & Fiscal Memory
DA - Electronic Read Fiscal Memory Tables
DB - Electronic Read Counters and Accumulators
The RAM pattern is initialized after all the other initialization has been completed.
This process can take a long time if the fiscal memory is almost full or full.
Flags are set or cleared as shown below.
4.2.4 Display Checking
The microcode continually checks for connection of the POS displays by monitoring the Serial I/O (Device Channel) connection for display polls and then checking for appropriate responses.
Page 38 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
4.3 Initialization Sequence
The initialization sequence for Turkey is:
1. RAM CLEAR
Turn ON the fiscal printer with J4/CE jumper in OFF (stored) position
Put J4/CE jumper in ON (active) position
Execute --> Reset = 0040
Put J4/CE jumper in OFF (stored) position
Execute --> Reset = 0040
2. SERIALIZATION
Execute --> Serialize Fiscal Printer = 1B66 1B00
3. FISCALIZATION
Execute --> Set Fiscal Mode = 1B66 1800
4. SET DISPLAY SENSING DEFINITION
(Optional)
Execute --> Set Display Sensing Definition = 1B66 C402
5. SET DISPLAY ADDRESS
Execute --> Set Display Address = 1B66 1A00
6. SET HEADERS
(Minimum = 1, Maximum = 5)
Execute --> Set Header 1 = 1B66 D701
Execute --> Set Header 2 = 1B66 D702
Execute --> Set Header 3 = 1B66 D703
Execute --> Set Header 4 = 1B66 D704
Execute --> Set Header 5 = 1B66 D705
7. SET DATE AND TIME
Execute --> Set Date and Time = 1B66 1600
8. LOAD TAX RATE TABLE
Execute --> Load Tax Rate Table = 1B66 2001
Execute --> Load Tax Rate Table = 1B66 2002
9. SET DEPARTMENT NAME
Fiscal Accounting Variables and Command Reference — Page 39 of 183
(Optional)
Execute --> Set Department Name = 1B66 2201
Execute --> Set Department Name = 1B66 2202
Execute --> Set Department Name = 1B66 2203
Execute --> Set Department Name = 1B66 2204
Execute --> Set Department Name = 1B66 2205
Execute --> Set Department Name = 1B66 2206
Execute --> Set Department Name = 1B66 2207
Execute --> Set Department Name = 1B66 2208
Execute --> Set Department Name = 1B66 2209
Execute --> Set Department Name = 1B66 220A
Page 40 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
4.4 Training Mode
The fiscal printer is in training mode until the fiscal mode is set (issuing 18 cmd.).
4.4.1 Training Mode Rules
Fiscal memory is not used.
Fiscal voucher counter is not printed.
Fiscal logo and serial number is not printed.
The following fiscal reports can be issued:
Fiscal Voucher
Close Sale Period (Z-Report)
The following non-fiscal reports can be issued:
Fiscal Receipt
Return Receipt
Diplomatic Receipt
Waybill Receipt
Credit Card
Check Slips
Summary Fiscal Report (X-Report)
Application-Originated Reports
Dump RAM and Fiscal Memory
The new Lira is set automatically when the fiscal printer is in training mode, but in this case the new Lira table is not updated.
The FNEWLIR (New Lira Set) flag state is set YES.
Fiscal Accounting Variables and Command Reference — Page 41 of 183
4.5 Command Set Summary List
This section contains a cross-reference between the fiscal unit command code and command name. The command code preceding the command name represents the hexadecimal value of command byte 2.
4.5.1 Initialization
16 Set Date and Time 18 Set Fiscal Mode 19 Set Currency Thousand Separator 1A Set Display Address 1B Initialize Fiscal Memory 20 Load Tax Rate Table 22 Set Department Name C4 Fiscal Parameter Configuration D7 Set Store Header
4.5.2 Sales Transaction
Sales transactions are printed in customer receipt and summary journal stations.
01 Print Store Header D2 Item Sale D3 Negative Item Sale
Voids Bonus Discounts Empties
D4 Subtotal/Total Transaction D5 Payment D8 Not Paid D9 Discount/Uplift on Subtotal 06 End Transaction 07 Cancel Transaction
4.5.3 Close Sale Period
13 Close Sale Period (Z-Report)
4.5.4 Fiscal Memory
15 Fiscal Memory Report
4.5.5 Credit Card Slip Printing
C0 Print Credit Card Slip C1 End Credit Card Slip C3 Line Feed Credit Card Slip
4.5.6 Fiscal Documents
E0 Print Fiscal, Return & Diplomatic Receipt E2 Print Waybill Receipt E3 End Fiscal, Return & Diplomatic Receipt
Page 42 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
E5 End Waybill Receipt 0F Cancel Fiscal, Return & Diplomatic Receipt 11 Cancel Waybill Receipt
4.5.7 Reports
14 Print X-Report DD Start Application-Originated Report DE End Application-Originated Report
4.5.8 Printer
E8 Set Number of Dot Rows per Line Feed EA Ordinary Print Line in CR/SJ Station EB Ordinary Print Line in DI Station EC Line Feed ED Ready Document (Top/Bottom Registration) EE Cut Customer Receipt EF Document Eject F4 Head Position and Open/Close Throat
4.5.9 Utilities
DA Electronic Read Fiscal Memory Tables DB Electronic Read Accumulators and Counters F1 Report IPL Completion Status F9 Report Current Status
4.5.10 Original Equipment Manufacturer
00 System Commands E7 Diagnostic and Alignment Utilities F8 Report Printer EC FA Reset Fiscal Printer FB Run Diagnostics FC Report Microcode EC FF Dump RAM and Fiscal Memory
4.5.11 Miscellaneous
C8 Set Barcode Parameters C9 Print Barcode CA Print and Download Graphics CD Cash Drawer Management
Fiscal Accounting Variables and Command Reference — Page 43 of 183
Page 44 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.0 Command Set Reference
A command consists of a string of data received from the serial communication link. The minimum length of a command string is four byte; the maximum length depends on the command type. The microcode checks that the length is not less than the minimum required for the command type specified in byte 2. A command is composed of four parts:
1. Command Prefix
It consists of two constant bytes x′1B66′ (ESC f). Command prefix is not present in system commands.
2. Command Code
Command code is in byte 2 of command string. It identifies the command to be executed. Its value can range from x′00′ to x′FF′.
3. Command Extension
Command extension is in byte 3 of command string. It contains command options. Reserved bits must be set to 0. Only exception is retry bit which is ignored by microcode on commands where it has not any effect.
4. Command Data
Command data starts from byte 4 of command string. Its content depends on the command type. Character strings must be left aligned. Numeric strings must be right aligned. Non significant digits in numeric fields can be blank.
At least one status is sent in response to a command. The only exception is related to system commands: no response is given for system commands not recognized by the fiscal unit. The format of the status is described in 2.0, “Printer and Fiscal Unit Status” on page 19.
Note - 7 is the most significant bit and 0 is the least significant bit.
Command Set Reference — Page 45 of 183
5.1 Initialization Commands
Those commands that require FJUMPER=ON have to be executed with the J4/CE jumper in active position and those that require FJUMPER=OFF have to be executed with the J4/CE jumper in store position, taking care that the jumper position is sensed during IPL, so each time the jumper is moved it′s necessary to execute an IPL immediately after in order to have the jumper state updated.
Note: To execute several commands which requires the jumper in active position its necessary to execute
only one IPL and then all the commands.
These are the initialization commands:
16 - Set Date and Time
18 - Set Fiscal Mode
1A - Set Display Address
1B - Serialize Fiscal Printer
20 - Load Tax Rate Table
22 - Set Department Names (Optional)
C4 - Set Fiscal Parameters (Optional)
D7 - Set Header
There are no calculations performed for any of the initialization commands.
Page 46 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.1.1 16 - SET DATE AND TIME
This command is used to update the fiscal unit time of day clock.
5.1.1.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - cmd prefix hex 2 2 16 - Set Date and Time hex 1 3 Cmd. Extension hex 1
7-0 Reserved (always = ′0x00′)
4-5 Day ASCII 2 6-7 Month ASCII 2
8-11 Year ASCII 4 12-13 Hours ASCII 2 14-15 Minutes ASCII 2 16-17 Seconds ASCII 2
-----------------------------------------------------------------------
5.1.1.2 Set Date and Time Rules
The time and date can be set only if a sale period is not in progress.
The date/time cannot be set previous to the time stamp of the last closure in the fiscal memory.
Command Set Reference — Page 47 of 183
5.1.2 18 - SET FISCAL MODE
This command is used to set the fiscal mode in fiscal memory. Once this procedure has been executed the fiscal printer operates according to the configured country fiscal law.
5.1.2.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - cmd prefix hex 2
2 18 - Set Fiscal Mode hex 1
3 Cmd. Extension hex 1
7-0 Reserved (always = ′0x00′)
4-7 Password ASCII 4
-----------------------------------------------------------------------
5.1.2.2 Set Fiscal Mode Calculations
If the new Lira was set, the fiscal memory is updated by filling an entry in the new Lira table with the following data:
FM_NL_Date = Current_Date FM_NL_Time = Current_Time FM_NL_N_Clos = Lif_N_Clos + 1
5.1.2.3 Set Fiscal Mode Rules
This procedure can be executed only once and out of the sale period.
If the new Lira was set in training mode, then the new Lira table is stored in FM when the x18 cmd. is issued.
Page 48 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.1.3 1A - SET DISPLAY ADDRESS
This command is used to set the addresses of the 2 display(s) that have to be monitored for connection by the fiscal unit.
5.1.3.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - cmd prefix hex 2
2 1A - Set Display Address hex 1
3 Cmd. Extension hex 1
7-0 Reserved (always = ′0x00′)
4-7 Password ASCII 4
8-9 First Display Address ASCII 2 (Note 1) 10-11 Second Display Address ASCII 2 (Note 1, 2)
-----------------------------------------------------------------------
Notes:
1. Specify the ASCII representation of the hexadecimal address.
Example: for hexadecimal address x′2A′ specify ASCII characters ′2′, ′A′. Valid display addresses are: x′20′-x′27 ′ and x′2A′ -x′2F
2. If C4 cmd. was issued to allow single display, specify the second address as x′0000′ for single
display sensing.
5.1.3.2 Set Display Address Rules
Display addresses are erased when RAM is cleared by activation of the J4/CE jumper.
Command Set Reference — Page 49 of 183
5.1.4 1B - SERIALIZE FISCAL MEMORY
This command is used at the end of manufacturing process to serialize the fixed area of fiscal memory.
5.1.4.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - cmd prefix hex 2
2 1B - Serialize Fiscal Memory hex 1
3 Cmd. Extension hex 1
7-0 Reserved (always = ′0x00′)
4-5 Manufacturer_ID ASCII 2 (Note 1)
6-7 IBM_Manufacturing_ID ASCII 2
8-13 Serial_Number ASCII 6
-----------------------------------------------------------------------
Notes:
1. Assigned by Goverment.
5.1.4.2 Serialize Fiscal Memory Rules
This procedure can be executed only once.
Page 50 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.1.5 20 - LOAD TAX RATE TABLE
This command is used to load the TAX rate table into fiscal battery backed up RAM.
5.1.5.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - cmd prefix hex 2
2 20 - Load TAX Rate Table hex 1
3 Cmd. Extension hex 1
01 = TAX Departament 01 - 05
02 = TAX Departament 06 - 10 4-7 Password ASCII 4 8-9 Reserved ASCII 2
10-13 TAX Rate for Departament 01/06 ASCII 4 14-15 Reserved ASCII 2 16-19 TAX Rate for Departament 02/07 ASCII 4 20-21 Reserved ASCII 2 22-25 TAX Rate for Departament 03/08 ASCII 4 26-27 Reserved ASCII 2 28-31 TAX Rate for Departament 04/09 ASCII 4 32-33 Reserved ASCII 2 32-37 TAX Rate for Departament 05/10 ASCII 4
-----------------------------------------------------------------------
Notes:
1. Tax rate is a fixed point number with 2 decimal digits. Separator characters must not be included in the TAX rate string. For example, for TAX rate 8%, specify ′0800′.
2. TAX rate field can range from ′0000′ to ′9999′. Values from ′0000′ to ′9998′ are used to specify the TAX rate, while value ′9999′ is used to inhibit the corresponding category.
3. The print format for TAX rates depends on their specification: a. If all rates are specified as ′ xx00′ the print format is %rr
b. If at least one rate is not specified as ′ xx00′ the print format is %rr.rr
5.1.5.2 Load TAX Rate Table Rules
The TAX rate table is loaded into fiscal battery backed up RAM.
10 categories must be loaded.
Command Set Reference — Page 51 of 183
5.1.6 22 - SET DEPARTMENT NAMES
This command is used to replace the default departament names.
5.1.6.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Cmd Prefix hex 2 2 22 - Set Department Name hex 1 3 Cmd. Extension hex 1
7-4 Reserved (always = ′0′) 3-0 Departament Number (Note 1)
4-15 Department Name ASCII 12
-----------------------------------------------------------------------
Notes:
1. Department number range is from 1 to 10.
5.1.6.2 Set Department Names Rules
This command must be issued for 10 number of departments for fiscal vouchers.
The departament names are restored to their original default character string when RAM is cleared by installation of the hardware J4/CE jumper.
Page 52 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.1.7 C4 - FISCAL PARAMETER CONFIGURATION
This command is used to set the number of displays to sense.
5.1.7.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Cmd Prefix hex 2 2 C4 - Fiscal Parameter Configuration hex 1 3 Cmd. Extension hex 1
02 = Display Sensing Definition 4-7 Password ASCII 4 8 Display Sensing Definition ASCII 1 (Note 1)
1 = Single/Dual
2 = Dual
-----------------------------------------------------------------------
Notes:
1. It must be executed before the set display (1A cmd.), otherwise the code senses two displays.
Command Set Reference — Page 53 of 183
5.1.8 D7 - SET HEADER
This command is used to store the headers into fiscal battery backed up RAM.
5.1.8.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Cmd Prefix hex 2 2 D7 - Set Header hex 1 3 Cmd. Extension hex 1
7-6 Reserved (always = ′0′) 5-3 Print Typeface
000 = 15 CPI
001 = 12 CPI
010 = Reserved
011 = 15 CPI Double-High
100 = 15 CPI Emphasized
101 = 12 CPI Emphasized
110 = Reserved
111 = 15 CPI Double-High, Emphasized
2-0 Line Number (Note 1)
001 = First
010 = Second
011 = Third
100 = Fourth
101 = Fifth 4-41 D7_Description ASCII 38 (Note 2)
-----------------------------------------------------------------------
Notes:
1. If a line number is not set, it is not printed.
2. If an all blank character string is specified then the corresponding header line is not printed.
5.1.8.2 Set Header Rules
Loads the header into fiscal printer battery backed up RAM.
The header is erased when RAM is cleared by activation of the J4/CE jumper.
This command cannot be executed when sales period is in progress.
The minimum number of header lines required is 1.
The maximum number of header lines allowed is 5.
Page 54 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.2 Utility Commands
The utility commands include:
19 - Set Currency Thousand Separator
DA - Electronic Read Fiscal Memory Tables
DB - Electronic Read Counters and Accumulators
F1 - Communicate Power On Status
F9 - Report Current Status
Command Set Reference — Page 55 of 183
5.2.1 19 - CURRENCY MANAGEMENT
This command is used to set currency thousand separator.
5.2.1.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - cmd prefix hex 2 2 19 - Currency Management hex 1 3 Cmd. Extension hex 1 (Note 1)
01 = Set New Lira (Note 2)
08 = None Thousand Separator (Note 3)
10 = Dot Thousand Separator (.) (Note 4)
20 = Comma Thousand Separator (,) (Note 5)
Reserved always = ′0′) 4-7 Password ASCII 4
-----------------------------------------------------------------------
Notes:
1. Only one can be selected each time (set new Lira, none, dot or comma).
2. Can be issued only one time after the fiscalization.
3. Amount format example: aaaaaaaaaaaa (Old Lira) Amount format example: aaaaaaaaaaaa,aa (new Lira)
4. Amount format example: aaa.aaa.aaa.aaa (Old Lira) Amount format example: aaa.aaa.aaa.aaa,aa (new Lira)
5. Amount format example: aaa,aaa,aaa,aaa (Old Lira) Amount format example: aaa,aaa,aaa,aaa.aa (new Lira)
5.2.1.2 Currency Management Rules
This cmd. must be issued:
Out of the sale period (FSALEON = NO).
J4/CE jumper in OFF (STORED) position (FJUMPER = NO).
Set New Lira (Cmd. Extension 01)
This cmd. extension can be issued only one time, otherwise the error code 162 is returned.
Fiscal Mode
— The new lira table is stored into the fiscal memory as follow:
If the new Lira was set in training mode, then it is stored when the set fiscal mode (x18 cmd.) is issued.
If the new Lira was not set in training mode, then it is stored when the currency management (x19 cmd. - cmd. extension 01) is issued.
Training Mode
— The new Lira is set automatically when the fiscal printer is in training mode, but in this case the
new Lira table is not updated.
— The x19 cmd. - cmd. extension 01 can not be issued in training mode, otherwise the error code
162 is returned.
— If the new Lira was set in training mode but if necessary to disable it for fiscal mode then the
J4/CE jumper procedure must be issued to clear the setting.
After the new Lira was set, the amounts will be printed with 2 digit decimals.
The amount format depend on the thousand separator selected:
Page 56 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
— for none : aaaaaaaaaa,aa. — for comma: a,aaa,aaa,aaa.aa — for dot : a.aaa.aaa.aaa,aa.
Thousand Separator (Cmd. Extension 08, 10 and 20)
The default thousand separator type is none″. Example (aaaaaaaaaaaa or aaaaaaaaaaaa,aa).
The thousand separator is erased when RAM is cleared by activation of the J4/CE jumper, when the recovery is executed, the default thousand separator noneis assumed.
When a PLD occurs and then the power is restored, the thousand separator will be kept to the last
set.
Command Set Reference — Page 57 of 183
5.2.2 DA - ELECTRONIC READ FISCAL MEMORY TABLES
This command is used to request the fiscal unit to report the fiscal memory table content.
5.2.2.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - cmd prefix hex 2 2 DA - Electronic Read Fiscal Memory Tables hex 1 3 Cmd. Extension hex 1
00 = Start Read Daily Block 01 = Read Next Daily Block 06 = Start Read Repair Action Table 07 = Read Next Repair Action Table 08 = Read New Lira Table
4-7 Closure Number ASCII 4 (Note 1, 2)
-----------------------------------------------------------------------
Notes:
1. Bytes 4-7 apply to Start Read Daily Block only.
2. If the closure number ′0000′ is specified, the first closure stored in fiscal memory will be
returned.
Page 58 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
Response for Daily Read Block will be formatted as follows:
----------------------------------------------------------------------------------
BYTE BYTE CONTENT TYPE LENGTH VARIABLES RS-485 USB
BYTE BYTE BIT CONTENT TYPE LENGTH RS-485 USB
0-8 Fiscal Unit Status hex 9
0-14 Fiscal Unit Status hex 15
9 15 DA - Record Identification hex 1
10-25 16-31 Request Date and Time ASCII 16
(dd.mm.yyyy hh.mm)
26 32 Return Code
43 = Good Completion 60 = Invalid Character 5A = Closure Not Found 64 = Error on Reading Fiscal Memory BB = Block Empty
27 33 Currency Indicator (Note 1)
0 = Old Lira
1 = New Lira 28-37 34-43 Closure Date (dd.mm.yyyy) ASCII 10 FM_DE_Date 38-41 44-47 Closure Number ASCII 4 FM_DE_N_Clos 42-47 48-53 Daily Total hex 6 FM_DE_Tot 48-53 54-59 Daily VAT Total hex 6 FM_DE_TAX
-----------------------------------------------------------------------
Note 1: corresponds to the currency used by the closure number required.
Command Set Reference — Page 59 of 183
Response for Repair Action Table will be formatted as follows:
----------------------------------------------------------------------------------
BYTE BYTE CONTENT TYPE LENGTH VARIABLES RS-485 USB
BYTE BYTE CONTENT TYPE LENGTH RS-485 USB
0-8 Fiscal Unit Status hex 9
0-14 Fiscal Unit Status hex 15
9 15 DA - Record Identification hex 1
10-25 16-31 Request Date and Time ASCII 16
(dd.mm.yyyy hh.mm) 26 32 Return Code
43 = Good Completion
60 = Invalid Character
5A = Closure Not Found
64 = Error on Reading Fiscal Memory
BB = Block Empty 27 33 Reserved hex 1 28-30 34-36 Repair Action Number ASCII 3 FM_RA_N_Ract 31-34 37-40 Closure Number ASCII 4 FM_RA_N_Clos 35-44 41-50 Date (dd.mm.yyyy) ASCII 10 FM_RA_Date 45-49 51-55 Time (hh.mm) ASCII 5 FM_RA_Time
-----------------------------------------------------------------------
Page 60 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
Response for New Lira Table will be formatted as follows:
----------------------------------------------------------------------------------
BYTE BYTE CONTENT TYPE LENGTH VARIABLES RS-485 USB
0-8 Fiscal Unit Status hex 9
0-14 Fiscal Unit Status hex 15
9 15 DA - Record Identification hex 1
10-25 16-31 Request Date and Time ASCII 16
(dd.mm.yyyy hh.mm) 26 32 Return Code
43 = Good Completion
60 = Invalid Character
5A = Closure Not Found
64 = Error on Reading Fiscal Memory
BB = Block Empty 27 33 Reserved hex 1 28-31 34-37 Closure Number ASCII 4 FM_NL_N_Clos 32-41 38-47 Date (dd.mm.yyyy) ASCII 10 FM_NL_Date 42-46 48-52 Time (hh:mm) ASCII 5 FM_NL_Time
----------------------------------------------------------------------------------
Command Set Reference — Page 61 of 183
5.2.3 DB - ELECTRONIC READ COUNTERS AND ACCUMULATORS
This command is used to request the fiscal unit to report the content of transaction and daily counters and accumulators.
5.2.3.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Command Prefix hex 2 2 DB - Electronic Read Counters and Accumulators hex 1 3 Cmd. Extension hex 1
7-1 Reserved (always = ′0′) 0 Read Accumulators and Counters
4 Auxiliary Cmd. Extension hex 1
7-4 Reserved (always = ′0′) 3 Lifetime
0 = Old Lira 1 = New Lira
2 Reserved (always = ′0′) 1 Parameters
0 = TAX Category 1 = Payment Type
0 Type
0 = Transaction 1 = Daily
5 Reserved ASCII 1
If (byte 4 - bit 1) = 0
6-7 TAX Category (vv) ASCII 2 (Note 1)
If (byte 4 - bit 1) = 1
6-7 Payment Type (pp) ASCII 2 (Note 2)
----------------------------------------------------------------------­ Note 1: To read the sum totals for all TAX categories, use ′00′ as the ASCII data string.
Range 00 up to 10.
Note 2: To read the sum totals for all payment types, use ′00′ as the ASCII data string.
Range 00 up to 05 where:
00 = sum of all payment types totals 01, 03 and 04 = Cash 02 = Credit Card 05 = Other
Page 62 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.2.3.2 Response to the Electronic Read Counters and Accumulators
---------------------------------------------------------------------------------
BYTE BYTE BIT CONTENT TYPE LENGTH RS-485 USB
0-8 Fiscal Unit Status hex 9
0-14 Fiscal Unit Status hex 15
9 15 DB - Record Identification hex 1
10-25 16-31 REQUEST DATE AND TIME ASCII 16
(dd.mm.yyyy hh.mm)
26 32 RETURN CODE hex 1
43 = Good Completion
27 33 PROCEDURE IN PROGRESS hex 1
00 = No Procedure in Progress
01 = Sale Transaction in Progress
02 = Fiscal Receipt in Progress
03 = Return Receipt in Progress
04 = Waybill Receipt in Progress
05 = Application-Originated Report - CR in Progress
06 = Application-Originated Report - SJ in Progress
07 = Application-Originated Report - DI Landscape in Progress
08 = Application-Originated Report - DI Portrait in Progress
09 = Credit Card Printing in Progress
0A = Diplomatic Receipt in Progress
28 34 SALE TRANSACTION STEP hex 1
7 1 = Header Printed 6 1 = Item/Negitem Sold 5 1 = Total Requested 4 1 = Payment in Progress 3 1 = End Transaction in Progress 2 1 = Cancel Transaction in Progress 1-0 Reserved (always = ′0′)
29 35 FISCAL UNIT MODE hex 1
7 1 = Fiscal Mode Set 6 Reserved (always = ′0′) 5 1 = Sales Period in Progress 4-3 Currency Thousand Separator Set
00 = none
01 = Dot (.)
10 = Comma (,)
11 = Reserved
2 1 = New Lira Set 1-0 Reserved (always = ′0′)
30-32 36-38 RESERVED hex 3
---------------------------------------------------------------------------------
Command Set Reference — Page 63 of 183
If (byte 4 - bit 0 = 0) and (byte 4 - bit 1 = 0) and TAX category = 0
---------------------------------------------------------------------------------------------
BYTE BYTE BIT CONTENT TYPE LENGTH VARIABLE
RS-485 USB
TRANSACTION ACCUMULATORS
------------------------
33-38 39-44 Voucher Total hex 6 Tra_Tot 39-62 45-68 Reserved hex 24 63-68 69-74 TAX Total hex 6 Tra_VAT 69-92 75-98 Reserved hex 24 93-98 99-104 Voids Total hex 6 Tra_Void
99-104 105-110 Bonus Total hex 6 Tra_Bonu
105-110 111-116 Discounts Total hex 6 Tra_Disc 111-116 117-122 Empties Total hex 6 Tra_Empt
117-122 123-128 Reserved hex 6 123-128 129-134 Discounts on Subtotal Total hex 6 Tra_Tdsc 129-134 135-140 Uplifts on Subtotal Total hex 6 Tra_Tupl 135-139 141-145 Amount Due Total (signed) hex 5 Tra_Amt_Due 140-174 146-180 Reserved hex 35
TRANSACTION COUNTERS
--------------------
175-176 181-182 Voided Items hex 2 Tra_N_Void 177-178 183-184 Discounted Items hex 2 Tra_N_Disc 179-180 185-186 Bonus Items hex 2 Tra_N_Bonu 181-182 187-188 Empties Items hex 2 Tra_N_Empt 183-184 189-190 Discounts on Subtotal hex 2 Tra_N_Tdsc 185-186 191-192 Uplifts on Subtotal hex 2 Tra_N_Tupl 187-210 193-216 Reserved hex 24
---------------------------------------------------------------------------------------------
If (byte 4 - bit 0 = 0) and (byte 4 - bit 1 = 1) and payment type = 0:
---------------------------------------------------------------------------------------------
BYTE BYTE BIT CONTENT TYPE LENGTH VARIABLE
RS-485 USB
TRANSACTION ACCUMULATORS
------------------------
33-38 39-44 Payment Total hex 6 Tra_Payment 39-210 45-216 Reserved hex 172
---------------------------------------------------------------------------------------------
Page 64 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
If (byte 4 - bit 0 = 0) and (byte 4 - bit 1 = 0) and TAX category > 0:
---------------------------------------------------------------------------------------------
BYTE BYTE BIT CONTENT TYPE LENGTH VARIABLE
RS-485 USB
TRANSACTION ACCUMULATORS
------------------------
33-38 39-44 Voucher Total hex 6 Tra_Tot_v(vv) 39-62 45-68 Reserved hex 24 63-68 69-74 TAX Total hex 6 Tra_VAT_v(vv) 69-92 75-98 Reserved hex 24 93-98 99-104 Voids Total hex 6 Tra_Void_v(vv)
99-104 105-110 Bonus Total hex 6 Tra_Bonu_v(vv)
105-110 111-116 Discounts Total hex 6 Tra_Disc_v(vv) 111-116 117-122 Empties Total hex 6 Tra_Empt_v(vv)
117-134 123-140 Reserved hex 18 135-140 141-146 Amount Due Total (signed) hex 6 Tra_Amt_Due 140-174 146-180 Reserved hex 35
TRANSACTION COUNTERS
--------------------
175-176 181-182 Voided Items hex 2 Tra_N_Void 177-178 183-184 Discounted Items hex 2 Tra_N_Disc 179-180 185-186 Bonus Items hex 2 Tra_N_Bonu 181-182 187-188 Empties Items hex 2 Tra_N_Empt 183-184 189-190 Discounts on Subtotal hex 2 Tra_N_Tdsc 185-186 191-192 Uplifts on Subtotal hex 2 Tra_N_Tupl 187-210 193-216 Reserved hex 24
---------------------------------------------------------------------------------------------
Command Set Reference — Page 65 of 183
If (byte 4 - bit 0 = 0) and (byte 4 - bit 1 = 1) and payment type > 0:
---------------------------------------------------------------------------------------------
BYTE BYTE BIT CONTENT TYPE LENGTH VARIABLE
RS-485 USB
TRANSACTION ACCUMULATORS
------------------------
If Payment Type (pp) = Cash (01, 03 or 04)
33-38 39-44 Cash Total hex 6 Tra_Pay_Type_0
If Payment Type (pp) = Credit Card (02)
33-38 39-44 Credit Card Total hex 6 Tra_Pay_Type_1
If Payment Type (pp) = Other (05)
33-38 39-44 Other Total hex 6 Tra_Pay_Type_4
39-210 45-216 Reserved hex 172
---------------------------------------------------------------------------------------------
Page 66 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
If (byte 4 - bit 0 = 1) and (byte 4 - bit 1 = 0) and TAX category = 0:
---------------------------------------------------------------------------------------------
BYTE BYTE BIT CONTENT TYPE LENGTH VARIABLE
RS-485 USB
DAILY ACCUMULATORS
------------------
33-38 39-44 Voucher Total hex 6 Day_Tot 39-44 45-50 Fiscal Receipt Total hex 6 Day_FRec_Tot 45-50 51-56 Waybill Receipt Total hex 6 Day_WBill_Tot 51-56 57-62 Return Receipt Total hex 6 Day_RRec_Tot 57-62 63-68 Diplomatic Receipt Total hex 6 Day_DRec_Tot 63-68 69-74 TAX Total hex 6 Day_VAT 69-74 75-80 Fiscal Receipt TAX Total hex 6 Day_FRec_VTot 75-80 81-86 Waybill Receipt TAX Total hex 6 Day_WBill_VTot 81-86 87-92 Return Receipt TAX Total hex 6 Day_RRec_VTot 87-92 93-98 Diplomatic Receipt TAX Total hex 6 Day_DRec_VTot 93-98 99-104 Voids Total hex 6 Day_Void
99-104 105-110 Bonus Total hex 6 Day_Bonu
105-110 111-116 Discounts Total hex 6 Day_Disc 111-116 117-122 Empties Total hex 6 Day_Empt
117-122 123-128 Reserved hex 6 123-128 129-134 Discounts on Subtotal Total hex 6 Day_Tdsc 129-134 135-140 Uplifts on Subtotal Total hex 6 Day_Tupl 135-140 141-146 Cancelled Transaction Total hex 6 Day_Canc 141-146 147-152 Cancelled Fiscal Receipt Total hex 6 Day_FRec_CTot 147-152 153-158 Cancelled Waybill Receipt Total hex 6 Day_WBill_CTot 153-158 159-164 Cancelled Return Receipt Total hex 6 Day_RRec_CTot 159-164 165-170 Cancelled Diplomatic Receipt Total hex 6 Day_DRec_CTot
DAILY COUNTERS
--------------
165-166 171-172 Fiscal Voucher hex 2 Day_N_Vouc 167-168 173-174 Application-Originated Reports - All Stations hex 2 Day_N_NFR 169-170 175-176 Application-Originated Reports - CR hex 2 Day_N_NFCR 171-172 177-178 Application-Originated Reports - SJ hex 2 Day_N_NFJL 173-174 179-180 Credit Slips hex 2 Day_N_Cred 175-176 181-182 Voided Items hex 2 Day_N_Void 177-178 183-184 Discounted Items hex 2 Day_N_Disc 179-180 185-186 Bonus Items hex 2 Day_N_Bonu 181-182 187-188 Empties Items hex 2 Day_N_Empt 183-184 189-190 Discounts on Subtotal hex 2 Day_N_Tdsc 185-186 191-192 Uplifts on Subtotal hex 2 Day_N_Tupl 187-188 193-194 Cancelled Transactions hex 2 Day_N_Canc 189-190 195-196 Fiscal Receipt hex 2 Day_N_FRec 191-192 197-198 Cancelled Fiscal Receipt hex 2 Day_N_CFrc 193-194 199-200 Waybill Receipt hex 2 Day_N_WBill 195-196 201-202 Cancelled Waybill Receipt hex 2 Day_N_CWbl 197-198 203-204 Return Receipt hex 2 Day_N_RRec 199-200 205-206 Cancelled Return Receipt hex 2 Day_N_CRrc 201-202 207-208 Diplomatic Receipt hex 2 Day_N_DRec 203-204 209-210 Cancelled Diplomatic Receipt hex 2 Day_N_CDrc 205-206 211-212 Fiscal Slips hex 2 Day_N_Fisc 207-208 213-214 Fiscal Slips Cancelled hex 2 Day_N_CFisc 209 215 Reserved hex 1 210 216 Repair Actions hex 1 Day_N_Ract
---------------------------------------------------------------------------------------------
Command Set Reference — Page 67 of 183
If (byte 4 - bit 0 = 1) and (byte 4 - bit 1 = 1) and payment type = 0:
---------------------------------------------------------------------------------------------
BYTE BYTE BIT CONTENT TYPE LENGTH VARIABLE
RS-485 USB
DAILY ACCUMULATORS
------------------
33-38 39-44 Payment Total hex 6 Day_Payment 39-210 45-216 Reserved hex 172
---------------------------------------------------------------------------------------------
Page 68 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
If (byte 4 - bit 0 = 1) and (byte 4 - bit 1 = 0) and TAX category > 0:
---------------------------------------------------------------------------------------------
BYTE BYTE BIT CONTENT TYPE LENGTH VARIABLE
RS-485 USB
DAILY ACCUMULATORS
------------------
33-38 39-44 Total hex 6 Day_Tot_v(vv) 39-44 45-50 Fiscal Receipt Total hex 6 Day_FRec_Tot 45-50 51-56 Waybill Receipt Total hex 6 Day_WBill_Tot 51-56 57-62 Return Receipt Total hex 6 Day_RRec_Tot 57-62 63-68 Diplomatic Receipt Total hex 6 Day_DRec_Tot 63-68 69-74 TAX Total hex 6 Day_VAT_v(vv) 69-74 75-80 Fiscal Receipt TAX Total hex 6 Day_FRec_VTot 75-80 81-86 Waybill Receipt TAX Total hex 6 Day_WBill_VTot 81-86 87-92 Return Receipt TAX Total hex 6 Day_RRec_VTot 87-92 93-98 Diplomatic Receipt TAX Total hex 6 Day_DRec_VTot 93-98 99-104 Voids Total hex 6 Day_Void_v(vv)
99-104 105-110 Bonus Total hex 6 Day_Bonu_v(vv)
105-110 111-116 Discounts Total hex 6 Day_Disc_v(vv)
111-116 117-122 Empties Total hex 6 Day_Empt_v(vv)
117-134 123-140 Reserved hex 18 135-140 141-146 Cancelled Transactions Total hex 6 Day_Canc_v(vv) 141-146 147-152 Cancelled Fiscal Receipt Total hex 6 Day_FRec_CTot 147-152 153-158 Cancelled Waybill Receipt Total hex 6 Day_WBill_CTot 153-158 159-164 Cancelled Return Receipt Total hex 6 Day_RRec_CTot 159-164 165-170 Cancelled Diplomatic Receipt Total hex 6 Day_DRec_CTot
DAILY COUNTERS
--------------
165-166 171-172 Fiscal Voucher hex 2 Day_N_Vouc 167-168 173-174 Application-Originated Reports - All Stations hex 2 Day_N_NFR 169-170 175-176 Application-Originated Reports - CR hex 2 Day_N_NFCR 171-172 177-178 Application-Originated Reports - SJ hex 2 Day_N_NFJL 173-174 179-180 Credit Slips hex 2 Day_N_Cred 175-176 181-182 Voided Items hex 2 Day_N_Void 177-178 183-184 Discounted Items hex 2 Day_N_Disc 179-180 185-186 Bonus Items hex 2 Day_N_Bonu 181-182 187-188 Empties Items hex 2 Day_N_Empt 183-184 189-190 Discounts on Subtotal hex 2 Day_N_Tdsc 185-186 191-192 Uplifts on Subtotal hex 2 Day_N_Tupl 187-188 193-194 Cancelled Transactions hex 2 Day_N_Canc 189-190 195-196 Fiscal Receipt hex 2 Day_N_FRec 191-192 197-198 Cancelled Fiscal Receipt hex 2 Day_N_CFrc 193-194 199-200 Waybill Receipt hex 2 Day_N_WBill 195-196 201-202 Cancelled Waybill Receipt hex 2 Day_N_CWbl 197-198 203-204 Return Receipt hex 2 Day_N_RRec 199-200 205-206 Cancelled Return Receipt hex 2 Day_N_CRrc 201-202 207-208 Diplomatic Receipt hex 2 Day_N_DRec 203-204 209-210 Cancelled Diplomatic Receipt hex 2 Day_N_CDrc 205-206 211-212 Fiscal Slips hex 2 Day_N_Fisc 207-208 213-214 Fiscal Slips Cancelled hex 2 Day_N_CFisc 209 215 Reserved hex 1 210 216 Repair Actions hex 1 Day_N_Ract
---------------------------------------------------------------------------------------------
Command Set Reference — Page 69 of 183
If (byte 4 - bit 0 = 1) and (byte 4 - bit 1 = 1) and payment type > 0:
---------------------------------------------------------------------------------------------
BYTE BYTE BIT CONTENT TYPE LENGTH VARIABLE
RS-485 USB
DAILY ACCUMULATORS
------------------
If Payment Type (pp) = Cash (01, 03 or 04)
33-38 39-44 Cash Total hex 6 Day_Pay_Type_0
If Payment Type (pp) = Credit Card (02)
33-38 39-44 Credit Card Total hex 6 Day_Pay_Type_1
If Payment Type (pp) = Other (05)
33-38 39-44 Other Total hex 6 Day_Pay_Type_4
39-210 45-216 Reserved hex 172
---------------------------------------------------------------------------------------------
If (byte 4 - bit 3 = 0 (OLD LIRA))
---------------------------------------------------------------------------------------------
BYTE BYTE BIT CONTENT TYPE LENGTH VARIABLE
RS-485 USB
LIFETIME ACCUMULATORS AND COUNTERS
----------------------------------
211 217 Reserved hex 1 212-219 218-225 Total hex 8 Lif_Tot_OL 220-221 226-227 Last Closure Number hex 2 Lif_N_Clos 222-223 228-229 Repair Actions hex 2 Lif_N_Ract 224-228 230-234 Reserved hex 5 229-238 235-244 Serial Number ASCII 10 FM_SL_SerNum 239-246 245-252 TAX Total hex 8 Lif_VATC_OL 247-248 253-254 TAX Rate hex 2 (Note 1)
---------------------------------------------------------------------------------------------
If (byte 4 - bit 3 = 1 (NEW LIRA))
---------------------------------------------------------------------------------------------
BYTE BYTE BIT CONTENT TYPE LENGTH VARIABLE
RS-485 USB
LIFETIME ACCUMULATORS AND COUNTERS
----------------------------------
211 217 Reserved hex 1 212-219 218-225 Total hex 8 Lif_Tot_NL 220-221 226-227 Last Closure Number hex 2 Lif_N_Clos 222-223 228-229 Repair Actions hex 2 Lif_N_Ract 224-228 230-234 Reserved hex 5 229-238 235-244 Serial Number ASCII 10 FM_SL_SerNum 239-246 245-252 TAX Total hex 8 Lif_VATC_NL 247-248 253-254 TAX Rate hex 2 (Note 1)
---------------------------------------------------------------------------------------------
Note : For all type hex, hex data is in normal format, not byte switch format.
Note 1: is the TAX rate correspoding to TAX category selected in bytes 6-7
when the (byte 4 - bit 1 = 0).
Page 70 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.2.4 F1 - COMMUNICATE POWER ON STATUS
This command is used to determines if the printer power was turned off in the middle of a command as shown by status byte 6, bit 4.
5.2.4.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Command prefix hex 2 2 F1 - Communicate Power On Status hex 1 3 Cmd. Extension hex 1
7-0 Reserved (always = ′0x00′)
-----------------------------------------------------------------------
Command Set Reference — Page 71 of 183
5.2.5 F7 - COMMAND BUFFER MANAGEMENT
This command is used to retrieve the last command issued of the command buffer.
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - cmd prefix hex 2 2 F7 - Command Buffer Management hex 1 3 Cmd. Extension hex 1
00 = Retrieve Last Command 01 = Retrieve Previous Command 02 = Clear Command Buffer
-----------------------------------------------------------------------
Response for Command Buffer Management will be formatted as follows:
-----------------------------------------------------------------------
BYTE BYTE CONTENT TYPE LENGTH
RS-485 USB
0-8 Fiscal Unit Status hex 9
9-128 Additional Information hex 120 (Note 1)
-----------------------------------------------------------------------
0-14 Fiscal Unit Status hex 15
15-128 Additional Information hex 114 (Note 1)
Notes:
1. See response for the Additional Information.
Response for Additional Information will be formatted as follows:
-----------------------------------------------------------------------
BYTE BYTE CONTENT TYPE LENGTH
RS-485 USB
9 15 Type hex 1 (Note 1) 10 16 Command Data Length hex 1 (Note 2) 11 17 Additional Data Length hex 1 (Note 3 on page 73) 12 18 Command hex 1
-----------------------------------------------------------------------
Command Extension hex n0 Command Data hex n1 Additional Data hex n2 (Note 4 on page 73) Fiscal Untit Status Executed Command hex n3 (Note 5 on page 73)
Notes:
1. Type:
0xFF = command retrieved
0xFE = there was a new command between F700 and F701
0x00 = no commands found
2. Command Data Length = 1 byte + n0 bytes + n1 bytes
where:
Page 72 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
Command = 1 byte
Command Extension = n0 bytes
Command Data = n1 bytes
3. Additional Data Length is n2 bytes
where:
Command Response = n2 bytes
n2 = 129 - (Type + Command + Command Extension + Command Data + Fiscal Unit Status)
4. The Additional Data of the Executed Command is shown in the remaining bytes (n2) of the Additonal Information Response. If the Additional Data of the Executed Command length is greater than the remaining bytes (n2) of the Additonal Information Response the Additional is truncated.
5. Fiscal Unit Status Executed Command (buffering command) length is n3 where:
RS-485 = 9 bytes
USB = 15 bytes
5.2.5.1 Example: Command Buffer Management - Additional Information Response
+-----------------------------------------------+ | 0| 1| 2| 3| 4| 5| 6| 7| 8| 9| A| B| C| D| E| F| |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| |FF|10|5F|FF|11|30|35|30|30|43|30|35|30|39|30|34| |39|31|36|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF| |FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF| |FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF| |FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF| |FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF| |FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF|FF| |FF|FF|08|4F|00|0A|20|07|28|00|00|80|02|01|0B|43| |00| | | | | | | | | | | | | | | | +-----------------------------------------------+
5.2.5.2 Command Buffer Management Rules
The command buffer size is 2 Kb (2048 bytes).
When a command is executed, this command is stored in the command buffer (except the F7 cmd.).
If the command buffer is full the oldest command is removed of the command buffer.
If a PLD occurs during the command execution, the interrupted command is stored in the command buffer and the fiscal unit status of the executed command is equal to zero.
Command Set Reference — Page 73 of 183
5.2.6 F9 - REPORT CURRENT STATUS
This command is used to requests the fiscal unit to report its current status.
5.2.6.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - cmd prefix hex 2 2 F9 - Report Current Status hex 1 3 Cmd. Extension hex 1
7-0 Reserved (always = ′0x00′)
-----------------------------------------------------------------------
Page 74 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.3 Sales Period in Progress Commands
The sale period is started when any of the following commands is executed:
D2 - Item Sale
E0 - Print Fiscal, Return and Diplomatic Receipt
E2 - Print Waybill Receipt
The sale period is finished when the following command is executed:
13 - Close Sale Period
Additionally, the following commands can be executed when a sales period is in progress:
Fiscal Receipt in Progress
Return Receipt in Progress
Waybill Receipt in Progress
Diplomatic Receipt in Progress
Application-Originated Reports in Progress
Additionally, the following commands can be executed when a sales period is not in progress:
Application-Originated Reports in Progress
5.4 Sale Transaction in Progress Commands
The fiscal voucher is generated during a sale transaction.
The following command is executed to print header (it not start a sale period neither a sale transaction).
01 - Print Header
The sale transaction is started when the following command is executed:
D2 - Item Sale
These commands are executed when a sales transaction is in progress:
D3 - Negative Item Sale
D4 - Subtotal/Total Transaction
D5 - Payment
D8 - Not Paid
D9 - Discount/Uplift on Subtotal
06 - End of Transaction
07 - Cancel Transaction
C0 - Print Credit Card Slip
C1 - End Credit Card Slip
C3 - Line Feed Credit Card Slip
The calculations listed in this section are performed after the successful execution of the command.
Command Set Reference — Page 75 of 183
5.5 General Fiscal Voucher Rules
Payment phase is required.
Credit card printing in DI station while in the sales transaction state is allowed in the payment phase only.
When an error occurred during an end transaction the following is allowed:
To issue the end transaction (06 cmd.) again if the fiscal logo was not printed yet.
To issue the cancel transaction (07 cmd.) if the fiscal logo was printed yet.
Page 76 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.5.1 01 - PRINT HEADER
This command is used to print the header in CR station.
5.5.1.1 Command Format
-----------------------------------------------------------------------
BYTE CONTENT TYPE LENGTH
0-1 1B66 - cmd prefix hex 2 2 01 - Print Header hex 1 3 Cmd. Extension hex 1
7-0 Reserved (always = ′0x00′)
-----------------------------------------------------------------------
Command Set Reference — Page 77 of 183
5.5.2 D2 - ITEM SALE
This command is used to record the amount of an item and to print a line containing item description and item amount.
5.5.2.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Cmd Prefix hex 2 2 D2 - Item Sale hex 1 3 Cmd. Extension hex 1
7 Retry
1 = YES 0 = NO
6 Reserved (always = ′0′) 5 Print Density
0 = Normal 1 = Emphasized
4 Reserved (always = ′0′) 3 Print Typeface
0 = 15 CPI 1 = 12 CPI
2-0 Reserved (always = ′0′)
4-20 D2_Description ASCII 17 (Note 1) 21-27 Reserved ASCII 7 28-39 D2_Amount ASCII 12 (Note 2) 40-41 D2_TAX_Category ASCII 2 (Note 3)
-----------------------------------------------------------------------
Notes:
1. D2_Description field is truncated as follows:
Document at 12 CPI to 9 characters. Document at 15 CPI to 17 characters.
2. Max D2_Amount = 549 755 813 887
D2_Amount string can be blank, in this case the transaction counters are not affected.
3. Specify a valid D2_TAX_Category, ex. 01, 02,.... if D2_Amount string is not blank.
5.5.2.2 Item Sale Calculations
Tra_Tot_v(vv) = Tra_Tot_v(vv) + D2_Amount
Where: specific values of vv are determined from the item sale command.
vv = D2_TAX_Category, range 01 to 10.
Page 78 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.5.2.3 Item Sale Rules
Each item is assigned a value-added TAX (TAX) category that indicates the tax rate applied to the base price to obtain the sale price.
Items cannot be accepted if the D2_TAX_Category specified in the item sale command is disabled (rate
= 9999).
The item price includes TAX.
D2_Amount field in command string of item can be blank. This allows the processing of items with description longer than the number of characters allowed in one line.
The number of items with blank amount which can be sent between non-blank item lines is 5.
If D2_Amount field in command string of Item/Negative Item is not blank, specify D2_TAX_Category.
The string TOTAL in upper, lower or mixed case is not allowed in the D2_Description field.
Command Set Reference — Page 79 of 183
5.5.3 D3 - NEGATIVE ITEM SALE
This command is usde to records the amount of a negative item and prints a line containing the item description and item amount.
5.5.3.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Cmd Prefix hex 2
2 D3 - Negative Item Sale hex 1
3 Cmd. Extension hex 1
7 Retry
1 = YES 0 = NO
6 Rectify
1 = YES 0 = NO
5 Print Density
0 = Normal 1 = Emphasized
4 Reserved (always = ′0′) 3 Print Typeface
0 = 15 CPI 1 = 12 CPI
2-0 Negative Item Type
001 (1) = VOID 010 (2) = BONUS/COUPONS 011 (3) = DISCOUNT 100 (4) = EMPTY (as in empty bottles)
4-20 D3_Description ASCII 17 (Note 1) 21-27 Reserved ASCII 7 28-39 D3_Amount ASCII 12 (Note 2) 40-41 D3_TAX_Category ASCII 2 (Note 3)
-----------------------------------------------------------------------
Notes:
1. D3_Description field is truncated as follows:
Document at 12 CPI to 9 characters. Document at 15 CPI to 17 characters.
2. D3_Amount string cannot be blank. Max D3_Amount = 549 755 813 887.
3. Specify a valid D3_TAX_Category, ex. 01, 02,...
5.5.3.2 Negative Item Sale Calculations
For Rectify = NO
Tra_Tot_v(vv) = Tra_Tot_v(vv) − D3_Amount
According to the negative item type:
Tra_N_Void = Tra_N_Void + 1 Tra_Void_v(vv) = Tra_Void_v(vv) + D3_Amount
Tra_Void = Tra_Void + D3_Amount
Page 80 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
Tra_N_Bonu = Tra_N_Bonu + 1 Tra_Bonu_v(vv) = Tra_Bonu_v(vv) + D3_Amount
Tra_Bonu = Tra_Bonu + D3_Amount Tra_N_Disc = Tra_N_Disc + 1 Tra_Disc_v(vv) = Tra_Disc_v(vv) + D3_Amount
Tra_Disc = Tra_Disc + D3_Amount Tra_N_Empt = Tra_N_Empt + 1 Tra_Empt_v(vv) = Tra_Empt_v(vv) + D3_Amount
Tra_Empt = Tra_Empt + D3_Amount
For Rectify = YES
Tra_Tot_v(vv) = Tra_Tot_v(vv) + D3_Amount
According to the negative item type:
Tra_Void_v(vv) = Tra_Void_v(vv) − D3_Amount Tra_Void = Tra_Void − D3_Amount
Tra_Bonu_v(vv) = Tra_Bonu_v(vv) − D3_Amount Tra_Bonu = Tra_Bonu − D3_Amount
Tra_Disc_v(vv) = Tra_Disc_v(vv) − D3_Amount Tra_Disc = Tra_Disc − D3_Amount
Tra_Empt_v(vv) = Tra_Empt_v(vv) − D3_Amount Tra_Empt = Tra_Empt − D3_Amount
where: specific values of vv are determined from the negative item sale command.
vv = D3_TAX_Category, range 01 to 10.
5.5.3.3 Negative Item Sale Rules
A minus sign is printed for negative items with rectify = NO.
The rectify = YES allows modification or cancellation of a previous negative item operation. The rectified value is added to the appropriate negative item category.
Negative items cannot be accepted if the D3_TAX_Category specified in the item sale command is disabled (rate = 9999).
None of the negative or uplift item accumulators may be allowed to become negative as a result of the command or the command cannot be accepted.
The string TOTAL in upper, lower, or mixed case is not allowed in the D3_Description field.
Command Set Reference — Page 81 of 183
5.5.4 D4 - SUBTOTAL/TOTAL TRANSACTION
This command is used to verify that the total amount accumulated by the fiscal unit matches the amount accumulated by the application program.
5.5.4.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Cmd Prefix hex 2
2 D4 - Subtotal/Total Transaction hex 1
3 Cmd. Extension hex 1
7 Retry
0 = NO 1 = YES
6 Reserved (always = ′0′) 5 Print Density
0 = Normal 1 = Emphasized
4-3 Character Hight (Note 1)
00 = Single 11 = Double
2-1 Reserved (always = ′0′) 0 Character Width
0 = Single 1 = Double
4-15 D4_Amount ASCII 12
-----------------------------------------------------------------------
Notes:
1. Double-wide should be selected to use double-high.
2. The number of CPI and emphasized apply to both the total message and the D4_Amount.
Double-wide apply to D4_Amount only.
5.5.4.2 Subtotal/Total Transaction Calculations
Tra_Tot = ∑vvTra_Tot_v(vv)
Tra_VAT_v(vv) = TRUNC( Tra_VAT = ∑vvTra_VAT_v(vv)
for values of vv ranging from 1 to the maximum value
Tra_Amt_Due = Tra_Tot
Tra_Tot_v(vv) × VAT_Rate _v(vv)
100 + VAT_Rate_v(vv)
+ 0.5)
5.5.4.3 Subtotal/Total Transaction Rules
Calculates transaction total and amount due.
Page 82 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.5.5 D5 - PAYMENT
This command is used to apply the paid amount.
5.5.5.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Cmd Prefix hex 2
2 D5 - Payment hex 1
3 Cmd. Extension hex 1
7 Retry
0 = NO 1 = YES
6 Rectify
0 = NO 1 = YES
5-3 Print Typeface (Note 1)
000 = 15 CPI 001 = 12 CPI 010 = Reserved 011 = Reserved 100 = 15 CPI Emphasized 101 = 12 CPI Emphasized 110 = Reserved 111 = Reserved
2-0 Payment Type
000 = Cash 001 = Credit Card
I 010 = Reserved I 011 = Reserved
100 = Other 101 = Reserved 110 = Reserved 111 = Reserved
4-26 D5_Description ASCII 23 27-38 D5_Amount ASCII 12
-----------------------------------------------------------------------
Notes:
1. Print typeface is also applied to the change due line.
5.5.5.2 Payment Calculations
Rectify = NO
I Tra_Pay_Type_0 = Tra_Pay_Type_0 + D 5_Amount (if Payment Type = Cash) I Tra_Pay_Type_1 = Tra_Pay_Type_1 + D 5_Amount (if Payment Type = Credit Card) I Tra_Pay_Type_4 = Tra_Pay_Type_4 + D 5_Amount (if Payment Type = Other)
Tra_Payment = Tra_Payment + D5_Amount Tra_Amt_Due = Tra_Amt_Due D 5_Amount
Rectify = YES
I Tra_Pay_Type_0 = Tra_Pay_Type_0 D 5_Amount (if Payment Type = Cash)
Command Set Reference — Page 83 of 183
I Tra_Pay_Type_1 = Tra_Pay_Type_1 D 5_Amount (if Payment Type = Credit Card) I Tra_Pay_Type_4 = Tra_Pay_Type_4 D 5_Amount (if Payment Type = Other)
Tra_Payment = Tra_Payment D5_Amount Tra_Amt_Due = Tra_Amt_Due + D 5_Amount
5.5.5.3 Payment Rules
The end transaction (06 cmd.) is executed only if the Tra_Payment is greater than or equal to Tra_Tot.
If the paid amount is greater than Tra_Tot, a ‘CHANGE DUE’ line is printed.
The string TOTAL in upper, lower, or mixed case is not allowed in the D5_Description field.
Page 84 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.5.6 D8 - NOT PAID
This command is used to apply the paid amount. Generally is used when the pay is not cash.
5.5.6.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Cmd Prefix hex 2
2 D8 - Not Paid hex 1
3 Cmd. Extension hex 1
7 Retry
0 = NO 1 = YES
6 Rectify
0 = NO 1 = YES
5-3 Print Typeface (Note 1)
000 = 15 CPI 001 = 12 CPI 010 = Reserved 011 = Reserved 100 = 15 CPI Emphasized 101 = 12 CPI Emphasized 110 = Reserved 111 = Reserved
2-0 Reserved (always = ′0′)
4-26 D8_Description ASCII 23 27-38 D8_Amount ASCII 12
-----------------------------------------------------------------------
Notes:
1. Print typeface is also applied to the change due line.
5.5.6.2 Not Paid Calculations
Rectify = NO
Tra_Pay_Type_4 = Tra_Pay_Type_4 + D 8_Amount (Other) Tra_Payment = Tra_Payment + D8_Amount Tra_Amt_Due = Tra_Amt_Due D 8_Amount
Rectify = YES
Tra_Pay_Type_4 = Tra_Pay_Type_4 − D 8_Amount (Other) Tra_Payment = Tra_Payment D8_Amount Tra_Amt_Due = Tra_Amt_Due + D 8_Amount
Command Set Reference — Page 85 of 183
5.5.6.3 Not Paid Rules
The Tra_Payment can exceed the Tra_Tot.
The end transaction (06 cmd.) is executed only if the Tra_Payment is greater than or equal to Tra_Tot.
If the D8_Amount is greater than Tra_Tot, a ‘CHANGE DUE’ line is printed.
The string TOTAL in upper, lower, or mixed case is not allowed in the D8_Description field.
Page 86 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.5.7 D9 - DISCOUNT/UPLIFT ON SUBTOTAL
This command is used to apply discount or uplift on subtotal.
5.5.7.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Cmd Prefix hex 2
2 D9 - Discount/Uplift Subtotal hex 1
3 Cmd. Extension hex 1
7 Retry
0 = NO 1 = YES
6 Rectify
0 = NO 1 = YES
5-1 Reserved (always = ′0′) 0 Operation Type
0 = DISCOUNT 1 = UPLIFT
4-23 D9_Description ASCII 20 24-25 Reserved ASCII 2 26-37 D9_Amount ASCII 12
-----------------------------------------------------------------------
5.5.7.2 Discount/Uplift on Subtotal Calculations
Discount and Rectify = NO
Tra_N_Tdsc = Tra_N_Tdsc + 1
Tra_Tot_v(vv) = Tra_Tot_v(vv) −
for values of vv ranging from 1 to the maximum values
Rounding is performed by incrementing quotients of divisions with highest reminders, until the sum of all quotients corresponds to discount amount. Note that this rounding operation is done on the Tra_Tot_v accumulators.
Tra_Tdsc = Tra_Tdsc + D9_Amount
Discount and Rectify = YES
Tra_Tot_v(vv) = Tra_Tot_v(vv) +
for values of vv ranging from 1 to the maximum values
Rounding is performed by incrementing quotients of divisions with highest reminders, until the sum of all quotients corresponds to discount amount. Note that this rounding operation is done on the Tra_Tot_v accumulators.
D9_Amount × Tra_Tot_v(vv)
Tra_Tot
D9_Amount × Tra_Tot_v(vv)
Tra_Tot
Tra_Tdsc = Tra_Tdsc D9_Amount
Uplift and Rectify = NO
Command Set Reference — Page 87 of 183
Tra_N_Tupl = Tra_N_Tupl + 1
Tra_Tot_v(vv) = Tra_Tot_v(vv) +
D9_Amount × Tra_Tot_v(vv)
Tra_Tot
for values of vv ranging from 1 to the maximum values
Rounding is performed by incrementing quotients of divisions with highest reminders, until the sum of all quotients corresponds to uplift amount. Note that this rounding operation is done on the Tra_Tot_v accumulators.
Tra_Tupl = Tra_Tupl + D9_Amount
Uplift and Rectify = YES
Tra_Tot_v(vv) = Tra_Tot_v(vv) −
D9_Amount × Tra_Tot_v(vv)
Tra_Tot
for values of vv ranging from 1 to the maximum values
Rounding is performed by incrementing quotients of divisions with highest reminders, until the sum of all quotients corresponds to uplift amount. Note that this rounding operation is done on the Tra_Tot_v accumulators.
Tra_Tupl = Tra_Tupl D9_Amount
5.5.7.3 Discount/Uplift on Subtotal Rules
The discount or uplift amount is distributed (subtracted or added) to the TAX category accumulators proportionally to their current amount.
The string TOTAL in upper, lower, or mixed case is not allowed in the D9_Description field.
The D9_Amount field must be greater than 0, otherwise return code 052 is issued.
Page 88 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.5.8 06 - END TRANSACTION
This command is used to end the sale transaction.
5.5.8.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Cmd Prefix hex 2
2 06 - End Transaction hex 1
3 Cmd. Extension hex 1
7-0 Reserved (always = ′0x00′)
4-7 06_Store_Number ASCII 4
8-11 06_Operator_Number ASCII 4 12-15 06_Terminal_Number ASCII 4 16-53 06_Trailer_Message_1 ASCII 38 54-91 06_Trailer_Message_2 ASCII 38
-----------------------------------------------------------------------
5.5.8.2 End Transaction Calculations
Note that if training mode is active the calculations shown below are not performed except for those listed in Clearing Transaction Accumulators″. So the transaction totals during training mode are not added to the daily totals.
Day_N_Vouc = Day_N_Vouc + 1 Day_N_Fisc = Day_N_Fisc + 1
Day_N_Void = Day_N_Void + Tra_N_Void Day_N_Disc = Day_N_Disc + Tra_N_Disc Day_N_Bonu = Day_N_Bonu + Tra_N_Bonu Day_N_Empt = Day_N_Empt + Tra_N_Empt
Day_N_Tdsc = Day_N_Tdsc + Tra_N_Tdsc Day_N_Tupl = Day_N_Tupl + Tra_N_Tupl
Day_Tot_v(vv) = Day_Tot_v(vv) + Tra_Tot_v(vv) Day_Tot = ∑vvDay_Tot_v(vv)
Change_Due = ( − 1) × Tra_Amt_Due
Command Set Reference — Page 89 of 183
I While Change_Due > 0 I { I If (Change_Due - Tra_Pay_Type_x >= 0 I { I W_Chg_Payment_x = Tra_Pay_Type_x I } I else I { I W_Chg_Payment_x = Tra_Pay_Type_x - Change_Due I } I Tra_Pay_Type_x = Tra_Pay_Type_x - W_Chg_Payment_x I Tra_Payment = Tra_Payment - W_Chg_Payment_x I Change_Due = Change_Due - W_Chg_Payment_x I }
I where the xsequence is the following: I x = 0 (Cash) or 1 (Credit Card) or 2 (Cheque) or 4 (Other)
Day_Payment = Day_Payment + Tra_Payment Day_Pay_Type_0 = Day_Pay_Type_0 + Tra_Pay_Type_0 Day_Pay_Type_1 = Day_Pay_Type_1 + Tra_Pay_Type_1 Day_Pay_Type_4 = Day_Pay_Type_4 + Tra_Pay_Type_4
I for values of vv ranging from 1 to the maximum values
Day_Void_v(vv) = Day_Void_v(vv) + Tra_Void_v(vv) Day_Void = Day_Void + Tra_Void
Day_Bonu_v(vv) = Day_Bonu_v(vv) + Tra_Bonu_v(vv) Day_Bonu = Day_Bonu + Tra_Bonu
Day_Disc_v(vv) = Day_Disc_v(vv) + Tra_Disc_v(vv) Day_Disc = Day_Disc + Tra_Disc
Day_Empt_v(vv) = Day_Empt_v(vv) + Tra_Empt_v(vv) Day_Empt = Day_Empt + Tra_Empt
Day_Tdsc = Day_Tdsc + Tra_Tdsc Day_Tupl = Day_Tupl + Tra_Tupl
for values of vv ranging from 1 to the maximum values
Clearing Transaction Accumulators
Tra_Tot_v(vv) = 0 Tra_Tot = 0
Tra_Payment = 0 Tra_Pay_Type_0 = 0 Tra_Pay_Type_1 = 0 Tra_Pay_Type_4 = 0
Tra_Void_v(vv) = 0 Tra_Void = 0
Tra_Bonu_v(vv) = 0 Tra_Bonu = 0
Page 90 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
Tra_Disc_v(vv) = 0 Tra_Disc = 0
Tra_Empt_v(vv) = 0 Tra_Empt = 0
Tra_Tdsc = 0 Tra_Tupl = 0
Tra_Amt_Due = 0
for values of vv ranging from 1 to the maximum values
Clearing Transaction Counters
Tra_N_Void = 0 Tra_N_Disc = 0 Tra_N_Bonu = 0 Tra_N_Empt = 0 Tra_N_Tdsc = 0 Tra_N_Tupl = 0
5.5.8.3 End Transaction Rules
End Transaction command is executed only if the total paid amount is not less than the transaction total amount if the payment phase is selected. Tra_Amt_Due must be less than or equal to 0.
The string TOTAL in upper, lower, or mixed case is not allowed in the trailer message lines of this command.
Command Set Reference — Page 91 of 183
5.5.9 07 - CANCEL TRANSACTION
This command is used to cancel the sale transaction at any point.
5.5.9.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Cmd Prefix hex 2
2 07 - Cancel Transaction hex 1
3 Cmd. Extension hex 1
7-0 Reserved (always = ′0x00′)
4-7 07_Store_Number ASCII 4
8-11 07_Operator_Number ASCII 4 12-15 07_Terminal_Number ASCII 4
-----------------------------------------------------------------------
5.5.9.2 Cancel Transaction Calculations
If only the store header has been printed, then there are no calculations for this command.
If anything more than the store header is printed, the following calculations are performed:
Day_N_Vouc = Day_N_Vouc + 1 Day_N_Fisc = Day_N_Fisc + 1 Day_N_Canc = Day_N_Canc + 1 Day_N_CFisc = Day_N_CFisc + 1 Tra_Tot = ∑vvTra_Tot_v(vv) Day_Canc_v(vv) = Day_Canc_v(vv) + Tra_Tot_v(vv)
Day_Canc = Day_Canc + Tra_Tot
for values of vv ranging from 1 to the maximum values
Clearing Transaction Accumulators
Tra_Tot_v(vv) = 0 Tra_Tot = 0
Tra_Void_v(vv) = 0 Tra_Void = 0
Tra_Bonu_v(vv) = 0 Tra_Bonu = 0
Tra_Disc_v(vv) = 0 Tra_Disc = 0
Tra_Empt_v(vv) = 0 Tra_Empt = 0
Tra_Tdsc = 0 Tra_Tupl = 0 Tra_Pay_Type_0 = 0
Tra_Pay_Type_1 = 0 Tra_Pay_Type_4 = 0
Page 92 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
Tra_Payment = 0 Tra_Amt_Due = 0
for values of vv ranging from 1 to the maximum values
Clearing Transaction Counters
Tra_N_Void = 0 Tra_N_Disc = 0 Tra_N_Bonu = 0 Tra_N_Empt = 0 Tra_N_Tdsc = 0 Tra_N_Tupl = 0
5.5.9.3 Cancel Transaction Rules
The string TOTAL in upper, lower, or mixed case is not allowed in this command.
Command Set Reference — Page 93 of 183
5.6 Fiscal, Return & Diplomatic Receipt in Progress Commands
This fiscal, return & diplomatic receipt in progress commands include:
E0 - Print Fiscal, Return & Diplomatic Receipt
E3 - End Fiscal, Return & Diplomatic Receipt
0F - Cancel Fiscal, Return & Diplomatic Receipt
Page 94 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.6.1 E0 - PRINT FISCAL, RETURN AND DIPLOMATIC RECEIPT
This command is used to print fiscal, return and diplomatic receipts.
5.6.1.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Command Prefix hex 2
2 E0 - Print Fiscal, Ret. & Diplom. Receipt hex 1
3 Cmd. Extension hex 1
7 Retry
0 = NO 1 = YES
6 Reserved (always = ′0′) 5-3 Print Typeface
000 = 15 CPI 001 = 12 CPI 010 = Reserved 011 = Reserved 100 = 15 CPI Emphasized 101 = 12 CPI Emphasized 110 = Reserved 111 = Reserved
2 Orientation Print and Direction
0 = Landscape - Forward 1 = Portrait - Forward
1-0 Receipt Type
00 = Fiscal 01 = Return 10 = Diplomatic 11 = Reserved
4-89 E0_Description ASCII 86 (Note 1)
-----------------------------------------------------------------------
Notes:
1. E0_Description field is truncated as follows:
Portrait orientation at 15 CPI to 47 characters. Portrait orientation at 12 CPI to 37 characters. Landscape orientation at 15 CPI to 86 characters. Landscape orientation at 12 CPI to 68 characters.
Command Set Reference — Page 95 of 183
5.6.2 E3 - END FISCAL, RETURN AND DIPLOMATIC RECEIPT
This command is used to end fiscal, return and diplomatic receipts.
5.6.2.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Command Prefix hex 2
2 E3 - End Fiscal, Ret. & Diplom. Receipt hex 1
3 Cmd. Extension hex 1
7 Retry
0 = NO 1 = YES
6 Reserved (always = ′0′ ) 5-3 Print Typeface
000 = 15 CPI 001 = 12 CPI 010 = Reserved 011 = Reserved 100 = 15 CPI Emphasized 101 = 12 CPI Emphasized 110 = Reserved 111 = Reserved
2 Orientation Print and Direction
0 = Landscape - Forward 1 = Portrait - Forward
1-0 Receipt Type
00 = Fiscal 01 = Return 10 = Diplomatic 11 = Reserved
4-89 E3_Description ASCII 86 (Note 1) 90-101 E3_Amount ASCII 12 102-113 E3_VAT_Amount ASCII 12
-----------------------------------------------------------------------
Notes:
1. E3_Description field is truncated as follows:
Portrait orientation at 15 CPI to 38 characters. Portrait orientation at 12 CPI to 30 characters. Landscape orientation at 15 CPI to 86 characters. Landscape orientation at 12 CPI to 68 characters.
5.6.2.2 End Fiscal, Return and Diplomatic Receipt Calculations
If Fiscal Receipt
Day_N_FRec = Day_N_FRec + 1 Day_FRec_Tot = Day_FRec_Tot + E 3_Amount Day_FRec_VTot = Day_FRec_VTot + E3_VAT _Amount
If Return Receipt
Page 96 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
Day_N_RRec = Day_N_RRec + 1 Day_RRec_Tot = Day_RRec_Tot + E 3_Amount Day_RRec_VTot = Day_RRec_VTot + E 3_VAT_Amount
If Diplomatic Receipt
Day_N_DRec = Day_N_DRec + 1 Day_DRec_Tot = Day_DRec_Tot + E3_Amount Day_DRec_VTot = Day_DRec_VTot + E3_VAT _Amount
Command Set Reference — Page 97 of 183
5.6.3 0F - CANCEL FISCAL, RETURN AND DIPLOMATIC RECEIPT
This command is used to cancel fiscal, return and diplomatic receipts.
5.6.3.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Command Prefix hex 2
2 0F - Cancel Fiscal, Ret. & Diplom. Receipt hex 1
3 Cmd. Extension hex 1
7-3 Reserved (always = ′0′) 2 Orientation Print and Direction
0 = Landscape - Forward 1 = Portrait - Forward
1-0 Receipt Type
00 = Fiscal 01 = Return 10 = Diplomatic 11 = Reserved
4-15 0F_Amount ASCII 12
-----------------------------------------------------------------------
5.6.3.2 Cancel Fiscal, Return and Diplomatic Receipt Calculations
If Fiscal Receipt
Day_N_FRec = Day_N_FRec + 1 Day_N_CFrc = Day_N_CFrc + 1 Day_FRec_CTot = Day_FRec_CTot + 0F_Amount
If Return Receipt
Day_N_RRec = Day_N_RRec + 1 Day_N_CRrc = Day_N_CRrc + 1 Day_RRec_CTot = Day_RRec_CTot + 0F_Amount
If Diplomatic Receipt
Day_N_DRec = Day_N_DRec + 1 Day_N_CDrc = Day_N_CDrc + 1 Day_DRec_CTot = Day_DRec_CTot + 0F_Amount
Page 98 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
5.7 Waybill Receipt in Progress Commands
The waybill receipt in progress commands include:
E2 - Print Waybill Receipt
E5 - End Waybill Receipt
11 - Cancel Waybill Receipt
Command Set Reference — Page 99 of 183
5.7.1 E2 - PRINT WAYBILL RECEIPT
This command is used to print waybill receipts.
5.7.1.1 Command Format
-----------------------------------------------------------------------
BYTE BIT CONTENT TYPE LENGTH
0-1 1B66 - Command Prefix hex 2
2 E2 - Print Waybill Receipt hex 1
3 Cmd. Extension hex 1
7 Retry
0 = NO 1 = YES
6 Reserved (always = ′0′) 5-3 Print Typeface
000 = 15 CPI 001 = 12 CPI 010 = Reserved 011 = Reserved 100 = 15 CPI Emphasized 101 = 12 CPI Emphasized 110 = Reserved 111 = Reserved
2-0 Orientation Print and Direction
000 = Reserved 001 = Reserved 010 = Reserved 011 = Reserved 100 = Reserved 101 = Landscape - Forward 110 = Portrait - Forward 111 = Reserved
4-89 Description ASCII 86 (Note 1)
-----------------------------------------------------------------------
Notes:
1. Description field is truncated as follows:
Portrait orientation at 15 CPI to 47 characters. Portrait orientation at 12 CPI to 37 characters. Landscape orientation at 15 CPI to 86 characters. Landscape orientation at 12 CPI to 86 characters.
Page 100 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmi
Loading...