background image

Shanghai ZLAN Information Technology Co., Ltd

Tel: +86-17321037177

http://www.zlmcu.com

42

Figure 34 Storage Modbus Gateway

As shown in figure 34: ordinary Modbus TCP data flow direction

1

2

3

4

. In other words, Modbus TCP instruction is first converted into

corresponding Modbus RTU instruction, and then the device responds Modbus

RTU instruction to Modbus gateway, which is then converted into Modbus TCP

again and sent to the monitoring host computer.

As we know, Modbus TCP is a network communication with a fast transmission

speed, which can be answered within 3ms, while Modbus RTU is RS485 with a

speed of only 9600bps. Generally, it takes at least 30ms to send and return an

instruction. Such a common non-storage Modbus gateway has a relatively long

query response time. In addition, if there are many upper computers to query data

Содержание 5143D

Страница 1: ...DIN type Serial Device Server Modbus Gateway User Manual RS485 to TCP MQTT JSON Modbus TCP Converter CopyRight 2008 Shanghai ZLAN Information Technology Co Ltd All right reserved Document DI ZL DUI 2...

Страница 2: ...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...

Страница 3: ...nt connects to Multiple Servers 31 5 1 3 TCP Server Mode 33 5 1 4 Be both Client and Server 33 5 1 5 UDP Mode 34 5 3 Device Pairs connect Mode 35 6 Device Debugging 37 6 1 Network Physical Connection...

Страница 4: ...munication Function 53 10 Transcoding Functions 54 1 2 Enable the Transcoding 55 1 3 Case of Transcoding Implementation 56 1 4 Notice 57 11 Network Interface to Modify Parameters 58 12 Device Manageme...

Страница 5: ...Terminal type power supply access 9 24V wide voltage input Because there is only RS485 interface the RS232 interface which is not commonly used on industrial instruments is cancelled which saves the c...

Страница 6: ...cloud MQTT ALI cloud MQTT China mobile OneNet platform etc It is supported to parse the collected Modbus RTU or non standard serial port data into JSON format and encapsulate it into MQTT packet for u...

Страница 7: ...pical application connections are shown in figure 2 The original serial port device RS485 is connected to the RS485 port of ZLAN5143D and the 5143D is connected to the computer through the network cab...

Страница 8: ...nterface light but also indicates the LINK light TCP connection established Data indicator light has serial port to network port network port to serial port independent indicator light 2 2 Software fu...

Страница 9: ...s 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 MQTT gateway functionality 4 Support JSON to Modb...

Страница 10: ...erial Parameters Baud rate 1200 115200bps Parity None odd check even check mark space Data bits 5 9 Flow control None Software protocol ETHERNET IP TCP UDP HTTP ARP ICMP DHCP DNS Setting method ZLVirC...

Страница 11: ...77 http www zlmcu com 11 Figure 3 The elevation of the ZLAN5143D serial port server is shown in the figure above with a 35mm standard guide rail housing 1 Power input terminal 5 08mm terminal The inpu...

Страница 12: ...meters when it is necessary to use the terminal resistance 485 terminal resistance is 120 ohms 3 Network port connect RJ45 interface network cable support automatic crossover 4 Indicator lights Power...

Страница 13: ...r if there is no corresponding indicates that the serial port baud rate is wrong or the serial port is not connected well Use indicator light to debug communication method 1 If the Link light is not g...

Страница 14: ...y connected to the positive and negative terminals of the power supply RS485 device 485 is connected to TA 485 is connected to TB The network port is connected to the ordinary network cable which can...

Страница 15: ...tem 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...

Страница 16: ...Main Interface Figure 7 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 Ad...

Страница 17: ...f the core module Dev Name Any You can give the device a readable name with a maximum of 9 bytes and support the Chinese name Dev ID The factory s sole ID cannot be modified Firmware Version The firmw...

Страница 18: ...lient 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 destina...

Страница 19: ...AL_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 3 Set...

Страница 20: ...vice 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...

Страница 21: ...erial port of serial device server then open the serial debugging assistant ZLComDebug and open the corresponding COM as figure 10 Open TCP UDP debugging assistant SocketTest and as TCP client fill in...

