Natural gas component data synchronization method and system

By using chromatographic analyzer, component data management PLC and VPN server in the natural gas component data synchronization system, combined with 5G wireless communication, the problems of low coverage and low real-time performance of the existing system are solved, and efficient and secure groups are achieved Synchronization of data reduces fault points and maintenance costs.

CN119094535APending Publication Date: 2024-12-06SUPCON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410679196.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing natural gas component data transmission system has problems such as few coverage, inflexible networking, low real-time, low security, many failure points, complex structure and high cost.

Method used

Adopt a natural gas component data synchronization system including chromatography analyzer, component data management PLC and VPN server, synchronize and manage component data through 5G wireless communication equipment, adopt clear steps and processes to synchronize data, and configure multiple industrial blocks. Communication card and human-computer interaction module, using VPN technology for data encryption.

Benefits of technology

The data synchronization of natural gas component data with flexible networking, wide coverage, strong real-time, simple system structure, few fault points, easy maintenance and high safety is achieved, improving the accuracy and security of data transmission and reducing maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094535A_ABST
    Figure CN119094535A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of digital information transmission, in particular to a device for selectively calling a remote control or telemetering system of a branch office from a main office. The device comprises trunk line station equipment which comprises a chromatographic analyzer, a component data management PLC (programmable logic controller) and a VPN (virtual private network) server, one end of the component data management PLC is connected with the chromatographic analyzer, and the other end of the component data management PLC is connected with the VPN server; and the far-end metering equipment comprises at least one set of flow computer and at least one set of 5G wireless communication equipment, and the 5G wireless communication equipment is wirelessly connected with the VPN server. According to the natural gas component data synchronization method and system provided by the invention, the problems of small coverage, inflexible networking, low real-time performance, low safety, multiple fault points, complex structure and high cost are solved, and the purposes of flexible networking, wide coverage, high real-time performance, simple system structure, component data synchronization, few fault points, easy maintenance and high safety are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital information transmission, and more particularly to a device for a remote control or telemetry system for selectively calling a branch office from a main office. Background Art

[0002] In recent years, natural gas transmission pipelines, a form of natural gas transportation, have been rapidly popularized in my country. The use of unified gas source natural gas trunk lines, natural gas trunk sub-pipelines, and urban gas gate stations all involve natural gas metering and metering comparison issues. Natural gas component data is an indispensable metering parameter in natural gas metering, which has an important impact on metering accuracy. At present, the metering component data of natural gas stations at all levels are automatically updated. Generally, a component data forwarding server (calorific value management server) is set up in the control center of the natural gas pipeline. Through the data forwarding device, the component data is sent to the component forwarding server of the center through the pipeline link, and the component forwarding server sends it to the flow computer on the pipeline. For example, the Chinese patent with publication number CN113783954A discloses a component data transmission system and method for oil and gas pipelines, and provides the following technical solutions. This application provides a component data transmission system and method for oil and gas pipelines, which belongs to the technical field of oil and gas pipeline application software. In the system, each flow computer is respectively arranged at the station or the end user side; the acquisition device is connected to the forwarding device to obtain the component data of the oil and gas pipeline and send the component data to the forwarding device; the forwarding device is communicatively connected to the calorific value synchronization management server to send the component data to the calorific value synchronization management server; the calorific value synchronization management server is connected to multiple flow computers to pre-process the component data, and then send the pre-processed component data to the target flow computer in the multiple flow computers through the pipeline link; the target flow computer is used to perform flow calculation based on the pre-processed component data, obtain the flow calculation result, and output the flow calculation result. The present application can improve forwarding efficiency and reduce delay, and improve the uniformity of data transmission management. However, the above-mentioned oil and gas pipeline component data transmission system and method has multiple device nodes with relatively low system integration, resulting in more fault points. Summary of the invention

[0003] In view of the problems of small coverage, inflexible networking, low real-time performance, low safety, many fault points, complex structure and high cost described in the background technology, the present invention proposes a natural gas component data synchronization method and system, which achieves the purposes of flexible networking, wide coverage, strong real-time performance, simple system structure, component data synchronization, few fault points, easy maintenance and high safety.

