რას იმუშავებს, ლინკები გამოუცლიათ

მე ადრე გადმოვწერე, როცა მუშაობდა. მიბმა მინდოდა მაგრამ 170 კილოა და არ მიება. ტექსტური ნაწილი ჩავაკოპირე, საერთო წარმოდგენას შეიქმნით, მანამდე გამოასწორებენ, იმედია

DPrint manual
Settings.
Device Settings :
1. Device – fiscal device type.
2. Country – country name.
3. COM Port – communication port.
4. Baud Rate – communication baud rate.
Operator Settings :
5. Operator – operator's name.
6. Password – operator's password.
Files settings :
7. Command File Name – the name of the command file.
This is the file which DPrint will search and execute its commands. This file must be created by the high level application when it
has to communicate with the fiscal device.
8. Command File Options – options for processing the command file:
• Delete File – after the execution DPrint deletes the command file (if the checkbox Wait for Application Call is checked the
command file will not be deleted).
• Move to directory – after the execution DPrint moves the command file into directory according to (9) (if the checkbox Wait
for Application Call is checked the file will not be moved).
9. Directory – the directory in which the command file will be moved after it has been processed. Only if "Move to directory" is
selected in (8).
10. Answer File Options – options for the answer file:
• Fixed File Name – fixed answer file name.
The file name selected in (12) will be used.
• Use Date & Time as File Name – the answer file name will be created using date & time. The format is:
YYYYMMDD_HHMMSS.TXT
11. Answer File Type – the answer type:
• Classical – classic answer: Ok, Er, Sd, No.
• Error Code – error code will be written.
• Status Bytes – same as classic answer, but at the end of the line appends six status bytes "[A082C0998890]".
(see document "ECR PC Protocol").
12. Answer File Name – the name of the answer file.
The name of the file in which DPrint will write the results of the command file processing. Only if "Fixed File Name" is selected in
(10).
Other Settings :
13. Wait for Application Call:
• If this checkbox is not checked (default), DPrint will check continuously for the command file and will begin its execution.
The results will be written into the answer file. After it's finished the command file will be deleted or moved.
• If this checkbox is checked, DPrint will wait the high level application to call DPrint.### and only then will begin execution of
the command file. The results will be written into the answer file (in this case the command file and the answer file may be the
same). The command file will not be deleted or moved.
14. Autostart with Windows.
If this checkbox is checked DPrint will start automatically when Windows starts.
15. Convert Windows codepage to DOS.
If this checkbox is checked the cyrillic text will be converted from codepage CP1251 to MIK.
16. Process Paper Error by DPrint.
• If this checkbox is checked and there is a printing error, DPrint will show dialog message and will wait the error to be cleared
from the fiscal device. After then it will continue execution of the command file.
• If this checkbox is not checked and there is a printing error, DPrint will show informational message in the system tray and
will continue to execute the command file. The error will be written as a result into the answer file.
17. Scan Interval for Cmd File [ms].
Sets the time by which DPrint will check for the command file.
18. Delay before processing Cmd File [ms].
Sets the time which DPrint will wait before to start execution of the command file.
21. Open Drawer automatically.
If this checkbox is checked DPrint will automatically send "open drawer" command at the end of the fiscal receipt.
Starting DPrint.
DPrint application has two states:
• Disabled (nonactive).
In this state DPrint does not checks for a command file. Always when the main window is visible DPrint goes into disabled
state. To start DPrint press the "Start" button (19).
• Active.
In this state DPrint checks for a command file.
Warning: To be in working state DPrint must be always in this mode independently if it is configured to be called by high
level application or not.
Commands and parameters.
S – free price sale.
E – sale by department.
R – sale by PLU.
G – programming a PLU.
К – delete a PLU.
T – end of the receipt or payment.
C – discount/markup in percents.
P – print a text.
I – service issued sums.
F – disable the keyboard.
H – enable the keyboard.
Y – open a non-fiscal receipt.
Z – daily financial report with reset .
D – print receipt duplicate.
B – "beep" command.
L – send a text to the external display.
О – open a fiscal receipt (only for Ethiopia and Bosnia).
V – cancel a fiscal receipt.
J – read EJT.
X – extended command.
M - open invoice receipt.
Command format.
Each command begins with:
1 – The name of the command. For example "S".
2 – Logical device number - one symbol. Not used at the moment, send "1".
3 – Exact six underscore symbols. In the answer file will be filled with the device serial number.
4 – Exact one underscore symbol. In the answer file will be filled with the logical number [1-9] of the successful command.
5 – Exact two underscore symbols. In the answer file will be filled with the error code. See the error codes below.
Answer Type = Classic
Ok - No Error
Sd - Communication Error
Er - Command failed, or bad parameters
Answer Type = Error Code
0 - No Error
1 - Communication Error
2 - Incorrect Command
3 - Failed to configure comm. port
4 - Unknown Fiscal Device
5 - Syntax Error
6 - Command File Read/Write Error
7 - Bad command file format
8 - Bad registration key
9 - Bad command parameters
10 - Reserved
11 - Command failed
12 - User break
13 - No Paper
20 - SHA1 error
21 - SHA1 file error
S – free price sale.
S,[logical number],_____,_,__;[item];[price];[quantity];[stand];[item group];[tax group];0;0;
item - name/text describing the sale.
price - single price.
quantity - quantity of the sale.
stand - stand number: 1-9.
item group - item group: 1-99.
tax group - tax group number (decimal).
E – sale by department.
Е,[logical number],_____,_,__;[item];[price];[quantity];[stand];[item group];[department];0;0;
item - name of the sale.
price - single price.
quantity - quantity of the sale.
stand - stand number: 1-9.
item group - item group: 1-99.
department - department number.
R – sale by PLU.
R,[logical number],_____,_,__;[PLU];[quantity];[storno];
PLU - PLU number (use sign minus to correct the sale).
quantity - quantity of the sale.
storno - not used. use "0".
G – programming a PLU.
G,[logical number],_____,_,__;[PLU];[name];[VAT group];[sprice];
PLU - PLU number.
name - PLU name.
VAT group - tax group number – 1,2,3,4..
sprice - PLU price.
К – delete a PLU.
K,[logical number],_____,_,__;[PLU];[аll];
PLU - PLU number (if all is used, this field must be empty).
all - use one symbol "A" to delete all PLUs.
T – end of the receipt or payment.
There are two variants of this command:
1. End of the receipt.
T,[logical number],______,_,__;
If fiscal receipt is opened Total Sum will be executed and the receipt will be closed.
If non-fiscal receipt is opened, it will be closed.
2. Payment.
T,[logical number],______,_,__;[code];[sum];;;;
code - payment type:
0 – "IN CASH".
1 – Payment 1.
2 – Payment 2.
3 – Payment 3.
4 – Sub Total.
sum - payment sum.
C – discount/markup in percents.
C,[logical number],______,_,__;[type];[percent];;;;
type - use value 0 for markup and value 1 for discount.
percent - the value in percents (0 ÷ 99.99).
Note: If the previous command is payment type 4, the discount/markup will be done over the Sub Total. In all other cases it will be done
over the last sale.
P – print a text.
P,[logical number],______,_,__;[line1];[line2];[line3];[line4];[line5];
If fiscal receipt is opened, the fiscal text will be printed.
If non-fiscal receipt is opened, the non-fiscal text will be printed.
line1 ÷ line5 – five lines of text. The empty lines are not printed. If a line contains only spaces, a empty line (line feed) will be printed.
I – service issued sums.
I,[logical number],______,_,__;[type];[sum];;;;
type - use 0 for service input and 1 for service output.
sum - the value of input/input.
F – disable keyboard.
F,[logical number],______,_,__;
H – enable keyboard.
H,[logical number],______,_,__;
Y – open a non-fiscal receipt.
Y,[logical number],______,_,__;[line1];[line2];[line3];[line4];[line5];
Open a non-fiscal receipt and prints line1 ÷ line5, if they are not empty.
Z – daily financial report with reset.
Z,[logical number],______,_,__;
D – print receipt duplicate.
D,[logical number],______,_,__;
B – "beep" command.
B,[logical number],______,_,__;
L – send a text to the external display.
L,[logical number],______,_,__;[command];[type];[text];
command-
0 – clear the display.
1 – not used.
2 – not used.
3 – print a text on the upper line.
4 – print a text on the lower line.
5 – print a text on the both lines.
6 – not used.
type - not used. must be 0 or 1.
text - the text that will be displayed.
О – open a fiscal receipt (only for Ethiopia and Bosnia).
Ethiopia:
O,[logical number],______,_,__;[BuyerTIN];[R];
BuyerTIN - Text of 10 symbols, which will be printed into the header of the fiscal receipt.
R - If a symbol "R" is used, a refund receipt will be opened.
Bosnia:
O,[logical number],______,_,__;[IBSA];
O,[logical number],______,_,__;[IBSA];[S];
O,[logical number],______,_,__;[IBSA];[Rn];
V – cancel a receipt.
V,[logical number],______,_,__;
J – read EJT.
J,[logical number],______,_,__;[filename_a];[filename_b];[erase];
filename_a - Name of the file to store EJT data.
filename_b - Name of the file to store the hash function of the EJT.
erase - if value "1" is used, after the read operation is finished EJT will be cleared.
Example:
J,1,______,_,__;d:/temp/ejt01a.txt;d:/temp/ejt01b.txt;; - without EJT clear
J,1,______,_,__;d:/temp/ejt01a.txt;d:/temp/ejt01b.txt;1; - with EJT clear
X – extended command.
Variant 1: Open a drawer
X,[logical number],______,_,__;DRAWER;[miliseconds];
DRAWER - Obligatory text "DRAWER";
miliseconds - Impulse length [ms] (non-obligatory).
Example: X,1,______,_,__;DRAWER;100;
Variant 2: Set Operator's name and password.
X,[logical number],______,_,__;OPER;[name];[pass];
OPER - Obligatory text "OPER";
name - Operator's name (obligatory);
pass - Operator's password (obligatory);
Warning. If the operator is set by this command, then the operator settings in DPrint's interface will not be used until DPrint is
restarted.
Variant 3: Get Date & Time.
X,[logical number],______,_,__;DATETIME;R;
In the answer file will be written:
X,[logical number],______,_,__;DATETIME;R;dd-MM-yy hh:mm:ss
M – open invoice receipt.
M,[logical number],______,_,__;[IdentNo];[RegNo];[Seller];[Receiver];[Client];[Address];
Note: This command must be the first command in the command file.
Because the fiscal device have to open an extended fiscal receipt.
After the end of the receipt the fiscal device will automatically print invoice receipt.
IdentNo - Client ID;
RegNo - Client Registration number (not mandatory);
Seller - Seller's Name (not mandatory);
Receiver - Receiver's Name (not mandatory);
Client - Client's Name (not mandatory);
Address - Client's Address (not mandatory). Can be entered more lines separated with tabulation symbol 0x09.
Warning: There are two system parameters of the fiscal device:
"Invoice Range – begin" and "Invoice Range – end", which must be set to allow printing of the invoice receipt.
These system parameters can be set only once. See the user documentation of your fiscal device.
Examples:
A fiscal receipt with 4 sales, sub total with 10% discount.
Receipt duplicate.
Service input / output.
Non-fiscal receipt.
S,1,______,_,__;Cabbage;0,05;1,000;1;1;2;0;0;
S,1,______,_,__;Cucumber;0,05;1,000;1;1;2;0;0;
S,1,______,_,__;Tomatoes;0,02;1,000;1;1;2;0;0;
S,1,______,_,__;Bananas;0,05;3,000;1;1;2;0;0;
T,1,______,_,__;4;;;;;
C,1,______,_,__;1;10,00;;;;
P,1,______,_,__; ;;;;;
P,1,______,_,__;Is this a fiscal printer;;;;;
P,1,______,_,__;or a cash register?;;;;;
P,1,______,_,__; ;;;;;
T,1,______,_,__;
D,1,______,_,__;
I,1,______,_,__;0;1,5;;;;
I,1,______,_,__;1;1,5;;;;
Y,1,______,_,__;Official receipt;;;;;
P,1,______,_,__;In the official receipt;;;;;
P,1,______,_,__; only P (text print);;;;;
P,1,______,_,__;and T (closing of official ;;;;;
P,1,______,_,__;receipt) commands can be executed. ;;;;;
B,1,______,_,__;
L,1,______,_,__;1;0;Проба;
T,1,______,_,__;
Sales by departments 1, 2, 3 и 4:
E,1,______,_,__;Name1;1,23;1;1;1;1;0;0;
E,1,______,_,__;Name2;2,44;1;1;1;2;0;0;
E,1,______,_,__;Name3;3,58;2;1;1;3;0;0;
E,1,______,_,__;Name4;4,51;1;1;1;4;0;0;
T,1,______,_,__;
Programming PLUs: 5, 6, 7 и 8:
G,1,______,_,__;5;Printer;1;1,23;
G,1,______,_,__;6;Phone;2;2,55;
G,1,______,_,__;7;Mouse;3;3,76;
G,1,______,_,__;8;Ice cream;4;4,68;
Sales by PLUs: 5, 6, 7 и 8:
R,1,______,_,__;5;1;0;
R,1,______,_,__;6;1.000;0;
R,1,______,_,__;7;2,5;0;
R,1,______,_,__;8;5;0;
T,1,______,_,__;
* * *
ესეც ტესტი
S,1,______,_,__;This is a test;0.01;1,000;1;1;2;0;0;
T,1,______,_,__;
This post has been edited by merabk on 5 Feb 2012, 05:53