0
071912388
Unregistered / Unconfirmed
GUEST, unregistred user!
各位大哥:
我用delphi写的程序开不了钱箱!!!
procedure TForm1.Button_ccClick(Sender: TObject);
var PrnFileName: TextFile;
begin
Assignfile(PrnFileName,'lpt1');
Rewrite(PrnFileName);
write(PRNFileName,CHR(27)+chr(112)+'m'+CHR(0)+CHR(48) );
CloseFile(PRNFileName);
end;
说明书上,开钱箱代码:
ESC p m t1 t2
27 112 m t1 t2 <-- 十进制
其中,t1,t2决定钱箱开启脉冲;
m=0,48 在钱箱png2上输出.
m=1,49 在钱箱png5上输出.
请指教!!!
我用delphi写的程序开不了钱箱!!!
procedure TForm1.Button_ccClick(Sender: TObject);
var PrnFileName: TextFile;
begin
Assignfile(PrnFileName,'lpt1');
Rewrite(PrnFileName);
write(PRNFileName,CHR(27)+chr(112)+'m'+CHR(0)+CHR(48) );
CloseFile(PRNFileName);
end;
说明书上,开钱箱代码:
ESC p m t1 t2
27 112 m t1 t2 <-- 十进制
其中,t1,t2决定钱箱开启脉冲;
m=0,48 在钱箱png2上输出.
m=1,49 在钱箱png5上输出.
请指教!!!