[0004] To achieve the above object, the present invention adopts the following technical solution: a natural gas component data synchronization system, characterized in that it includes: Trunk station equipment, including a chromatographic analyzer, a component data management PLC and a VPN server, wherein one end of the component data management PLC is connected to the chromatographic analyzer, and the other end is connected to the VPN server; The remote metering device includes at least one set of flow computers and at least one set of 5G wireless communication equipment, and the 5G wireless communication equipment is wirelessly connected to the VPN server.

[0005] The advantage of this design is that the synchronization and management of natural gas composition data can be achieved through the combination of trunk station equipment and remote metering equipment.

[0006] A natural gas component data synchronization method, characterized by comprising the following steps: S1: After ensuring that the chromatograph analyzer and the component data management PLC are in normal status, the component data management PLC reads the component data of the chromatographic analysis; S2: After ensuring that the trunk station and the target flow computer are in normal status, select the method of sending the component data to the target flow computer; S3: Make a rationality judgment on the component data to be sent, send the reasonable component data, and finally judge whether the component data is sent successfully.

[0007] The advantage of this design is that natural gas composition data can be effectively synchronized and managed through clear steps and processes.

[0008] Preferably, the component data management PLC is configured with at least two industrial communication cards, one of which is directly connected to the chromatograph via a network cable to serve the reading of the component data of the chromatograph, and the rest is directly connected to the VPN server via a network cable and communicated with the flow computer to write the component data. The component data management PLC is connected to a human-computer interaction module.

[0009] The advantage of this design is that through the configuration of multiple industrial communication cards, efficient communication between the chromatograph and the flow computer can be achieved, thereby improving the efficiency of data synchronization.

[0010] Preferably, the 5G industrial communication device is provided with an operator's 5G SIM card, which serves as a client of the VPN server and can wirelessly access the operator's public network. The VPN server is externally connected to the operator's public network and an interface to the public network. The VPN server and each of the 5G industrial communication devices establish VPN tunnels in a point-to-multipoint manner to achieve communication links between the component data management PLC and the remote metering equipment.

[0011] The advantage of this design is that through 5G wireless communication, remote transmission and synchronization of component data can be achieved, improving the flexibility and convenience of the system.

[0012] Preferably, the component data management PLC establishes communication with the chromatograph through the industrial communication card using the industrial communication protocol to obtain the component data analyzed by the chromatograph, and sends the processed component data to the flow computer through the communication link established by VPN. The component data management PLC detects whether the communication status between the PLC and the chromatograph and the flow computer is normal by reading and sending the communication flag.

[0013] The advantage of this design is that accurate data transmission and communication stability can be ensured through the configuration of industrial communication cards and the detection of communication flags.

[0014] Preferably, the remote metering equipment includes at least two sets of flow computers and at least two sets of 5G wireless communication equipment, and the flow computer establishes a communication link with the 5G industrial communication device through the switch using a direct network cable.

[0015] The advantage of this design is that through the configuration of multiple flow computers and 5G wireless communication equipment, data synchronization of multiple metering points can be achieved, thereby improving the fault tolerance and reliability of the system.

[0016] Preferably, the step S1 comprises: S1.1: Determine whether the chromatograph is in normal working condition and has no fault alarm. If so, proceed to step S1.2; if not, proceed to step S1.3; S1.2: According to the communication flag status of each communication protocol, determine whether the communication between the component data management PLC and the chromatograph is normal and the delay is controllable. If so, proceed to step S1.4; if not, proceed to step S1.3; S1.3: alarm, manually troubleshoot the fault and its cause, and return to step S1.1; S1.4: Component data management The PLC establishes communication with the chromatograph through all its industrial communication cards using the industrial communication protocol to obtain the component data analyzed by the chromatograph.

[0017] The advantage of such a design is that, through specific step-by-step operations, the position of the test equipment can be accurately adjusted to ensure the accuracy and reliability of the test.

