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- 1 -◆ Table of contents ◆1. Outline ................................................................................................................................. 3
2. Fearture ............................................................................................................................... 3
3. Specifications ..................................................................................................................... 3
3.1. Operation environment ................................................................................................... 3
3.2. USB .................................................................................................................................. 3
3.3. Parallel port ..................................................................................................................... 4
3.4. Specification ..................................................................................................................... 4
3.5. Appearance ....................................................................................................................... 4

4. Install ................................................................................................................................... 6
4.1.Windows Vista / 7.............................................................................................................. 6
4.2.Windows XP / 2000 ......................................................................................................... 12

5. Operation........................................................................................................................... 19
5.1. Setting ............................................................................................................................ 19
5.2. Transfer data method .................................................................................................... 19
5.3. Control signal................................................................................................................. 21
5.4. I/O operation .................................................................................................................. 21

6.API function....................................................................................................................... 226.1. List of functions ............................................................................................................. 226.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. ZupTrigger ............................................................................................................... 27
6.2.6. ZupClear .................................................................................................................. 28

7. Attached software ........................................................................................................... 29
7.1. Contents ......................................................................................................................... 29
7.2. How to use the library (Visual C/C++).......................................................................... 29
7.3. How to use the library (Visual Basic) ........................................................................... 31

8. Connector .......................................................................................................................... 32
8.1. Connector table of ZS-6220P、ZS-6220T....................................................................... 32
8.2. Connector table of ZS-6220H ........................................................................................ 33

9. Option ................................................................................................................................. 34
10. Warranty ......................................................................................................................... 34- 2 -1. Outline
ZS-6220 is a unit that communicates parallel signals and USB. You can control the instrumentof the BCD output, control connected equipment or collect data, by connecting with a personal
computer.

①
②
③
ＵＳＢ

ZS-6220④⑤

Bidirectional data
8 Byte (64Bit)⑥⑦⑧

Control signal (Input)
Control signal (Output)

2. Features（１）

It can be easily measurement control 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 data, control lines are prepared and it is possible to synchronize withexternal equipment.

（５）

I/O and control lines are possible to be selected positive or negative logic.

3. Specifications
3.1. Operating environment
 PC
 OS

： IBM PC/AT Compatible machine (USB port required)： Microsoft Windows 2000, XP, Vista, 7

3.2.USB
Compliant with USB 1.1 standard- 3 -3.3. Parallel port
： 8 (8 bit/port)： Fan-in = 1

Amount of ports
I/O level

Fan-out = 10
Pull-up resistor 10KΩ, It is possible to be set Pull-down+5V or GHD

10ＫΩ
74ABT245

ZS-6220

3.4. Product specification
Model

ZS-6220P

ZS-6220T

ZS-6220H

Features

Printed circuit board type

Small case built-in type

Small case built-in type

Data connector

50-core flat cable

50-core flat cable

Amphenol 50P

Power supply
Environment

DC4.75V to 5.25V
Temp 0℃ to 50℃

Storage Temp

400mA

Humidity 85% or less

-20℃ to 80℃

DC4.75V to 5.25V

400mA

Temp 0℃ to 50℃ Humidity 85% or less
-20℃ to 80℃

AC85V to 264V
Temp 0℃ to 50℃

50Hz/60Hz
Humidity 85%or less

-20℃ to 80℃

Size

150×100×30H

130(W)×32(H)×160

215(W)×49(H)×252

Accessary

Data connector x2 HIF3BB-50D-2.54R

Data connector x2 HIF3BB-50D-2.54R

Data connector x2 57-30500

