Communication system with flowmeter with communication function
By converting the serial port communication of the flow meter into a TCP/IP network interface and adopting the MODBUS/TCP protocol, the problem of real-time data collection and inconsistent communication protocols of multiple master station nodes in the long-distance communication of the flow meter is solved, achieving stable and reliable Data transmission improves the availability of flow meter data.
Patent Information
- Application Number
- CN202410692290.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-08-23
AI Technical Summary
Existing flowmeters cannot realize real-time data collection of master station equipment by multiple master station nodes during long-distance communication, and the communication ports and protocols are not unified, resulting in unstable data transmission and easy interference.
Design a flow meter communication system with communication function. The RS-232, 485, and 422 serial ports are converted into TCP/IP network interfaces through the conversion module, and the MODBUS/TCP protocol is used for data transmission to realize the communication between the flow meter and multiple workstations. real-time, long-distance communication between The system includes flow meters, conversion modules, network equipment and workstations, and achieves unified format conversion and storage of data through serial servers, hubs, configuration software and databases.
It realizes real-time, long-distance communication between the flow meter and multiple workstations, improves data availability and transmission stability, solves the problem of incompatibility between communication ports and protocols, enhances anti-interference capabilities, and reduces maintenance costs. .
Smart Images

Figure CN118540348A
Abstract
Description
Technical Field
[0001] The invention relates to the field of flow meter communication, and in particular to a communication system of a flow meter with a communication function. Background Art
[0002] The location where the flow meter is installed in the water supply pipeline is in the middle of the road or in the area of a long pipeline. Long-distance communication is required to transmit the flow meter instantaneous flow, positive cumulative flow, reverse cumulative flow and other data back for monitoring.
[0003] Most existing brands of flow meters use a single communication port, which can only realize communication between a single master station and a single slave station device, and cannot meet the requirements of multiple master station nodes for real-time data collection from the master station device.
[0004] There are many types of communication ports on the market (some old models have serial ports, and some new models have network ports), and the communication protocols used are also different. The industrial communication protocols used by some old flow meters are not even standard industrial communication protocols. The inconsistency of communication ports and communication protocols has brought great inconvenience to the remote communication of flow meters.
[0005] Since the electrical signals collected in industry are usually transmitted using weak current (4mA-20mA), long-distance electrical signal transmission is easily interfered by various high-voltage equipment, resulting in abnormal data and large deviation from the actual data, which is not conducive to the monitoring of industrial production processes. Summary of the invention
[0006] The object of the present invention is to provide a communication system of a flow meter with a communication function, so as to realize real-time and long-distance communication between the flow meter and a plurality of workstations.
[0007] To achieve the above object, the present invention provides the following solutions:
[0008] A communication system for a flow meter with a communication function, comprising: a flow meter with a communication function, a conversion module, a network device and a plurality of workstations;
[0009] The flow meter with communication function is used to collect pipeline flow;
[0010] The conversion module is connected to the flow meter with communication function; the conversion module is used to convert the RS-232 serial port, 485 serial port or 422 serial port into a TCP / IP network interface, and use the MODBUS / TCP communication protocol to transmit the pipeline flow in the network port format;
[0011] The network device is connected to the conversion module; the plurality of workstations are respectively connected to the conversion module and the network device; the workstation is used to read the pipeline flow in the network port format and store it.
[0012] Optionally, the conversion module includes a hub and a serial port server; the hub is connected to the flow meter with communication function; the serial port server is connected to the hub.
[0013] Optionally, the workstation includes a plurality of computers; the computers are equipped with configuration software, virtual serial port software and a database;
[0014] The virtual serial port software is connected to the serial port server; the virtual serial port software is used to convert the pipeline flow in the network port format into the pipeline flow in the serial port format;
[0015] The configuration software is connected to the virtual serial port software; the configuration software is used to read the pipeline flow using the MODBUS / TCP communication protocol;
[0016] The database is connected to the configuration software; the database is used to store the flow data.
[0017] Optionally, the virtual serial port software is connected to the serial port server via TCP / IP or virtual serial port.
[0018] Optionally, the network device includes an industrial switch and a firewall; the industrial switch is connected to the serial port server; and the firewall is connected to the industrial switch and the workstation respectively.
[0019] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0020] The present invention provides a communication system of a flow meter with a communication function, comprising: a flow meter with a communication function, a conversion module, a network device and a plurality of workstations; the flow meter with a communication function is used to collect pipeline flow; the conversion module is connected to the flow meter with a communication function; the conversion module is used to convert an RS-232 serial port, a 485 serial port or a 422 serial port into a TCP / IP network interface, and transmit the pipeline flow in a network port format using a MODBUS / TCP communication protocol; the network device is connected to the conversion module; a plurality of workstations are respectively connected to the conversion module and the network device; the workstation is used to read and store the pipeline flow in a network port format. The present invention realizes real-time and long-distance communication between the flow meter and a plurality of workstations. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 A structural block diagram of the communication system of the flow meter with communication function provided by the present invention;
[0023] Figure 2 This is a schematic diagram of the MODBUS / TCP protocol communication process;
[0024] Figure 3 This is the data transmission flow chart of the communication system of the flow meter with communication function. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] The object of the present invention is to provide a communication system of a flow meter with a communication function, so as to realize real-time and long-distance communication between the flow meter and a plurality of workstations.
[0027] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0028] Technical terms:
[0029] Flowmeter with communication function: Flowmeter is a kind of instrument used to measure the flow rate of fluid in pipelines or open channels. Flowmeters are widely used in various industries such as industrial production, environmental protection, transportation, etc. Flowmeter with communication function refers to a flowmeter with an industrial communication interface that can communicate data with the host computer.
[0030] Serial device server: The main function of a serial device server is to convert traditional serial communication interfaces such as RS-232, RS-485, RS-422 into TCP / IP network interfaces. Serial devices can immediately have network communication capabilities and connect to the Internet, thereby expanding the communication distance and functions of serial devices. Serial device servers are widely used in various industrial automation, smart home, data acquisition and monitoring fields. They support multiple network protocols such as TCP / IP, UDP / IP, HTTP, HTTPS, etc., and can be accessed and controlled through Web interface, Telnet command line or SNMP monitoring.
[0031] Commonly used communication interfaces for industrial equipment: RS-232, RS-422 and RS-485 are all serial data interface standards. RS-232 is the most widely used serial interface in PC and communication. The RJ45 interface is usually used as a network card interface for data transmission.
[0032] Industrial communication protocol: Industrial communication protocol refers to the rules and agreements that must be followed by devices and devices, and devices and host computers in the field of industrial control to complete communication or services.
[0033] Modbus communication protocol: Modbus protocol is a universal communication protocol that has been widely used in the field of industrial control today. Through this protocol, controllers can communicate with each other or with other devices via a network (such as Ethernet). The Modbus protocol uses a master-slave communication technology, that is, the master device actively queries and operates the slave device. Generally, the protocol used by the master device is called Modbus Master, and the protocol used by the slave device is called Modbus Slave. Typical master devices include industrial computers and industrial controllers; typical slave devices include PLC programmable controllers. The physical interface of Modbus communication can be a serial port (including RS232 and RS485) or an Ethernet port. Through this protocol, controllers can communicate with each other and with other devices via a network (such as Ethernet). It has become a universal industrial standard. With it, control devices produced by different manufacturers can be connected into an industrial network for centralized monitoring.
[0034] 232 / 422 / 485 hub: The main functions of the hub include expanding the number of nodes, extending the communication distance, electrical isolation and signal enhancement. It expands the number of bus nodes by dividing the bus into several branches, each of which can be connected to multiple serial port devices. In addition, the hub can extend the transmission distance of the bus by increasing the ability of electrical isolation and signal amplification. The electrical isolation function can isolate the ground potential between different branches, improve the anti-interference ability of the bus, and ensure the reliability of communication. The signal enhancement function can maintain stable signal quality and is suitable for long-distance communication. Transmitting data through differential signals can greatly resist electromagnetic interference, ensure the stability of communication and the reliability of long-distance transmission. 232 / 422 / 485 hubs usually support "point-to-multipoint" communication, allowing up to 32 (or more, depending on the device design) 232 / 422 / 485 devices to access the same network.
[0035] Configuration software: Configuration software SCADA (Supervisory Control and Data Acquisition) refers to special software for data collection and storage, process monitoring and control. In the automatic control system, it belongs to the system monitoring layer. It has graphic display technology, commonly used standardized communication protocols and interfaces, and can communicate with a variety of communication port devices with standard industrial protocols to complete the monitoring and control process.
[0036] Virtual serial port software: Virtual serial port software is a tool for connecting different computers and devices. In a computer system, a serial port is a physical channel that connects a computer and an external device. By simulating a serial port, the virtual serial port software allows the computer to connect to more external devices, such as printers, scanners, robots, sensors, and so on. Virtual serial port software can simulate multiple serial port channels, allowing the computer system to connect to multiple external devices at the same time, thereby improving the efficiency of the computer system. At the same time, virtual serial port software can also forward information through a single serial port, reducing the number of physical serial ports, reducing the burden on the computer system, and improving system efficiency. Virtual serial port software can also provide remote serial port access services. For the need to transmit data in different places, virtual serial port software can provide remote serial port access services. Users can connect to a remote computer through the network and use virtual serial port software to access and control the serial port devices on the remote computer to achieve the purpose of data transmission.
[0037] like Figure 1 As shown, the communication system of the flow meter with communication function in this embodiment includes: a flow meter with communication function, a conversion module, a network device and multiple workstations.
[0038] The flowmeter with communication function is used to collect pipeline flow. In practical applications, the flowmeter with communication function is used to collect pipeline flow and other data, convert the communication port into a unified communication port and communication protocol through the serial port server, and perform data communication with computers of multiple workstations.
[0039] The conversion module is connected to the flow meter with communication function; the conversion module is used to convert the RS-232 serial port, 485 serial port or 422 serial port into a TCP / IP network interface, and use the MODBUS / TCP communication protocol to transmit the pipeline flow in the network port format.
[0040] As an optional implementation, the conversion module includes a hub and a serial port server; the hub is connected to the flow meter with communication function; the serial port server is connected to the hub.
[0041] The conversion modules are mainly serial port servers, 232 hubs, 485 hubs, etc.
[0042] The working principle and functions of the serial device server are as follows.
[0043] Provides serial port to network function. It can convert traditional RS-232, 485, 422 and other serial ports into TCP / IP network interfaces, and realize bidirectional transparent data transmission between serial ports and Ethernet.
[0044] Extend the communication distance. The serial device server enables serial devices to be connected to the network, thereby enabling remote communication, greatly extending the communication distance of serial devices.
[0045] Remote control. Users can remotely operate serial devices without physical connection. Data transmission and acquisition. Serial devices support data transmission and acquisition between serial devices and the network, making it easier for users to process and analyze data. Internet-based devices. By connecting to the network, serial devices can be more easily integrated into the Internet system to achieve data sharing and collaborative work.
[0046] The MODBUS / TCP protocol is issued as a (practical) automation standard. The Modbus protocol is a general communication protocol that has been widely used in today's industrial control field. Through this protocol, controllers can communicate with each other, or controllers can communicate with other devices via a network (such as Ethernet). The Modbus protocol uses master-slave communication technology, that is, the master device actively queries and operates the slave device. Generally, the protocol used by the master device is called Modbus Master, and the protocol used by the slave device is called Modbus Slave. Typical master devices include industrial computers and industrial controllers; typical slave devices include PLC programmable controllers. The communication physical interface that uses the Modbus protocol for communication can be a serial port (including RS232 and RS485) or an Ethernet port. Its communication follows the following process: the master device (Master) sends a request to the slave device-the slave device (Slave) analyzes and processes the request of the master device, and then sends the result to the master device. For example: Figure 2As shown, the computer 1 in the workstation of the present invention, as the server in the MODBUS / TCP protocol (as the Master in the MODBUS / TCP protocol), sends a request to read data to the flow meter (as the Slave in the MODBUS / TCP protocol) through the configuration software. After receiving the request from the computer, the flow meter (as the Slave in the MODBUS / TCP protocol) analyzes the message sent by the computer (as the Master in the MODBUS / TCP protocol) and sends the requested data to the corresponding port of the computer 1 in the format specified by MODBUS / TCP. Then, the computer 1 converts the data of the computer port to the designated virtual serial port through the virtual serial port software for reading and display.
[0047] The network device is connected to the conversion module; the plurality of workstations are respectively connected to the conversion module and the network device; the workstation is used to read the pipeline flow in the network port format and store it.
[0048] As an optional implementation, the network device includes an industrial switch and a firewall; the industrial switch is connected to the serial port server; and the firewall is connected to the industrial switch and the workstation respectively.
[0049] The network of each workstation is based on Internet technology and connected through industrial switches. The computers of each workstation and all communication flow meters and serial port servers form a local area network.
[0050] As an optional implementation, the workstation includes a plurality of computers; the computers are installed with configuration software, virtual serial port software and a database.
[0051] The virtual serial port software is connected to the serial port server; the virtual serial port software is used to convert the pipeline traffic in the network port format into the pipeline traffic in the serial port format. The virtual serial port software is connected to the serial port server via TCP / IP or virtual serial port.
[0052] The configuration software is connected to the virtual serial port software; the configuration software is used to read the pipeline flow using the MODBUS / TCP communication protocol.
[0053] The database is connected to the configuration software; the database is used to store the flow data.
[0054] In actual applications, the workstation is mainly composed of computers equipped with configuration software, virtual serial port software, and databases. Configuration software mainly refers to general configuration software and virtual serial port software. Virtual serial port software can establish a connection between the configuration software on the computer equipped with the configuration software and the serial port server through TCP / IP or virtual serial port. After that, any data sent by the serial port server will be transparently transmitted to the configuration software of the computer, and the data sent by the configuration software to the serial port server through the network will also be transparently transmitted to the serial port device. Configure the communication protocol that matches the serial port server in the configuration software. For example: the device in the serial port server uses the MODBUS / TCP protocol for communication. Create a new device using MODBUS / TCP in the workstation computer configuration software, configure the corresponding parameters, and the data collected by the flow meter (such as instantaneous flow, cumulative flow, etc.) can be read into the configuration system for storage, display and monitoring. Through the configuration system and the database, the data read from the serial port server in the computer is stored in the database regularly, completing the entire process of long-distance monitoring of the flow meter data.
[0055] The specific data transmission process is as follows: Figure 3 shown.
[0056] The sensor of the flow meter collects the flow data of the pipeline. The non-standard communication serial ports of multiple flow meters are first collected through a hub, and then uniformly connected to the channel specified by the serial server (for example: 232 physical serial port corresponds to 232 channel, 485 physical serial port corresponds to 485 channel). Set the communication mode of the serial server to the serial server MODBUS / TCP communication protocol. The RJ45 network port of the serial server is used to form a network with industrial switches, firewalls, and workstation computers. By installing the virtual serial port software in the workstation computer, the data in the network port format is converted into data in the serial port format, and then the data of the flow meter is read according to the MODBUS / TCP protocol by installing the configuration software. Finally, the configuration software writes the read data to the database for storage, realizing long-distance two-way transparent transmission of data between the flow meter with communication function and multiple monitoring computers.
[0057] The present invention can effectively solve the problem that multiple master station nodes cannot read slave station devices in real time during long-distance communication of the flow meter and the communication is not in the standard industrial control protocol.
[0058] The data collected by a single flow meter can be used by multiple master servers to read and store data simultaneously, realizing long-distance communication. A single workstation can also read multiple flow meters with communication functions, greatly improving the availability of pipeline network flow meter data. And the distance between the flow meter and the workstation is not limited.
[0059] It is used for data collection of most brands of flow meters on the market. It can convert serial ports and non-standard communication protocols of various new and old brands of flow meters on the market into more stable RJ45 network ports and standard universal ModbusTCP protocols for communication, improving the uniformity of long-distance communication of flow meters and solving the problem of incompatibility between communication ports or communication protocols and configuration software.
[0060] Traditional serial port devices use weak current (4-20mA) for transmission, which is easily interfered by other high-voltage devices during long-distance transmission. In addition, the communication used for production monitoring has high requirements and quality for main sentence transmission and fast response speed. This communication solution converts traditional serial port devices into RJ45 network port communication. The data collected by network port communication has stronger anti-interference ability than serial port communication, and the data transmission process is more stable, reliable and accurate.
[0061] Economical. Realize real-time data collection from slave devices by multiple master sites. Accessories are purchased separately and are all commercially available. No special customization is required, and the subsequent maintenance cost is low.
[0062] Strong scalability. In the future, you can continue to add workstations, flow meters, serial port servers and other industrial equipment with communication functions according to work needs to meet self-maintenance requirements.
[0063] Strong communication stability. Using network port instead of traditional serial port communication makes the collected data more stable, safe and accurate.
[0064] Strong applicability. Suitable for most brands of flow meters on the market and remote data communications with industrial control communication ports.
[0065] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0066] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A communication system for a flow meter with communication function, It is characterized in that include: Flow meters, conversion modules, network equipment and multiple workstations with communication capabilities; The flow meter with communication function is used to collect pipeline flow; The conversion module is connected to the flow meter with communication function; the conversion module is used to convert the RS-232 serial port, 485 serial port or 422 serial port into a TCP / IP network interface, and use the MODBUS / TCP communication protocol to transmit the pipeline flow in the network port format; The network device is connected to the conversion module; the plurality of workstations are respectively connected to the conversion module and the network device; the workstation is used to read the pipeline flow in the network port format and store it.
2. The communication system of the flow meter with communication function according to claim 1, It is characterized in that The conversion module includes a hub and a serial port server; the hub is connected to the flow meter with communication function; the serial port server is connected to the hub.
3. The communication system of the flow meter with communication function according to claim 2, It is characterized in that The workstation includes a plurality of computers; the computers are equipped with configuration software, virtual serial port software and a database; The virtual serial port software is connected to the serial port server; the virtual serial port software is used to convert the pipeline flow in the network port format into the pipeline flow in the serial port format; The configuration software is connected with the virtual serial port software; The configuration software is used to read the pipeline flow using the MODBUS / TCP communication protocol; The database is connected with the configuration software; The database is used to store the traffic data.
4. The communication system of the flow meter with communication function according to claim 3, It is characterized in that The virtual serial port software is connected to the serial port server via TCP / IP or virtual serial port.
5. The communication system of the flow meter with communication function according to claim 1, It is characterized in that The network device includes an industrial switch and a firewall; the industrial switch is connected to the serial port server; the firewall is connected to the industrial switch and the workstation respectively.
