Zenisu Keisoku ZS-6822A Series User manual

1
ZS-6822A Series
LAN/DIO Adapter
instruction manual
1st edition
2-13-37 onmachi, Fuchu City, Tokyo 183-0027
Phone: +81-42-368-2126 Fax: +81-42-364-0067
URL https://www.zenisu.co.jp/

2
◆ Contents ◆
1. Overview ................................................................................................................................. 3
2. Features .................................................................................................................................. 3
3. Specifications .......................................................................................................................... 3
3.1.Operating environment .................................................................................................... 3
3.2.LAN ................................................................................................................................... 3
3.3. Digital I/O Port ................................................................................................................ 4
3.4. Product specifications ...................................................................................................... 4
3.5. Appearance and dimensional drawing ............................................................................ 5
4. Main unit settings .................................................................................................................. 6
4 .1. ow to set the IP address using " Device Installer " ..................................................... 6
5. ow to install "COM Port Redirector" .................................................................................. 9
5.1. Installation of "COM Port Redirector" ............................................................................ 9
5.2. Virtual COM port setting .............................................................................................. 11
6. Operation .............................................................................................................................. 14
6.1.Transfer data method ..................................................................................................... 14
6.2. Control Signals .............................................................................................................. 15
6.3. Input/output operation .................................................................................................. 16
6.4. Command list ................................................................................................................. 17
6.4.1. R command .............................................................................................................. 17
6.4.2. W command ............................................................................................................. 17
6.4.3. T command .............................................................................................................. 18
6.4.4. C command .............................................................................................................. 18
6.4.5. D command .............................................................................................................. 18
6.4.6. P command .............................................................................................................. 18
6.4.7. L command .............................................................................................................. 19
6.4.8. U command .............................................................................................................. 19
6.4.9. B command .............................................................................................................. 19
7. Connector table..................................................................................................................... 20
8. Warranty ............................................................................................................................... 21

3
1. Overview
The ZS-6822A is a unit that communicates digital I/O signals and LAN.
By connecting to a PC or PLC with LAN interface, various measuring instruments with BCD
output or the user's own device control and data collection can be performed.
2. Features
①Measurement control can be easily performed from a LAN network.
②There are 4 ports (8 bits/port) for digital I/O signals, each with input/output selection for
each port.
③In addition to data, a control line is provided to synchronize with an external device.
3. Specifications
3.1.Operating environment
Equipment with LAN port
3.2.LAN
Standard : IEEE802.3
Media type : 10BASE-T or 100BASE-TX (automatic switching)
Media Access Control : CSMA/CD
Modulation/Encoding Method : Baseband/Manchester Encoding 4B5B, NRZ
Transmission speed : 10BASE-T→10Mbps, 100BASE-TX→100Mbps
Transmission medium : 2-to-4-core UTP category 5 cable
Impedance : 100Ω
Connector : RJ45-8 pin modular connector (ISO8877 compliant)
Maximum segment length : 100m
Wiring form : Star type
Supported Protocols : ARP, TCP/IP, UDP/IP, Telnet, ICMP, SNMP, D CP, BOOTP
TFTP, AutoIP, TTP

4
3.3. Digital I/O Port
Number of ports : 4 ports (8 bits/port)
Input/output level : Fan-in = 1
Fan-out = 10
Pull-up resistor 10KΩ (factory setting) Can also be set to pull-down
3.4. Product specifications
Model ZS-6822AP ZS-6822AS
Features Printed circuit board, embedded, low price Small case, low price
Data connector 50-core flat cable 50-core flat cable
Power supply DC4.75V to 5.25V 100mA or less DC4.75V to 5.25V 100mA or less
Usage environment
Temperature 0°C to 50°C umidity 85% max.
Temperature 0°C to 50°C umidity 85% max.
Storage
temperature -20°C to 80°C -20°C to 80°C
External
dimensions 74 x 100 x about 20 ( ) 80 x 110 x about 30 ( )
Accessories
data connector FAS-5001-2101-0BF
( Yamaichi )
data connector FAS-5001-2101-0BF
( Yamaichi )
DC power cable