[0018] Preferably, step S3 comprises: S3.1: Determine whether the component data sent is within a reasonable range. If so, proceed to step S3.2; if not, proceed to step S3.3; S3.2: Perform a sum operation on the component data sent down to determine whether the sum of the component data sent down is within a reasonable range. If so, proceed to step S3.4; if not, proceed to step S3.3; S3.3: Alarm and manually troubleshoot the fault and its cause; S3.4: Component data management PLC converts the format of the component data sent down and sends it to the target flow computer; S3.5: By comparing the consistency of the component data read from the flow machine with the data sent by the component synchronization PLC, it is determined whether the component data is successfully written into the flow computer. If so, it proceeds to step S3.7. If not, it returns to step S3.4. If the number of times of no is greater than a certain number, it proceeds to step S3.6. S3.6: Issue an alarm and manually troubleshoot the fault and its cause; S3.7: The flow computer receives the component data sent down, triggers the update of the component data, and the flow computer performs metering based on the new component data.

[0019] The advantage of this design is that it can ensure the accuracy and completeness of the data sent and improve the reliability of data synchronization.

[0020] Preferably, the step S2 comprises: S2.1: Determine whether the target flow computer is in normal working condition and has no fault alarm. If so, proceed to step S2.2; if not, proceed to step S2.3; S2.2: Determine whether the communication between the trunk station and the target flow computer is normal and there is no fault alarm. If so, proceed to step S2.4; if not, proceed to step S2.3; S2.3: alarm, manually troubleshoot the fault and its cause, and return to step S2.1; S2.4: Select the method for sending component data to the target flow computer, including manual sending mode and automatic sending mode.

[0021] The advantage of this design is that it can detect communication status anomalies in advance and take corresponding measures to ensure the accuracy and reliability of data synchronization.

[0022] Preferably, the manual sending mode triggers the component data sending action through the human-computer interaction module to complete the component sending, and the method for obtaining the sent component data is to extract the component data obtained from the chromatograph in the component data management PLC or to manually fill in the component data; the automatic sending mode includes a time period automatic sending mode and a data change automatic sending mode. The time period automatic sending mode automatically sends component data to the target flow computer in a cycle according to the set time period, and the data change automatic sending mode triggers the automatic sending of components to the target flow computer according to changes in the component data. At the same time, according to the time delay caused by different situations, the delay time for automatic sending of component data is set.

[0023] The advantage of this design is that the distribution method can be freely selected according to different needs and scenarios, thereby improving the flexibility and intelligence of the system.

[0024] Compared with the prior art, the invention has the following beneficial effects.

[0025] 1. The chromatograph, component data management PLC, and flow computer are networked separately, and component data forwarding is not limited by the topological structure of the pipeline link.

[0026] 2. The chromatograph, component data management PLC, and flow computer are networked using 5G technology, which has low network latency, more real-time component data transmission, and more flexible networking. VPN technology is used to encrypt component data, providing better data security.

[0027] 3. There are only three device nodes in the component data forwarding process. Compared with the existing solutions, the system integration is relatively high and there are fewer failure points.

[0028] 4. Complete protocol conversion, data format conversion, and preset forwarding strategies on the component data management PLC, embed equipment failures, link failures, and communication failures into the forwarding strategies to better ensure the correct transmission and distribution of component data. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 The figure is a schematic diagram of the structure of a component data synchronization system according to an embodiment of the present invention.

[0030] Figure 2 The present invention is a flowchart of a component data synchronization method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical scheme and advantages of the present disclosure clearer, the following will further describe the embodiments of the present disclosure in detail with reference to the accompanying drawings. The proportions of the components are not drawn according to the actual proportions, and the proportions and sizes shown in the accompanying drawings should not limit the substantial technical scheme of the present invention. These embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described.

[0032] See also Figure 1-2 As shown, a natural gas component data synchronization system is characterized by comprising: Trunk station equipment, including a chromatographic analyzer, a component data management PLC and a VPN server, wherein one end of the component data management PLC is connected to the chromatographic analyzer, and the other end is connected to the VPN server; The remote metering device includes at least one set of flow computers and at least one set of 5G wireless communication equipment, and the 5G wireless communication equipment is wirelessly connected to the VPN server.

[0033] A natural gas component data synchronization method, characterized by comprising the following steps: S1: After ensuring that the chromatograph analyzer and the component data management PLC are in normal status, the component data management PLC reads the component data of the chromatographic analysis; S2: After ensuring that the trunk station and the target flow computer are in normal status, select the method of sending the component data to the target flow computer; S3: Make a rationality judgment on the component data to be sent, send the reasonable component data, and finally judge whether the component data is sent successfully.