CD x1 (Device driver、User’s manual）

CD x1 (Device driver, User’s manual）

CD x1 (Device driver, User’s manual）

DC power cable

AC power cable

3.5. Appearance
ZS-6220P- 4 -ZS-6220T

ZS-6220H- 5 -4. Install
4.1. Windows Vista / 7
In order to use this product in an environment where Windows Vista / 7 is installed,hardware and device drivers must be installed at first by the following procedure.
① Connect this product and computer with a USB cable.
② Turn on the PC and 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 composition of the personal computer, the following screen may have somedifferences in the display of text, but basically it is similar.
The following screen will be displayed when connecting this unit to the computer at firsttime.

Click “Search and install driver software”.

- 6 -Please insert the attached CD when the following display appears.
When the PC is connected to the internet, the subsequent screens are not displayed and thedriver may be installed automatically.

“It can not verify the publisher of the driver software” appears, there is no particular
problem. Click “Install this driver software”.

- 7 -Install the driver software.

When the installation of the device driver is completed, the following screen will be displayed.
Please click “Close” button.

- 8 -The following screen will be displayed.

Click “Search and install driver software”.
Click “Hext” button.

- 9 -Since there is no problem, click “Install this driver software”.

Install the driver software.

- 10 -

Installation of the driver is completed, please click “Close” button,- 11 -

4.2. Windows XP / 2000
In order to use this product in an environment where Windows XP / 2000 is installed,hardware and device drivers must be installed at first by the following procedure.
1 Connect this product and computer with a USB cable.
○
2 Turn on the PC and start Windows.
○
3 Turn 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 personal computer, the following screen may have somedifferences in the display of text, but basically it is similar.
The following screen will be displayed when connecting this unit to the computer at firsttime.

Select “Ho, it will not connect at this time (T)” and click the “Hext” button.

- 12 -

Select “Install from list or specific 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 thereference, and click the “HEXT” button.

- 13 -

In case 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 the software.

- 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 “Ho, it will not connect at this time (T)” and click the “HEXT” button.

- 15 -

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

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

- 16 -

Since there is no problem, click “Continue” button.

Install the software.

- 17 -

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

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 restartaccording to the instructions on the screen.
Even if you connect to the computer from next time, these screens will not be displayed.

- 18 -

5. operation
5.1. setting（１）

DIP switch

S3

D8 D7 D6 D5 D4 D3 D2 D1

OFF(1) ※ ※ ※ ※※Initialized setting
※
※
※
ON(0)
ON：BCD OFF：HEX
PORT P/N logic ON：P OFF：N
UAR P/N logic ON：P OFF：N
EAR P/N logic ON：P OFF：N
STB P/N logic ON：P OFF：N
UnusedS5

D8 D7 D6 D5 D4 D3 D2 D1※ ※ ※ ※
OFF(1)
Initialized setting
ON(0) ※ ※ ※ ※P8 P7 P6 P5 P4 P3 P2 P1

PORT_1 to PORT_8 I/O setting
ON：Output OFF：Input（２）

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 method（１） Data code table
The data transfer method is executed by ASCII code, and one character is converted to
4-bit parallel code.
8
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1

4-bit parallel
4
2
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1

USB data
HEX BCD
0
0
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
A
*
B
/
C
.
D
E
E
F
+

1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
- 19 -

（２） The data sent from the PC is transferred sequentially from the small number of the port
set for output. Port numbers set for input are sequentially taken from small numbers
and sent to the PC. The data of each port is set or taken in 4-bit.
e.g) When ports 1,2 and 3 are input, and ports 4,5,6,7, and 8 are set to output.
Order tosend to PC
1
2
3
4
5
6

Port data
Port_1 D8 to D5
Port_1 D4 to D1
Port_2 D8 to D5
Port_2 D4 to D1
Port_3 D8 to D5
Port_3 D4 to D1

Order toZS-6220
1
2
3
4
5
6
7
8
9
10

Port data
Port_4 D8 to D5
Port_4 D4 to D1
Port_5 D8 to D5
Port_5 D4 to D1
Port_6 D8 to D5
Port_6 D4 to D1
Port_7 D8 to D5
Port_7 D4 to D1
Port_8 D8 to D5
Port_8 D4 to D1

A
1

B1010 1011
D8

2
3
Input

ABCDEF

Output0123456789

E

7

5

0100 0101

7D80110 0111

D1

8

D1

9

1000 1001
D8- 20 -

D1

4

D1

6

D8

8

D8

0010 0011

6

10000 0001

3

D8

D1

0

D1

2

ZS-62205D81110 1111

4

D

1100 1101

F

D8

ＵＳＢ

C

D1

D1

5.3. Control signal
Control signal is prepared that it can be synchronized with the connected device.
Signal
Name
ＵＡＲ
ＥＡＲ
ＳＴＢ

ＳＴＴ
ＴＲＧ
ＣＬＲ

SignalDescription
Directon TypeＯＵＴ
Ｌ The start pulse can be received.
ＩＮ
Ｌ The external device is possible to be receive data.
ＯＵＴ
Ｐ The adapter has received all data from the PC and has been
all the parallel outputs. This signal can be for Latch-Clock etc,
for external device if it is necessary.
Output 100µs pulse
ＩＮ
Ｐ Data ready signal from external device such as end of measurement.
Input a signal with a pulse width 30µs or more.
ＯＵＴ
Ｐ Output trigger pulse signal of 100µs to external device by trigger
function.
ＯＵＴ
Ｐ It can be used for resetting external device with 100µs clear pulse
signal 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. After receiving the data sent from the PC, wait
for the EAR input to become active.
Data is set for each 4 bits at the output port if it is active. After setting the data to the
output port, the STB pulse is output.
Hote) In case of receiving more than amount of data that is set on the output port, extra data
will be discarded.
In case of receiving less than amount of data that is set on the output port, the data
sent last time remains in the empty space.
Be sure to set the positive/negative logic of EAR to positive logic when not using the
EAR signal.
1

2

5

6

Receiving data
EAR input(Positive logic )Output port_2 High

1

Low

2

Output port_4 High

5

Low

6

STB output(Negative logic)- 21 -

(2) The data that is input from parallel port, send to the PC.
 Synchronous input
It activates the UAR output and waits for the STRT pulse. It takes 4 bits of data from the
input port and transmits it to the PC.
UAR output
Positive logic

End transmission to USB

ＳＴＡＲＴ

Input data
Data hold

Asynchronous input
When the “S” command comes from the PC, it captures data from the input port andtransmits it to the PC without worrying about the state of the signal like thesynchronous input.

6. API function
6.1. List of functions
Function name
ZupOpen
ZupClose
ZupRead
ZupWrite
ZupTrigger
ZupClear

Description
Open the USB port and initialize
Close the USB port and execute driver termination processing.
Data is read from all input ports.
Data is written to the output port.
Output the pulse from the TRG signal.
Output the pulse from the CLR signal.

- 22 -

6.2. Description of functions
6.2.1. ZupOpen


FunctionOpen the USB port and initialize.
Format Visual C/C++
long Ret, InByte, OutByte, TimeOut;
char Serial[8];Ret = ZupOpen(Serial, InByte, OutByte, TimeOut);
Visual Basic
Dim Ret As Long, InByte As Long, OutByte As Long
Dim TimeOut As Long
Dim Serial As String
Ret = ZupOpen(Serial, InByte, OutByte, TimeOut)
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
Open error
Fault


： 2
： 3
： Other numbers the above

Setting example
 Visual C/C++
long Ret, InByte, OutByte, TimeOut;
char Serial[8];strcpy(Serial, “K-xxxxxx”);
InByte=4;
OutByte=4;
TimeOut=1000;
Ret = ZupOpen(Serial, InByte, OutByte, TimeOut);

Visual Basic
Dim Ret As Long
Dim Serial As String
Serial = “K-xxxxxx”
InByte＝4
OutByte＝４
TimeOut＝1000
Ret = ZupOpen(Serial, InByte, OutByte, TimeOut)- 23 -

6.2.2. ZupCloseFunction
Close the USB port and execute driver 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++
long Ret;Ret = ZupClose(); Visual Basic
Dim Ret As Long
Ret = ZupClose()- 24 -

6.2.3. ZupRead

Function
Data is read from all input ports.

Format Visual C/C++
long Ret, Sync;
char Buf[20];Ret = ZupRead(Buf, Sync);
 Visual Basic
Dim Ret As 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
Disconnect to device
Time-out
Fault

： 0
： ２
： １８
： Other numbers the above

Setting example
 Visual C/C++
long Ret;
char Buf[20];Ret = ZupRead (Buf); Visual Basic
Dim Ret As Long
Dim Buf As String * 20
Ret = ZupRead (Buf)- 25 -

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



： 0
： 2
： 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”
Ret = ZupWrite (Buf)‘ Store the data in transmit buffer- 26 -

6.2.5. ZupTrigger


Function
Output the pulse to TRG signal

Format Visual C/C++
long Ret;Ret = ZupTrigger(); Visual Basic
Dim Ret As Integer
Ret = ZupTrigger ()Argument
Hone
Return value
Ret
： End
Disconnect to device
Fault



： 0
： 2
： Other numbers the above

Setting example
 Visual C/C++
long Ret;Ret = ZupTrigger (); Visual Basic
Dim Ret As Integer
Ret = ZupTrigger ()- 27 -

6.2.6. ZupClearFunction
Output the pulse to CLR signal

Format Visual C/C++
long Ret;Ret = ZupClear(); Visual Basic
Dim Ret As Integer
Ret = ZupClear ()Argument
Hone
Return value
Ret
： End
Disconnect to device
Fault



： 0
： 2
： Other numbers the above

Setting example
 Visual C/C++
long Ret;Ret = ZupClear (); Visual Basic
Dim Ret As Integer
Ret = ZupClear ()- 28 -

7. Attached software
7.1. Contents
Configuration is as follows.
¥(Root directory)： Device driver file(Sys, Inf)
¥Library： Library for Visual 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 fileselection dialog box, select “Zs6220.H” from “VC++” in the library folder of the productattached CD.

It will look like this in the workspace window.

- 29 -

Select “Add to Project” and then “File” from the 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 the workspace window.

The preparation is complete.

- 30 -

7.3. How to use the library (Visual Basic)
Select “Add standard 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 like this in the workspace window.

The preparation is complete.

- 31 -

8. Connector
8.1. Connector table of ZS-6220P、ZS-6220T
Data connector : CH5 side HIF3BB-50PA2.54WB: CH6 side HIF3BB-50PA2.54DS
DATA1 (Connector CN5)
DATA2 (Connector CN6)
I/O SIGNAL PIN SIGNAL I/O
I/O SIGNAL PIN SIGNAL I/O
D1
1 2
D1
D1
1 2
D1
D2
3 4
D2
D2
3 4
D2
D3
5 6
D3
D3
5 6
D3
PORT
D4
7 8
D4
PORT
PORT
D4
7 8
D4
PORT
①
D5
9 10
D5
②
⑤
D5
9 10
D5
⑥
D6
11 12
D6
D6
11 12
D6
D7
13 14
D7
D7
13 14
D7
D8
15 16
D8
D8
15 16
D8
D1
17 18
D1
D1
17 18
D1
D2
19 20
D2
D2
19 20
D2
D3
21 22
D3
D3
21 22
D3
PORT
D4
23 24
D4
PORT
PORT
D4
23 24
D4
PORT
③
D5
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
IN
EAR 39 40
+5V
OUT
IN
EAR 39 40
+5V
OUT
OUT
STB 41 42 GND
OUTSTB 41 42 GND
IN
STT
43 44 GND
IN
STT
43 44 GNDOUT
TRG 45 46 GND
OUT
TRG 45 46 GND
OUT
CLR 47 48 GND
OUT
CLR 47 48 GND(NC) 49 50 GND(NC) 49 50 GND
Hote) I/O indicates the direction between the signals of the ZS-6220 adapter and theparallel signal I/O device.
IH： ZS-6220 ← external device
OUT： ZS-6220 → external device
PORT： Bidirectional data bus

Power connector (CH1) : IL-4P-S3EH2-1
PIN
1
2
3
4

SIGNAL+5V Power supply switching+5V External power supply+5V USB power output
GND- 32 -

8.2. Connector table of ZS-6220H
Data connector 57-40500
DATA1
I/O SIGNAL PIN SIGNAL I/O
D1
1 26
D1
D2
2 27
D2
D3
3 28
D3
PORT
D4
4 29
D4
PORT
①
D5
5 30
D5
②
D6
6 31
D6
D7
7 32
D7
D8
8 33
D8
D1
9 34
D1
D2
10 35
D2
D3
11 36
D3
PORT
D4
12 37
D4
PORT
③
D5
13 38
D5
④
D6
14 39
D6
D7
15 40
D7
D8
16 41
D8
(NC) 17 42+5V
OUT(NC) 18 43
+5V
OUT
OUT
UAR 19 44
+5V
OUT
IN
EAR 20 45
+5V
OUT
OUT
STB 21 46 GND
IN
STT
22 47 GNDOUT
TRG 23 48 GND
OUT
CLR 24 49 GND(NC) 25 50 GND

DATA2
I/O SIGNAL
D1
D2
D3
PORT
D4
⑤
D5
D6
D7
D8
D1
D2
D3
PORT
D4
⑦
D5
D6
D7
D8
(NC)
(NC)
OUT
UAR
IN
EAR
OUT
STB
IN
STT
OUT
TRG
OUT
CLR
(NC)

PIN SIGNAL I/O
1 26
D1
2 27
D2
3 28
D3
4 29
D4
PORT
5 30
D5
⑥
6 31
D6
7 32
D7
8 33
D8
9 34
D1
10 35
D2
11 36
D3
12 37
D4
PORT
13 38
D5
⑧
14 39
D6
15 40
D7
16 41
D8
17 42
+5V
OUT
18 43
+5V
OUT
19 44
+5V
OUT
20 45
+5V
OUT
21 46 GND
22 47 GND
23 48 GND
24 49 GND
25 50 GND

Hote) I/O indicates the direction between the signals of the ZS-6220 adapter and theparallel signal I/O device.
IH： ZS-6220 ← external device
OUT： ZS-6220 → external device
PORT： Bidirectional data bus- 33 -

9. Option
The following expansion boards are available as an option for the ZS-6220 series.
ZS-7220P ： 32-bit isolator input board
ZS-7221P ： 32-bit isolator output board
ZS-7211P ： 24-point relay output board

10. 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- 34 -