5
3.5. Appearance and dimensional drawing
・ZS-6822AP (PC board type)
・ZS-6822AS (small case type)
・Dimensional drawing
ZS- 6822AP ZS-6822AS

6
4. Main unit settings
4 .1. ow to set the IP address using " Device Installer "
①Install the DeviceInstaller downloaded from our P or LANTRONIX P on your PC.
②Please have your ZS-6822A warranty card ready ( refer to the MAC address attached to the warranty card).
A sticker with the same contents is attached to the main body.
③Connect the ZS-6822A to the LAN.
④Power on the ZS-6822A .
⑤Start Device Installer . If a warning message is displayed, click OK.
⑥ZS-6822A can be recognized, the following screen will be displayed.
MAC address on the warranty card matches the displayed hardware address. If it cannot be recognized, please
check if "192.168.1.33" is already connected to the LAN .
ere is an example of how to change the initial value "192.168.1.33" to "192.168.1.52".
※The following screenshots are from the Japanese version.
⑦“XPort-05 " in the right frame to select it, and click "IP Assignment".
The following screen will be displayed. Select "Assign a specific IP address" and click "Next".

7
⑧Enter the value of the address you wish to set in the "IP Address" section and click "Next".
⑨When the following screen appears, click "Assign".

8
⑩After a while, the following screen is displayed, and the setting is completed. Click Finish.
⑪It will be successful if the IP address has been changed correctly. Quit Device Installer.

9
5. ow to install "COM Port Redirector"
This section describes how to install Lantronix's COM Port Redirector, a user application
program for the ZS-6822A that allows the use of virtual COM ports without awareness of TCP/IP
or UDP/IP.This is a simplified explanation, please refer to the Lantronix COM Port Redirector
page for details.
https://www.lantronix.com/products/com-port-redirector/
This chapter is not necessary when writing user application programs in TCP/IP or UDP/IP.
5.1. Installation of "COM Port Redirector"
①Downloaded from our P or Lantronics P
" setup_cpr_x86x64cd_4.3.0.3.exe " and the following screen will be displayed.
(The file name and display contents differ depending on the software version and
Windows )
“NET Framework 4.0" is not installed, click the "Install" button with the check box checked.
“NET Framework 4.0" will be installed on the way.
②Click the "Next" button.

10
③Set the installation destination and click the "Next" button.
Unless otherwise specified, the installation destination can be left as is.
④Click the "Next" button. Installation will start.
Installation will start.
⑤If the following screen appears on the way, click "Install".

11
⑥" Close" button.
⑦Click the "OK" button. Installation is now complete.
5.2. Virtual COM port setting
①From the start menu, select “Lantronix” → “CPR Manager” to start it.
A screen like the one below will appear.

12
②on the upper left of the screen to display the following screen.
Check the port number to be set as the virtual COM port on this screen and press
the "OK" button.
*This is an example where Com5 is checked.
③"Com X (New)" will be added in "Com Ports " on the left side of the screen , so select it and
click " Search For Devices ".
④the search is complete , double-click the item displayed in the " Device List " at the bottom
of the screen.
The IP address and TCP port settings are automatically reflected on the right side of the
screen.
*If you cannot find it even after repeating the search, set the IP address of ZS-6822A for " ost".
Set 14000 for "TCP Port".

13
⑤After completing the settings, select “Com Port” → “Save Setting”.
The following screen will be displayed, so select "Yes".
⑥The settings are now complete. Close and exit the application.

14
6. Operation
6.1.Transfer data method
①Data code assignment table
ASCII code is used for data transfer, and one character is converted to 4-bit binary code.
4-bit binary
LAN data
8
4
2
1
EX
0
0
0
0
0
0
0
0
1
1
0
0
1
0
2
0
0
1
1
3
0
1
0
0
4
0
1
0
1
5
0
1
1
0
6
0
1
1
1
7
1
0
0
0
8
1
0
0
1
9
1
0
1
0
A
1
0
1
1
B
1
1
0
0
C
1
1
0
1
D
1
1
1
0
E
1
1
1
1
F