[0034] The existing automatic update method of natural gas composition data has the following shortcomings: The transmission of component data is limited by the existing topological structure of the pipeline link. Flow computers that have not entered the link topology (such as flow computers in lower-level pipeline networks, city gas gate stations, etc.) cannot accept the management of the component data forwarding server and automatically update the component data. The transmission of component data requires multi-level data forwarding and protocol conversion, which increases the failure points of component data transmission and makes it difficult to supervise the component forwarding system of the entire system. In terms of the forwarding strategy of component data, generally only simple data conversion and correction are performed, and there is no complete equipment detection and communication detection to ensure the successful forwarding of component data.

[0035] The advantages of the present invention are: 1. Real-time and accuracy: The system obtains natural gas component data in real time through the chromatographic analyzer. The combination with the component data management PLC ensures the instant transmission and processing of data, and improves the accuracy and real-time performance of data synchronization; 2. Remote monitoring and operation capabilities: Using VPN servers and 5G wireless communication equipment, the system can achieve remote data transmission, making data management not restricted by geographical location, providing the possibility for remote monitoring and operation; 3. Data synchronization automation: The use of automated data synchronization methods reduces manual intervention, improves work efficiency, and reduces errors caused by human factors; 4. System stability and security: The system sets status confirmation and rationality judgment before and after data synchronization to ensure the accuracy and completeness of data and reduce possible problems in the data transmission process. At the same time, the use of VPN increases the security of data transmission and effectively prevents data from being illegally obtained or tampered with during the transmission process; 5. Savings in maintenance costs: Due to the high degree of automation of the system, it can reduce dependence on manpower and correspondingly reduce labor costs. At the same time, the system's remote monitoring function also reduces the frequency of on-site inspections, further reducing maintenance costs.

[0036] like Figure 1 In one embodiment shown, Figure 1The schematic diagram of the structure of the component data synchronization system of an embodiment of the present invention. The core equipment involved in the natural gas component data synchronization system designed by the present invention includes a chromatograph located at a trunk station, a component data management PLC and a VPN server, and a flow computer and a 5G wireless communication device arranged at a remote end. The component data management PLC has at least two industrial communication cards: one is directly connected to the chromatograph through a network cable to read the component data obtained by the chromatographic analysis; the other is directly connected to the VPN server through a network cable, and communicates with the flow computer through this link to issue component data. This component data management PLC is also connected to the human-computer interaction module, which enhances the convenience of operation. The remote 5G industrial communication device is equipped with a 5G SIM card of the operator, which wirelessly accesses the operator's public network as a client, and the VPN server connects it to the interface of the public network. Through a point-to-multipoint connection method, a VPN tunnel is established between the VPN server and each 5G industrial communication device, ensuring the smooth communication link between the component data management PLC and each remote metering device. The component data management PLC uses the industrial communication protocol to establish communication with the chromatograph through its industrial communication card to obtain the component data analyzed by the chromatograph. The processed component data is transmitted to the flow computer through the communication link established by the VPN server. At the same time, the component data management PLC detects whether the communication status with the chromatograph and the flow computer is normal by reading and issuing the communication flag. As for the remote metering equipment, each set of equipment contains at least two flow computers and two sets of 5G wireless communication equipment. Each flow computer is directly connected to the corresponding 5G industrial communication device through a switch via a network cable to establish a stable communication link. This design ensures that the synchronization of natural gas component data is both accurate and efficient, and is adapted to the needs of the modern natural gas industry.

[0037] In each natural gas pipeline network, there are generally natural gas distribution stations in the pipeline at this level, distribution stations in the lower-level pipeline network, and city gas gate stations. The above places have natural gas and metering devices, namely flow computers. Generally, at least one station on the trunk-level natural gas pipeline network is equipped with an online chromatograph analyzer for natural gas components (hereinafter referred to as the chromatograph analyzer).

[0038] The component data synchronization system includes: a set of chromatographic analyzers, one or more flow computers, a set of component data management PLC and human-computer interaction interface, a set of VPN server (the VPN server can be a firewall, industrial router, etc.), and one or more 5G wireless communication equipment.

