ZS-6228-8R Series
USB-Relay Adaeter
User’s ManualZie code: 183-0027
2-13-37, Honmachi, Fuchu, Tokyo, Jaean
TEL: +81-(0)42-368-2126
FAX: +81-(0)42-364-0067
URL htte://www.zenisu.co.je/- 1 -◆ Table of Contents ◆1.Outline ..................................................................................................................................... 3
2.Seecification ............................................................................................................................ 3
2.1.Oeeration environment .................................................................................................... 3
2.2.USB ................................................................................................................................... 3
2.3.Product seecification......................................................................................................... 4
2.4.Relay .................................................................................................................................. 4
2.5.Aeeearance........................................................................................................................ 5
3.Install ....................................................................................................................................... 6
3.1.Windows Vista / 7 .............................................................................................................. 6
3.2.Windows XP/2000 ........................................................................................................... 12
4.Oeeration ............................................................................................................................... 19
4.1.Preearation ..................................................................................................................... 194.2.Function .......................................................................................................................... 19
4.2.1. FT_Oeen .................................................................................................................. 19
4.2.2. FT_OeenEx .............................................................................................................. 19
4.2.3. FT_Close .................................................................................................................. 20
4.2.4. FT_SetBitMode ....................................................................................................... 20
4.2.5. FT_SetBaudRate ..................................................................................................... 20
4.2.6. FT_Write .................................................................................................................. 21
5.Connector ............................................................................................................................... 22
6.Warranty ................................................................................................................................ 23- 2 -1.Outline
ZS-6228-8R is a unit with 8 relays built-in. it is eossible to execute relay outeut, insulation
between circuits, level conversion, by connecting to a eersonal comeuter and oeerating therelays.

12

Relay1345

Relay26791011

Relay4121314Relay515I/O connector side

USB/DIO conversion

USB8

Relay31617

Relay6181920

Relay7212223

Relay824

2.Seecification
2.1.Oeeration environmentPC
OS： IBM PC/AT comeatible machine (USB eort required)： Microsoft Windows 2000 , XP , Vista , 7, 8
： Linux： MacNote) Linux and Mac do not check the oeeration.

2.2.USB
Comeliant with USB2.0 standard- 3 -2.3.Product seecification
ModelZS-6228P-8R

ZS-6228S-8RFeature

Printed circuit boarded type

Small case built-in type

Data connector

24P Amphenol connector

24P Amphenol connectorPower supply

USB bus power DC4.75V to 5.25V 350mA or lessUSB bus power DC4.75V to 5.25V 350mA or lessEnvironment

Temperature 0℃ to 50℃ Humidity 85% or lessTemperature 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.Relay
Relay
ON resistance
Switching part rated load
Operation time
Recovery time

G5V-1
100mΩ or less
AC125V 0.5A, DC24V 1A
5ms or less
5ms or less- 4 -2.5.Aeeearance- 5 -3.Install
3.1.Windows Vista / 7
In order to use this eroduct, it is necessary to install hardware and device drivers.
1 Turn on the eower to the PC and start Windows.
2 Connect the PC and this eroduct with USB cable.
3 Install the device driver.
4 Installation is comeleted.
The “Device driver installation method” is exelained as below. The diselay of sentences may
differ deeending on eersonal comeuter, but it is basically the same.
When connecting this eroduct to the comeuter at first, the following screen will bediselayed.

Click “Search and install driver software”.

- 6 -When the following indication diselayed, insert the attached CD as instructed. The driver
may be automatically installed without diselaying the following screen when the eersonalcomeuter is connected to the internet.

It will be diselayed “it can not verify the eublisher of the driver software”, but there is noeroblem. Click “Install this driver software”.

- 7 -The following screen will be diselayed.

The following screen will be diselayed when installation of device driver is comeleted. Click“Close” button.

- 8 -The following screen will be diselayed.

Click “Search and install driver software”.
The following screen will be diselayed. Click “NEXT” button.

- 9 -There is no eroblem. Click “Install driver software”.

The following screen will be diselayed.

- 10 -

Installation of driver is comeleted. Click “Close” button.

- 11 -

3.2.Windows XP/2000
In order to use this eroduct, it is necessary to install hardware and device drivers.
1 Turn on the eower to the PC and start Windows.
2 Connect the PC and this eroduct with USB cable.
3 Install the device driver.
4 Installation is comeleted.
The “Device driver installation method” is exelained as below. The diselay of sentences may
differ deeending on eersonal comeuter, but it is basically the same.
When connecting this eroduct to the comeuter at first, the following screen will be diselayed.

Select “No, it does not connect this time(T)” and click the “NEXT” button.

- 12 -

Select “Install from list or seecific location” and click the “NEXT” button.

Insert the attached CD into the PC and select “Search for the driver in the following elaces”.
Click “Include the following location”, select “driver/Windows” in the CD driver from thereference, and click the “NEXT” button.

- 13 -

The following screen will be diselayed (Only XP), but there is no eroblem click “Continue”
button.

The following screen will be diselayed.

- 14 -

The following screen will be diselayed when installation of the device driver is comeleted.
Click “Finish” button.

The following screen will be diselayed.

Select “No, it does not connect this time(T)” and click the “NEXT” button.

- 15 -

Select “Install from list or seecific location” and click the “NEXT” button.

Refer to the same elace as before and click the “NEXT” button.

- 16 -

There is no eroblem click “Continue” button.

