This version of the document was printed from an on-line system and must only be used for reference
purposes. The official copy of this document is the on-line version. Please preserve the integrity of the
documentation by destroying any obsolete versions and by not removing any pages from this printed
copy. A comment form is provided at the end of the document for your suggestions on the document
content and format.
— Page 1 of 183
Review and Approval Process
This document will be reviewed, approved, and reissued whenever significant updates have been made.
Reviewers
VersionReviewers
All versionsErkut 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 NameWhere KeptHow IdentifiedRetention 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.
VersionDateChange 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 01Dic 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 01Sep 2, 2004
•
There are not changes for this version.
•
This version of Programming Guide Supplement corresponds to
microcode EC level 19.
v18 01Aug 27, 2004
•
There are not changes for this version.
•
This version of Programming Guide Supplement corresponds to
microcode EC level 18.
Iv17 01IAug 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
Iwas 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
Imicrocode EC level 17.
v14 01May 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
VersionDateChange Description
v13 01May 4, 2004
•
Lifetime Accumulators for old and new Lira: were created.
•
Fiscal Memory:
− fiscal memory map was changed.
− new Lira table was added.
•
13 cmd. (Close Sale Period):
− calculation of lifetime accumulators for old Lira were added.
− calculation of lifetime accumulators for new Lira were added.
•
19 cmd. (Currency Management): set new Lira was added.
•
DA cmd. (Electronic Read Fiscal Memory Tables):
− read new Lira table was added.
− response of daily entry table was changed.
•
DB cmd. (Electronic Read Counters and Accumulators):
− byte 4 - bit 3 (Lifetime Accumulators) was added.
− byte 35 - bit 2 (New Lira Set) was added.
− lifetime accumulators for old Lira were added.
− lifetime accumulators for new Lira were added.
•
FNEWCUR flag: was added.
•
Msg′s C60, C61, D09 and D10: were created.
•
Fiscal Voucher:
− for new Lira was added.
•
X-Report:
− for old Lira was changed.
− for new Lira was added.
•
Closure Report:
− for old Lira was changed.
− for new Lira was added.
•
Fiscal Memory Report:
− for old Lira was changed.
− for new Lira was added.
•
This version of Programming Guide Supplement corresponds to
microcode EC level 13.
v10 01May 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 01Mar 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 01Dic 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 01Dic 6, 02
•
F7 cmd. (Command Buffer Management): was added.
•
This version of Programming Guide Supplement corresponds to
microcode EC level 0D.
v0C 01Nov 26, 02
•
RC 201: was changed.
•
This version of Programming Guide Supplement corresponds to
microcode EC level 0C.
v0B 01Jul 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
VersionDateChange Description
v0A 02Jun 13, 02
v07 01Mar 13, 02
v06 03Jan 3, 02
v05 01Dic 11, 01
v04 02Nov 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.
•
RC′s 193, 213, 225, 226 and 237: were eliminated.
•
RC′s 204, 210 and 235: were added.
•
RC′s 200, 203, 206 and 214: were changed.
•
Msg′s 108, 109, 110, 111 and 112: were added.
•
The accumulators Tra_Pay_Type_0, Tra_Pay_Type_1,
Tra_Pay_Type_2, Tra_Pay_Type_3, Tra_Pay_Type_4,
Tra_Payment, Day_Pay_Type_0, Day_Pay_Type_1,
Day_Pay_Type_2, Day_Pay_Type_3, Day_Pay_Type_4 and
Day_Payment: were added.
•
D5 cmd. (Payment): payment types were added.
•
D8 cmd. (Not Paid): new accumulators were added.
•
06 cmd. (End Transaction): payment accumulators were added.
•
DB cmd. (Electronic Read Counters and Accumulators): payment
types accumulators are showed.
•
1C cmd. (Set Training Mode Off): was eliminated.
•
1D cmd. (Set Training Mode On): was eliminated.
•
X-Report and Closure Report: daily payment types accumulators
are printed.
•
Fiscal Memory size: was changed to 512 Kbytes (524288 bytes) Type 27C040.
•
This version of Programming Guide Supplement corresponds to
microcode EC level 04.
v04 01Oct 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
VersionDateChange Description
v03 01Oct 10, 01
v02 02Oct 04, 01
v01 01Jun 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.
•
RC′s 104, 105, 119, 123, 124, 125, 208 and 209: were added.
•
This version of Programming Guide Supplement corresponds to
microcode EC level 01.
Page 6 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programming
Page 14 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
1.0Fiscal Hardware Technical Specification
1.14610 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)
•
USBcommunication interfaces(only GB3 and GB5 models)
•
Barcode printing capability(all stations)
•
PDF417 barcode generation(CR and SJ stations only)
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.2Fiscal Security Characteristics
The IBM POS fiscal solution is based on the concept of a ′fiscal printer′.
Because of the restrictions in most countries relative to the definition of a ′fiscal machine′, a distributed POS
must have the fiscal electronics sealed in the printer.The printer becomes the ′fiscal machine′ in a
distributed POS. This solution prevents fraud by ensuring absolutely that what is printed is recorded in the
fiscal electronics.
In this case the only fiscal dependency remaining on the POS terminal that the printer is attached to is the
ability to sense connection of the POS displays.
Our system provides that capability by having all the POS I/O wired in parallel which allows the fiscal
printer to monitor the serial I/O responses to polls from the configured displays. If a display is disconnected
or stops operating, the fiscal printer will inhibit further printing until the display resumes operation.
1.2.1 Method of Sealing
IBM seals the printer with a single screw covered by a lead plug.
The CE uses an official tool to stamp the authorized fiscal logo into the lead seal when it is inserted into the
opening over the screw.
1.2.2 Fiscal Processing
The IBM fiscal printer has a special electronics board sealed in the fiscal base which intercepts the data from
the POS terminal and processes it before sending it to the printer to be printed. The ensures that nothing is
printed that does not completely comply with the fiscal law requirements and that all data is captured in the
fiscal printer non-volatile memory.
The fiscal processor logic board has 32K bytes of static RAM and a time of day clock module both backed
up by a 10 year lithium battery. A fixed pattern in the memory is checked each time the printer is powered
on as an alternative to having a battery voltage sensor.
For 4610 SureMark RS-485, a DS80C320 microprocessor is used to process the data and perform arithmetic.
For 4610 SureMark USB, a DS80C390 microprocessor is used to process the data and perform arithmetic.
All fiscal data is calculated by the fiscal processor board and any totals sent from the POS terminal are
verified before printing is allowed.
The microprocessor has special internal circuitry which detects power down situations with enough warning
to save all fiscal data in the battery backed up memory.
There is a J4/CE jumper which is used to reset the RAM after a repair or in the event of a temporary data
error in the RAM. The J4/CE jumper can also be used to control some commands so that only the CE can
perform them.
A battery jumper is available on fiscal printer logic card to allow a certification test to verify that the
processor card would detect a low battery condition.
1.2.3 Fiscal Memory
IBM uses a 2 megabit EPROM (electronically programmable read-only memory) sealed in a tub of epoxy
on the base of the fiscal printer for the long term fiscal memory. At the end of each day the daily totals are
written to the fiscal memory. The fiscal processor logic board generates the appropriate voltages and logic to
write data to an EPROM. EPROMs are completely non-volatile and have a life span measured in decades
rather than years.
Page 16 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
Because it is covered with epoxy the EPROM data cannot be erased.(Although EPROMs start at all
′ones′, so if the fiscal seal is breached any ′one′ bits could be programmed to ′zero′ even in previously
recorded data.)
The IBM fiscal printer can store 3840 days of data at 64 bytes of data per day.
The IBM fiscal printer provides electronic readout of the fiscal data (if allowed by law) to allow a tax
inspector to readout the data electronically, possibly from the store controller/server, as opposed to having to
printout the data from each cash register on the register tape.
1.2.4 Fiscal Memory - A5 pattern
The fiscal microcode writes the pattern ″A5″ in address 82 (hexa) in the fiscal memory to be able to detect
the eprom connection.
It is read for all fiscal commands. If it isn′t found, the fiscal microcode returns the error code 109.
1.2.5 Fiscal Label
The fiscal label is attached to the base of the fiscal printer and contains the same serial number that is
electronically written in the fiscal memory.
Since the label is part of the same field replaceable unit as the fiscal base with epoxied fiscal memory there is
no danger of having a serial number mismatch.
In accordance with many of the fiscal laws, the integrated mounting hardware for the IBM 469X POS
terminals has been modified to allow visibility of the fiscal label and fiscal seal to a person walking around
the POS terminal without requiring any disassembly.
Fiscal Hardware Technical Specification — Page 17 of 183
Page 18 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
2.0Printer and Fiscal Unit Status
2.1For GR3/GR5 Models (RS-485)
The fiscal unit response to the application program is contained in the fiscal unit status, which is 9 bytes
long (6 bytes for the printer status and 3 bytes for fiscal unit status).
For compatibility reasons, the printer status bytes received from the 4610 are mapped in the closest possible
way to the model 3 status bytes.
The ″MAPPED FROM″ column shows from which byte/bit of the 4610 status bytes was the returned taken
form.
The following table shows the content of the fiscal unit status.
BYTEBITCONTENTMAPPED FROM
0PRINTER UNIT STATUSn/a
0 (LSB)COMMAND COMPLETE
Set to 1 when the command is complete.
1LEFT HOME POSITION12
Set to 1 when the print head is in the left home position.
Set to 1 when a printer key operation is in progress.
3EC LEVEL51
Set to 1 when responding to an EC level request.
4SJ COVER OPEN56
Set to 1 when the cover in SJ station is open.
5DOCUMENT READY20
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.
6DOCUMENT PRESENT UNDER THE FRONT SENSOR
Set to 0 when a document is under the front document sensor.21
7CASH RECEIPT PRINT ERROR
Paper cover is open or the CR station is out of paper.
BYTEBIT
Figure 1. Printer and Fiscal Unit Status - GR3/GR5 Models - Part 1 of 2
Printer and Fiscal Unit Status — Page 19 of 183
BYTEBITCONTENTMAPPED FROM
2PRINTER UNIT STATUS
0 (LSB)LEFT HOME POSITION12
Set to 1 when the print head is in the left home position.
1DOCUMENT ERROR32
The document not inserted after DI station was selected and
the wait timed out.
2DOCUMENT PRESENT UNDER THE TOP SENSOR22
Set to 0 when a document is under the top document sensor.
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.
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 BITCONTENT
0PRINTER UNIT STATUS
0 (LSB)COMMAND LOADED
1CASH RECEIPT RIGHT HOME POSITION
2LEFT HOME POSITION
3DOCUMENT RIGHT HOME POSITION
4RESERVED (Always = ′0′)
5RIBBON COVER OPEN
6CASH 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.
1PRINTER UNIT STATUS
0 (LSB)DOCUMENT READY
1DOCUMENT PRESENT UNDER THE FRONT SENSOR
2DOCUMENT PRESENT UNDER THE TOP SENSOR
3RESERVED (Always = ′1′).
4PRINT BUFFER HELD
5OPEN THROAT POSITION
6BUFFER 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
BYTEBITCONTENT
2PRINTER UNIT STATUS
0 (LSB)MEMORY SECTOR IS FULL
1HOME ERROR
2DOCUMENT ERROR
3FLASH EPROM LOAD ERROR OR MCT LOAD ERROR
4RESERVED (Always = ′0′)
5USER FLASH STORAGE SECTOR IS FULL
6FIRMWARE 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.
3PRINTER UNIT STATUS
4PRINTER UNIT STATUS
0 (LSB)PRINTER ID REQUEST/EXTENDED ADDRESS CMD
1EC LEVEL
2MICR READ
3MCT READ
4USER FLASH READ
5Reserved (Always = ′1′).
6SJ COVER OPEN
7SJ STATION PAPER FAULT
5PRINTER UNIT STATUS
6PRINTER UNIT STATUS
0 (LSB)JOURNAL STATUS SELECTION(Note 1)
1
2PDF417 BAR CODE GENERATION PROBLEM
3CASH DRAWER STATUS
4PRINTER KEY PRESSED
5RESERVED (Always = ′1′)
6STATION 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
BYTEBITCONTENT
7PRINTER UNIT STATUS (reserved for future use)
8FISCAL UNIT STATUS
0RESERVED (Always = ′0′)
1IPL STATUS
2IPL IN PROGRESS
3MICROCODE EC
4PLD
5ASYNCHRONOUS STATUS
6INTERMEDIATE STATUS
7FISCAL UNIT BUSY
9FISCAL UNIT STATUS
0-5RESERVED (Always = ′0′)
6Host attempted to send a new command without reading the feature report for the
7ADDITIONAL 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)
10COUNTRY CODE
11ADDITIONAL DATA AND COUNTRY VERSION
0-4VERSION CODE (hardware model)
5-6RESERVED
7ADDITIONAL DATA(Note 2)
12FISCAL MICROCODE EC LEVEL
13FISCAL UNIT RETURN CODE(Note 3)
14FISCAL UNIT RETURN CODE (reserved for future use)
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.0Fiscal 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.1Fiscal 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.2Definition of Terminology
Please study these definitions.
J4/CE Jumperis 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 Periodis a group of sale transactions over a given amount of time, usually measured daily.
Fiscal Accounting Technical Description — Page 27 of 183
Sale Transactionis 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 VoucherThe 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.
TAXis value-added TAX.
Rectifyis an option on certain sale transaction commands used to modify, cancel, or undo a
previous operation.
Voidis used when cancelling or voiding items.
Bonusalthough not limited to this description, bonus items are items that are discounted by
means of a coupon or promotional sale.
Discountis 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).
EmptiesAlthough 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.
Tenderingis the process of concluding a sales transaction and accounting for the methods of
payment.
Cancelis used when cancelling or voiding an entire sale transaction.
Ordinary Prin tingalso 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.3POS 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 - EndWaybill 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.0Fiscal 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.1Definition 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 TAX0549755813887
Tra_TotTransaction total0549755813887
Tra_VAT_v(vv)Transaction TAX total0549755813887
Tra_VATTransaction TAX total0549755813887
Tra_Void_v(vv)Transaction voids total by TAX category0549755813887
Tra_VoidTransaction voids total0549755813887
Tra_Bonu_v(vv)Transaction bonus total by TAX category0549755813887
Tra_BonuTransaction bonus total0549755813887
Tra_Disc_v(vv)Transaction discounts total by TAX category0549755813887
Tra_DiscTransaction discounts total0549755813887
Tra_Empt_v(vv)Transaction empties total by TAX category0549755813887
Tra_EmptTransaction empties total0549755813887
Tra_Pay_Type_0Transaction payment cash total0549755813887
Tra_Pay_Type_1Transaction payment credit card total0549755813887
Tra_Pay_Type_2Transaction payment check card total0549755813887
Tra_Pay_Type_3Transaction payment currency total0549755813887
Tra_Pay_Type_4Transaction payment other total0549755813887
Tra_PaymentTransaction payment total0549755813887
Tra_Amt_DueAmount due/Change−549755813888549755813887
Tra_TdscTransaction discount on subtotal0549755813887
Tra_TuplTransaction uplift on subtotal0549755813887
DescriptionMinimum
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
NameDescription
Tra_N_VoidNumber of voided items065535
Tra_N_DiscNumber of discounted items065535
Tra_N_BonuNumber of bonus items065535
Tra_N_EmptNumber of empties items065535
Tra_N_TdscNumber of discounts on subtotal065535
Tra_N_TuplNumber of uplifts on subtotal065535
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
NameDescription
Day_Tot_v(vv)Individual totals by TAX category0140737488355327
Day_TotDaily total0140737488355327
Day_VAT_v(vv)Daily TAX total by TAX category0140737488355327
Day_VATDaily TAX total0140737488355327
Day_VATCDaily TAX total calculated at reporting time0140737488355327
Day_VATC_v(vv)Daily TAX total by TAX category calculated at reporting
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
NameDescription
Day_N_VoucNumber of fiscal vouchers09999
Day_N_FiscNumber of fiscal slips printed09999
Day_N_CFiscNumber of fiscal slips cancelled09999
Day_N_NFRNumber of application-originated reports − all stations09999
Day_N_NFCRNumber of NFR on CR station09999
Day_N_NFJLNumber of NFR on SJ station09999
Day_N_NFDINumber of NFR on DI station09999
Day_N_CredNumber of credit slips09999
Day_N_VoidNumber of voided items065535
Day_N_DiscNumber of discounted items065535
Day_N_BonuNumber of bonus items065535
Day_N_EmptNumber of empties items065535
Day_N_TdscNumber of discounts on subtotal065535
Day_N_TuplNumber of uplifts on subtotal065535
Day_N_CancNumber of cancelled transactions09999
Day_N_WBillNumber of waybill receipts09999
Day_N_FRecNumber of fiscal receipts09999
Day_N_RRecNumber of return receipts09999
Day_N_DRecNumber of diplomatic receipts09999
Day_N_CWblNumber of cancelled waybill receipts09999
Day_N_CFrcNumber of cancelled fiscal receipts09999
Day_N_CRrcNumber of cancelled return receipts09999
Day_N_CDrcNumber of cancelled diplomatic receipts09999
Day_N_RactNumber of repair actions0200
Day_N_DumpNumber of fiscal memory reports09999
Day_N_XNumber of X-Reports09999
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
NameDescription
Lif_Tot_OLLifetime Total (old Lira)018.446.744.073.709.600.000 (8 bytes - unsigned)
Lif_VATC_OLLifetime VAT total (old Lira)018.446.744.073.709.600.000 (8 bytes - unsigned)
Lif_Tot_NLLifetime Total (new Lira)018.446.744.073.709.600.000 (8 bytes - unsigned)
Lif_VATC_NLLifetime VAT total (new Lira)018.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
NameDescription
Lif_N_ClosClosure number138401
Lif_N_RactNumber of repair actions02001
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.2Fiscal 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.
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.5Command 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
16Set Date and Time
18Set Fiscal Mode
19Set Currency Thousand Separator
1ASet Display Address
1BInitialize Fiscal Memory
20Load Tax Rate Table
22Set Department Name
C4Fiscal Parameter Configuration
D7Set Store Header
4.5.2 Sales Transaction
Sales transactions are printed in customer receipt and summary journal stations.
01Print Store Header
D2Item Sale
D3Negative Item Sale
14Print X-Report
DD Start Application-Originated Report
DE End Application-Originated Report
4.5.8 Printer
E8Set Number of Dot Rows per Line Feed
EA Ordinary Print Line in CR/SJ Station
EBOrdinary Print Line in DI Station
EC Line Feed
ED Ready Document (Top/Bottom Registration)
EECut Customer Receipt
EFDocument Eject
F4Head Position and Open/Close Throat
4.5.9 Utilities
DA Electronic Read Fiscal Memory Tables
DB Electronic Read Accumulators and Counters
F1Report IPL Completion Status
F9Report Current Status
C8Set Barcode Parameters
C9Print 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.0Command 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.1Initialization 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 it′s 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.
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.
02 = TAX Departament 06 - 10
4-7PasswordASCII4
8-9ReservedASCII2
10-13TAX Rate for Departament 01/06ASCII4
14-15ReservedASCII2
16-19TAX Rate for Departament 02/07ASCII4
20-21ReservedASCII2
22-25TAX Rate for Departament 03/08ASCII4
26-27ReservedASCII2
28-31TAX Rate for Departament 04/09ASCII4
32-33ReservedASCII2
32-37TAX Rate for Departament 05/10ASCII4
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.
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 therecovery is executed, the default thousand separator ″none″ is 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.
7-1 Reserved (always = ′0′)
0Read Accumulators and Counters
4Auxiliary Cmd. Extensionhex1
7-4 Reserved (always = ′0′)
3Lifetime
0 = Old Lira
1 = New Lira
2Reserved (always = ′0′)
1Parameters
0 = TAX Category
1 = Payment Type
0Type
0 = Transaction
1 = Daily
5ReservedASCII1
If (byte 4 - bit 1) = 0
6-7TAX Category (vv)ASCII2 (Note 1)
If (byte 4 - bit 1) = 1
6-7Payment Type (pp)ASCII2 (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
Page 72 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
•
Command= 1byte
•
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
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.
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.
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.
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
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.
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.
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.
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
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...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.