background image

Shanghai ZLAN Information Technology Co., Ltd          Tel: +86-17321037177          http://www.zlmcu.com 

23 

 

Figure 12 SocketTest Send-receive Interface 

4.6 Virtual serial port test 

SocketTest in figure 10 communicates directly with the serial port server through 

TCP. In order to enable users to communicate with the serial port server with the 

developed serial port software, it is necessary to add a virtual serial port between 

the user program and the serial port server. As shown in figure 16, ZLVircom and 

the user program run on a computer, and ZLVircom virtual a COM port, so that the 

COM port corresponds to the serial port server. When the user program opens the 

COM  to  communicate  through  ZLVircom 

  serial  device  server 

  to  users. 

Here's how to do this: 

 

Figure 13 Virtual serial port 

Summary of Contents for ZLAN5143BI

Page 1: ...lating 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 Doc...

Page 2: ...gainst 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 o...

Page 3: ...anced 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...

Page 4: ...8V 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 trans...

Page 5: ...onitoring 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 Netwo...

Page 6: ...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...

Page 7: ...t 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 TC...

Page 8: ...ort 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 functi...

Page 9: ...ace 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...

Page 10: ...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 termi...

Page 11: ...al 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...

Page 12: ...ress 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 paramete...

Page 13: ...e 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...

Page 14: ...als 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...

Page 15: ...on 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 comp...

Page 16: ...7 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 netw...

Page 17: ...uration 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...

Page 18: ...le 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 connectio...

Page 19: ...amic 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 de...

Page 20: ...rcumstances 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 re...

Page 21: ...n one TCP connections as a TCP server IO port control Model No 3 of 4 supports arbitrary custom instructions to control 8 IO outputs UDP multicast UDP multicast Multi destination IP As a TCP client su...

Page 22: ...e serial port server IP currently 192 168 1 200 destination port is 4196 and then click open button in figure 12 Enter socket send in SocketTest and click send then the data is transferred to RS232 in...

Page 23: ...ate with the serial port server with the developed serial port software it is necessary to add a virtual serial port between the user program and the serial port server As shown in figure 16 ZLVircom...

Page 24: ...computer Figure 14 Add Virtual Serial Port Then enter the device manage and double click the device that you need to bind to the COM5 As shown in FIG 9 select COM5 from the virtual serial port list i...

Page 25: ...LComdebug as the user s serial port program now open COM5 At this point COM5 virtual serial port and COM4 hardware serial port can send receive data through networking products If the serial port of t...

Page 26: ...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...

Page 27: ...and the destination port is 502 as shown in figure 18 Figure 18 Modbus TCP as Client 4 8 Web Configuration ZLVircom can be used to search and configure device parameters in different network segments...

Page 28: ...n the following page Figure 19 2 Enter Password in Password default is 123456 Click the login button to login Figure 20 Web configuration interface 3 The serial port server parameters can be modified...

Page 29: ...com 29 4 After modifying parameters click the submit button 5 After service Shanghai ZLAN Information Technology Co Ltd Address 12 floor D building No 80 CaoBao road Xuhui District Shanghai China Phon...

Reviews: