ZS-6322 Series
RS-232C/DIO 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
URL http://www.zenisu.co.jp/- 1 -◆ Table of Contents ◆1.Outline .................................................................................................................................. 3
2.Feature .................................................................................................................................. 3
3.Specification ........................................................................................................................ 3
3.1.Operation environment .................................................................................................... 3
3.2.RS-232C............................................................................................................................. 3
3.3.Digital I/O port.................................................................................................................. 4
3.4.Product specification ........................................................................................................ 4
3.5.Appearance ....................................................................................................................... 4

4.RS-232C interface .............................................................................................................. 5
4.1.RS-232C signal.................................................................................................................. 5
4.2.RS-232C cable ................................................................................................................... 55.Switch .................................................................................................................................... 6
6.Operation.............................................................................................................................. 7
6.1.Transfer data method ....................................................................................................... 7
6.2.Control signal.................................................................................................................... 86.3.I/O operation ..................................................................................................................... 96.4.Command ........................................................................................................................ 10
6.4.1. R command .............................................................................................................. 10
6.4.2. : command ............................................................................................................. 10
6.4.3. T command .............................................................................................................. 11
6.4.4. C command .............................................................................................................. 11
6.4.5. D command .............................................................................................................. 11
6.4.6. P command .............................................................................................................. 11
6.4.7. L command .............................................................................................................. 126.4.8. U command .............................................................................................................. 126.4.9. B command .............................................................................................................. 12

7.Connector ........................................................................................................................... 13
8.:arranty............................................................................................................................. 14- 2 -1.Outline
ZS-6322 is a unit that communicates digital I/O signals and RS-232C. It is possible to beconnected to PC with RS-232C interface, and equipment control and data collection of BCD
output measuring the equipment can be done.

①②
RS-232C

ZS-6322

Bidirectional data
4 byte （ 32 bits ）③④Control signal input
Control signal output

2.Feature①②③

It is possible to be easily measurement controlled with a laptop computer.
There are 4 ports (8 bits/port) for digital I/O signals, and input and output can be selected
for each port.
In addition to data, control lines are prepared so that it can be synchronized with externaldevice.

3.Specification
3.1.Operation environment
Equipment with RS-232C port.

3.2.RS-232CCommunication method： Full duplex communication method
Synchronization method： Asynchronous method
Communication method： 2400, 4800, 9600, 19200
Handshake： Hard-wire method
Character bitlength： 7, 8
Parity： None, odd number, even number
Stop bit length： 1, 2
DTE/DCE： DTE specification
Logic ： ON(space) +3V to +12V:iring form OFF(mark) -3V to -12V- 3 -3.3.Digital I/O port

Port： 4 port(8 bit/port)
I/O level： Fan-in=1, Fan-out=10
Pull-up resistor 10KΩ, it is possible to be pull-down.
+5V or GND

10ＫΩ
74AC245

ZS-6322 side

3.4.Product specification
ModelZS-6322P

ZS-6322SFeature

Printed circuit boarded type

Small case built-in type

Data connector

50 core flat cable

50 core flat cable

Power supply

DC4.75V to 5.25V 100mA or lessDC4.75V to 5.25V 100mA or lessEnvironment Temperature: 0℃ to 50℃ Humidity: 85% or less Temperature: 0℃ to50℃ Humidity: 85% or less
Storage Temp

-20℃ to 80℃-20℃ to 80℃

Size

150×100×30H

150×100×30H

Data connector FAS-5001-2101-0BF

Data connectorFAS-5001-2101-0BF

Accessary

DC power cable

3.5.Appearance- 4 -4.RS-232C interface
4.1.RS-232C signal
Signal
TXD
RXD
CTS
RTS
GND

Connector
Function
PIN No3Transmission data.
2
Received data.
It is an input signal to receive permission of data transmission.
8
Transmission data can be controlled by this signal.
It is an output signal indicating whether data I/O is possible or not.
7
5
It becomes the reference voltage(0V) of all signals.

Connector: DELC-J9PAF-23L6E or equivalent.

4.2.RS-232C cable
The following products can be used for the ZS-6322B cable.
Dsub-9p female - Dsub-9p female
KR-ECLK or equivalent
KR-LK or equivalentNote) :hen communicating with only TXD, RXD, please wire as follows.
C o n n e c te d d e v ic e

Z S -6 3 2 2
U n u sedIn te rn a lc o n n e c t in g

U n u sedC D (1 )R X D (2 )RXD

