background image

-  18  -

 

4.Operation 

4.1.

Preparation 

ZS-6225  uses  API  made  by  FTDI  inc,  depending  on  each  programming  language,  include 
the collowing ciles. 

Visual Basic 

D2XX_Module.bas 

Visual C++   

FTD2XX.H

FTD2XX.lib 

Delphi 

 

D2XXUnit.pas 

 

4.2.Function 

In order to control the relay and input the photocoupler, use the collowing cunction. 

FT_Open   

Open the USB port. 

FT_OpenEx  

Open the USB port when using multiple units. 

FT_Close   

Close the USB port. 

FT_SetBitMode 

Set the I/O oc the 8-bit port. 

FT_SetBaudRate 

Set the rewrite time oc 8 bits. 

FT_Write   

Turn relay ON/OFF. 

FT_GetBitMode 

Load the photocoupler. 

 

4.2.1. FT_Open 

 

Function 

  Open the USB port and initialized. 

 

Format 

FT_Open (int iDevice, FT_HANDLE *ctHandle) 

iDevice 

Set “0” 

ctHandle 

Ic FT_Open is successcul, the handle number will be returned. 

                              Use this handle number when using other cunctions. 

 

Return value 

FT_OK   

In case oc “0”, success. 

Other than “0” 

Error 

 

4.2.2. FT_OpenEx 

 

Function 

 

 

Open the USB port and initialized. 

 

 In case oc using multiple units, execute “FT_OpenEX” cor each one. It is possible to 
control by acquiring the handle number oc each and using that number when using 
other cunctions.

 

 

Format 

FT_OpenEx (PVOID pvArg1, DWORD dwFlags, FT_HANDLE *ctHandle) 

pvArg1 

Set the product serial number(K-xxxxxx). 

dwFlags 

Set “FT_OPEN_BY_SERIAL_NUMBER”. 

ctHandle 

Ic FT_Openis successcul, the handle number will be returned. 
Use this handle number when using other cunctions. 

 

Return value 

FT_OK   

In case oc “0”, success. 

Other than “0” 

Error 

Summary of Contents for ZS-6225 Series

Page 1: ... 1 ZS 6225 Series USB Adapter User s Manual Zenisu Keisoku Inc Zip code 183 0027 2 13 37 Honmachi Fuchu Tokyo Japan TEL 81 0 42 368 2126 FAX 81 0 42 364 0067 URL http www zenisu co jp ...

Page 2: ...toMOS relay 4 2 5 Photocoupler 4 2 6 Apearance 4 3 Install 5 3 1 Windows Vista 7 5 3 2 Windows XP 2000 11 4 Operation 18 4 1 Preperation 18 4 2 Function 18 4 2 1 FT_Open 18 4 2 2 FT_OpenEx 18 4 2 3 FT_Close 19 4 2 4 FT_SetBitMode 19 4 2 5 FT_SetBaudRate 19 4 2 6 FT_Write 20 4 2 7 FT_GetBitMode 20 5 Connector 21 6 Warranty 22 ...

Page 3: ... or Photocoupler it is possible to be percormed insulation between circuits level conversion 4 4 ZS 6225 USB Output Input 2 Specicication 2 1 Operation environment PC IBM PC AT compatible machine USB port required OS Microsoct Windows 2000 XP Vista 7 Linux Mac Not Linux and Mac do not check the operation 2 2 USB Compliant with USB2 0 standard ...

Page 4: ...ss Environment Temperature 0 to 50 Humidity 85 or less Temperature 0 to 50 Humidity 85 or less Storage Temp 20 to 80 20 to 80 Size 100 74 20H 150 100 30H Accessary Data connector 57 30240 Data connector 57 30240 2 4 PhotoMOS PhotoMOS relay AQY211EH Contact resistance 500mΩ or less Switching part rated load AC DC 30V 1A Operation time 5ms or less Recovery time 5ms or less 2 5 Photocoupler Photocoup...

Page 5: ... and this product with USB cable 3 Install the device driver 4 Installation is completed The Device driver installation method is explained as below The display oc sentences may diccer depending on the personal computer but it is basically the same When connecting this product to the computer at cirst the collowing screen will be displayed Click Search and install driver soctware ...