15
②Data sent from a personal computer is transferred sequentially from the smallest port
number set for output.
The port set for input also takes data sequentially from the smallest number and sends it
to the personal computer.
Data for each port is set or read in 4-bit increments.
Example: When ports 1 and 2 are set to input and ports 3 and 4 are set to output
Send to PC
order to do port data
Order of output
to
ZS-6822A ports
port data
1
D7
to
D4 of port 1
1
D7
to
D4 of port 3
2
D3 to D0 of port 1
2
D3 to D0 of port 3
3
D7 to D4 of port 2
3
D7 to D4 of port 4
4
D3 to D0 of port 2
4
D3 to D0 of
port 4
6.2. Control Signals
A control signal is provided to synchronize with the connected device.
Signal
name
signal
direction
explanation
STB OUT
The adapter completes receiving all data from the PC and
outputs a
pulse signal after output to the port.
External devices can use this signal for Latch-Clock or other purposes
as needed.
TRG
OUT
Pulse signals are output to external devices by the "T" command.
CLR OUT Pulse signals are output to external devices by the "C" command.
This can be used to reset external devices.
LA IN
When the latch circuit is enabled (set by "L" command), input data is
latched with this signal.
Input a signal with a pulse width of 500us or more.
Note) Output pulse width can be set by command.
The pulse widths that can be set are 10µs, 100µs, 1ms, 10ms, and 100ms.

16
6.3. Input/output operation
①Output data from PC to port
continuous output
After receiving the data from the PC, send the data to the port set for output.
Set data in 4-bit units (in the order of high order and low order).
After setting the data to the output port, the STB pulse is output.
Note)
If more data than the output port setting is sent, the extra data will be discarded.
If less data than the output port setting is sent, the previously sent data will remain
in the missing area.
pulse output
After receiving the data from the PC, send the data to the port set for output.
Set data in 4-bit units (in the order of high order and low order).
Output port data is output only for the specified pulse width.
②Send data input from port to PC
No latch
When the ZS-6822A receives an "R" command from the PC, it takes data from the
input port at that time (in the order of upper and lower) and sends it to the PC.
with latch
Data from the input port is captured when the LA input is Low.
When the ZS-6822A receives the "R" command from the PC, it sends the data to the
PC when it is captured as described above.

17
6.4. Command list
The ZS-6822A recognizes the first byte of data as a control command and controls it.
Also, be sure to add a delimiter (CR+LF) at the end of the data string before sending.
If there is a character string other than the command at the beginning of the data, NG will be
sent as the return value.
The commands are as follows.
command
function
R Reads data from all ports set as inputs
W
Writes data to a port set to output
T Output pulse from TRG signal
C
Output pulse from CLR signal
D Configure port input/output settings
P
Sets the pulse width of the control signal
L Sets the presence or absence of the latch circuit
U
Set the output signal
B Sets the positive/negative logic of the port
6.4.1. R command
function
Data is read from all ports that are set as inputs. For example, if 4 input ports are
set, the "R" command will send 8 bytes of data from the ZS-6822A.
format
R
CR LF
return value
xxxx・・・
CR LF
: The number of data set in the input port is sent.
x is an ASCII code from 0 to F
NG
CR LF
: No input port
6.4.2. W command
function
Data is written to the ports set for output.
For example, if 4 output ports are set, the "W" command is followed by 8 bytes of
data to be sent to the ZS-6822A.
If less than 8 bytes of data is sent, the amount of data sent will be newly changed,
and the previous data will be retained in the missing parts.
format
Wxxxx・・・
CR LF
: Write the data to be output to the output port after "W"
x is an ASCII code from 0 to F
return value
OK
CR LF
: Completion of data output to the output port
NG
CR LF
: No output port, wrong data character error