T X D (3 )TXD

D T R (4 )G N D (5 )GND

D S R (6 )R T S (7 )C T S (8 )U n u sed

R I(9 )

S h ort- 5 -5.Switch
Set protocol of RS-232C.
D1 D2 D3 D4 D5 D6 D7 D8※ ※ ※OFFON ※ ※ ※ ※ ※Initial setting
UnusedDelimiter ON:CR

OFF:CR/LF

Baudrate
D5

D6Baudrate

ONON

2400

OFF

ON

4800

ON

OFF

9600

OFFOFF

19200

Parity bit
D3

D4Parity

ON

ON

None

OFFON

Even

ON

OFF

Odd

Stop bit ON:1bit

0FF:2bit

Character length ON:8bit OFF:7bit- 6 -6.Operation
6.1.Transmission data method① Communication of ZS-6322 is performed with the COM port. :hen making a program,check the “Port (COM and LPT)” filed in the device manager of each OS and open it
according to the displayed COM number.

② Data code
Data is transferred in ASCII code, and one character is converted to 4-bit binary code.
４ bit-binary data842

1RS-232C data
HEX

0

0

000

000

1

100

10

200

1

1

30

100

40

10

1

50

1

10

60

1

1

1

7

1

0

00

8

100

1

910

10A

10

11B

1

100C

1101D1
11
1

1
10
1EF- 7 -③ The data sent from the PC is transferred sequentially from the smaller numbers of theport set for output. Port numbers set for input are sequentially taken from smaller
numbers and sent to the PC. The data of each port is set or taken in 4 bits.
 e.g) :hen ports 1 and 2 are input and port 3 and 4 are set to output.
Order to send toPC

Port data

Order to send toZS-6322

Port data

123
4

Port_1 D7 to D4
Port_1 D3 to D0
Port_2 D7 to D4
Port_2 D3 to D0

1234

Port_3 D7 to D4
Port_3 D3 to D0
Port_4 D7 to D4
Port_4 D3 to D001

10000 0001
D7inputoutput

0123
ABCDRS-232C

2AZS-6322
32

D00010 0011

BD71010 1011
D73D0C

D0D1100 1101

4

D7D06.2.Control signal
A control signal is prepared so that it can be synchronized with the connected equipment.
SignalDescription

Direction

The adapter completes reception of all data from the PC and outputs
STB

OUT

a pulse signal after outputting to the port. External devices can use
this signal for Latch-Clock etc. as necessary.

TRG

OUT

CLROUT

LAH

IN

Pulse signal is output to the external device by “T” command.
Pulse signal is output to the external device by “C” command.
It is possible to be used for resetting external devices.
:hen the latch circuit is enabled, latch input data with this signal.
Input a signal with a pulse width of 500µs or more.

Note) The pulse width of the output can be set by command.
The pulse width is 10µs, 100µs, 1ms, 10ms, 100ms.

- 8 -6.3.I/O operation①Output data from PC to port.
 Continuous output
Data is set in 4 bits to the port set as output, after receiving data from the PC. The
STB pulse is output after setting the data to the output port.
Note) If data is sent more than amount of data that is set on the output port, extra
data will be discarded.
If data is sent less than amount of data that is set on the output port, the data
sent last time will remain in the space.

Received data

Outputport_3

Outputport_4

1

2

3

4

High1

Low

2

High3

Low

4

STB output

②

Pulse output
Data is set 4 bits to the port set as output after receiving data from the PC. Theoutput port data is output for the specified pulse width.

Send data input from port to PC.
 :ithout latch:hen the ZS-6322 receives the “R” command from the PC, it takes in the data fromthe input port at that time and sends it to the PC.
 :ith latch
Data from the input port is taken when the LAH input is Low.
:hen the ZS-6322 receives the “R” command from the PC, it sends the captured datato the PC.
Input port

ABCDLAH signal
500us or more
Received data

RTransmission
dataA- 9 -BCD6.4.Command
ZS-6322 recognizes and controls the first byte of data as a control command. Be sure to add adelimiter(CR+LF) to the end of the data string and transmit. If there is a character string
other than the command at the beginning of the data, NG will be sent as return value.
CommandFunction
R
Data is read from all ports as input.
:
Data is written to the port set as output.
T
Pulse is output from the TRG signal.
C
Pulse is output from the CLR signal.
DConfigure port I/O setting.
P
Set the pulse width of the control signal.
L
Set the presence/absence of latch circuit.
USet the output signal.
B
Execute positive/negative logic setting of port.

