ZLAN ZLAN5143BI User manual

1
ZLAN5143BI
Optocoupler Isolating-type
Serial Device Server/Modbus
Gateway
User Manual
RS232/485/422 to TCP/IP Converter
Modbus TCP to Modbus RTU
CopyRight©2008 Shanghai ZLAN Information Technology Co., Ltd. All right
reserved
Document DI: ZL DUI 20170207.1.0

2
CopyRight©2008 Shanghai ZLAN Information Technology Co., Ltd. All right reserved
Version Information
The History of the revision to this document:
History
Date
Version
Document ID
Revising content
2017-2-7
Rev.1
ZL DUI 20170207.1.0
Release
Copyright information
Information in this document is subject to change without notice. It is against the law to
copy the document on any medium except as specifically allowed in the license or
nondisclosure agreement. The purchaser may make one copy of the document for backup
purposes. No part of this manual may be reproduced or transmitted in any form or by any
means, electronic or mechanical, including photocopying, recording, or through
information storage and retrieval systems, for any purpose other than for the purchaser’s
personal use, without the express written permission of Shanghai ZLAN information
Technology Co., Ltd.

3
Contents
1. Summary................................................................................................................................4
2. Features..................................................................................................................................6
2.1 Hardware characteristics.......................................................................................6
2.2 Software functions...................................................................................................7
2.3 Advanced software features .................................................................................8
3. Technical Parameters..........................................................................................................8
4. Instructions............................................................................................................................9
4.1 Hardware ....................................................................................................................9
4.2 Hardware connection............................................................................................14
4.3 Software Installation..............................................................................................14
4.4 Parameter Configuration......................................................................................15
4.5 TCP communication test......................................................................................21
4.6 Virtual serial port test............................................................................................23
4.7 Modbus TCP test....................................................................................................26
4.8 Web Configuration.................................................................................................27
5. After-service........................................................................................................................29

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
4
1. Summary
ZLAN5143BI is a serial device server with isolation of RS485/422, which can
effectively isolate the influence of interference on the work of the equipment on RS485
bus and ensure the stability of the equipment. It is suitable for use under the
interference of RS485 bus. With built-in lightning protection, 9~48V wide voltage.
RS485/422 supports 256 loads. At the same time, ZLAN5143BI also has RS232
interface, non-optocoupler isolation. The Ethernet port of ZLAN5143BI supports
10M/100M adaptive network. The transformation from TCP/IP protocol to
RS485/422/232 can be realized to facilitate data collection of serial device devices
through the network. Network side can use virtual serial port to connect serial port
software or software of direct TCP/IP communication.
ZLAN5143BI supports Modbus RTU to Modbus TCP function, and has storage
Modbus gateway feature. It can also be used as a non-storage Modbus gateway.

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
5
Figure 1 ZLAN5143BI
Can be applied to:
Power electronics, intelligent instruments and energy consumption monitoring;
As the gateway of IOT to be communication bridge between devices and the
cloud;
Remote monitoring and program download for various automatic PLC;
Communication interfaces of various configuration software and equipment;
Equipment networking in the field of access control and security;
Network information collection of medical equipment;
Typical application is shown as Figure 2. The original serial port connect with
ZLAN5143BI, then connect ZLAN5143BI to the network via cable. The software on
PC establish connection with 5143BI through TCP/IP or virtual serial port. Any data

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
6
sent from serial device will be transparently sent to PC appointed by ZLAN5143BI,
and data sent by PC to ZLAN5143BI via network also will be transparently sent to
serial device.
Figure 2 Connection Diagram
2. Features
2.1 Hardware characteristics
ZLAN5143BI has the following features:
1) RS485/422 serial optical coupling isolation, isolation voltage is 1500V. Apply to
the strong interference environment which normal serial device server cannot
work properly in. Effectively isolate the ground circuit between the serial port

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
7
device and the serial port server.
2) Built-in lightning protection of power supply: built-in pressure sensitive resistance
and ceramic discharge tube can effectively protect the internal circuit of serial
device server in the case of power surge.
3) Industrial power supply: it has two kinds of power supply connection modes:
terminal and power plug. Can be 9~48V wide voltage power supply.
4) It has three serial port interfaces of RS232/485/422.
5) RS485/422 has capacity of 256 loads.
6) Ethernet port with 2KV surge protection.
7) Abundant panel indicator lights are convenient for debugging: in connection,
there is not only a 100M_LINK light indicating whether the network line is
connected, but also a LINK light indicating the establishment of TCP connection.
Data indicator light has independent indicator light for "serial port to Ethernet port",
"Ethernet port to serial port". Convenient for site debugging.
2.2 Software functions
1) Support TCP server, TCP client, UDP mode, UDP multicast. Support TCP server
side function as TCP client. Support 30 TCP connections as a TCP server and 7
destination IP as a TCP client.
2) The baud rate supports 1200~115200bps, data bits support 5~9 bits, and parity
can be None, Odd, Even, Mark, Space. CTS/RTS hardware flow control and
XON/XOFF soft flow control.
3) Support the function of sending MAC address when device connecting to
facilitate cloud management of devices.
4) Provide search, configure the device secondary development package DLL on
PC.
5) Support Web browser configuration, support DHCP dynamic access IP, DNS
protocol connect domain name server address.
6) Support remote search device, configure device parameter, device program
upgrade on cloud.
7) Support remote viewing of TCP connection status, serial port data sending and

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
8
receiving status of devices through software. Virtual serial port supports data
monitoring.
2.3 Advanced software features
The 4 number in 5143BI indicates that advanced soft functions are supported,
including:
1) Support Modbus gateway function, support Modbus RTU to Modbus TCP. The
storage Modbus can be supported, and the equipment data can be collected
automatically and stored. Modbus gateway for non-storage mode is also
supported.
2) Support for multiple hosts: support Ethernet port allows multiple computers to
access the same serial port device at the same time in a question-answer query
mode.
3) Support for custom heartbeat and registration package features: easy to
communicate with the cloud and identify device.
4) Support the function of TCP needs password authentication to establish
connection to ensure connection security.
5) Support "transcoding" function, which can realize the translation of protocols for
specific devices and allow different devices to connect to the unified software
platform.
6) Support data submission and sending function in HTTP mode, and the cloud can
directly use HTTP GET instructions to interact with the serial port data of the
device.
3. Technical Parameters
Figure
Interface:
485/422: Terminal; 232: DB9
Power Supply:
5.5mm, Inside positive outside negative, standard outlet
Size:
L x W x H =9.4cm×6.5cm×2.5cm
Communicate Interface

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
9
Ethernet:
10M/100M, 2KV surge protection
Serial
RS232/485/422×1: RXD, TXD, GND, CTS, RTS
Serial Parameters
Baud rate:
1200~115200bps
Parity bits:
None, Odd, Even, Mark,
Space
Data bits:
5~9
Flow control:
RTS/CTS, XON/XOFF,
NONE
Software
protocol:
ETHERNET, IP, TCP, UDP, HTTP, ARP, ICMP, DHCP, DNS
Setting method :
ZLVirCom, WEB browser, device management library
Net communication
method:
Direct TCP/IP, virtual serial port
Work Mode
TCP server, TCP client, UDP, UDP Multicast
Power Requirement
9~48V DC,80mA@12V;40mA@24V;20mA@48V
Environment
Running temperature:
-40~85℃
Storage temp:
-45~165℃
Humidity:
5~95%RH
4. Instructions
4.1 Hardware

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
10
Figure 3 Front View
The front view of ZLAN5143BI serial device server is shown as FIG 3:
ZLAN5143BI use black anti-radiation SECC board.
1. Power supply: Either DC socket or terminal input. Socket joint: the outer
diameter is 5.5mm, and the inner diameter is 2.1mm. Terminal: 5.08mm
terminal. Input voltage is 9~48V. 40 mA@ 24V.
Figure 4 Ethernet port, RS485/422 and Power Input
Indicator
Reset switch
Ethernet port
RS485/422
Power supply
RS232
Install
hole

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
11
2. RS485/422: TB and TA are acceptable if only RS485 is used. TB is 485 B line
(negative line), TA is 485 A line (positive line). If it is RS422, it needs to
connect RA and RB, and connect the positive and negative lines of 422. The
485 can carry 256 loads. The longest communication distance is 1200 meters.
Generally, it is necessary to use terminal resistance when the RS485 line
exceeds 300 meters, and the terminal resistance of 485 is 120 ohms.
3. Network port: connect 10M/100M network cable and support automatic
crossover.
4. RS232: DB9 male head is adopted, and the needle sequence of RS232 is
shown in figure 5.
Figure 5 RS232 Interface and Dial Code
The definition of corresponding needle is shown in the following table:
Table 2 RS232 Line Sequence
Item
Name
Input / Output
Instruction
2
RXD
Input
receiving pin of the serial device server
3
TXD
Output
sending pin of the serial device server
5
GND
/
Ground wire
4
DTR
Output
Same as RTS
pin1
pin5
pin6
pin9
DEF Switch

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
12
6
DCR
Input
Same as CTS
7
RTS
Output
After the flow control in using, the serial device server
will accept the data of the serial device when the pin is 0.
8
CTS
After the flow control in using, the serial device server
will send the data to the serial device when the pin is 0.
5. Reset switch: also known as DEF switch, as shown in figure 5. When the
DEF switch is On (the right side of figure 5 is On), the serial device server will
start loading the default parameters, and when pressed to On state for 5
seconds, the default parameters will be used to restart. The default
parameters only affect the following parameters: IP mode to static, IP address
to 192.168.1.254, subnet mask to 255.255.255.0, gateway to 192.168.1.1.
Other parameters such as baud rate will not be reset. If all parameters need to
be reset, please use the "system default parameter" of ZLVircom configuration
tool for modification. The DEF switch is mainly used to make it easy to enter
192.168.1.254 in the browser to reconfigure the device when the IP is
forgotten. The Protect switch is for future use.
6. Indicator light: it is divided into Power, Link and Active lamps, which
respectively represent Power supply, connection indicator and data indicator.
Table 3 Meaning of Indicator Light
Power
Indicator
Instruction
Link
Indicator
1) Link lamp is green when the network line is connected.
2) When the TCP connection is established (or in UDP mode),
the Link is blue (actually with faint green light). Can be used
to determine whether the serial device server establish a
communication link with the upper computer.

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
13
Active
Indicator
1) The Active lamp is green when the Ethernet port sends data
to the serial port. The shining time is one second longer
than the actual communication time, and it is more
convenient to find short data communication.
2) When the serial port sends data to the Ethernet port, the
indicator light is blue and green at the same time. Because
the blue color is brighter, if you see blue indicates that there
is a serial port to return data to the network port. This can
determine whether the device responds to the upper
computer's command, and if it does not, it indicates that the
baud rate of the serial port is not correct or the serial port is
not well connected.
Method of using signal lamp to debug communication:
1) If the Link light is not green, the network cable is not well connected.
Please check the network cable.
2) If the Link light is not blue (only TCP working mode is considered), the
upper computer software is not connected to the serial port server. Please
consider whether the IP address is configured in the same network
segment.
3) If the Active lamp is green, there is a network port to send data, but no
serial device to return data. Please check whether the baud rate is
properly configured and whether the RS485 + or - is inversely connected.
7. Installation method: use the "mounting hole" shown in figure 4 to install the
serial port server onto the plane or hang it on a screw. For the occasions
where there are guides, it is suggested to purchase additional guide
accessories to facilitate the installation of the guides, as shown in figure 6.

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
14
Figure 6 DIN RAIL
4.2 Hardware connection
Generally speaking, the serial device server only needs to connect power supply,
serial port and network cable.
The power supply can adopt configured 12V power adapter or 2-wire power
supply on site, which can be directly connected to plus or minus terminals of the
power supply.
The serial port needs to be connected according to the user's serial device. If the
user RS232 device is used, the DB9 male or female head shall be considered. If
the male head is used, the standard RS232 female to female crossover line can
be adopted to connect the serial port server and the device. If the user device is
an RS485 device, connect the positive 485 to TA and the negative 485 to TB.
The Ethernet port connects with normal network cable, can directly connect to the
computer or connect to the network through the switch.
4.3 Software Installation

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
15
ZLVircom can be used to configure the device IP and other parameters, also can
create virtual serial port. If no need the virtual serial port function, you can
download the free-installation version.
Table 4 ZLVircom Version
Software
Description
ZLVircom Device Management Tool
(free-installation version)
This version no have the virtual serial
port function
ZLVircom Device Management Tool
(installation version)
This version has the ZLVircom_x64.msi
and ZLVircom_x86.msi. The 64 bit
operating system install x64, 32 bit
system install x86 version.
Just follow the default prompt when installing. Upon completion of the installation,
ZLVircom will be started each time the computer is started, which is used to boot
up to create a virtual serial port.
4.4 Parameter Configuration
After installing ZLVircom, the hardware also connecting, run ZLVircom software as
figure 7, and click "Device Manage" as figure 8. Use ZLVircom can search and
configure the device parameter in different segment, which is very convenient as
long as the device and computer of running ZLVircom are under the same switch.

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
16
Figure 7 ZLVircom Main Interface
Figure 8 Device List
From the device list, you can see all of the current online devices, and you can
search for devices that are not in one network segment. There is no need to use
the "Add Manually" function.

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
17
Click the “Edit Device”to configure the device parameters.
Figure 9 Device Parameters
In this interface, the user can set the parameters of the device, then click "Modify
Setting", and the parameters are set to the flash of the device, with power-off no
lost. The device will restart automatically.
The main configuration parameters are: baud rate, data bit, and check bit in serial
port setting; IP address, subnet mask, gateway in network setting; Sometimes you
need to configure the work mode of the serial port server according to the
computer software.
The meaning of the parameters is described as follows:
Table 5 Parameter Meaning
Parameter
Name
Value Range
Instruction
Virtual Serial
Non-in use, created
virtual serial port
You can bind the current device to a created virtual serial
port.
Dev Type
Show only the model of the core module
Dev Name
Any
You can give the device a readable name, with a maximum

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
18
of 9 bytes, and support the Chinese name.
Dev ID
The factory's sole ID, cannot be modified.
Firmware
Version
The firmware version of core module
Supporting
Function
Please refer to the Table 4 “support functions”
IP Mode
Static, DHCP
The user can choose Static or DHCP (Dynamic acquisition
of IP)
IPAddress
The IP Address of networking products
Port
0~65535
The monitoring port of Networking products when in the TCP
Server or UDP mode. As a client, it is best to specify that the
port is port 0, which is good for increasing the connection
speed, and the system will randomly assign a local port
when using the 0 port. At this time the difference from
specifying the non-zero port are: (1) local port is 0, module
sets up a new TCP connection with PC when restarting, old
TCP connection may not be closed, so that the old TCP
connection of the host has been unable to close, specify the
non-zero port does not have the problem. Generally host
wants to close the old connection when the module is
restarted. (2) the local port is 0, the time of TCP rebuilding
connection is faster.
Work Mode
TCP Server(TCP Server
Mode),TCP Client(TCP
Client Mode),UDP
Mode, UDP Multicast
When set to TCP Server, the network Server needs to
actively connect the networking products; When set to TCP
Client, the networking product initiates the connection to the
network server specified by the destination IP.
Net Mask
Eg: 255.255.255.0
Must be same as net mask of local LAN.
Gateway
Eg: 192.168.1.1
Must be the same as the local LAN gateway. If it is not
crossing outer network (such as the cable connecting
computer), it is best to set the gateway as the IP address of
the connected computer.
Dest.
IP/Domain
In the TCP Client or UDP mode, the data will be sent to the
destination IP or the computer of domain name instruction.
Dest. Port
In the TCP Client or UDP mode, the data is sent to the
destination port of the destination IP.
Baud Rate
1200, 2400, 4800, 7200,
9600, 14400, 19200,
28800, 38400, 57600,
76800, 115200, 230400,
Serial baud rate

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
19
460800
Data Bits
5, 6, 7, 8, 9
Parity
None, Even, Odd, Mark,
Space
Stop Bits
1, 2
Flow Control
None (no flow control),
CTS/RTS, DTR/DCR,
XON/XOFF
RS232 port valid
DNS Server
IP
When the destination computer is described by a domain
name, DNS server is required to resolve the domain name,
which specifies the IP of this DNS server. When the IP mode
is DHCP, the parameter is not specified and will be
automatically acquired.
Dest. Mode
Static, Dynamic
UDP working mode: if the destination computer is described
by a domain name, it’s best to choose the static mode; If
there are multiple computers in the LAN communicating with
networking products through UDP, it is best to choose
dynamic mode.
TCP server mode: this parameter must be dynamic.
TCP client mode: when IP mode is dynamic, the destination
IP is reconnected after the device is restarted, so that the
correct IP address can be obtained again. Otherwise, it will
do direct connection without automatically restarting the
device.
Transfer
Protocol
NONE, Modbus
TCP<->RTU,
Real_COM
NONE indicates that the data forwarding from the serial port
to the network is transparent; Modbus TCP<->RTU will
convert Modbus TCP protocol directly into RTU protocol to
facilitate coordination with Modbus TCP protocol; RealCOM
is designed to be compatible with the old version of
REAL_COM.
Keep Active
Time
0~255
(1) Choose 1~255, if the device is in the TCP client working
mode, the TCP heartbeat will be sent automatically for
every "keep alive time". This can guarantee the TCP
availability of links. When set to 0, there will be no TCP
heartbeat.
(2) Set to 0~254, when transformation protocol choose
REAL_COM protocol, the device will send a length of 0
to 1 content data for every " keep alive time " to
implement the heartbeat mechanism of Realcom. When
set to 255, there will be no Realcom heartbeat.

Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
20
(3) Set to 0~254, if the device is working on the TCP client,
the device will send the parameters to the destination
computer every " keep alive time ". When set to 255, no
have the parameter sending function. This mechanism is
not normally used, users are not required to pay
attention.
Reconnect
Time
0~255
Once the networking products in a TCP client mode
disconnect with the server (as long as in the non-connection
status), it will initiates a TCP connection to the Server every
while, can be 0~254 seconds, if set 255, never for
reconnection. Note first TCP connection would immediately
(such as hardware on electricity, through zlvircom software
restart equipment, no data), only after the first connection
failure will try again after waiting for the "break time", so
"break time" will not affect the network and server
connection setup time under normal circumstances.
Http Port
1~65535
UDP Group
IP
UDP multicast
Max Frame
Length
1~1400
One of the rules of serial. The connected product serial port
sends the received data to the network as a frame after
receiving the length data.
Max Interval
(Smaller will
better)
0~255
One of the rules of serial. When there is a pause in the data
received by the connected product, and the pause time is
greater than that time, the received data is sent to the
network as a frame.
The functions supported by the device are explained as follows:
Table 4 Device Supported Function
Name
Instruction
Webpage download
Support to control the serial output command through the web page,
only the product with the trailing W has this function.
Domain name system
The destination IP can be the domain name (such as the beginning
of the WWW server address).
REAL_COM protocol
It is a non-transparent transmission serial device server protocol,
which is suitable for the binding of virtual serial port through Internet.
Because the protocol contains the device MAC address, it is helpful
for the upper computer to identify the device. In general, it can be
without use.
Table of contents
Other ZLAN Gateway manuals
Popular Gateway manuals by other brands

ZyXEL Communications
ZyXEL Communications G.SHDSL.bis 4-port Security Gateway P-793H user guide

SonicWALL
SonicWALL SRA EX9000 installation guide

Moxa Technologies
Moxa Technologies MGate 5134 Series user manual

MICRIUM
MICRIUM YWireless-RX65N Getting started guide

RTA
RTA 460ESPBS-N70PB Product user guide

Arris
Arris Touchstone TG3492LG-LIB user guide

NetComm
NetComm V320W Specifications

Hypercom
Hypercom IN-tact 1202 installation guide

Bosch
Bosch MB LAN 2 installation instructions

ZyXEL Communications
ZyXEL Communications EX3510-B1 installation guide

Schwaiger
Schwaiger HOME4YOU HA102 user manual

ZyXEL Communications
ZyXEL Communications ZyXEL ZYWALL10 user guide