Страница 22: ...Shanghai ZLAN Information Technology Co Ltd Tel 86 17321037177 http www zlmcu com 22 Figure 10 ComDebug Send receive Interface Figure 11 SocketTest Send receive Interface 4 6 Virtual serial port test...

Страница 23: ...ort between the user program and the serial port server As shown in figure 12 ZLVircom and the user program run on a computer and ZLVircom virtual a COM port so that the COM port corresponds to the se...

Страница 24: ...COM5 has been connected to a device with IP 192 168 1 200 You can use COM5 instead of SocketTest to communicate Figure 14 Virtual Serial Port has been connected Now close the before SocketTest and op...

Страница 25: ...changed to 502 At this point the user s Modbus TCP tool is connected to port 502 of IP of serial port server and the Modbus TCP instruction sent will be converted into RTU instruction output from the...

Страница 26: ...and the destination port is 502 as shown in figure 17 Figure 17 Modbus TCP as Client 4 8 Web Configuration ZLVircom can be used to search and configure device parameters in different network segments...

Страница 27: ...n the following page Figure 18 2 Enter Password in Password default is 123456 Click the login button to login Figure 19 Web configuration interface 3 The serial port server parameters can be modified...

Страница 28: ...rotocol is divided into transparent transmission Modbus TCP to RTU and Realcom protocol If the user software is a fixed Modbus TCP protocol and the host computer is Modbus RTU Modbus TCP to RTU mode s...

Страница 29: ...it must use virtual serial port mode Including some PLC software configuration software instrument software etc Then check whether the monitoring computer and equipment are in the local network 1 If t...

Страница 30: ...r s TCP IP to communicate as an example ZLAN serial port server is in compliance with the standard TCP IP protocol so any network terminal that conforms to the protocol can communicate with the serial...

Страница 31: ...way the serial port server can automatically connect to the network tools send and receive data after the connection is established Figure 20 The serial port server as the Client 5 2 2 The Client con...

Страница 32: ...re Advanced Options button in the device setting interface and open more advanced options for setting All 7 destination IP Settings can be automatically connected if not connected will wait for discon...

Страница 33: ...with the serial port server send and receive data after the connection is established Figure 23 The serial port server as the Server When the serial server is as Server it can accept 30 TCP connection...

Страница 34: ...should be noted that since the local port 1024 is occupied by the Server when the local port is used as the Client it is port 1 that is the software on 192 168 1 189 sees that the incoming port of the...

Страница 35: ...omputers to the same LAN ZLVircom runs on this computer and is only connected to the computer for configuration purposes after which the computer does not need to be connected Click ZLVircom s device...

Страница 36: ...eck In the case of UDP pair connection the configuration parameters are shown in figure 28 and the parameters corresponding to the arrows must be one to one As long as the parameters of UDP pair are c...

Страница 37: ...ection The serial server can connect to the RJ45 switch or connect directly to the computer network port by using a cross or direct network cable The first step after the connection established is to...

Страница 38: ...igure 30 Connection status and data send receive status 6 3 Data Sending and Receiving When the Link light turns blue data can be sent and received between the software and the serial port server If t...

Страница 39: ...l serial port communication has been established according to the 4 6 Virtual Serial Port Test method Now you need to monitor the data passing through the virtual serial port Open the ZLVircom menu co...

Страница 40: ...mmunication bridge It will generate Modbus RTU designation according to Salve ID function code register No and register number in Modbus TCP instructions sent to Modbus gateway by user software and ou...

Страница 41: ...he serial port RTU is the main station the Modbus gateway works on the TCP client side and the destination IP fills in the IP of the computer on which the Modbus TCP software resides and the destinati...

Страница 42: ...onds Modbus RTU instruction to Modbus gateway which is then converted into Modbus TCP again and sent to the monitoring host computer As we know Modbus TCP is a network communication with a fast transm...

Страница 43: ...Modbus Gateway without configuration Users do not need to configure required register addresses function codes and slave station addresses The 7146 will automatically recognize and dynamically add th...