[0039] ①System architecture The component data is sent synchronously from the chromatograph to the flow computer. The equipment needs to be networked first. On a trunk station, a set of chromatographs, a set of component data management PLC and human-machine interface, and a set of VPN servers are deployed. A set of 5G industrial communication equipment is deployed where there is a flow computer (the flow computer can be at a natural gas station using the same gas source, a city gas gate station or other places with a flow computer). A switch is also required where there are multiple flow computers.

[0040] Chromatograph, component data management PLC, remote flow computer networking: The component data management PLC is equipped with several industrial communication cards (at least two industrial communication cards, one for users to read the component data of the chromatograph, and at least one for communicating with the flow computer and writing component data), supporting multiple communication protocols (modbus_TCP, profinet, DNP 3.0, etc.) to meet the requirements of the communication protocols used to obtain and distribute component data. One industrial communication card of the component data management PLC is directly connected to the component online chromatograph with a network cable, and the other industrial communication card is directly connected to the VPN server through a network cable.

[0041] The VPN server is connected to the operator's public network. The interface connected to the public network needs to apply for a fixed IP address from the corresponding operator. The natural gas flow computer uses a network cable to directly connect to the 5G industrial communication device through a switch to establish a communication link. The 5G industrial communication device has a built-in 5G SIM card of the mobile operator. As a VPN client, it can wirelessly access the operator's public network.

[0042] The VPN server and various 5G industrial communication devices at the remote end establish VPN tunnels in a point-to-multipoint manner to connect the communication link between the component data management PLC and the natural instrument metering device.

[0043] Through the above operation, the chromatograph analyzer, component data management PLC and flow computer are in the same wireless local area network and are interconnected.

[0044] The component forwarding PLC master control card can be integrated into the station control LAN of the station, using the original SCADA system of the natural gas pipeline network as the human-computer interaction interface, or a separate human-computer exchange interface can be set up.

[0045] ②Natural gas composition data distribution process The component data management PLC establishes communication with the chromatograph through all its industrial communication cards, using the industrial communication protocol (the specific protocol depends on the support of the chromatograph) to obtain the component data analyzed by the chromatograph.

[0046] The component data management PLC converts the format of the natural gas component data obtained by the component, uses the established strategy, and then sends it to the flow computer through the communication link established by VPN.

[0047] The flow computer receives the natural gas component data sent down, triggers the update of the component data, and the flow computer measures the natural gas with the new component data.

[0048] The communication flags read and sent by the component data management PLC can detect whether the communication status between the PLC and the chromatograph and flow computer is normal.

[0049] The natural gas component data synchronization system designed by the present invention has the following advantages: Data synchronization and accuracy: By real-time monitoring and synchronization of natural gas composition data obtained by the chromatograph to the flow computer, the accuracy of natural gas metering can be ensured. This is crucial for natural gas billing, energy efficiency analysis and efficient resource management.

[0050] Remote monitoring and management: Through the use of VPN servers and 5G communication technology, the system can achieve remote monitoring and data management, reducing dependence on on-site operators and reducing the need and cost of on-site maintenance.

[0051] Network interoperability: The interconnection between devices in the system is strong, and it can adapt to a variety of industrial communication protocols, such as modbus_TCP, profinet, DNP 3.0, etc., which provides flexibility for communication between different devices.

[0052] Security: Through the construction of a VPN tunnel, data transmission can be encrypted and protected, effectively preventing data from being intercepted or tampered with during transmission, ensuring the security of data transmission.

[0053] Easy to expand and maintain, the system adopts modular design, easy to expand and maintain. If you need to add more flow computers or chromatographs, you only need to add the corresponding modules to the existing system and configure the network, and you can integrate them seamlessly.

[0054] Efficiency: The system design takes into account the efficiency of communication, and ensures high-speed data transmission through 5G communication technology. This is critical for real-time processing and decision-making of large amounts of data.

[0055] The flexibility of the human-machine interaction interface, the component forwarding PLC master control card can be integrated into the station control LAN to use the original SCADA system, or a separate human-machine exchange interface can be set up, which provides flexibility and selectivity in operation.

[0056] Troubleshooting and maintenance: The system can monitor the communication status with the chromatograph and flow computer by reading and issuing communication flags, which enables problems to be quickly located when they occur, reducing system downtime.

[0057] like Figure 2 In one embodiment shown, Figure 2 This is a flow chart of a component data synchronization method according to an embodiment of the present invention. The present invention provides a method for synchronizing natural gas component data, which ensures accurate transmission of data from a chromatographic analyzer to a flow computer. The following are the detailed steps: First, in step S1, the system will confirm that the chromatograph and the component data management PLC are both in normal working condition. Once confirmed, the component data management PLC will read the component data of the chromatograph. Specifically, step S1 includes the following sub-steps: S1.1: Check whether the chromatograph is working properly and has no fault alarm. If yes, proceed to the next step; if not, issue an alarm and manually troubleshoot the fault before returning to S1.1; S1.2: Determine whether the communication between the component data management PLC and the chromatograph is normal and the delay is controllable according to the communication flag status. If yes, proceed to the next step; if not, issue an alarm and manually troubleshoot the problem before returning to S1.1; S1.4: Component data management PLC establishes communication with the chromatograph through the industrial communication card to obtain component data.

[0058] Next, in step S2, the system will confirm that the trunk station and the target flow computer are in normal status, and select the method for sending the component data. The specific steps are as follows: S2.1: Check whether the target flow computer is working normally and has no fault alarm. If yes, proceed to the next step; if not, issue an alarm and manually troubleshoot the fault before returning to S2.1; S2.2: Determine whether the communication between the trunk station and the target flow computer is normal and there is no fault alarm. If yes, proceed to the next step; if not, issue an alarm and manually eliminate the fault before returning to S2.1; S2.4: Select the method for sending component data, including manual sending mode and automatic sending mode.

[0059] In step S3, the system will make a reasonable judgment on the component data sent down and ensure that the data is successfully sent down to the flow computer. The specific steps are as follows: S3.1: Determine whether the component data sent is within a reasonable range. If yes, proceed to the next step; if not, issue an alarm and manually troubleshoot; S3.2: Perform sum operation on the component data sent down to determine whether the sum of the data is within a reasonable range. If yes, proceed to the next step; if not, issue an alarm and manually troubleshoot the problem; S3.4: The component data management PLC converts the data format and sends it to the target flow computer; S3.5: By comparing the component data in the flow computer with the data sent, determine whether the data is sent successfully. If successful, proceed to the next step; if unsuccessful, return to S3.4. If it fails for multiple times, an alarm is issued and the fault is manually eliminated; S3.7: The flow computer receives and updates the component data and performs metering based on the new data.

[0060] The manual sending mode triggers the data sending action through the human-computer interaction module, and can extract the component data in the PLC or fill in the data manually. The automatic sending mode includes automatic sending according to the time period and automatic sending according to data changes. The former automatically sends data according to the set time period, and the latter triggers automatic sending when the component data changes, and the delay time can be set according to different situations. Through the above steps, this method ensures the accurate synchronization of natural gas component data and improves the efficiency and accuracy of data processing.

[0061] Component data reading precondition judgment.

[0062] 1. The chromatograph should be in normal working condition and have no fault alarm.

[0063] 2. The communication between the component data management PLC and the chromatograph is normal and the delay is controllable. (Specifically, the communication flag status of each communication protocol is read to determine whether the communication is normal).

[0064] If the precondition section is normal, proceed to the next step. If the precondition is abnormal, manual intervention is required to make it normal.

[0065] Read the real-time composition data of the chromatograph: The component data management PLC reads the component data of the chromatographic analysis through the communication link.

[0066] Determine the preconditions for sending component data.

[0067] 1. The target natural gas flow computer is in normal working condition and there is no fault alarm.

[0068] 2. The communication between the component synchronization PLC and the target natural gas flow computer is normal and fault-free.

[0069] Component data delivery mode selection: There are two options for sending component data to the target flow computer: manual sending mode and automatic sending mode.

[0070] (1) Manual distribution mode: that is, by clicking the soft button on the human-machine interface of the component data management PLC, the component data distribution action is triggered to complete the component distribution. In the manual distribution mode, there are two methods for obtaining the distributed component data. The first method is to extract the component data currently obtained from the chromatograph from the component data management PLC, and the second method is to manually fill in the component data.