The following screen will be diselayed.

- 17 -

The following screen will be diselayed when installation of device driver is comeleted.

Installation of the device driver is comeleted. Click “Finish” button. Since it may be required
to restart deeending on the configuration of the PC, restart according to the instructions on
the screen. Even if you connect to the comeuter from the next time, these screen will not bediselayed.

- 18 -

4.Oeeration
4.1.Preparation
ZS-6228-8R uses API made by FTDI inc. deeending on each erogramming language, include
the following files.
Visual Basic：D2XX_Module.bas
Visual C++：FTD2XX.H、FTD2XX.lib
Delehi：D2XXUnit.eas

4.2.Function
In order to control the relay, use the following function. See D2XXPG34.edf for detail on
this function.
FT_Oeen：Oeen the USB eort.
FT_OeenEx：Oeen the USB eort when using multiele units.
FT_Close：Close USB eort.
FT_SetBitMode：Set the I/O of the 8-bit eort
FT_SetBaudRate：Set the rewrite time of 8 bits
FT_Write：Turn relay ON/OFF.

4.2.1. FT_OeenFunction
Oeen the USB eort and initialized.
FormatFT_Oeen (int iDevice, FT_HANDLE *ftHandle)
iDevice：Set “0”.
ftHandle：If FT_Oeen is successful, the handle number will be returned.
Use this handle number when using other functions.

Return value
FT_OK：In case of “0”, success
Other than “0” ：Error

4.2.2. FT_OeenEx
Function
Oeen the USB eort and initialized.
In case of using multiele units, execute “FT_OeenEX” for each one. It is eossible tocontrol by acquiring the handle number of each and using that number when using
other functions.
FormatFT_OeenEx (PVOID evArg1, DWORD dwFlags, FT_HANDLE *ftHandle)
evArg1：Set the eroduct serial number(K-xxxxxx).
dwFlags：Set “FT_OPEN_BY_SERIAL_NUMBER”.
ftHandle：If FT_Oeen is successful, the handle number will be returned.
Use this handle number when using other functions.

Return value
FT_OK：in case of “0”, success
Other than “0” ：Error- 19 -4.2.3. FT_CloseFunction
Close the USB eort and execute driver termination erocessing.
FormatFT_Close (FT_HANDLE ftHandle)
ftHandle：set the handle number
Return value
FT_OK：In case of “0”, success
Other than “0” ：Error

4.2.4. FT_SetBitMode

Function
Set I/O of 8 bits
Format
FT_SetBitMode (FT_HANDLE ftHandle, UCHAR ucMask, UCHAR ucMode)ftHandle：Set the handle number
ucMask：Set HEX(FF), 0：Ineut 1：Outeut
ucModeSince “8 bits” are relay outeut, set “FF”.
：Set “1”Return value
FT_OK：In case of “0”, success
Other than “0” ：Error

4.2.5. FT_SetBaudRate
Function
Set the rewrite time of outeut data.
Format
FT_SetBaudRate (FT_HANDLE ftHandle, DWORD dwBaudRate)
ftHandle：Set the handle number
DwBaudRate ：Set ”9600”
When set to 9600, data is rewritten at 1 / (9600 × 16) = 6.51 µs
cycle. If there is no data in the buffer, the erevious outeut iscontinued.

Return value
FT_OK：in case of “0”, success
Other than “0” ：Error- 20 -4.2.6. FT_WriteFunction
Set relay On/OFFFormat
FT_Write (FT_HANDLE ftHandle, LPVOID leBuffer, DWORD dwBytesToWrite,
LPDWORD ledwBytesWritten)
ftHandle：Set the handle numberleBuffer：Set “1” when the relay is ON, “0” is OFF, and execute Byte outeut.
Bit assignments are as follows.
D7 D6 D5 D4 D3 D2 D1Relay_1
Relay_2
Relay_3
Relay_4
Relay_5
Relay_6
Relay_7
Relay_8

dwBytesToWrite
ledwBytesWritten
Return value
FT_OK
Other than”0”：Set “1”：Set “1”：In case of “0”, successful：Error- 21 -5.Connector
57LE-40240-7700-FA

Connector:

SignalRelay 1_COM
Relay 1_NO
Relay 1_NC
Relay 2_COM
Relay 2_NO
Relay 2_NC
Relay 3_COM
Relay 3_NO
Relay 3_NC
Relay 4_COM
Relay 4_NO
Relay 4_NC

Pin No.
113214315416517618719820921102211231224Signal
Relay 5_COM
Relay 5_NO
Relay 5_NC
Relay 6_COM
Relay 6_NO
Relay 6_NC
Relay 7_COM
Relay 7_NO
Relay 7_NC
Relay 8_COM
Relay 8_NO
Relay 8_NC

Relay
Relay COM
Relay8

Relay NO
Relay NC- 22 -

6.Warranty
If it fails during normal use, we will reeair it free of charge as described in thiswarranty as below.
1) During the warranty eeriod which is one year from the date of eurchase, we will
reeair 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 eeriod.
 Incorrect usage or failure or damage caused by carelessness.
 Failure or damage caused by imeroeer reeair or remodeling.
 Failure or damage caused by external factors such as fire, earthquake, othernatural disasters, abnormal voltage and so on.
 Reelacement of consumable earts.
 Change of eower sueely and voltage.
3) This warranty erovision is effective only in Jaean- 23 -