Страница 44: ...collision time refer to many host part the next instruction to send Return to the first instruction after the last instruction has been answered 7 3 Disable Storage Functionality Although the stored M...

Страница 45: ...onverts the protocol into Modbus TCP has the function of storage Modbus gateway otherwise it is a non storage Modbus gateway If the conversion protocol is none generally the user defined RS485 protoco...

Страница 46: ...nd only return the instructions to the nearest communication host The query of host A will only reply to A and the query of host B will reply to host B Another effect is that in normal mode when host...

Страница 47: ...e user use ZLVircom to select Modbus TCP to RTU as the transfer protocol ZLVricom will automatically select the above two enabled boxes unless the user manually enters the advanced option to remove an...

Страница 48: ...e a response After the network port reply is sent to the serial port server it is converted into RTU instruction and output from the serial port to the RTU device At this point it is important to note...

Страница 49: ...identification module is very important and necessary for the realization of Internet of things communication Shanghai ZLAN serial server to provide the following types of registration 8 1 1 Connect t...

Страница 50: ...s established between the device and the cloud the device automatically sends a hex registry FA 07 13 02 FA 02 MAC 5 MAC 4 MAC 3 MAC 2 MAC 1 MAC 0 FA FF The MAC 5 MAC 0 is the MAC address of the devic...

Страница 51: ...ethod is more flexible can let the device to adapt to the existing cloud registration format However there is no wildcard like MAC in the registry so it is tedious to configure a different registry fo...

Страница 52: ...eat Packets Heartbeat packet is mainly used to detect whether the communication link is disconnected The implementation method is that the device sends a heartbeat packet data to the server software e...

Страница 53: ...broken the TCP connection can still be re established automatically 8 2 2 REALCOM agreement As described in the 8 1 2 Realcom Protocol the Realcom protocol can send a byte data of 00 at every guarante...

Страница 54: ...f zlvircom The features of ZLAN HTTPD Client communication include 1 Device send support to directly convert serial data into HTTP format by GET POST which can be directly recognized by the server 2 W...

Страница 55: ...13 14 This enables the conversion of different protocols This is just a simple example of a transcode function that can actually be converted to more complex protocols 10 1 Enable the Transcoding The...

Страница 56: ...here it is also possible to write the configuration file httpd txt by using ZLAN engineer if necessary ZLAN can also provide the configuration file httpd txt for the existing case At present there ar...

Страница 57: ...uction is split into several smaller instructions to be read by the network device 10 3 Notice 1 When httpd txt is not stored the device will be used as a normal serial port server Transcoding is disa...

Страница 58: ...nterface modification parameter is a function to search and modify device parameters like zlvircom software that is to manage the device and modify parameters through the network interface of the seri...

Страница 59: ...Delphi and other development tools Provide detailed API interface introduction documents and VC call Demo case Can realize the device search parameter modification P2P function call and so on Can be...

Страница 60: ...the TCP server when switching from the TCP Client to the TCP Server Please refer to Serial port modification parameters and hardware TCPIP protocol stack for detailed operation methods 17 Remote Devic...

Страница 61: ...ircom in the public network IP server At this time a port mapping of 1092 UDP should be made on the router of the network where the device is located which is mapped to the IP of the device Then zlvir...

Страница 62: ...rameters on this port of the server can manage these devices Figure 49 timing sending parameters To facilitate device identification give the device an easy to remember name if remote administration i...

Страница 63: ...earch the device again and enter the dialog again Click the upgrade firmware button in the lower right corner of the dialog box Figure 51 upgrade button 3 As shown in Figure 53 select the program file...

Страница 64: ...the procedures will automatically restart generally without power See the running indicator light flashing If there is no automatic restart please power on again after the LINK light flashing stop for...

Страница 65: ...device will not be damaged Please restart the download In addition at the end of the download please do not power off when the LINK light flashes otherwise the device will be damaged c Check out the...

Страница 66: ...ZLAN5143D Normal model ZLAN5143DN With P2P function ZLAN5143DW With webpage control output 20 After service Shanghai ZLAN Information Technology Co Ltd Address Room 2001 No 28 Yuanwen Rd Minhang Dist...

Отзывы: