ZS-6228-8M Series
USB-PhotoMOS Adapter
User’s Manual

Zip code: 183-0027
2-13-37, Honmachi, Fuchu, Tokyo, Japan
TEL: +81-(0)42-368-2126
FAX: +81-(0)24-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.PhotoMOS Relay ............................................................................................................... 4
2.5.Appearance........................................................................................................................ 5
3.Install ....................................................................................................................................... 6
3.1.Windows Vista / 7 .............................................................................................................. 6
3.2.Windows XP/2000 ........................................................................................................... 12
4.Operation ............................................................................................................................... 19
4.1.Preparation ..................................................................................................................... 194.2.Function .......................................................................................................................... 19
4.2.1. FT_Open .................................................................................................................. 19
4.2.2. FT_OpenEx .............................................................................................................. 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-8M is a unit with 8 photoMOS relays built-in. it is possible to execute relay output,
insulation between circuits, level conversion, by connecting to a personal computer andoperating the relays.

MOS1

12

MOS2

45MOS38MOS41011

MOS51314MOS6I/O connector side

USB/DIO conversion

USB71617MOS71920

MOS82223

2. Specification
2.1.Operation environment

PC： IBM PC/AT compatible machine (USB port required)
OS： Microsoft Windows 2000 , XP , Vista , 7, 8： Linux： MacNote) Linux and Mac do not check the operation.

2.2.USB
Compliant with USB2.0 standard.

- 3 -2.3.Product specification
Model

ZS-6228P-8M

ZS-6228S-8M

FeaturePrinted circuit board type

Small case built-in type

Data connector

24P Amphenol connector

24PAmphenol connector

Power 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.PhotoMOS relay
Photo MOS relay
ON resistance
Switching part rated load
Operation time
Recovery time

AQY211EH
0.5Ω or less
DC30V (peak AC 30V)、 DC1A (peak AC 1A)
5ms or less
1ms or less- 4 -2.5. Appearance- 5 -3. Install
3.1.Windows Vista / 7
In order to use this product, it is necessary to install hardware and device drivers.
1 Turn on the power to the PC and start Windows.
2 Connect the PC 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 of sentences
may differ depending on 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”.

- 6 -When the following indication displayed, insert the attached CD as instructed.
The driver may be automatically installed without displaying the following screen when thepersonal computer is connected to the internet.

It will be displayed “ it can not verify the publisher of the driver software”, but there is noproblem. Click “Install this driver software”.

- 7 -The following screen will be displayed.

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

- 8 -The following screen will be displayed.

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

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

The following screen will be displayed.

- 10 -

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

- 11 -

3.2.Windows XP/2000
In order to use this product, it is necessary to install hardware and device drivers.
1 Turn on the power to the PC and start Windows.
2 Connect the PC 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 of sentences may
differ depending on personal computer, but it is basically the same.
When connecting this product to the computer at first, the following screen will bedisplayed.

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

- 12 -

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

Insert the attached CD into the PC and select “Search for the driver in the following places”.
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 displayed (Only XP), but there is no problem click “Continue”
button.

The following screen will be displayed.

- 14 -

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

The following screen will be displayed.

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

- 15 -

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

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

- 16 -There is no problem click “Continue” button.

The following screen will be displayed.

- 17 -

The following screen will be displayed when installation of the device driver is completed.

Installation of the device driver is 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 the computer from next time, these screen will not be
displayed.

- 18 -

4. Operation
4.1. Preparation
ZS-6228-8M 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, use the following function. See D2XXPG34.pdf for detail on thisfunction.
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 of the 8-bit port.
FT_SetBaudRate：Set the rewrite time of 8 bits.
FT_Write：Turn relay ON/OFF.

4.2.1. FT_Open

FunctionOpen 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_OpenEx
FunctionOpen the USB port and initialized.
In case of using multiple units, execute “FT_OpenEx” for each one. It is possible tocontrol by acquiring the handle number of each and using that number when using
other functions.
Format
FT_OpenEx (PVOID pvArg1, DWORD dwFlags, FT_HANDLE *ftHandle)
pvArg1：Set the product serial number (K-xxxxxx).
dwFlags：Set “FT_OPEN_BY_SERIAL_NUMBER”.
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- 19 -

4.2.3. 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

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 numberucMask：Set HEX(FF), 0：Input 1：Output
ucMode

Since “8 bits” are PhotoMOS relay output, set “FF”.
：Set “1”Return value
FT_OK：In case of “0”, success
Other than “0” ：Error

4.2.5. 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 value
FT_OK：In case of “0”, success
Other than “0” ：Error- 20 -

4.2.6. FT_Write

FunctionSet relay ON/OFFFormat
FT_Write (FT_HANDLE ftHandle, LPVOID lpBuffer, DWORD dwBytesToWrite,
LPDWORD lpdwBytesWritten)
ftHandle：Set the handle numberlpBuffer：Set “1” when the relay is ON, “0” is OFF, and execute Byte output.
Bit assignments are as follows.
D7 D6 D5 D4 D3 D2 D1PhotoMOS relay_１
PhotoMOS relay_２
PhotoMOS relay_３
PhotoMOS relay_４
PhotoMOS relay_５
PhotoMOS relay_６
PhotoMOS relay_７
PhotoMOS relay_８

dwBytesToWrite
lpdwBytesWritten

：Set “1”：Set “1”Return value
FT_OK：In case of “0”, success
Other than “0” ：Error- 21 -5. Connector
Connector: 57LE-40240-7700-FA
SignalPhotMOS1 Drain1
PhotMOS1 Drain2NC.
PhotMOS2 Drain1
PhotMOS2 Drain2NC.
PhotMOS3 Drain1
PhotMOS3 Drain2NC.
PhotMOS4 Drain1
PhotMOS4 Drain2NC.

Pin No.
113214315416517618
719820921102211231224Signal
PhotMOS5 Drain1
PhotMOS5 Drain2
NC.
PhotMOS6 Drain1
PhotMOS6 Drain2
NC.
PhotMOS7 Drain1
PhotMOS7 Drain2
NC.
PhotMOS8 Drain1
PhotMOS8 Drain2
NC.

PhotoMOS relay
PhotMOS Drain1

PhotMOS Drain2- 22 -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- 23 -