Fiscal printer driver for ECR
For Windows 95/98/NT/2000/XP
Install
Start the DriverECRSetup__EN.exe file and follow the
instructions. You can start the application using the ic 141f514b on in the start menu.
Transaction files' format
The transaction files are text file with default extension ".BON". All records are at lease 32 bytes long followed by CRLF (0x0d, 0x0a). All data is in ASCII format. The files could be made using standard text editing program (Notepad).
Standard transaction:
PLU number 4 bytes
PLU name 12 bytes
Price 8 bytes (without separator) (1.32USD = 132 cents= 00000132)
Quantity 8 bytes (without separator) (2.34 kg = 2340 gr. = 00002340)
Tax group 1 byte (0-4) Default: 1
PLU group 2 bytes (00-09) Default: 00
PLU subgroup 2 bytes (00-09) Default: 00
Payment type 1 byte (0-3) Default: 0
Extended transaction:
Special symbol %
Separator ^
PLU number up to 4 bytes
PLU name up to 12 bytes
Price up to 8 bytes (without separator) (1.32USD = 132 cents= 00000132)
Quantity up to 8 bytes (without separator) (2.34 kg = 2340 gr. = 00002340)
Tax group 1 byte (0-4) Default: 1
PLU group 2 bytes (00-09) Default: 00
PLU subgroup 2 bytes (00-09) Default: 00
Payment type 1 byte (0-3) Default: 0
Example: ^PLU 1^100^1000^1^
It is not mandatory to include the tax group, PLU group, PLU subgroup and payment type. In case they are not entered, default values are used.
Comment lines
You can print comments using the ":" symbol in the beginning of the line. The maximum length for the comments is 24 or 18 characters per line depending of ECR model.
Add-ons and Discounts:
"#" in the beginning of the line, followed by "S" (for add-on or discount over current sum) or "P" (add-on or discount over last PLU in the receipt), the third symbol is "+" for add-on or "-" for discount, followed by 4 bytes for percentage (4567 = 45.67%)
Operators name:
"#" in the beginning of the line, followed by "O" symbol, followed by 8 byte for the operator's name.
"@" in the beginning of line, followed by 2 bytes operator number, then 4 bytes for operator's place and up to 8 bytes for operator's name.
The command is executed only in the beginning of the receipt.
Payment type for the receipt:
"#" in the beginning of the line, followed by "E" symbol, followed by 1 byte for payment type (1-3), followed by amount (number with decimal separator) to be paid.
If you do not enter the amount of money to be paid (empty string), the whole amount in the receipt will be paid using the payment type selected. If the amount is more than the sum in the receipt, the cash register will issue a receipt with the change calculated on it. If the amount is less than sum in the receipt - it is paid, but the cash register stays in manual mode for the operator to end the transaction (for example using the TOTAL key). If several payment types are used, they are executed in consecutive order in separate line, where the first type (usually cash) must be the last to be executed.
Printing an invoice:
"#" in the beginning of the line, followed by "LM" or "LN", followed by 13 bytes for tax number (#LM123456789012) or (#LN123456789012)
"#" in the beginning of the line, followed by "LD", followed by ZDDS number (#LDBG1234567890)
"#" in the beginning of the line, followed by "LR", followed by 10 bytes for invoice number (#LR9900000001)
"#" in the beginning of the line, followed by "F" and 5 comment lines each of them beginning with ":" symbol
Other commands:
#A - Locks the keyboard of the cash register
#B - Unlocks the keyboard of the cash register
#N - The cash register prints the daily fiscal report with zeroing (Z report)
#I - The cash register prints the daily fiscal report without zeroing (X report)
#C - Printing a copy of the last printed receipt
$FN - The cash register prints the daily fiscal report with zeroing (Z report)
$FI - The cash register prints the daily fiscal report without zeroing (X report)
$FC - Printing a copy of the last printed receipt
Important: Each of these commands must be sent to the driver in new file. The command must be the first and only in that file.
Using fonts:
&H1 - normal font
&H2 - small font
&H3 - wide font
&H4 - small and wide font
&H5 - paper feed
This font commands apply to the comment lines only! Each command has effect until the next command or end of receipt.
Examples
Usual receipt
Text
Article
Article
Article priced 1lev with quantity 1 piece
Article2 priced 1.20 lev, quantity 2 pieces, second tax group, second PLU group, third PLU subgroup and first payment type
Second payment type
Text
Article
Article
Payment of 100 lev for second payment type and calculation of change.
Text
Article
Article
Payment of the whole sum using second payment type
Text
Article
Article
#E1
Payment of 0.80 lev using second payment type and the rest is paid using first payment type (cash)
Text
Article
Article
#E
Payment of 0.80 lev using second payment type, 0.80 lev using third payment type, 2 lev using first payment type (cash) and a change calculation
Discount
Text
0001ART1 0000100000002000
#S-1000
0002Art2 0000200000003000
0003Art3 0000300000002000
#P-2000
Invoice
#LM1234567891011
#LDBG1234567890
#LR9900000099
#F
LINE Ivan Petrov
LINE
LINE
LINE
LINE
ARTICLE 0000001100001000
Daily fiscal report with zeroing (Z report
$FN
Daily fiscal report without zeroing (X report)
$FI
Printing a copy of the last receipt
$FC
Unlock the cash register
#B
Lock the cash register
#A
|