ZS-6224 Series
USB-PIO 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/- 1 -◆ Table of contents ◆1.Outline .................................................................................................................................. 3
2.Specification ........................................................................................................................ 3
2.1.Operation environment .................................................................................................... 3
2.2.USB ................................................................................................................................... 3
2.3.Product specification ........................................................................................................ 4
2.4.Relay .................................................................................................................................. 4
2.5.Photocoupler ..................................................................................................................... 4
2.6.Appearance ....................................................................................................................... 4

3.Install .................................................................................................................................... 5
3.1.Device driver ..................................................................................................................... 5
3.2.Windows Vista................................................................................................................... 5
3.3.Windows XP/2000 ........................................................................................................... 12

4.Operation............................................................................................................................ 17
4.1.Preparation ..................................................................................................................... 17
4.2.Function .......................................................................................................................... 17
4.2.1. FT_Open .................................................................................................................. 17
4.2.2. FT_Close .................................................................................................................. 17
4.2.3. FT_SetBitMode ....................................................................................................... 18
4.2.4. FT_SetBaudRate ..................................................................................................... 18
4.2.5. FT_Write .................................................................................................................. 19
4.2.6. FT_GetBitMode ....................................................................................................... 19

5.Connector ........................................................................................................................... 20
6.Warranty............................................................................................................................. 21- 2 -1.Outline
ZS-6224 is a unit built-in 4 relays and 1 photocoupler.
It is possible to perform insulation between circuits, level conversion, etc, by connecting relays
and photocoupler.

4USB3.9KΩ

4ZS-6224

2.Specification
2.1.Operation environment
PCOS： IBM PC/AT compatible machine (USB required)： Microsoft Windows 2000 , XP , Vista

2.2.USB
Compliant with USB2.0- 3 -2.3.Product specification
ModelZS-6224P

ZS-6224SFeature

Printed circuit boarded type

Small case built-in type

Data connector

50-core flat cable

50-core flat cable

Power supply USB bus power (DC4.75V to 5.25V 100mA or less) USB bus power (DC4.75V to 5.25V 100mA or less)Environment

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

Accessory

Data connector x 1 57-30240

Data connector x 1 57-30240

2.4.Relay
Relay
G5V-1
Resistance
100mΩ or less
Switching part rated load AC125V 0.5A、 DC24V 1A
Operation time
5ms or less
Recovery time
5ms or less

2.5.Photo coupler
Photo coupler
Input voltage

PS2801-4
DC5V to DC24V

2.6.Appearance

Front side View

Back side View
150- 4 -3.Install
3.1.Device driver
Please download the device driver corresponding to each OS from our website below.
http://www.zenisu.co.jp

3.2.Windows Vista
In order to use this product, it is necessary to install hardware and device drivers.
① Turn on the power to the PC and start Windows.
② Connect the PC and this product with USB cable.
③ Install the device driver.
④ Installation is completed.
The “Device driver installation method” is explained as below. The display of sentences may
differ depending on the personal computer, but it is basically the same.
When connecting this product to the computer at first, the following screen will bedisplayed.

Click “Search and install driver software”.

- 5 -Click “ There is no disc, try other method”.

Click “Refer to the PC and search the driver software”.
- 6 -Refer to the downloaded file and click the “NEXT” button.

The following screen will be displayed “It can not verify the publisher of the driver software”,
but there is no problem. Click “Install this driver software”.

- 7 -Click “Close” button.

The following screen will be displayed.

Click “Search and install driver software”.
- 8 -Click “ There is no disc, try other method”.

Click “Refer to the PC and search the driver software”.
- 9 -Refer to the download file and click the “NEXT” button.

There is no problem. Click “Install this driver software”.

- 10 -

Installation is completed, click “Close” button.

- 11 -

3.3.Windows XP/2000
In order to use this product, it is necessary to install hardware and device drivers.
⑤ Turn on the power to the PC and start Windows.
⑥ Connect the PC and this product with USB cable.
⑦ Install the device driver.
⑧ Installation is completed.
The “Device driver installation method” is explained as below. The display of sentences may
differ depending on the personal computer, but it is basically the same.
When connecting this product to the computer at first, the following screen will bedisplayed.

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

- 12 -

Select “Search for the driver in the following location”, refer to the downloaded driver andclick the “NEXT” button.

The following screen will be displayed, but there is no problem click “Continue” button.

- 13 -