18
6.4.3. T command
function
Output a pulse to the control signal "TRG"
format
T
CR LF
return value
OK
CR LF
: Pulse output complete
NG
CR LF
: Pulse output error
6.4.4. C command
function
Output a pulse to the control signal "CLR"
format
C
CR LF
return value
OK
CR LF
: Pulse output complete
NG
CR LF
: Pulse output error
6.4.5. D command
function
Input/output settings for the four ports.
When the ZS-6822A is powered on, all are set to input.
format
Dxxxx
CR LF
: After "D", set port ①, port ②, port ③, and port ④ in this order.
x writes "I" for IN for input and "O" for OUT for output.
return value
OK
CR LF
: Setting complete
NG
CR LF
: Input/output setting error, setting character error
6.4.6. P command
function
The pulse widths of the control signals "STB," "TRG," and "CLR" and the pulse width
at data output can be set from one of five types: 10µs, 100µs, 1ms, 10ms, and 100ms.
When the ZS-6822A is powered on, it is set to 10µs.
format
Px
CR LF
: x is a number. The number assignment is as follows.
0...10 µs, 1...100 µs, 2...1 ms
3...10ms, 4...100ms
return value
OK
CR LF
: Setting complete
NG
CR LF
: Setting error, wrong setting error

19
6.4.7. L command
function
It can be set with or without latch circuit at the time of data input.
When the ZS-6822A is powered on, it is set to no latch circuit.
format
Lx
CR LF
: x is a number, "0" if no, "1" if yes.
return value
OK
CR LF
: Setting complete
NG
CR LF
: Setting error, wrong setting error
6.4.8. U command
function
This is used to set the signal setting for data output.
When the ZS-6822A is turned on, it is set to continuous output.
The pulse width at the time of pulse output is set by the P command.
format
Ux
CR LF
: x is a number, "0" for continuous output and "1" for pulse output.
return value
OK
CR LF
: Setting complete
NG
CR LF
: Setting error, wrong setting error
6.4.9. B command
function
Positive and negative logic settings for the four ports.
When the ZS-6822A is powered on, all are set to positive logic.
This command should be performed when the ports are set to input.
format
Bx
CR LF
: x is a number, "0" for positive logic and "1" for negative logic.
return value
OK
CR LF
: Setting complete
NG
CR LF
: Setting error, wrong setting error

20
7. Connector table
Data connector (used connector FAP-5001-1202-0BF (Yamaichi))
DATA (CN1)
I/O
SIGNAL
PIN
SIGNAL
I/O
D0 1
2
D0
D1 3
4
D1
D2
5
6
D2
PORT
D3
7
8
D3
PORT
①
D4
9
10
D4
②
D5
11
12
D5
D6
13
14
D6
D7
15
16
D7
D0
17
18
D0
D1
19
20
D1
D2 21
22
D2
PORT
D3 23
24
D3 PORT
③ D4 25
26
D4 ④
D5 27
28
D5
D6 29
30
D6
D7 31
32
D7
IN
LA
33
34
+
5V
OUT
STB
35
36
+5V
OUT
TRG
37
38
+5V
OUT
CLR
39
40
+
5V
(NC)
41
42
GND
(NC)
43
44
GND
(NC)
45
46
GND
(NC)
47
48
GND
(NC)
49
50
GND
Note) PIN 34, 36, 38, and 40 are (NC) in the former model ZS-6822 and +5V in the ZS-6822A.
Note) I/O indicates the direction between signals between the ZS-6822A adapter and the
digital I/O signal input/output device.
IN : ZS-6822A ← External device
OUT : ZS-6822A → external device
PORT : Bi-directional data bus.
You can switch IN/OUT by D command setting
This manual suits for next models
2
Table of contents
Other Zenisu Keisoku Adapter manuals

Zenisu Keisoku
Zenisu Keisoku ZS-6144AF User manual

Zenisu Keisoku
Zenisu Keisoku ZS-6123BP User manual

Zenisu Keisoku
Zenisu Keisoku ZS-6228-8N Series User manual

Zenisu Keisoku
Zenisu Keisoku ZS-6822 User manual

Zenisu Keisoku
Zenisu Keisoku ZS-6225 Series User manual

Zenisu Keisoku
Zenisu Keisoku ZS-6216E User manual

Zenisu Keisoku
Zenisu Keisoku ZS-6222 Series User manual

Zenisu Keisoku
Zenisu Keisoku ZS-6222A Series User manual