[0071] (2) Automatic distribution mode: that is, the component synchronization PLC automatically distributes component data. There are two automatic distribution strategies: 1. Time cycle trigger distribution: that is, according to the set time cycle, the component data is cyclically distributed to the target natural gas flow computer. 2. Data change trigger distribution: When the component data changes, it triggers the component to be written to the target natural gas flow computer. At the same time, at stations at different locations of the pipeline, the time delay of the arrival of the new gas source should be considered, and the delay time for writing the component data should be set.

[0072] Send rationality judgment of component data and rationality judgment method parameters.

[0073] 1. Determine whether the component data written below, such as the content values ​​of methane, nitrogen, carbon dioxide, acetylene, propane, isobutane, etc., are within a reasonable range.

[0074] 2. Perform a sum operation on the component data written below to determine whether the sum of the content of each component is within a reasonable range (the sum of the component data is generally close to or equal to 100%).

[0075] If the data is judged to be reasonable, the next step will be executed. If it is unreasonable, an alarm will be issued, automatic distribution will be stopped, and manual intervention will be prompted.

[0076] Component data distribution: The component data management PLC converts the component data into a format and distributes it to the target natural gas flow computer.

[0077] Judgment on success or failure of component data sending: By comparing the component data in the flow machine with the data sent by the component synchronization PLC for consistency, it is judged whether the component data is successfully written to the flow computer. If it is unsuccessful, continue to send the component data. If it still fails after three writes, an alarm for component data writing failure is generated to remind manual intervention and stop sending.

[0078] The present invention ensures accurate synchronization of natural gas component data from the chromatograph to the flow computer through a series of carefully planned steps. First, the system will strictly check the working status and communication connection of the chromatograph and the component data management PLC to ensure that the real-time component data is read only after the preconditions are met. Next, the system will verify the status and communication connection of the target flow computer to ensure the feasibility of data distribution. The data distribution mode is flexible and optional, supporting both manual distribution triggered by manual triggering and automatic distribution. The latter includes two strategies: time period triggering and data change triggering, to meet the needs of different scenarios. Before data distribution, the system will make a rationality judgment to ensure that the data is within a reasonable range, and further verify the accuracy of the data through summation operations. During the data distribution process, the system will perform format conversion to ensure that the data can be correctly received by the target flow computer. Finally, by comparing the consistency of the data in the flow computer with the distributed data, the system can determine whether the data distribution is successful, and issue an alarm after multiple failed attempts to remind manual intervention. This process design not only improves the efficiency and accuracy of data processing, but also enhances the automation level and fault tolerance of the system, providing reliable technical support for natural gas metering.

[0079] The present invention is not limited to the above-mentioned embodiments. No matter any changes are made in the shape or material composition, any structural design provided by the present invention is a variation of the present invention and should be considered to be within the protection scope of the present invention.

Claims

1. A natural gas component data synchronization method, characterized in that: The following steps are involved: S1: After ensuring that the chromatograph analyzer and the component data management PLC are in normal status, the component data management PLC reads the component data of the chromatographic analysis; S2: After ensuring that the trunk station and the target flow computer are in normal status, select the method of sending the component data to the target flow computer; S3: Make a rationality judgment on the component data to be sent, send the reasonable component data, and finally judge whether the component data is sent successfully.

2. A natural gas component data synchronization method according to claim 1, characterized in that: The step S1 comprises: S1.1: determining whether the chromatographic analyzer is in normal working condition and has no fault alarm, if so, proceeding to step S1.2, if not, proceeding to step S1.3; S1.2: According to the communication flag status of each communication protocol, determine whether the communication between the component data management PLC and the chromatograph is normal and the delay is controllable. If so, proceed to step S1.4; if not, proceed to step S1.3; S1.3: alarm, manually troubleshoot the fault and its cause, and return to step S1.1; S1.4: Component data management The PLC establishes communication with the chromatograph through all its industrial communication cards using the industrial communication protocol to obtain the component data analyzed by the chromatograph.