The following screen will be displayed if device driver installation is normally completed.

Click “Finish” button. Since it may be required to restart depending on the configuration of
the PC, restart according to the instructions on the screen. Even if you connect to thecomputer from the next time, these screen will not be displayed.
The following screen will be displayed.

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

- 14 -

Select “Search for the driver in the following location”, refer to the downloaded driver andclick the “NEXT” button.
There is no problem, click the “Continue” button.

- 15 -

The following screen will be displayed if.

Click “Finish” button. Since it may be required to restart depending on the configuration ofthe PC, restart according to the instructions on the screen. Even if you connect to thecomputer from the next time, these screen will not be displayed.

- 16 -4.Operation
4.1.Preparation
ZS-6224 uses API made by FTDI inc, depending on each programming language, include
the following files.
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 following function.
FT_Open：Open the USB port.
FT_Close：Close the USB port.
FT_SetBitMode：Set the I/O of the 8-bit port.
FT_SetBaudRate：Set the rewrite time of 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 *ftHandle)
iDevice：Set “0”.
ftHandle：If FT_Open 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_CloseFunction
Close the USB port and execute driver termination processing.
FormatFT_Close (FT_HANDLE ftHandle)
ftHandle：Set the handle number.
Return value
FT_OK：In case of “0”, success.
Other than “0” ：Error- 17 -

4.2.3. FT_SetBitMode

FunctionSet of I/O of 8 bits.
Format
FT_SetBitMode (FT_HANDLE ftHandle, UCHAR ucMask, UCHAR ucMode)ftHandle：Set the handle number.
ucMask：Set HEX(0F), 0：Input 1：Output

ucModeIn the ZS-6224, the upper 4 bits are input to the photocoupler
and lower 4 bits are set to the relay output. Since it is set “0F”.
：Set “1”Return value
FT_OK：In case of “0”, success.
Other than “0” ：Error

4.2.4. FT_SetBaudRate

FunctionSet the rewrite time of output 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 previous output iscontinued.

Return vale
FT_OK
：In case of “0”, success.
Other than “0” ：Error- 18 -4.2.5. FT_Write

FunctionSet the relay ON/OFF.
FormatFT_Write (FT_HANDLE ftHandle, LPVOID lpBuffer, DWORD dwBytesToWrite,
LPDWORD lpdwBytesWritten)
ftHandle：Set the handle number.
lpBuffer：Set“1” when the relay is ON, “0” is OFF, and execute Byte output.
Bit assignments are as follows.

D7D30 0 0 0

D0
Relay_1
Relay_2
Relay_3
Relay_4

dwBytesToWrite
lpdwBytesWritten：Set “1”.
：Set “1”.

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

4.2.6. FT_GetBitModeFunction
Load photocoupler
FormatFT_Read (FT_HANDLE ftHandle, PUCHAR pucMode)ftHandle：Set the handle number
pucMode：Set”1” when the photocoupler is driving, “0” is not driving.
Bit assignments are as follows.の割り当ては以下の通りです。

D7

D4

D0
Photocoupler_1
Photocoupler_2
Photocoupler_3
Photocoupler_4Return value
FT_OK：In case of “0”, success.
Other than “0” ：Error- 19 -5.Connector
Connector （57LE-40240-7700-FA）
SignalRelay 1_COM
Relay 1_NO
Relay 1NC
Relay 2_COM
Relay 2_NO
Relay 2_NC
GND
Photocoupler 1_IN+
Photocoupler 2_IN+
Photocoupler 3_IN+
Photocoupler 4_IN+
GND

Pin No.
113214315416517618719820921102211231224Signal
Relay 3_COM
Relay 3_NO
Relay 3_NC
Relay 4_COM
Relay 4_NO
Relay 4_NC
GND
Photocoupler 1_INPhotocoupler 2_INPhotocoupler 3_INPhotocoupler 4_INGND

Relay:
COMNCNO
Photocoupler:+-- 20 -6.Warranty
If it fails during normal use, we will repair it free of charge as described in thiswarranty as below.
1) During the warranty period which is one year 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 period.
 Incorrect usage or failure or damage caused by carelessness.
 Failure or damage caused by improper repair or remodeling.
 Failure or damage caused by external factors such as fire, earthquake, othernatural disasters, abnormal voltage and so on.
 Replacement of consumable parts.
 Change of power supply and voltage.
3) This warranty provision is effective only in Japan- 21 -