Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.51
7.
USB (User Interface)
Without using the Windows driver, you are able to check the printer status, and transmit / receive the
data,
by using USB Interface DLL (HwaUSB.DLL) and OCX driver (HwaUSB.OCX).
7-1)
DLL Interface
Please add the file HwaUSB.DLL at the folder System 32, or the folder SysWow64.
7-1-1)
DLL function (Funtions)
1) long UsbOpen(LPCTSTR SelPrinter);
Please open the port USB by the printer Model
“
HMK-081
”
n
Parameters:
SelPrinter : Printer Model Name
n
Return :
Open normal : 0
Open error : -3(minus)
2) long PrintStr(LPCTSTR data);
It prints the character line.
n
Parameters:
data : String datas
n
Return :
Print normal : 1
Print error : 0
Notice
: To prevent the loss of data for the print timeout ,
Please use the function
‘
NewRealRead
’
to check the status,and go to the next step,
when it
’
s normal.
3) long PrintCmd(unsigned char data);
It prints the data one (1) byte.
Please use the
‘
PrintPackage function
’
as below, if there are a lot of datas to print.
Then you are able to increase the speed of the transmission.
n
Parameters:
data : one (1) byte data (0~255)
n
Return :
Print normal : 1
Print error : 0