background image

-  26  -

 

6.2.4. ZupWrite 

 

Function 

 

Output data to output port. 

 

Format 

 

Visual C/C++ 

long Ret; 
char Buf[20]; 
Ret = ZupWrite(Buf); 

 

Visual Basic 

Dim Ret As Integer 
Dim Buf As String * 20 
Ret = ZupWrite (Buf) 

 

Argument 

 

Buf 

: 

Transmit buffer 

 

Return value 

 

Ret 

: 

End   

               

: 

 

 

 

 

 

Disconnect to device 

: 

 

 

 

 

 

Fault   

 

: 

Other numbers the above 

 

Setting example 

 

Visual C/C++ 

long Ret; 
char Buf[20]; 
Strcpy(Buf, “ABC”); 

// Store the data in transmit buffer 

Ret = ZupWrite (Buf); 

 

Visual Basic 

Dim Ret As Integer 
Dim Buf As String * 20 
Buf = “ABC” 

 

‘ Store the data in transmit buffer 

Ret = ZupWrite (Buf) 

Содержание ZS-6220P

Страница 1: ...1 ZS 6220 Series USB PIO Adapter User s Manual Zip code 183 0027 2 13 37 Honmachi Fuchu Tokyo Japan TEL 81 0 42 368 2126 FAX 81 0 42 364 0067...

Страница 2: ...19 5 3 Control signal 21 5 4 I O operation 21 6 API function 22 6 1 List of functions 22 6 2 Description of functions 23 6 2 1 ZupOpen 23 6 2 2 ZupClose 24 6 2 3 ZupRead 25 6 2 4 ZupWrite 26 6 2 5 Zup...

Страница 3: ...l with laptop computer There are 8 ports 8bits port for parallel signals and I O can be selected by each port It is possible to be selected for data code in 4 bit units by BCD or HEX In addition to da...

Страница 4: ...DC4 75V to 5 25V 400mA DC4 75V to 5 25V 400mA AC85V to 264V 50Hz 60Hz Environment Temp 0 to 50 Humidity 85 or less Temp 0 to 50 Humidity 85 or less Temp 0 to 50 Humidity 85 or less Storage Temp 20 to...

Страница 5: ...5 ZS 6220T ZS 6220H...

Страница 6: ...nd start Windows Turn on the power to this unit Install the device driver Finish the install Descriptions of to are omitted here Install the device driver in is explained below Depending on the compos...

Страница 7: ...pears When the PC is connected to the internet the subsequent screens are not displayed and the driver may be installed automatically It can not verify the publisher of the driver software appears the...

Страница 8: ...8 Install the driver software When the installation of the device driver is completed the following screen will be displayed Please click Close button...

Страница 9: ...9 The following screen will be displayed Click Search and install driver software Click Hext button...

Страница 10: ...10 Since there is no problem click Install this driver software Install the driver software...

Страница 11: ...11 Installation of the driver is completed please click Close button...

Страница 12: ...rn on the power to this unit 4 Install the device driver 5 Finish the install Descriptions of to are omitted here Install the device driver in is explained below Depending on the composition of the pe...

Страница 13: ...location and click the HEXT button Insert the CD into the computer and select Search the driver in the following places Check Include the following location select drivers Windows in the Cd drive from...

Страница 14: ...of Windows XP the following screen is displayed It has not passed Windows logo test to verify compatibility with Windows XP since there is no particular problem Please click Continue button Install t...

Страница 15: ...owing screen will be displayed when installation of the device driver is completed Click Finish button The following screen will be displayed Select Ho it will not connect at this time T and click the...

Страница 16: ...16 Select Install from list or specific location and click the HEXT button Refer to the same place as before and click HEXT button...

Страница 17: ...17 Since there is no problem click Continue button Install the software...

Страница 18: ...ted Installation of the device driver is completed Click Finish button After that it may be asked to restart depending on the configuration of the PC please restart according to the instructions on th...

Страница 19: ...ON 0 Jumper setting Power supply switching jumper JP1 Select whether to turn on the power supply from USB or external supply EXT side external power supply USB side USB supply 5 2 Transfer data metho...

Страница 20: ...100 1101 D8 D1 C D 1110 1111 D8 D1 E F 0000 0001 D8 D1 0 1 0010 0011 D8 D1 2 3 0100 0101 D8 D1 4 5 0110 0111 D8 D1 6 7 1000 1001 D8 D1 8 9 1 2 3 4 5 6 7 8 ZS 6220 Input Output ABCDEF 0123456789 Order...

Страница 21: ...output by clear function Hote L is a level signal P is a pulse signal Hote UAR EAR STB can be set positive negative logic by using DIP switch 5 4 I O operation It outputs data from PC to parallel port...

Страница 22: ...and comes from the PC it captures data from the input port and transmits it to the PC without worrying about the state of the signal like the synchronous input 6 API function 6 1 List of functions Fun...

Страница 23: ...Out 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 Fau...

Страница 24: ...er termination processing Format Visual C C long Ret Ret ZupClose Visual Basic Dim Ret As Long Ret ZupClose Argument Hone Return value Ret End 0 Can not close other than 0 Setting example Visual C C l...

Страница 25: ...s Long Sync As Long Dim Buf As String 20 Ret ZupRead Buf Sync Argument Buf Receive buffer Sync Asynchronous input 0 Synchronous input 1 Return value Ret End 0 Disconnect to device Time out Fault Other...

Страница 26: ...ring 20 Ret ZupWrite Buf Argument Buf Transmit buffer Return value Ret End 0 Disconnect to device 2 Fault Other numbers the above Setting example Visual C C long Ret char Buf 20 Strcpy Buf ABC Store t...

Страница 27: ...isual C C long Ret Ret ZupTrigger Visual Basic Dim Ret As Integer Ret ZupTrigger Argument Hone Return value Ret End 0 Disconnect to device 2 Fault Other numbers the above Setting example Visual C C lo...

Страница 28: ...t Visual C C long Ret Ret ZupClear Visual Basic Dim Ret As Integer Ret ZupClear Argument Hone Return value Ret End 0 Disconnect to device 2 Fault Other numbers the above Setting example Visual C C lon...

Страница 29: ...ual Basic Visual C C Sample Sample program for Visual Basic Visual C C 7 2 How to use the library Visual C C Select Add to Project and then File from the Visual C C project menu In the file selection...

Страница 30: ...Visual C C project menu In the file selection dialog box change file type to library file Lib and select ZS6220 lib from VC in the Library folder of the product attached CD It will look like this in...

Страница 31: ...dard module from the Visual Basic Project menu In the file selection dialog box select the Existing Files tab select ZS6220 bas from VB in the library folder of the product attached CD It will look li...

Страница 32: ...25 26 D5 D5 25 26 D5 D6 27 28 D6 D6 27 28 D6 D7 29 30 D7 D7 29 30 D7 D8 31 32 D8 D8 31 32 D8 NC 33 34 5V OUT NC 33 34 5V OUT NC 35 36 5V OUT NC 35 36 5V OUT OUT UAR 37 38 5V OUT OUT UAR 37 38 5V OUT...

Страница 33: ...12 37 D4 PORT D5 13 38 D5 D5 13 38 D5 D6 14 39 D6 D6 14 39 D6 D7 15 40 D7 D7 15 40 D7 D8 16 41 D8 D8 16 41 D8 NC 17 42 5V OUT NC 17 42 5V OUT NC 18 43 5V OUT NC 18 43 5V OUT OUT UAR 19 44 5V OUT OUT...

Страница 34: ...ear from the date of purchase we will repair it free of charge in case of malfunction in accordance with instruction manual 2 It will be charged for extra in the following case even during warranty pe...

Отзывы: