- 23 -
6.2. Description of functions
6.2.1. ZupOpen
Function
Open the USB port and initialize.
Format
Visual C/C++
long Ret, InByte, OutByte, TimeOut;
char Serial[8];
Ret = ZupOpen(Serial, InByte, OutByte, TimeOut);
Visual Basic
Dim Ret As Long, InByte As Long, OutByte As Long
Dim TimeOut As Long
Dim Serial As String
Ret = ZupOpen(Serial, InByte, OutByte, TimeOut)
Argument
Serial
:
K-Ho.(K-xxxxxx) of ZS-6220
InByte
:
Input byte number 1 to 8byte
OutByte
:
Output byte number 1 to 8byte
TimeOut
:
Timeout (ms)
Return value
Ret
:
End
:
0
Disconnect to device
:
2
Open error
:
3
Fault
:
Other numbers the above
Setting example
Visual C/C++
long Ret, InByte, OutByte, TimeOut;
char Serial[8];
strcpy(Serial, “K-xxxxxx”);
InByte=4;
OutByte=4;
TimeOut=1000;
Ret = ZupOpen(Serial, InByte, OutByte, TimeOut);
Visual Basic
Dim Ret As Long
Dim Serial As String
Serial = “K-xxxxxx”
InByte
=
4
OutByte
=4
TimeOut
=
1000
Ret = ZupOpen(Serial, InByte, OutByte, TimeOut)
Summary of Contents for ZS-6220H
Page 5: ...5 ZS 6220T ZS 6220H...
Page 10: ...10 Since there is no problem click Install this driver software Install the driver software...
Page 11: ...11 Installation of the driver is completed please click Close button...
Page 17: ...17 Since there is no problem click Continue button Install the software...