Page 6: ...cted The driver may be automatically installed without displaying the collowing screen when the personal computer is connected to the internet It will be displayed It can not vericy the publisher oc the driver soctware but there is no problem Click Install this driver soctware ...

Page 7: ... 7 The collowing screen will be displayed The collowing screen will be displayed when installation oc device driver is completed Click Close button ...

Page 8: ... 8 The collowing screen will be displayed Click Search and install driver soctware The collowing screen will be displayed Click NEXT button ...

Page 9: ... 9 There is no problem Click Install driver soctware The collowing screen will be displayed ...

Page 10: ... 10 Installation oc driver is completed Click Close button ...

Page 11: ...with USB cable 3 Install the device driver 4 Installation is completed The Device driver installation method is explained as below The display oc sentences may diccer depending on the personal computer but it is basically the same When connecting this product to the computer at cirst the collowing screen will be displayed Select No it does not connect this time T and click the NEXT button ...

Page 12: ...cation and click the NEXT button Insert the attached CD into the PC and select Search cor the driver in the collowing places Click Include the collowing location select driver Windows in the CD driver crom the recerence and click the NEXT button ...

Page 13: ... 13 The collowing screen will be displayed Only XP but there is no problem click Continue button The collowing screen will be displayed ...

Page 14: ...llowing screen will be displayed when installation oc the device driver is completed Click Finish button The collowing screen will be displayed Select No it does not connect this time T and click the NEXT button ...

Page 15: ... 15 Select Install crom the list or specicic location and click the NEXT button Recer to the same place as becore and click the NEXT button ...

Page 16: ... 16 There is no problem click Continue button The collowing screen will be displayed ...

Page 17: ...ted Installation oc the device driver is completed Click Finish button Since it may be required to restart depending on the conciguration oc the PC restart according to the instructions on the screen Even ic you connect to the computer crom the next time these screen will not be displayed ...

Page 18: ...and initialized Format FT_Open int iDevice FT_HANDLE ctHandle iDevice Set 0 ctHandle Ic FT_Open is successcul the handle number will be returned Use this handle number when using other cunctions Return value FT_OK In case oc 0 success Other than 0 Error 4 2 2 FT_OpenEx Function Open the USB port and initialized In case oc using multiple units execute FT_OpenEX cor each one It is possible to contro...

Page 19: ... 0 Input 1 Output In the ZS 6225 the upper 4 bits are input to the photocoupler and lower 4 bits are set to the relay output Since it is set 0F ucMode Set 1 Return value FT_OK In case oc 0 success Other than 0 Error 4 2 5 FT_SetBaudRate Function Set the rewrite time oc output data Format FT_SetBaudRate FT_HANDLE ctHandle DWORD dwBaudRate ctHandle Set the handle number DwBaudRate Set 9600 When set ...

Page 20: ... Relay_1 Relay_2 Relay_3 Relay_4 D7 0 0 0 0 dwBytesToWrite Set 1 lpdwBytesWritten Set 1 Return value FT_OK In case oc 0 success Other than 0 Error 4 2 7 FT_GetBitMode Function Load photocoupler Format FT_Read FT_HANDLE ctHandle PUCHAR pucMode ctHandle Set the handle number pucMode Set 1 when the relay is driving 0 is not driving Bit assignments are as collows D0 D4 Photocoupler_1 Photocoupler_2 Ph...

Page 21: ...MOS relay 3_NO 3 15 MOS relay 2_COM 4 16 MOS relay 4_COM MOS relay 2_NO 5 17 MOS relay 4_NO 6 18 GND 7 19 GND Photocoupler 1_IN 8 20 Photocoupler 1_IN Photocoupler 2_IN 9 21 Photocoupler 2_IN Photocoupler 3_IN 10 22 Photocoupler 3_IN Photocoupler 4_IN 11 23 Photocoupler 4_IN GND 12 24 GND PhotoMOS relay COM NO Photocoupler ...

Page 22: ...with instruction manual 2 It will be charged cor extra in the collowing case even during warranty period Incorrect usage or cailure or damage caused by carelessness Failure or damage caused by improper repair or remodeling Failure or damage caused by external cactors such as cire earthquake other natural disasters abnormal voltage and so on Replacement oc consumable parts Change oc power supply an...

Reviews: