Communication method and system for industrial control network and office extranet
By using the SCADA system in the industrial control system to obtain data and convert it to Modbus RTU format, and send it to the office external network through the RS232 serial port link, it solves the problem of network security threats and information interaction complexity of industrial control systems, and achieves security and real-time And highly accurate data exchange.
Patent Information
- Application Number
- CN202310640307.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-01
- Publication Date
- 2024-12-03
AI Technical Summary
Industrial control systems face cybersecurity threats. The existing isolation methods are costly, technically difficult, and do not support interactive access. In addition, the industrial control real-time database lacks Modbus RTU data interface, resulting in cumbersome information interaction and high error rate.
By using the SCADA system real-time database in the industrial control network to obtain production site data, convert it to Modbus RTU format, and send it to the Modbus RTU main server of the office external network through the RS232 serial port link, the Modbus RTU protocol is used to realize cross-platform and cross-data data. Network exchange, data release is carried out in combination with WEB Service.
It realizes the reduction of costs, labor costs, and operational technology difficulties while ensuring communication security, supports interactive access, small data delay and high accuracy, avoids network security risks and facilitates system expansion.
Smart Images

Figure CN119071314A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of industrial automatic control, and in particular relates to a communication method and system between an industrial control network and an office extranet. Background Art
[0002] In the past few decades, the pace of technological innovation in the field of industrial automation has been accelerating. At the same time, with the development of modern information technology, new technologies such as smart factories, cloud computing and Industry 4.0 have been introduced in the field of industrial automation, which has promoted the digitalization and intelligence of modern industry. Industrial control systems are deeply integrated with industrial Internet of Things and the Internet. While improving the intelligence and informationization of industrial control systems, they have also triggered a series of security challenges. The basis of Industry 4.0 is that manufacturing, utilities, mining, and oil and gas are experiencing the fourth industrial revolution. Its core concept is that physical equipment, machines and processes can be strictly controlled and better operated by combining them with network systems, industrial Internet, cloud computing, artificial intelligence, machine learning and other related technologies.
[0003] In order to adapt to the trend of modern industrial automatic control, the data exchange between the equipment and production information in the industrial automatic control network and the external business network is essential. In the past, industrial control systems used proprietary hardware systems and software systems based on the fieldbus technology of industrial control to interconnect and communicate with various production equipment. In the mid-1990s, general Ethernet technology and Microsoft's Windows operating system were introduced into industrial control systems, and then a simple and practical OPC interface based on TCP / IP protocol was developed, making the information interconnection and exchange of various production equipment more convenient, but at the cost of greater security threats to industrial control networks. With the popularization of the Internet in my country and the rapid development and application of new technologies and new businesses such as industrial Internet, big data, and digital engineering, the security issues faced by my country in industrial control systems are becoming increasingly complex. The network security threats and risks faced by industrial control systems are constantly increasing, posing serious potential security threats to cyberspace security and constantly posing new challenges to the security of my country's industrial control network systems.
[0004] Therefore, when the industrial control network was designed, it was required to be a relatively independent network system that was physically or logically isolated from external networks such as office business. External networks cannot directly access the industrial control network. Similarly, the industrial control network cannot directly exchange data with the office business network. With the development of enterprise informatization and intelligence, real-time production data is required. In order to ensure the security of industrial control networks, several methods of network isolation and data exchange have been developed. Traditional firewall isolation is a relatively easy method. Although firewalls help to limit the flow in and out of designated areas and some network function restrictions, most firewalls are based on arbitrary Internet protocol and other IP addresses. Under the protection of the firewall, devices can still communicate horizontally, and other visitors on the same network can find the computer, and there is still a potential risk of being attacked. Or a network gate system is used to transmit data through a ferry, but the network gate only supports static data exchange, not interactive access, and the deployment of the network gate also requires proprietary communication protocols and a limited number of databases to support it, and the project cost is also very high. In addition, the configuration of the network gate or firewall has high business requirements for technicians. Any misconfiguration will have catastrophic consequences for the industrial control network, and equipment maintenance also requires professionals, which is difficult.
[0005] Alternatively, manual media copying may be used. Manual copying seems foolproof but is costly, has poor real-time performance, and a high error rate. In order to ensure the security of the two network connections while ensuring information exchange, how to choose isolation methods to isolate the industrial control network from external networks such as office business networks while performing necessary communications.
[0006] Based on the above-mentioned existing technologies, the following problems exist: the current industrial control real-time database does not have a Modbus RTU data interface, but is based on network-based OPC protocols and other data interfaces; the existing technology does not support interactive access or the information interaction process is cumbersome and has a high error rate; it has high business requirements for professional and technical personnel and the project cost is relatively high. Summary of the invention
[0007] In view of the above problems, the present invention proposes a communication method and system for an industrial control network and an office extranet, which can realize interactive access under the premise of ensuring communication security, reduce costs, save labor costs and reduce the difficulty of operation technology.
[0008] A communication method between an industrial control network and an office extranet, comprising:
[0009] In the industrial control network, real-time data of the production site is obtained through the real-time database server of the SCADA system of the control center, a real-time computer memory database is established, and the real-time data is stored in the real-time computer memory database;
[0010] The real-time computer memory data is read through the OPC server, and the real-time data protocol is converted into real-time data in Modbus RTU format, and sent to the Modbus RTU slave server;
[0011] The Modbus RTU slave server receives the real-time data, and sends the real-time data to a Modbus RTU master server deployed in an external office network through an RS232 serial port link;
[0012] The Modbus RTU master server writes the real-time data to the application data server for storage, and publishes it to the WEB Service server in the WEB Service mode.
[0013] Furthermore, within the industrial control network, real-time data of the production site is obtained through the real-time database server of the SCADA system of the control center, a real-time computer memory database is established and the real-time data is stored in the real-time computer memory database, including: collecting real-time production data on site according to the original on-site real-time database server and establishing a computer memory database.
[0014] Furthermore, the real-time computer memory data is read through the OPC server, and the real-time data is converted into real-time data in Modbus RTU format by data protocol, and sent to the Modbus RTU slave server, including: converting and sending the real-time computer memory data to the Modbus RTU slave server through the OPC protocol; wherein the OPC protocol is a network protocol based on TCP / IP.
[0015] Furthermore, the Modbus RTU slave server receives the real-time data, and sends the real-time data to a Modbus RTU master server deployed in an external office network through an RS232 serial port link, including: converting the real-time data into a Modbus RTU protocol format through the Modbus RTU slave server, and sending the real-time data to the Modbus RTU master server in the Modbus RTU protocol format.
[0016] Further, the method further comprises: sending the real-time data to the Modbus RTU master server by establishing a communication connection between the Modbus RTU slave server and the Modbus RTU master server;
[0017] The Modbus RTU slave server includes at least one RS232 COM serial port which establishes a physical connection with at least one RS232 COM serial port on the Modbus RTU master server.
[0018] Furthermore, the Modbus RTU master server writes the real-time data to the application data server for storage, and publishes it to the WEB Service server in a WEB Service manner, including: the application data server stores the real-time data as a historical data server.
[0019] Furthermore, the method also includes: the application data server can also serve as a WEB Service server, and after the application of the Modbus RTU master server obtains the real-time data, the real-time data is published to the WEB Service server in the form of WEBService.
[0020] Based on the same inventive concept, the present invention also provides a communication system for an industrial control network and an office extranet, comprising: an industrial control network layer and an intermediate network layer;
[0021] The industrial control network layer is used to obtain real-time data of the production site through the real-time database server of the SCADA system of the control center in the industrial control network, establish a real-time computer memory database and store the real-time data in the real-time computer memory database; read the real-time computer memory data through the OPC server, and convert the real-time data protocol into real-time data in Modbus RTU format, and send it to the Modbus RTU slave server;
[0022] The intermediate network layer is used for the Modbus RTU slave server to receive the real-time data, and to send the real-time data to the Modbus RTU master server deployed in the external office network through the RS232 serial port link; the Modbus RTU master server writes the real-time data to the application data server for storage, and publishes it to the WEB Service server in WEBService mode.
[0023] Furthermore, the system also includes: an office application network layer, a firewall is arranged between the office application network layer and the intermediate network layer, the office application network layer includes an office business server, and the office business server obtains real-time data through RS232 COM serial port communication.
[0024] Based on the same inventive concept, the present invention also provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0025] Memory for storing computer programs;
[0026] The processor is used to implement the method described in a communication method between an industrial control network and an office extranet when executing the program stored in the memory.
[0027] Based on the same inventive concept, the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in a communication method between an industrial control network and an office extranet is implemented.
[0028] Based on the above solution, the present invention has at least one of the following technical effects:
[0029] (1) The present invention can convert all industrial control real-time database data into Modbus RTU protocol.
[0030] (2) The present invention utilizes the Modbus RTU protocol to realize the encapsulation of real-time data, which can realize cross-platform and cross-network data exchange, breaking through the limitations of traditional industrial communication protocols such as OPC DA on cross-platform and cross-network data communication.
[0031] (3) The present invention utilizes the serial communication data interface function of RS232, which is a very mature technology in the field of industrial control and is widely used. It does not require complex application configuration, facilitates the interface between third-party application management software and field equipment data, and saves costs.
[0032] (4) The present invention utilizes RS232 serial link to carry out communication technology across the industrial control network and the external network, getting rid of the traditional Ethernet-based interconnection means, and completely avoiding the network security risk when the industrial control network exchanges data with the external network. The RS232 serial link does not have a routing function and cannot run various network protocols and commands based on TCP / IP, thus avoiding the risk of attacks on the industrial control network, preventing virus invasion in the office management network or man-made attacks on the industrial control network, and improving network security.
[0033] (5) The present invention utilizes the Modbus RTU protocol for data communication, which can fully guarantee the real-time nature of on-site production data and has the characteristics of small data delay and high data accuracy.
[0034] (6) The present invention utilizes the Modbus RTU protocol and existing hardware equipment for protocol conversion, which can be converted into the Modbus TCP protocol, etc., and utilizes network light for communication, which is convenient for remote uploading of data and easy for system expansion.
[0035] The present invention not only ensures the data exchange between the industrial control network and the office application network, but also ensures the security of the industrial control network and the real-time and correctness of the data transmission in the field operation. At the same time, the application of the Modbus RTU protocol also makes the system easier to expand and realize the remote transmission of data.
[0036] Other features and advantages of the present invention will be described in the following description, and partly become obvious from the description, or be understood by implementing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are 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.
[0038] Figure 1 A schematic flow chart of the communication method of the present invention is shown;
[0039] Figure 2 A schematic diagram of the network topology of the present invention is shown;
[0040] Figure 3 The logical direction of real-time data transmission and a schematic diagram of data processing used in the present invention are shown;
[0041] Figure 4 A schematic diagram of an electronic device of the present invention is shown. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0043] It should be noted that the terms "first", "second" etc. in the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged in appropriate circumstances, so that the embodiments of the present application described here. In the present application, the orientation or positional relationship indicated by the terms "upper", "lower", "left", "right", "front", "back", "top", "bottom", "inside", "outside", "middle", "vertical", "horizontal", "lateral", "longitudinal" etc. are based on the orientation or positional relationship shown in the accompanying drawings.
[0044] The present invention provides a communication method and system for an industrial control network and an office external network, and based on the communication of the ModbusRTU protocol, a method for exchanging data between industrial control production data and a business application system in a WEBService manner is used, and a method for securely isolating the industrial control network from the external network is implemented at the same time.
[0045] RS232 interface is an interface device widely used in the field of industrial control. It is used to connect computer serial interface peripherals, connect cables and mechanical, electrical characteristics, signal functions and transmission processes. At the same time, the ModbusRTU protocol used in conjunction has become a widely used industrial bus in the field of industrial control. RS232 serial communication is a controlled logical communication method. It does not have network routing functions and cannot run or accept commands or instructions on the Ethernet-based TCP / IP protocol. It is absolutely safe and free from external network attacks. In RS232, user data is sent as a time series of bits. The standard supports synchronous and asynchronous transmission. The RS232 interface sends and receives data in separate circuits. The interface can operate in full-duplex mode and supports bidirectional concurrent data streams.
[0046] A specific embodiment of the present invention is a communication method between an industrial control network and an office extranet, comprising:
[0047] See also Figure 1 , in the industrial control network, obtaining real-time data of the production site through the real-time database server of the SCADA system of the control center, establishing a real-time computer memory database and storing the real-time data in the real-time computer memory database;
[0048] The real-time computer memory data is read through the OPC server, and the real-time data protocol is converted into real-time data in Modbus RTU format, and sent to the Modbus RTU slave server;
[0049] The Modbus RTU slave server receives the real-time data, and sends the real-time data to a Modbus RTU master server deployed in an external office network through an RS232 serial port link;
[0050] The Modbus RTU master server writes the real-time data to the application data server for storage, and publishes it to the WEB Service server in the WEB Service mode.
[0051] In some optional embodiments, within the industrial control network, real-time data of the production site is obtained through the real-time database server of the SCADA system of the control center, a real-time computer memory database is established and the real-time data is stored in the real-time computer memory database, including: collecting real-time production data on site according to the original on-site real-time database server and establishing a computer memory database.
[0052] It should be noted that the ModbusRTU protocol is an open serial protocol that is widely used in today's industrial monitoring equipment. The protocol uses RS232 or RS485 serial interfaces for communication and is supported by almost all commercial SCADA, HMI, OPC servers and data acquisition software programs on the market. Therefore, it is easy to integrate Modbus compatible devices into new or existing monitoring applications with immediate software support. In addition, the ModbusRTU protocol uses master / slave technology to communicate between devices. In this invention, the slave station of ModbusRTU is a protocol conversion server located in the SCADA control system, and the master station is a data receiving server located in the middle network layer. WebService is a remote call technology that crosses programming languages and operating system platforms. It is an independent data communication technology that can receive requests transmitted from other systems on the Internet or Intranet. It enables applications running on different machines to complete data exchange without the help of additional, dedicated software or hardware. It is a service that can access data across networks. Moreover, WebService is also an important branch of Web applications. Once deployed on the server, other applications can discover and call the various functional modules it publishes. It is a new technology for constructing distributed, modular applications and service-oriented Web application system integration.
[0053] In some optional embodiments, see Figure 2, the real-time computer memory data is read through the OPC server, and the real-time data is converted into real-time data in Modbus RTU format by data protocol, and sent to the Modbus RTU slave server, including: converting and sending the real-time computer memory data to the Modbus RTU slave server through the OPC protocol, wherein the OPC protocol is a network protocol based on TCP / IP. The real-time database server is the data source of the present invention, and the Modbus RTU slave server can be regarded as a data interface to the external network.
[0054] Specifically, the real-time database server can rely on the original on-site real-time database server, located in the industrial control network segment, and is responsible for collecting various real-time data of on-site production for operator station screen display such as scheduling production operations. The real-time database server provides external data interfaces, such as OPC, ODBC, etc., so that other applications can read real-time data on site. The OPC server, as the external data interface of the real-time database, is mainly used to reduce the load of the real-time data server and avoid the online configuration of the project affecting normal production.
[0055] Specifically, the Modbus RTU slave server receives the real-time data and sends the real-time data to the Modbus RTU master server, including: converting the real-time data into a Modbus RTU protocol format by the Modbus RTU slave server, and sending the real-time data to the Modbus RTU master server in the Modbus RTU protocol format.
[0056] In some optional embodiments, the Modbus RTU slave server receives the real-time data, and sends the real-time data to a Modbus RTU master server deployed in an external office network via an RS232 serial port link, including: converting the real-time data into a Modbus RTU protocol format via the Modbus RTU slave server, and sending the real-time data to the Modbus RTU master server in the Modbus RTU protocol format.
[0057] The communication connection established between the Modbus RTU slave server and the Modbus RTU master server includes: at least one RS232 COM serial port on the Modbus RTU slave server establishes a physical connection with at least one RS232 COM serial port on the Modbus RTU master server.
[0058] Specifically, the Modbus RTU slave server, because the OPC protocol is a network protocol based on TCP / IP, and most of the real-time database servers do not provide a data communication protocol based on a serial port, such as Modbus RTU, etc., therefore, a Modbus RTU slave server is arranged in this industrial control network, utilizing existing real-time database interface protocols, such as OPC or ODBC, etc., to read real-time production data, and data are packaged into the communication format of the Modbus RTU protocol, providing an external interface for real-time data. This server includes a COM serial port of RS232, which is responsible for being physically connected to the RS232 COM port corresponding to the Modbus RTU master station of the intermediate network layer, as a communication link for data exchange. As the data source of the present invention, the Modbus RTU slave server can be regarded as a data interface to an external network.
[0059] In some optional embodiments, the Modbus RTU master server writes the real-time data to the application data server for storage, and publishes it to the WEB Service server in the form of WEB Service, including: the application data server stores the real-time data as a historical data server. The method also includes: the application data server can also serve as a WEB Service server, and when the application of the Modbus RTU master server obtains the real-time data, it publishes the real-time data to the WEB Service server in the form of WEB Service.
[0060] It should be noted that the Modbus RTU master server described in the present invention has the main function of querying the required real-time production data from the Modbus RTU slave station of the above-mentioned industrial control network layer, writing it into the WEBService application of the application data server, and accepting the function of sending relevant commands to the Modbus RTU slave station. This server includes an RS232 COM serial port, which is responsible for physically connecting the RS232 COM port corresponding to the Modbus RTU slave station of the industrial control network segment as a communication link for data exchange. The application data server mainly stores the received real-time data, and can be used as a historical data server, and can also be used as a server for online statistical analysis of data. In addition, the server also serves as a WEB Service server. After the application of the Modbus RTU master server obtains real-time data, the data can be stored in the application data server as needed, and all data can be published to the application data server in the form of WEB Service for external office applications to read data.
[0061] Based on the same inventive concept, the present invention also provides a communication system between an industrial control network and an office extranet, see Figure 3 , including: industrial control network layer and intermediate network layer;
[0062] The industrial control network layer is used to obtain real-time data of the production site through the real-time database server of the SCADA system of the control center in the industrial control network, establish a real-time computer memory database and store the real-time data in the real-time computer memory database; read the real-time computer memory data through the OPC server, and convert the real-time data protocol into real-time data in Modbus RTU format, and send it to the Modbus RTU slave server;
[0063] The intermediate network layer is used for the Modbus RTU slave server to receive the real-time data, and to send the real-time data to the Modbus RTU master server deployed in the external office network through the RS232 serial port link; the Modbus RTU master server writes the real-time data to the application data server for storage, and publishes it to the WEB Service server in WEBService mode.
[0064] In some optional embodiments, the system also includes: an office application network layer, a firewall is provided between the office application network layer and the intermediate network layer, the office application network layer includes an office business server, and the office business server obtains real-time data through RS232 COM serial port communication.
[0065] Specifically, this layer is mainly the layer where the servers of business applications are located. When real-time data is published in the middle network layer in the form of WEB Service, the applications located in this layer can read and obtain real-time production data; the firewall configuration of the middle network layer is combined with the RS232 serial port communication to build the communication architecture of the external network data communication of the industrial control network, solving the network security of the industrial control network when communicating with the external network.
[0066] Based on the same inventive concept, the invention also provides an electronic device, see Figure 4 , including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0067] Memory for storing computer programs;
[0068] The processor is used to implement the above-mentioned communication method between the industrial control network and the office extranet when executing the program stored in the memory.
[0069] The above communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
[0070] The communication interface is used for communication between the above electronic device and other devices.
[0071] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0072] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0073] Based on the same inventive concept, the invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, a communication method between an industrial control network and an office extranet is implemented.
[0074] The computer-readable storage medium may be included in the device / apparatus described in the above embodiment; or it may exist independently without being assembled into the device / apparatus. The above computer-readable storage medium carries one or more programs. When the above one or more programs are executed, a communication method between an industrial control network and an office extranet according to an embodiment of the present disclosure is implemented.
[0075] The present invention is based on a communication method between an industrial control network and an office external network of a serial port. Figure 2 and Figure 3 The present invention is described in detail with reference to the accompanying drawings and specific processes.
[0076] like Figure 1 As shown, the network structure of the present invention can be divided into three layers, namely, the industrial control network layer, the intermediate network layer and the office application network layer from bottom to top. It includes the industrial control system server real-time database, OPC server, Modbus RTUSlave server, protocol conversion Modbus RTU Master server, application data server and WEB Service server and office program server. The industrial control system server real-time database uses the RTRDB real-time database developed by ABB, which is responsible for the collection and processing of real-time data on the production site. An OPC server is also configured in the industrial control system, on which the OPC Server program (ABB.SCADAvantage.OPCDA.1) is installed. The specific implementation steps of this example are as follows:
[0077] S1: Make a COM interface and twisted pair communication cable for RS232 communication. In the present invention, the operating system of the Modbus RTU Slave and Modbus RTU Master servers is Windows 2008R2Server, and the server uses an HP server with 16G physical memory. The server has a COM serial port in terms of hardware, but this serial port is used for system recovery and configuration in an emergency, and this serial port cannot be used externally. In the present invention, a USB to RS232 DB9 serial port adapter is used. This conversion adapter does not require special program installation and configuration, and can be plug-and-play. If it is a serial port built into the server motherboard, when encountering a fault or other problem, the server needs to be powered off and restarted. The twisted pair must have a shielding layer, and the wiring method is cross-wiring, that is, line number 2 and line number 3 are cross-wired.
[0078] S2: After completing the twisted pair cable, plug one end into any USB port of the Modbus RTU Slave and the other end into any USB port of the Modbus RTU Master.
[0079] S3: After the server and the device are powered on, the IP address of the intermediate network layer is configured, and the system firewall is set up to achieve connectivity between the intermediate network and the office application network layer.
[0080] S4: Check the port number of the virtual serial port of the USB to RS232 port adapter on the Modbus RTU Slave and Modbus RTU Master servers. In this example, the port number on both ends is COM4, and confirm that the port is installed and working properly.
[0081] S5: Install the OPC to Modbus RTU Slave program module on the Modbus RTU Slave server, select COM4 for the COM serial port, 201600 for the baud rate, 8 data bits, no parity check, and 1 stop bit. At the same time, import the OPC bit number of the data to be transmitted into the module.
[0082] S6: Install the Modbus RTU master program module on the Modbus RTU Master server, select COM4 for the COM serial port, 201600 for the baud rate, 8 data bits, no parity check, and 1 stop bit. At the same time, import the OPC bit number of the data to be transmitted into the module. This configuration must be consistent with the COM port settings at both ends.
[0083] S7: On the server of Modbus RTU Slave, according to the OPC workstations just imported, configure the Modbus address of each workstation, where the analog quantity is configured as the write input register address of Modbus 03 function, the register address is 2 bits, and the analog quantity that needs external input is configured as the read-write register address of 04 function, the register address is 2 bits. The digital quantity is configured as the digital quantity register address of Modbus 02 function, and the digital input quantity is configured as the read-write coil status address of 01 function. After the allocation is completed, import the mapping table of the workstation number and Modbus address just allocated on the Modbus RTU Master server, so that Modbus RTU Slave and Modbus RTU Master have the same Modbus address mapping table.
[0084] S8: On the application data server and WEB Service server, run the SQL Server database to store historical data, configure the WEB website, and provide a WEB Service site so that the real-time data read by the Modbus RTU Master can be published in the WEB Service mode and exchange data with the office application server.
[0085] After completing the installation and configuration of the above program modules, real-time data can be read in the office application network, and write operations can be completed on some software data points according to business requirements.
[0086] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0087] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A communication method between an industrial control network and an office extranet, characterized in that: include: In the industrial control network, real-time data of the production site is obtained through the real-time database server of the SCADA system of the control center, a real-time computer memory database is established, and the real-time data is stored in the real-time computer memory database; The real-time computer memory data is read through the OPC server, and the real-time data protocol is converted into real-time data in ModbusRTU format, and sent to the ModbusRTU slave server; The ModbusRTU slave server receives the real-time data, and sends the real-time data to a ModbusRTU master server deployed in an external office network through an RS232 serial port link; The ModbusRTU master server writes the real-time data to the application data server for storage, and publishes it to the WEBService server in a WEBService manner.
2. The communication method according to claim 1, characterized in that: The method comprises: acquiring real-time data of the production site through the real-time database server of the SCADA system of the control center in the industrial control network, establishing a real-time computer memory database and storing the real-time data in the real-time computer memory database, including: collecting real-time production data on site according to the original real-time database server on site and establishing a computer memory database.
3. The communication method according to claim 1, characterized in that: The method of reading the real-time computer memory data through the OPC server, converting the real-time data protocol into real-time data in ModbusRTU format, and sending the real-time data to the ModbusRTU slave server includes: converting and sending the real-time computer memory data to the ModbusRTU slave server through the OPC protocol; wherein the OPC protocol is a network protocol based on TCP / IP.
4. The communication method according to claim 1 or 3, characterized in that: The ModbusRTU slave server receives the real-time data, and sends the real-time data to a ModbusRTU master server deployed in an external office network through an RS232 serial port link, including: converting the real-time data into a ModbusRTU protocol format through the ModbusRTU slave server, and sending the real-time data to the ModbusRTU master server in the ModbusRTU protocol format.
5. The communication method according to claim 4, characterized in that: The method further comprises: sending the real-time data to the ModbusRTU master server by establishing a communication connection between the ModbusRTU slave server and the ModbusRTU master server; The ModbusRTU slave server includes at least one RS232 COM serial port which establishes a physical connection with at least one RS232 COM serial port on the ModbusRTU master server.
6. The communication method according to claim 1, characterized in that: The ModbusRTU master server writes the real-time data to the application data server for storage, and publishes it to the WEBService server in a WEB Service manner, including: the application data server stores the real-time data as a historical data server.
7. The method according to claim 1 or 6, characterized in that: The method also includes: the application data server can also serve as a WEBService server, and after the application program of the ModbusRTU master server obtains the real-time data, the real-time data is published to the WEBService server in a WEBService manner.
8. A communication system between an industrial control network and an office extranet, characterized in that: include: Industrial control network layer and intermediate network layer; The industrial control network layer is used to obtain real-time data of the production site through the real-time database server of the SCADA system of the control center in the industrial control network, establish a real-time computer memory database and store the real-time data in the real-time computer memory database; The real-time computer memory data is read through the OPC server, and the real-time data protocol is converted into real-time data in ModbusRTU format, and sent to the ModbusRTU slave server; The intermediate network layer is used for the ModbusRTU slave server to receive the real-time data, and send the real-time data to the ModbusRTU master server deployed in the external office network through the RS232 serial port link; the ModbusRTU master server writes the real-time data to the application data server for storage, and publishes it to the WEB Service server in WEBService mode.
9. The communication system according to claim 8, characterized in that: Also includes: An office application network layer, wherein a firewall is arranged between the office application network layer and the intermediate network layer, wherein the office application network layer comprises an office business server, and the office business server obtains real-time data through RS232 COM serial port communication.
10. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; A processor, configured to implement the method according to any one of claims 1 to 7 when executing a program stored in a memory.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