6.4.1. R command

Function
Data is read from all ports set as input. For example, if the number of input ports is
set to 4, 8bytes of data will be sent from ZS-6322 when “R” command is executed.
FormatR CR LF
Return valuexxxx・・・・CR LF： Data as same as the number set for the input port will be sent.
“x” is an ASCII code from 0 to F.
NG CR LF： There is no input port.

6.4.2. : commandFunction
Data is written to the port set as output. For example, if the number of output
ports is set to 4, 8byte data is added after “:” command and it is sent to ZS-6322.
If data is transmitted less than 8 bytes, the data will be newly changed for thetransmitted data and the previous data will be remained in the space. If more than
8 bytes are transmitted, it will be discarded.
Format:xxxx・・・・CR LF： :rite output data to the output port after “:”.
“x” is ASCII code from 0 to F.

Return value
OK CR LF： Data output is completed to the output port.
NG CR LF： No output port, data character error.

- 10 -6.4.3. T command

Function
Pulse is output to the control signal “TRG”.
FormatT CR LF
Return value
OK CR LF： Pulse output is completed.
NG CR LF： Pulse output error

6.4.4. C command

Function
Pulse is output to the control signal “CLR”.
FormatC CR LF
Return value
OK CR LF： Pulse output is completed.
NG CR LF： Pulse output error.

6.4.5. D commandFunction
I/O setting of 4 ports is executed.
All ports are set to input when turn on the power of ZS-6322.
FormatDxxxx CR LF： Set in the order of port_1, port_2, port_3, and port_4 after “D”.
“x” is “I” for IN for input, “O” for OUT for output.

Return value
OK CR LF： Setting is completed.
NG CR LF： I/O setting error, data character error.

6.4.6. P commandFunction
The pulse width of the control signals "STB" "TRG" "CLR" can be selected from 10µs,100µs, 1ms, 10ms, 100ms.
:hen powering on the ZS - 6322, it is set to 10µs.
FormatPｘ CR LF： “x” is number. The assignment of number is as follows.
0 : 10µs, 1 : 100µs, 2 : 1ms, 3 : 10ms, 4 : 100ms

Return value
OK CR LF： Setting is completed.
NG CR LF： Setting error, data character error- 11 -

6.4.7. L command

Function
It is possible to set the presence or absence of the latch circuit when inputting data.
:hen turning on the power of the ZS-6322, it is set absence of the latch circuit.
FormatLｘ CR LF： “x” is number. 0 : absence, 1 : presence
Return value
OK CR LF： Setting is completed.
NG CR LF： Setting error, character data error

6.4.8. U command

FunctionSet the signal at the time of data output.
It is set to continuous output when turning on the power of ZS-6322.
Set the pulse width at pulse output, use the “P” command.
FormatUｘ CR LF： “x” is a number. 0 : continuous output, 1 : pulse output
Return value
OK CR LF： Setting is completed.
NG CR LF： Setting error, character data error

6.4.9. B command

Function
Execute positive/negative logic setting of the 4 ports.
:hen ZS-6322 is powered on, all ports are set to positive logic.
This command should be executed when the port setting is input.
Function
Bｘ CR LF： “x” is a number. 0 : positive logic, 1 : negative logic
Return value
OK CR LF： Setting is completed.
NG CR LF： Setting error, character data error- 12 -

7.Connector
Data connector FAP-5001-1202-0BF
DATA (CN1)
I/O
SIGNAL
PIN
D012
D134
D256PORT
D378①
D49 10D511 12
D613 14
D715 16
D017 18
D119 20
D221 22
PORT
D323 24③
D425 26
D527 28
D629 30
D731 32
IN
LAH
33 34
OUT
STB
35 36
OUT
TRG
37 38
OUT
CLR
39 40
(NC)
41 42(NC)43 44(NC)
45 46
(NC)
47 48
(NC)
49 50

SIGNAL
D0
D1
D2
D3
D4
D5
D6
D7
D0
D1
D2
D3D4D5D6D7(NC)(NC)(NC)(NC)
GND
GND
GND
GND
GND

I/O

PORT
②PORT
④Note) I/O indicates the direction of the digital signal between ZS-6322 and I/O device.
IN： ZS-6322 ← External device
OUT： ZS-6322 → External device
PORT ： Bidirectional data bus
It is possible to switch between IN and OUT with PC.

- 13 -8.:arranty
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- 14 -