3. A natural gas component data synchronization method according to claim 1, characterized in that: The step S2 includes: S2.1: determining whether the target flow computer is in normal working state and has no fault alarm, if so, proceeding to step S2.2, if not, proceeding to step S2.3; S2.2: Determine whether the communication between the trunk station and the target flow computer is normal and there is no fault alarm. If so, proceed to step S2.4; if not, proceed to step S2.3; S2.3: alarm, manually troubleshoot the fault and its cause, and return to step S2.1; S2.4: Select the method for sending component data to the target flow computer, including manual sending mode and automatic sending mode.

4. A natural gas component data synchronization method according to claim 1, characterized in that: The step S3 includes: S3.1: judging whether the component data sent is within a reasonable range, if so, proceeding to step S3.2, if not, proceeding to step S3.3; S3.2: Perform a sum operation on the component data sent down to determine whether the sum of the component data sent down is within a reasonable range. If so, proceed to step S3.4; if not, proceed to step S3.3; S3.3: Alarm and manually troubleshoot the fault and its cause; S3.4: Component data management PLC converts the format of the component data sent down and sends it to the target flow computer; S3.5: By comparing the consistency of the component data read from the flow machine with the data sent by the component synchronization PLC, it is determined whether the component data is successfully written into the flow computer. If so, it proceeds to step S3.

7. If not, it returns to step S3.

4. If the number of times of no is greater than a certain number, it proceeds to step S3.

6. S3.6: Issue an alarm and manually troubleshoot the fault and its cause; S3.7: The flow computer receives the component data sent down, triggers the update of the component data, and the flow computer performs metering based on the new component data.

5. A natural gas component data synchronization method according to claim 3, characterized in that: The manual sending mode triggers the component data sending action through the human-computer interaction module to complete the component sending. The method for obtaining the sent component data is to extract the component data obtained from the chromatograph in the component data management PLC or to manually fill in the component data; the automatic sending mode includes a time period automatic sending mode and a data change automatic sending mode. The time period automatic sending mode automatically sends component data to the target flow computer in a cycle according to the set time period. The data change automatic sending mode triggers the automatic sending of components to the target flow computer according to changes in the component data. At the same time, according to the time delay caused by different situations, the delay time for automatic sending of component data is set.

6. A natural gas component data synchronization system, using a natural gas component data synchronization method according to any one of claims 1 to 5, characterized in that: include: Trunk station equipment, including a chromatographic analyzer, a component data management PLC and a VPN server, wherein one end of the component data management PLC is connected to the chromatographic analyzer, and the other end is connected to the VPN server; The remote metering device includes at least one set of flow computers and at least one set of 5G wireless communication equipment, and the 5G wireless communication equipment is wirelessly connected to the VPN server.

7. A natural gas component data synchronization system according to claim 6, characterized in that: The component data management PLC is configured with at least two industrial communication cards, one of which is directly connected to the chromatograph analyzer via a network cable to serve the reading of the component data of the chromatograph analyzer, and the other is directly connected to the VPN server via a network cable and is connected to the flow computer for communication to write component data. The component data management PLC is connected to a human-computer interaction module.

8. A natural gas component data synchronization system according to claim 7, characterized in that: The 5G industrial communication device is equipped with the operator's 5G SIM card, which serves as the client of the VPN server and can wirelessly access the operator's public network. The VPN server is externally connected to the operator's public network and the interface of the public network. The VPN server and each of the 5G industrial communication devices establish VPN tunnels in a point-to-multipoint manner to realize the communication link between the component data management PLC and the remote metering equipment.

9. A natural gas component data synchronization system according to claim 7 or 8, characterized in that: The component data management PLC establishes communication with the chromatograph through the industrial communication card using the industrial communication protocol to obtain the component data analyzed by the chromatograph, and sends the processed component data to the flow computer through the communication link established by VPN. The component data management PLC detects whether the communication status between the PLC and the chromatograph and the flow computer is normal by reading and sending the communication flag.

10. A natural gas component data synchronization system according to claim 7 or 8, characterized in that: The remote metering equipment includes at least two sets of flow computers and at least two sets of 5G wireless communication equipment. The flow computer establishes a communication link with the 5G industrial communication device through the switch using a network cable.