Communication Protocol Manual: Fiscal Printer
Communication Protocol Manual: Fiscal Printer
Communication Protocol Manual: Fiscal Printer
TM-U950/PF
TM-U675/PF
TM-U220AF
URL: www.epson.com.ve
E-mail: impresora-fiscal@epson.com.ve
Todos los derechos reservados. Ninguna parte de este documento podrá ser reproducida, almacenada en
un sistema que permita su recuperación posterior o transmitida en cualquier forma o por cualquier medio sin
previa autorización escrita de EPSON VENEZUELA S.A. Si bien se han tomado todas las precauciones del
caso en la preparación de este libro, EPSON Venezuela S.A. no asume ninguna responsabilidad por errores u
omisiones; tampoco se asume ninguna responsabilidad por daños y perjuicios resultantes del uso de la
información contenida en el presente manual.
Terminology
Base taxable (BI): it is the value of a certain article, on which the associate tax is calculated.
Fiscal controller: badge of printed circuit with microprocessor, memory and other devices that restricts and
controls the printed information in a fiscal voucher.
Fiscal voucher (CF): bills, receipt, ticket. Document emitted by the fiscal printer to be given to the buyer as
record of any generating operation of revenues and relative to the user's activity.
Non fiscal Document: it is used to generate in the fiscal printer detailed reports of sales, frequent clients'
coupons, etc. The non fiscal documents can contain multiple lines of “fiscal text.”
Fiscal state & printer State: fields of alphanumeric information that are included in each one of the answers
that the fiscal printer emits after receiving a command. They reflect the state of fiscal controller and printer.
Fiscal cabinet: box that gives mechanical confining and the fiscal controller's assembly.
Host: point of sale device (POS) contains the application that interacts with the fiscal printer.
Interface with the host: refers to the electric interface that uses the host to communicate with the fiscal
controller. This based on the protocol RS-232.
Printer: EPSON impression terminal for sale point, used by the fiscal controller to print the documents.
Fiscal Printer: equipment conformed by a fiscal controller and a printer, connected as a peripheral of a sale
point, and which only entrance of data is a normalized interface RS-232. This device allows to generate
vouchers of sales that fulfill current normative.
Fiscal identification: chart of information that identify the fiscal controller's proprietor (social reason,
commercial domicile, RIF, NIT, etc.).
Tax to the Added Value (IVA): tax for the final user of a thing or service, and it is generally a percentage of the
taxable base.
Fiscal Journal: period lapsed from the emission of the last Z report.
Work memory: Portion of the fiscal controller's volatile memory that allows multiple writing accesses / reading.
In this memory they register the daily totals.
Fiscal memory: portion of the fiscal controller's volatile memory, of sequential access, where descriptive data
of the fiscal transactions are stored.
Fiscal band (seal): a mechanical way to connect the fiscal cabinet to the printer, in such way that the not
autorized access is impeded to the fiscal controller's internal components.
Fiscal protocol: includes a group of commands and communication rules that should be considered by the
account of the host to communicate with the fiscal printer.
‘Z' Report (closes): document emitted by the fiscal printer where they register the relative data to the sales
carried out during the fiscal journal. When this operation is carried out the daily totals stored in the work
memory are written in the fiscal memory. It is executed by the Z daily close command.
‘X' Report (closes): document where is reflected the value of the operations carried out from the emission of
the last Z report or of the last X report. partially shows the sales carried out in a fiscal day and it is usually
used to change cashier's in the sale point.
Report (voucher) of audit: document emitted by the fiscal printer that shows the content of the information
stored in the fiscal memory during the selected period.
Fiscal text: it is restricted to characters ASCII from 0x20 to 0x7F and a limited quantity of values on necessary
0x7F to generate special characters (á, é, í, or, etc). the character 0x1B is excluded. This limitation assures
that the application that uses the fiscal printer cannot generate data of graphics. To define the letter type the
characters 0xF0 to 0xFF, worth only to be applied in some fields of the documents. Inside the defined fields for
merchandise description and text in general, the word “TOTAL” becomes “TOT..”, with the purpose of fulfilling
the current normative.
General totals: refers to the total amount of the sold products and the charged taxes, the total of the emitted
vouchers, etc., along the operation of the fiscal printer.
Daily totals: refers to the total amount of the sold products and the charged taxes, the total of the emitted
vouchers, etc., during the fiscal day.
INTRODUCTION
The fiscal printer is a device that allows to register and control the information that is printed in a sale voucher
(bills). The value of the transactions is stored in a registration located in a fiscal memory, which can be revised
countably with posteriority by the authorities and/or the user.
The fiscal printer consists of an impression terminal EPSON and a fiscal controller.
The devices of security of the fiscal printer are classified in two categories: hardware and software.
The cabinet and the fiscal seal provide the hardware security.
The software security is given by means of a wide group of commands that the host uses for interaction with
the fiscal printer. The contained firmware in the fiscal controller doesn't allow the shortcut to the impression
device, the fiscal memory or the work memory. The fiscal controller's Firmware resides in PROM (non volatile
memory).
When activating the fiscal printer several tests are carried out to verify the integrity of:
Firmware PROM.
Clock of real time.
Fiscal memory.
Tests of vouchers.
Firmware
The Firmware resides in a memory CMOS PROM 16Kbytes. If the checkup verification fails, the fiscal printer
doesn't allow to generate any document type.
Proves of vouchers
If an open fiscal voucher exists and you doesn't execute the command “to CLOSE FISCAL VOUCHER”, it is
canceled and the following line is printed:
* * ELECTRIC INTERRUPTION * *
* * * * * * * * DOCUMENT CANCELED * * * * * * * *
If an open fiscal voucher exists and the energy cut took place after executing the command “to CLOSE
FISCAL VOUCHER” the document is completed and the following line is inserted:
* * ELECTRIC INTERRUPTION * *
If a Z report open and printed partially, it is canceled and the line is printed “CANCELED FOR INTERRUP.
ELECTRIC”, and then you proceeds to print the report again from the beginning.
This process repeats the necessary times until generating a Z report of complete.
Types of documents
Once has been filled the identification chart with the information related with the proprietor of the device (social
reason, domicile, RIF, NIT) and the value corresponding to the rate of I.V.A. effective, the device will be able
to emit the following documents:
Non fiscal documents: they are used documents that are not verifying of sales to take place.
Fiscal vouchers: they are documents that have the fiscal logo (MH) and they serve as vouchers of a
transaction (bill).
Report fiscal: the commands that produce the fiscal reports are used in general to store the daily totals in the
fiscal memory, and according to the necessities of the authorities for the countable revision of the fiscal printer.
Close (reports) X: it is a partial report that it is generally emitted when concluding the cashier's shift.
Close (daily report) Z: it is the fiscal closing that overturns the TOTAL of the billing from the day to the fiscal
memory. Therefore, the duration of the fiscal memory is independent of the quantity of transactions that are
carried out in the day.
IMPORTANT: it can be carried out more than a fiscal closing per day, but this procedure shortens the useful
life of the fiscal memory, being the user's responsibility the decrease of the duration of the same one.
Fiscal Memory Report per day: informs the data stored in the fiscal memory, from the initial date to the final
one in detailed form.
Fiscal Memory Report per month: informs the data stored in the fiscal memory, for the months understood
between the initial date and the final one.
Fiscal Memory Report by number of Z: informs the data stored in the fiscal memory, from the number of
closing initial until the number of final closing.
Documents Summary
Note: consult the individual commands where it will find a detailed description.
b) Fiscal Vouchers
Six commands exist to produce fiscal vouchers. Except for the first one (ABRIR_CF), all will be rejected if a
fiscal voucher is not open.
b.5.1. - Carry out a payment that once closed the fiscal voucher was printed in the following way:
Payment: pppppppp.pp
Change: ccccccc.cc
This command can be omitted. You can use to carry out several payments, but “the amount doesn't
accumulate” the last one amount entered it substitutes to the previous one. The parameter ‘T ' should be sent.
b.5.2. - Cancel the fiscal voucher that is emitting. The parameter ‘C ' should be sent.
b.5.3. - Carry out global discounts on the amount total of the invoice before the taxes. The parameter ‘D '
should be sent.
This command is alone valid after the command “ITEM_CF.”
The article commands won't be admitted after this command has been accepted.
c) Audit Report
The audit reports allow to take a control of the transactions carried out by means of the fiscal printer. These
documents reflect the information contained in the fiscal memory.
The connection between the host and the fiscal printer is carried out through a serial cable with the following
disposition:
The value of the communication speed is of 9600 bauds. The format of it dates it it is 8 bits, without parity, one
or more stop bits.
The communication between the host and the fiscal printer is bi-directional. The protocol is of the type “teacher
/ slave” and it is based on the following principles:
The commands sent by the host like the answers of the fiscal printer, they are framed by the control codes
ASCII of “text beginning” (STX) (0x02) and of “text end” (ETX) (0x03).
The characters of block verification (BCC <nnnn>) they should be correspondents at the end of the plot of
data.
The BCC <nnnn> it is the simple sum of all the characters from the beginning (STX) until the end of data
(ETX), and it is represented by means of 4 characters hexadecimals. The commands sent by the host to the
fiscal printer should have a sequence number in the range from 0x20 to 0x7F (hexadecimal) or from 32 at 127
(decimal). The answers of the fiscal printer will have a number of coincident sequence. It is not necessary that
the sequence numbers are correlative, but they will be different from the number of sequence of the previous
command.
For each command sent by the host, this will receive an answer of the fiscal printer before the next one is
sent.
The host should analyze the answer to each command to guarantee that it has not happened any error with
the handling of the fiscal printer.
IMPORTANT: the answers should always be analyzed, because it is the only form of guaranteeing that the
sequence of commands sent from the HOST to the fiscal printer is executed completely.
IMPORTANT: The fields denoted as “not used Field” they can be omitted. To make this compatible protocol
with previous versions it will be marked as null by means of a (1) character 127 decimal.
The answers of the fiscal printer are adjusted to the general definition of the suitable format for the commands
sent by the host.
Some commands take a long time to conclude. In these cases the fiscal printer sends a continuation code or
device periodically processing, in order to indicate that there is still a command of this type in development. If
the host receives a character (0x12) from the fiscal printer it will continue awaiting a complete answer,
increasing in 800 ms the maximum time that one expects the arrival of the answer. If the time of wait the host
is exceeded it will consider that the interface is not functional and a communication error should be declared.
The answer sent by the fiscal printer for a command, it can be of two types:
• Positive ·: indicating that the command was executed with success. Each instruction sent by the host has
an answer with an exclusive format as for the number and meaning of the fields that she contains. In the
descriptions of the individual commands it will find a detailed definition of the associate answer.
• Negative: indicating that it happened an execution flaw related with the command. When receiving a
“ERROR” as answer the host will take the pertinent measures to recover the control of the process (to
cancel the voucher, to verify the totals, etc.). The fields that are included in an answer “positive” for a
certain command they are not present in the event of error.
To be able to determine if a command was executed with success the answer it should be expected and to
verify, before anything that the plot of data that you/they compose it doesn't contain the string “ERROR.” The
general format for an answer “negative” sent by the fiscal printer (case of error) it is the following one:
When the printer sends an answer “negative”, the number of associate error defines the error condition and it
can be useful to determine the origin of the problem.
In the titled annex “Map of errors” the meaning of each error number is detailed.
Reset
As measure of security and to guarantee the total control of the device on the part of the Host, the fiscal
controller can be restarted via software (taken to reset condition). For this alone it should be sent to the printer
the following sequence of data:
...(0x07)(0x08)(0x09)(0x0A)(0x0B)(0x0C)(0x0D)(0x0E)(0x0F)(0x10)(0x11)(0x12)(0x13)(0x14)(0x15)(0x16)(0x17)...
This sequence can be a correspondent to the fiscal printer in any moment, provided this on-line one. It is not
necessary to send the data STX, ETX or BCC defined in the protocol of fiscal communication.
State indicators
In each answer (positive or negative) sent by the fiscal controller, two fields of data are included denoted as
“State Printer” and “Fiscal State”. each one of these fields this conformed by four (4) bytes that represent
same quantity of numbers hexadecimals. If these numbers hexadecimales become to their equivalent ones in
binary, each bit represents a condition of a state in particular of the operation of the device.
IMPORTANT: The “State Printer” and the “Fiscal State” they indicate a group of conditions.
Each one of the bits defined by the states represents a condition evaluated until in the moment to produce the
answer. For this reason, in the event of error can that some of the bits of the answer is not representative.
Example: If not sends himself a command been worth to the fiscal printer, this it doesn't process it and it is
sent an error like answer. In this case the bit of the “State Printer” that indicates the paper presence it is not
representative, therefore it is possible that the printer has or non paper.
For the treatment of errors it is recommended to verify the presence of the string “ERROR” in the answer plot
and it consults the “Map of errors”. it is not advisable to use the “State Printer” and the “Fiscal State” to
determine if it has happened an error.
Fiscal state
After a command, the printer sends an answer that contains the fiscal state (four bytes) that it can be analyzed
to know if the instruction was executed correctly. When the fiscal state is converted from hexadecimal to a
binary word, has indicators of bits field with the following meaning (the bit 0 are that of smaller importance):
If the answer to a command the state of the printer is included (four bytes) that it can be analyzed to determine
if the command was executed correctly in time of impression. When the state of the printer is converted from
hexadecimal to a binary word, has indicators of bits field with the following meaning (the bit 0 are that of
smaller importance):
If it happens an error in the impression terminal the bit 15 of the “State Printer” it allows to determine if it
happened before or after the execution of the command. Because the fiscal printer is a device that should
register information, for certain situations the first fiscal controller it registers and then it prints, and in other first
one the state of the impression terminal is verified.
This command is used to evaluate the fiscal controller's state. It also allows to define the behavior from the
device to the signs coming from the paper sensors. Will be able to be executed later and before any other
command.
Field Description
STX Data beginning [0x02]
Sec Sequence number [0x20 - 0x7F)]
Command Command number [0x38]
- Field separator [0x1C]
Field 1 ‘N ' = the accountants' data
‘E' = value of sales exempt
‘A ' = value of taxable base a + taxes
‘B ' = value of taxable base b + taxes
‘C ' = value of taxable base c + taxes
‘D ' = value of discounts + taxes
‘R ' = value of refunds + taxes
' F ' = near end receipt paper
‘J ' = near end audit paper.
‘S ' = it disables the autocutter.
‘U' = it Verifies if there is paper in the slip of the printer.
This field is not optional. If it is not included or the value is outside of some of the
options the answer doesn't contain the fields corresponding to the accumulators.
ETX End of data [0x03]
BCC BCC [nnnn]
Field Description
STX Data beginning [0x02]
Sec Sequence number [0x20 - 0x7F)]
Command Command number [0x38]
- Field separator [0x1C]
Field 1 Printer state <0000>
- Field separator [0x1C]
Field 2 Fiscal state <0000>
- Field separator [0x1C]
Field 3 Last value of Sequence
- Field separator [0x1C]
Field 4 Code of the current status of the printer
- Field separator [0x1C]
Field 5 last code executed command
- Field separator [0x1C]
Field 6 Date in the IF <AAMMDD>
- Field separator [0x1C]
Field 7 Hour in the IF <HHMMSS>
- Field separator [0x1C]
Field 8 # Fiscal voucher of the fiscal period
- Field separator [0x1C]
Field 9 #DNF of the fiscal period
- Field separator [0x1C]
Field 10 #Accumulated fiscal voucher
- Field separator [0x1C]
Field 11 #Accumulated DNF
- Field separator [0x1C]
Field 12 #finish Z report
ETX End of data [0x03]
BCC BCC [nnnn]
Detail from the answer to the command Status_IF with the parameter “N”:
Field 3: It contains the sequence value stored in the fiscal memory that will be used to validate the next
command. It can send himself the command STATUS to fix a sequence value in the fiscal printer.
Field 4: It contains a code hexadecimal of two bytes that indicates the current state of the printer:
• 00 = printer ready to open a voucher, to open a non fiscal document, to make a Z report or a fiscal
memory report.
• 01 = fiscal voucher in course. Waiting for an article, close/cancel the voucher. Alone commands related to
the fiscal voucher were admitted.
• 02 = No fiscal document in course. Waiting for text line, to close the document. Alone commands related
to non fiscal documents were admitted.
• 03 = active SLIP. Alone commands related to non fiscal documents or commands were admitted for the
format of checks.
• 04 = one more day from the last Z report. is necessary a Z report. to be able to carry out a sale will be
made a Z report previously.
• 05 = First descriptive lines of a printed fiscal voucher.
• 08 = equip blocked awaiting closing impression Z. This happens alone in the event of taking place an error
during the impression of a closing Z. for example, if the paper finishes when a closing Z. is printing a
RESET it should be made to the device.
• 10 = critical error. Error in BCC RAM. It is necessary the intervention of the technical service.
• 11 = error criticizes. Error in BCC ROM. It is necessary the intervention of the technical service.
• 12 = critical error. Error of format of DATE in RAM. It is necessary the intervention of the technical service.
• 13 = critical error. Error of format of data when carrying out a Z. is necessary the intervention of the
technical service.
• 14 = critical error. Limit fiscal memory. It is necessary the intervention of the technical service.
To verify that any error has not taken place criticize, it can be proven that the most significant byte is similar to
zero (“0” = 0x30). If this byte is not zero the device it presents an criticize error of hardware or it dates it
contained in the work memory (RAM) or fiscal memory (ROM) it is rotten. You must have to call technical
service.
Field 5: It contains a code hexadecimal of two bytes that indicates which was the last command processed
with success.
Field 6: date in the fiscal printer. Format <AAMMDD>
Field 7: Hour in the fiscal printer. Format <HHMMSS>
Field 8: Fiscal vouchers emitted in the period.
Field 9: non fiscal documents emitted in the period.
Field 10: Accumulated fiscal vouchers.
Field 11: non fiscal documents accumulated.
Field 12: It is the #of the last report made Z.
ANSWER TO THE COMMAND STATUS IF (0X38) WITH ‘E’ PARAMETER
Field Description
STX Data beginning [0x02]
Sec Sequence number [0x20 - 0x7F)]
Command Command number [0x38]
- Field separator [0x1C]
Field 1 Printer state <0000>
- Field separator [0x1C]
Field 2 Fiscal state <0000>
- Field separator [0x1C]
Field 3 Last value of Sequence
- Field separator [0x1C]
Field 4 Code of the current status of the printer
- Field separator [0x1C]
Field 5 last code command executed
- Field separator [0x1C]
Field 6 Date in the IF <AAMMDD>
- Field separator [0x1C]
Field 7 Hour in the IF <HHMMSS>
- Field separator [0x1C]
Field 8 Exempt sales
ETX End of data [0x03]
BCC BCC [nnnn]
ANSWER TO THE COMMAND STATUS IF (0X38) WITH ‘A, B,C, D,R’ PARAMETER
Field Description
STX Data beginning [0x02]
Sec Sequence number [0x20 - 0x7F)]
Command Command number [0x38]
- Field separator [0x1C]
Field 1 Printer state <0000>
- Field separator [0x1C]
Field 2 Fiscal state <0000>
- Field separator [0x1C]
Field 3 Last value of Sequence
- Field separator [0x1C]
Field 4 Code of the current status of the printer
- Field separator [0x1C]
Field 5 last code command executed
- Field separator [0x1C]
Field 6 Date in the IF <AAMMDD>
- Field separator [0x1C]
Field 7 Hour in the IF <HHMMSS>
- Field separator [0x1C]
Field 8 Sales According to the parameter = base A, B, C, Discounts, Refunds.
- Field separator [0x1C]
Field 9 Taxes According to the parameter = imp A, B, C, Discounts, Refunds.
ETX End of data [0x03]
BCC BCC [nnnn]
ANSWER TO THE COMMAND STATUS IF (0X38) WITH ‘F’, “S’ and “U’ PARAMETER
Field Description
STX Data beginning [0x02]
Sec Sequence number [0x20 - 0x7F)]
Command Command number [0x38]
- Field separator [0x1C]
Field 1 Printer state <0000>
- Field separator [0x1C]
Field 2 Fiscal state <0000>
ETX End of data [0x03]
BCC BCC [nnnn]
With the parameters “F” and “J” it is possible to block to the printer until the cashier places another paper roll.
If sends this command and the sensor of near end is active the printer is blocked and it doesn't allow to
execute any impression command.
The parameter “S” it only disables the autocutter for the next automatic court of paper.
The command qualifier “OR” it is used to verify if it exists or non paper in the unit of slip of the printer. Of not
existing paper in the printer you an impression error returns (0x29).
This command prints a report with the totals stored in the work memory. The amount can be of the daily totals
(Z reports) or of the partial totals accumulated from the emission of the last X report. When carrying out a Z
report the amount stored in the work memory they are taken to the fiscal memory.
It is necessary to carry out at least a closing of the fiscal day (Z Reports) every 24 hours. The device won't
allow to emit fiscal vouchers if a closing of the previous fiscal day doesn't exist.
IMPORTANT: it can be carried out more than a Z report per day, but this procedure shortens the useful life of
the fiscal memory, being the programmer's responsibility and/or user the decrease in the capacity of storage of
the same one.
Field Description
STX Data beginning [0x02]
Sec Sequence number [0x20 - 0x7F)]
Command Command [0x39]
- Field separator [0x1C]
Field 1 Printer state <hhhh>
- Field separator [0x1C]
Field 2 Fiscal state <hhhh>
- Field separator [0x1C]
Field 3 Exempt Sales:<nnnnnnnnnn.nn>
- Field separator [0x1C]
Field 4 Sales standard taxable base: <nnnnnnnnnn.nn>
- Field separator [0x1C]
Field 5 Tax value bases standard: <nnnnnnnnnn.nn>
- Field separator [0x1C]
Field 6 Value of discount operations: <nnnnnn.nn>
- Field separator [0x1C]
Field 7 Tax value associated to discounts: <nnnnnn.nn>
- Field separator [0x1C]
Field 8 Value of operations of refunds: <nnnnnn.nn>
- Field separator [0x1C]
Field 9 Tax value associated to refunds: <nnnnnn.nn>
- Field separator [0x1C]
Field 10 Date of the Z report: <AAMMDD>
- Field separator [0x1C]
Field 11 Sales extra taxable base B: <nnnnnnnnnn.nn>
- Field separator [0x1C]
Field 12 Tax value bases taxable extra B: <nnnnnnnnnn.nn>
- Field separator [0x1C]
Field 13 Sales extra taxable Base C: <nnnnnnnnnn.nn>
- Field separator [0x1C]
Field 14 Tax value bases taxable extra C: <nnnnnnnnnn.nn>
ETX End of data [0x03]
BCC BCC [nnnn]
This command allows to generate a report that it includes the different daily closings that have been stored in
the fiscal memory during the selected period of dates. This command uses extended time for its finalization.
The report can be detailed or a monthly summary.
Additionally, using the qualifier of the command with the option ‘C ' the answer to the command contains the
range of daily closings associated to the period of dates.
This command makes a verification of the content of the fiscal memory. Their execution can take several
minutes.
Field Description
STX Data beginning [0x02]
Sec Sequence number [0x20 - 0x7F)]
Command Command [0x3A]
- Field separator [0x1C]
Field 1 Printer state <hhhh>
- Field separator [0x1C]
Field 2 Fiscal state <hhhh>
ETX End of data [0x03]
BCC BCC [nnnn]
Field Description
STX Data beginning [0x02]
Sec Sequence number [0x20 - 0x7F)]
Command Command [0x3A]
- Field separator [0x1C]
Field 1 Printer state <hhhh>
- Field separator [0x1C]
Field 2 Fiscal state <hhhh>
- Field separator [0x1C]
Field 3 First Z report inside the date range: <nnnn>.
- Field separator [0x1C]
Field 4 Last Z report inside the date range: <nnnn>.
ETX End of data [0x03]
BCC BCC [nnnn]
Field Description
STX Data beginning [0x02]
Sec Sequence number [0x20 - 0x7F)]
Command Command [0x3B]
- Field separator [0x1C]
Field 1 Number of Z of beginning selection
- Field separator [0x1C]
Field 2 Number of Z of end selection
- Field separator [0x1C]
Field 3 Report qualifier.
‘C ' = (0x43) = exit to the PC of the Z REPORT requested.
ETX End of data [0x03]
BCC BCC [nnnn]
Field Description
STX Data beginning [0x02]
Sec Sequence number [0x20 - 0x7F)]
Command Command [0x3B]
- Field separator [0x1C]
Field 1 Printer state <hhhh>
- Field separator [0x1C]
Field 2 Fiscal state <hhhh>
ETX End of data [0x03]
BCC BCC [nnnn]
Field Description
STX Data beginning [0x02]
Sec Sequence number [0x20 - 0x7F)]
Command Command [0x3B]
- Field separator [0x1C]
Field 1 Printer state <hhhh>
- Field separator [0x1C]
Field 2 Fiscal state <hhhh>
- Field separator [0x1C]
Field 3 Exempt Sales:<nnnnnnnnnn.nn>
- Field separator [0x1C]
Field 4 Sales standard taxable base: <nnnnnnnnnn.nn>
- Field separator [0x1C]
Field 5 Tax value bases standard: <nnnnnnnnnn.nn>
- Field separator [0x1C]
Field 6 Value of discount operations: <nnnnnn.nn>
- Field separator [0x1C]
Field 7 Tax value associated to discounts: <nnnnnn.nn>
- Field separator [0x1C]
Field 8 Value of operations of refunds: <nnnnnn.nn>
- Field separator [0x1C]
Field 9 Tax value associated to refunds: <nnnnnn.nn>
- Field separator [0x1C]
Field 10 Date of the Z report: <AAMMDD>
- Field separator [0x1C]
Field 11 Sales taxable base extra B: <nnnnnnnnnn.nn>
- Field separator [0x1C]
Field 12 Tax value bases taxable extra B: <nnnnnnnnnn.nn>
- Field separator [0x1C]
Field 13 Sales taxable Base extra C: <nnnnnnnnnn.nn>
- Field separator [0x1C]
Field 14 Tax value bases taxable extra C: <nnnnnnnnnn.nn>
ETX End of data [0x03]
BCC BCC [nnnn]
Commands to generate fiscal vouchers
This command is the first step to produce a fiscal voucher. The one is printed headed, the number, and the
date and the hour of emission of the fiscal voucher. This information registers in the work memory.
The command will be rejected if there is an open fiscal voucher, if the fiscal memory is full, if there is an error
in the work memory, or if it is necessary to carry out a day closing (Z Reports).
This command can be used to generate refund vouchers (credit notes), for this you the qualifier of the
command (field #5) it should be similar to ‘D '. If is being carried out a “Voucher of Refund” or “Note of Credit”
they are allowed all the commands that apply for a normal fiscal voucher, except the command “Payments,
Cancel, Discount.”
IMPORTANT: the refund voucher (credit note) it is considered a fiscal voucher, reason why the accountant
corresponding to the quantity of emitted vouchers will be increased when carrying out refund tickets.
IMPORTANT: when closing a refund voucher the corresponding amount are store in the accumulators of
refunds and of taxes associated to refunds.
The command generates the impression of a line article, and the accumulation amount in the totals of
transactions and the sum of the units or sold bundles.
The sign to the qualifier's of line article right indicates the effect that has the amount of the article on the total
of the transaction.
The field “amount of the article” it doesn't include the “amount of the tax.”
The description field, together with the command of text impression (0x41), it provides of flexibility to describe
an article in uppercase or minuscule letters. In case the name of the product contains the TOTAL word or its
variants as T O T A L, T0Tal, etc., the fiscal printer automatically will replace the two letter last letters for two
points.
The field of quantity will multiply for the field of amount of the article and they will give the total of the line
article as a result. The maximum total amounts of a line it is 99.999.999,99 and if statement is overcome
amount the fiscal controller informs that it will happen an overflow of the internal accumulator.
The field of tax rate determines in what internal accumulator sinks this amount for the tax calculation in the
moment to total the transaction. This field should not lack and one can work with anyone of the rates
registered in the inspection process. If sends to the fiscal printer a not allowed rate the command it is rejected.
The command qualifier allows to determine how it affects the article to the totals of the transactions. If the line
article is qualified as amount negative (command qualifier = ‘m '), the sign will be placed less (0x2D) at the end
of the impression of the amount. The command is rejected if the one amounts corresponding to the article, it is
superior to the amount accumulated in the work memory for this tax rate.
This command will be rejected if there is not an open fiscal voucher, if the accumulated amounts generates an
overflow of total. This command is used to print information of the total and of the payment of the transaction.
After this command, additional commands of impression of article line cannot be emitted.
After sending a payment, the global fixed discounts are not accepted. In the sale transaction the payment
command should be emitted before closing the fiscal voucher.
The command qualifier 'C' (0x43), it will annul the voucher. The following line is printed:
* CANCELED BY THE USER *
* * * * * * * * DOCUMENT CANCELED * * * * * * * *
The discount carried out with this command and the examining ‘D ' (0x44), it is of global type and it applies in a
proportional way on all the articles of the voucher.
The examining ‘P ' (0x50) in this command it is used to carry out a promotion discount to a certain article. It
doesn't apply in the current version of the TMU-950/PF.
The command is rejected if there is not an open fiscal voucher, or if the accumulative amount originates an
overflow of the total. This command is used to close the fiscal voucher, to accumulate total in memory of work,
to print the total amount and the taxes, the fiscal logo and the serial of the machine.
If the command qualifier sends “A” in the field 1, then the total is printed and useful additional lines of fiscal
text are allowed to detail the payment means. It should be executed the command again “to close fiscal
voucher” so that the device carries out the paper cut.
If the command qualifier is “E”, the voucher ends, intersects the paper and the first descriptive lines of the next
voucher are printed. After closing the document this alone way one will be able to emit a fiscal voucher or a
non fiscal document for the slip, to be able to emit another document type in the receipt paper will intersect the
paper.
This command should be used to begin to print a non fiscal document. It is printed in the one headed and the
number of the document. The command will be rejected if there are not a fiscal voucher or a non fiscal
document open.
The command will be rejected if it is not open a non fiscal document. The text will be restricted to the group of
defined characters as “fiscal text.”
The command will be rejected if it is not open a non fiscal document. This command is used to close the non
fiscal document.
If the command qualifier is “E”, the document ends, intersects the paper and the first descriptive lines of the
next fiscal voucher are printed. After closing the document this alone way one will be able to emit a fiscal
voucher, otherwise will intersect the paper.
This command is used to cut the receipt paper. The fiscal vouchers, the non fiscal documents and the reports
with cut automatically when concluding the respective commands.
(TMU950/PF, TMU675/PF)
This command activates the operation of the Slip. It should be executed before any other command related
with related with the handling of the Slip.
This command prints for the Slip the endorsement for a check.
GENERAL COMMANDS
This command settles down the date and hour of the clock of the fiscal controller's real time, which is stamped
in all the fiscal documents and in all the entrances of the fiscal memory.
IMPORTANT: It should be kept in mind that alone one can make a hour change and/or it dates between two
Z reports consecutives.
This command stores a line of fixed data that appears in the one headed or foot of page of the fiscal vouchers.
It is allowed until a maximum of 5 line for the one headed and for the foot of page.
This command is used to open the cash drawer(s) connected to the port of the fiscal printer.
When DTR is in state "SPACE" it indicates that the Fiscal Printer can recover the data. When it is in state
"MARKS" it indicates that the Fiscal Printer cannot receive data.
You can use any combination between 0xF0 and 0xFF. For example, the value 0xF3 will give stood out
characters and centered; while the value 0xFA will print the text in red and centered (in those cases where the
impression terminal has the impression option in two colors).