CN112304380B - Method for circularly accumulating natural gas flow in distributed control system - Google Patents

Method for circularly accumulating natural gas flow in distributed control system Download PDF

Info

Publication number
CN112304380B
CN112304380B CN202011140306.9A CN202011140306A CN112304380B CN 112304380 B CN112304380 B CN 112304380B CN 202011140306 A CN202011140306 A CN 202011140306A CN 112304380 B CN112304380 B CN 112304380B
Authority
CN
China
Prior art keywords
flow
natural gas
accumulated
shift
group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011140306.9A
Other languages
Chinese (zh)
Other versions
CN112304380A (en
Inventor
谈博
陈志刚
张钢
牛利涛
刘世雄
辛志波
王涛
谭祥帅
宋晓辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Thermal Power Research Institute Co Ltd
Original Assignee
Xian Thermal Power Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Thermal Power Research Institute Co Ltd filed Critical Xian Thermal Power Research Institute Co Ltd
Priority to CN202011140306.9A priority Critical patent/CN112304380B/en
Publication of CN112304380A publication Critical patent/CN112304380A/en
Application granted granted Critical
Publication of CN112304380B publication Critical patent/CN112304380B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F15/00Details of, or accessories for, apparatus of groups G01F1/00 - G01F13/00 insofar as such details or appliances are not adapted to particular types of such apparatus
    • G01F15/07Integration to give total flow, e.g. using mechanically-operated integrating mechanism
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/41845Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by system universality, reconfigurability, modularity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/15Correlation function computation including computation of convolution operations
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/33Director till display
    • G05B2219/33273DCS distributed, decentralised controlsystem, multiprocessor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Computing Systems (AREA)
  • Automation & Control Theory (AREA)
  • Algebra (AREA)
  • Quality & Reliability (AREA)
  • Fluid Mechanics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Manufacturing & Machinery (AREA)
  • Feedback Control In General (AREA)

Abstract

The invention discloses a method for circularly accumulating natural air flow in a distributed control system, which comprises the following steps: 1) The flowmeter at the inlet of the pressure regulating station measures the instantaneous flow Q of natural gas at the inlet of the pressure regulating station 0 The method comprises the steps of carrying out a first treatment on the surface of the 2) Calculating the instantaneous flow Q of natural gas for one sampling period i The method comprises the steps of carrying out a first treatment on the surface of the 3) Setting the total accumulated flow of the kth sampling period as L 0 The method comprises the steps of carrying out a first treatment on the surface of the 4) Dividing the total cycle accumulated flow duration into a plurality of groups, wherein the total duration of single cycle of the t group is set as M t (h) The total duration of a single cycle is divided into N t A number of shifts, wherein the duration of each shift is m t (h),M t =m t ×N t The method comprises the steps of carrying out a first treatment on the surface of the 5) The method can realize automatic circulation accumulation of natural gas flow.

Description

Method for circularly accumulating natural gas flow in distributed control system
Technical Field
The invention belongs to the technical field of industrial information control, and relates to a natural gas flow circulation accumulation method in a distributed control system.
Background
In the industrial production process, accurately recording the accumulated flow of the natural gas usage by shifts is an important index for measuring the business management level of enterprises.
A distributed control system (DCS, distributed Control System) is a multi-level computer control system consisting of a process control stage and a process monitoring stage. The basic ideas of centralized management and decentralized control are adopted to complete the functions of monitoring and controlling production equipment in real time, and the method is widely applied to industries such as electric power, metallurgy, petrochemical industry and the like. For the convenience of the actual programming of engineers, the program of the distributed control system is compiled by an imaging logic configuration language, but the difficulty of realizing loop iteration is increased.
Disclosure of Invention
The present invention is directed to overcoming the drawbacks of the prior art and providing a method for circulating and accumulating natural gas flow in a distributed control system, which can realize automatic circulating and accumulating natural gas flow.
In order to achieve the above object, the method for circulating and accumulating natural gas flow in a distributed control system according to the present invention comprises the following steps:
1) The flowmeter at the inlet of the pressure regulating station measures the instantaneous flow Q of natural gas at the inlet of the pressure regulating station 0 Then the data is sent to a distributed control system;
2) The distributed control system calculates the instantaneous flow Q of natural gas for one sampling period i
3) When the preset input time is reached, starting to record the accumulated natural gas flow, wherein the total accumulated flow of the kth sampling period is set as L 0
4) Dividing the total cycle accumulated flow duration into a plurality of groups, wherein the total duration of single cycle of the t group is set as M t (h) The total duration of a single cycle is divided into N t A number of shifts, wherein the duration of each shift is m t (h),M t =m t ×N t
5) Calculate the current cycle accumulated time k divided by M t Remainder k of x 36000 t
6) When remainder k t At 1-36000 Xm t When the sampling time is within the sampling time, the t group 1 st shift accumulated flow L at the kth sampling time t1 The method comprises the following steps:
7) Repeating the step 6), calculating the accumulated flow of each shift of the t group, wherein the accumulated flow of the p shift of the t group is L tp When k is t At 36000X (p-1) x m t +1~36000×p×m t When the sampling time is within the sampling time, the accumulated flow L of the p shift of the t group of the kth sampling time tp The method comprises the following steps:
8) When remainder k t At 36000 XM t -36000×m t +1~36000×M t Within the sampling time of (2), then the nth group of the kth sampling time t Shift accumulated flow L t,Nt The method comprises the following steps:
9) And (3) repeating the steps 6), 7) and 8) to obtain the circulating accumulated flow of each shift in each group, and finishing the circulating accumulation of the natural gas flow in the distributed control system.
Further comprises: total accumulated flow L 0 Current accumulated flow (L) for each shift of group 1 11 ,L 12 ,……,L 1N1 ) Current accumulated flow of each shift in group t, … … (L t1 ,L t2 ,……,L tNt ) Stored in a history store.
Instantaneous flow rate Q of natural gas for one sampling period i The method comprises the following steps:
wherein the sampling period is 100ms;
when Q is 0 ≤20Nm 3 At the time of/h, the instantaneous flow of natural gas at the current sampling moment is zero, when Q 0 >20Nm 3 At the time of/h, the instantaneous flow of the natural gas at the current sampling moment is Q i
Total accumulated flow L for the kth sampling period 0 The method comprises the following steps:
the invention has the following beneficial effects:
the method for circularly accumulating the natural air flow in the distributed control system utilizes the distributed control system to calculate the accumulated flow L by grouping and shift-dividing when the method is specifically operated t1 Thus, the circulating accumulated flow of each shift in each group is obtained, the automatic circulating accumulation of the natural gas flow is realized, and the degree of automation of monitoring, recording, predicting and controlling the natural gas flow by operating personnel is improved. The natural gas flow is ensured to be accurately and reliably monitored.
Drawings
FIG. 1 is a generalized diagram of the present invention;
FIG. 2 is a flow chart of the present invention;
FIG. 3 is a diagram illustrating the configuration of the total integrated natural gas flow in the distributed control system according to the present invention;
FIG. 4 is a logic configuration diagram of the integrated flow of natural gas circulation in a distributed control system for three shifts per day according to the present invention.
FIG. 5 shows the t-th component N of the present invention t Total shift single cycle duration M t Length of time m per shift t Logic configuration diagram of natural gas circulation accumulated flow in a distributed control system.
Detailed Description
The invention is described in further detail below with reference to the attached drawing figures:
referring to fig. 1 to 4, the method for circulating and accumulating the natural gas flow in the distributed control system according to the present invention includes the following steps:
1) The flowmeter at the inlet of the pressure regulating station measures the instantaneous flow Q of natural gas at the inlet of the pressure regulating station 0 Then the data is sent to a distributed control system;
2) Natural gas flow Q measured by inlet flow meter of pressure regulating station 0 ≤20Nm 3 And (3) when the natural gas flow in the inlet pipeline of the pressure regulating station is zero, the distributed control system judges that the natural gas flow in the inlet pipeline of the pressure regulating station is zero; when Q is 0 >20Nm 3 At/h, the natural gas instantaneous flow in the current sampling period is Q i
Then the instantaneous flow rate Q of natural gas for one sampling period i =Q 0 36000, wherein one sampling period is 100ms;
setting a natural gas cycle accumulation input button, an exit button and a preset input time button, and respectively completing the functions of starting cycle accumulation, exiting cycle accumulation and clearing the accumulated flow of each section and the time of specific starting cycle accumulation.
The initial value of the total accumulated flow of the natural gas is zero, and the circulating accumulated exit button can be initialized to zero the total accumulated flow of the natural gas and the accumulated flow of each section.
3) When the preset input time is reached, starting to record the accumulated natural gas flow, wherein the total accumulated flow of the kth sampling period is set as L 0 Wherein, the method comprises the steps of, wherein,
4) Dividing the total cycle accumulated flow duration into a plurality of groups, wherein the total duration of single cycle of the t group is set as M t (h) The total duration of a single cycle is divided into N t A number of shifts, wherein the duration of each shift is m t (h),M t =m t ×N t
For example, the group is divided into the groups of year, quarter, month, zhou Jitian, etc., and the total t groups are divided into the group t and the group 1 is, for example, three shift cycle accumulated flow per day, namely, cycle accumulated flow of 0 to 8 hours, cycle accumulated flow of 8 to 16 hours, and cycle accumulated flow of 16 to 24 hours.
5) Calculate the current cycle accumulated time k divided by M t Remainder k of x 36000 t
6) When remainder k t At 1-36000 Xm t When the sampling time is within the sampling time, the t group 1 st shift accumulated flow L at the kth sampling time t1 The method comprises the following steps:
wherein z is 11 An initial value of 1, z after one cycle period is completed 11 Automatically adding 1;
cycle accumulation m t After the duration, the current value of the accumulated flow of the 1 st shift of the t-th group is M t -2m t Keeping unchanged in duration, and keeping m in zero clearing t After a long period of time, the next cycle is entered.
7) Repeating the step 6), calculating the accumulated flow of each shift of the t group, wherein the accumulated flow of the p shift of the t group is L tp When k is t At 36000X (p-1) x m t +1~36000×p×m t When the sampling time is within the sampling time, the accumulated flow L of the p shift of the t group of the kth sampling time tp The method comprises the following steps:
cycle accumulation m t After the duration, the current value of the accumulated flow of the group t and the shift p is M t -2m t Keeping unchanged in duration, and keeping m in zero clearing t After a long period of time, enter the next cycle, z tp =z tp +1。
8) When remainder k t At 36000 XM t -36000×m t +1~36000×M t Within the sampling time of (2), then the nth group of the kth sampling time t Shift accumulated flow L t,Nt The method comprises the following steps:
cycle accumulation m t After the period of time has elapsed,nth group t t The current value of the accumulated flow of the shift is M t -2m t Keeping unchanged in duration, and keeping m in zero clearing t After a long period of time, enter the next cycle, z t,Nt =z t,Nt +1。
9) And (3) repeating the steps 6), 7) and 8) to obtain the circulating accumulated flow of each shift in each group, and finishing the circulating accumulation of the natural gas flow in the distributed control system.
The invention also includes: total accumulated flow L 0 Current accumulated flow (L) for each shift of group 1 11 ,L 12 ,……,L 1N1 ) Current accumulated flow of each shift in group t, … … (L t1 ,L t2 ,……,L tNt ) The current accumulated flow of each shift of the t groups can be simplified into a matrix L:
referring to FIG. 5, component t N t Total shift single cycle duration M t Each time has a duration of m t The configuration diagram of the natural gas circulation accumulated flow in the distributed control system, the broken line represents the switching value logic judgment loop, and the solid line represents the analog real-time data transmission loop. As can be seen from FIG. 5, based on the graphical programming language of the distributed control system, the integrated use of logic blocks such as delay block TON, AND gate and NOT, and switching block T realizes the function of natural gas flow cycle accumulation, corresponding to the T-th group of cycle accumulation L in FIG. 5 tp The specific operation of (a) is as follows:
1a) Accumulating the input buttons by natural gas circulation and after reaching the preset input time, (p-1) m t After a period of time, L tp Starting to accumulate from zero;
2a)L tp by m t After the cycle of hours has accumulated, M is maintained t -m t Unchanged in hours, L tp Zero clearing and keeping m t After the end of one cycle period, accumulation is restarted.
3a) Repeating the step 2 a), and circularly accumulating L tp
4a) Start-upNatural gas circulation accumulation exit button L tp And (5) zero clearing and stopping.
Logic blocks used in the graphical programming language include a delay TON, an AND gate AND, an NOT gate NOT, an OR gate OR, a pulse block, a constant block, an accumulation block SUM, AND a switch block T.
The invention overcomes the defect that the graphical program is not easy to realize circulation without compilatory sentences such as for, while, if and the like, and simultaneously does not bring extra cost to the system, which is also an advantage of the invention.

Claims (4)

1. A method for cyclically accumulating natural gas flow in a distributed control system, comprising the steps of:
1) The flowmeter at the inlet of the pressure regulating station measures the instantaneous flow Q of natural gas at the inlet of the pressure regulating station 0 Then the data is sent to a distributed control system;
2) The distributed control system calculates the instantaneous flow Q of natural gas for one sampling period i
3) When the preset input time is reached, starting to record the accumulated natural gas flow, wherein the total accumulated flow of the kth sampling period is set as L 0
4) Dividing the total cycle accumulated flow duration into a plurality of groups, wherein the total duration of single cycle of the t group is set as M t (h) The total duration of a single cycle is divided into N t A number of shifts, wherein the duration of each shift is m t (h),M t =m t ×N t
5) Calculate the current cycle accumulated time k divided by M t Remainder k of x 36000 t
6) When remainder k t At 1-36000 Xm t When the sampling time is within the sampling time, the t group 1 st shift accumulated flow L at the kth sampling time t1 The method comprises the following steps:
7) Repeating the step 6), calculating the accumulated flow of each shift of the t group, wherein the t groupthe accumulated flow of the group t shift is L tp When k is t At 36000X (p-1) x m t +1~36000×p×m t When the sampling time is within the sampling time, the accumulated flow L of the p shift of the t group of the kth sampling time tp The method comprises the following steps:
8) When remainder k t At 36000 XM t -36000×m t +1~36000×M t Within the sampling time of (2), then the nth group of the kth sampling time t Shift accumulated flow L t,Nt The method comprises the following steps:
9) And (3) repeating the steps 6), 7) and 8) to obtain the circulating accumulated flow of each shift in each group, and finishing the circulating accumulation of the natural gas flow in the distributed control system.
2. The method of cyclically integrating natural gas flow in a decentralized control system according to claim 1, further comprising: total accumulated flow L 0 Current accumulated flow (L) for each shift of group 1 11 ,L 12 ,……,L 1N1 ) Current accumulated flow of each shift in group t, … … (L t1 ,L t2 ,……,L tNt ) Stored in a history store.
3. The method of claim 1, wherein the natural gas flow rate Q is a sample period of the natural gas instantaneous flow rate i The method comprises the following steps:
wherein the sampling period is 100ms;
when Q is 0 ≤20Nm 3 At the time of/h, the instantaneous flow of natural gas at the current sampling moment is zero, when Q 0 >20Nm 3 At the time of/h, the instantaneous flow of the natural gas at the current sampling moment is Q i
4. The method of cyclically integrating natural gas flow in a distributed control system according to claim 1 wherein the total integrated flow L for the kth sampling period 0 The method comprises the following steps:
CN202011140306.9A 2020-10-22 2020-10-22 Method for circularly accumulating natural gas flow in distributed control system Active CN112304380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011140306.9A CN112304380B (en) 2020-10-22 2020-10-22 Method for circularly accumulating natural gas flow in distributed control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011140306.9A CN112304380B (en) 2020-10-22 2020-10-22 Method for circularly accumulating natural gas flow in distributed control system

Publications (2)

Publication Number Publication Date
CN112304380A CN112304380A (en) 2021-02-02
CN112304380B true CN112304380B (en) 2024-01-19

Family

ID=74327110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011140306.9A Active CN112304380B (en) 2020-10-22 2020-10-22 Method for circularly accumulating natural gas flow in distributed control system

Country Status (1)

Country Link
CN (1) CN112304380B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11281413A (en) * 1998-03-31 1999-10-15 Yazaki Corp Flow rate measuring method and device, and electronic gas meter
JP2003270009A (en) * 2002-03-15 2003-09-25 Matsushita Electric Ind Co Ltd Method for measuring and displaying flow rate and flowmeter using the same
JP2004354398A (en) * 2004-09-17 2004-12-16 Matsushita Electric Ind Co Ltd Flowmeter
CN104748810A (en) * 2015-03-16 2015-07-01 江苏永钢集团有限公司 Fluid flow accumulating system
CN105973321A (en) * 2015-07-07 2016-09-28 成都国光电子仪表有限责任公司 Microcomputer metering system for natural gas

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11281413A (en) * 1998-03-31 1999-10-15 Yazaki Corp Flow rate measuring method and device, and electronic gas meter
JP2003270009A (en) * 2002-03-15 2003-09-25 Matsushita Electric Ind Co Ltd Method for measuring and displaying flow rate and flowmeter using the same
JP2004354398A (en) * 2004-09-17 2004-12-16 Matsushita Electric Ind Co Ltd Flowmeter
CN104748810A (en) * 2015-03-16 2015-07-01 江苏永钢集团有限公司 Fluid flow accumulating system
CN105973321A (en) * 2015-07-07 2016-09-28 成都国光电子仪表有限责任公司 Microcomputer metering system for natural gas

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
DCS中累积流量逻辑的误差分析和对策;程小欢;黄振宇;;中国计量(04);全文 *
天然气门站计量控制系统的设计与实现;杨帆;余立建;;工业控制计算机(第05期);全文 *
流量累积计算在PLC系统中的实现;单珊;梁伟;;中国管理信息化(11);全文 *
累计取样器在海上天然气贸易计量中的应用及改进;尹燕波;;化工管理(第07期);全文 *

Also Published As

Publication number Publication date
CN112304380A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN109934337B (en) Spacecraft telemetry data anomaly detection method based on integrated LSTM
JP6129028B2 (en) Energy consumption prediction method for building power equipment
CN109249284B (en) Tool sharpening parameter compensation device and method
CN102597639A (en) A system and method of modeling and monitoring an energy load
CN108983325A (en) rainfall runoff forecasting method
CN101639902B (en) Modeling method of support vector machine (SVM)-based software measurement instrument in biological fermentation process
US20230118293A1 (en) Methods and internet of things systems for predicting filter element replacement at gate station for smart gas
CN111984705A (en) Precision evaluation management method and device for power quality monitoring device
CN113012767A (en) Desulfurization system slurry pH value online prediction method and device based on time sequence
CN112304380B (en) Method for circularly accumulating natural gas flow in distributed control system
CN106570786B (en) Reservoir adaptive scheduling method based on scheduling rule time-varying characteristics
CN110134040B (en) Method and system for processing operation data of industrial equipment
CN110222825B (en) Cement product specific surface area prediction method and system
CN103279030B (en) Dynamic soft measuring modeling method and device based on Bayesian frame
CN116128167A (en) Distributed photovoltaic power generation analysis method based on cloud computing real-time monitoring
CN103801564B (en) Coil data tracking method for cold rolled continuous annealing pickling line
CN117196250A (en) Water plant control method and control equipment
CN115560374B (en) Heating control method and system based on heat pump unit state data processing
CN112700050A (en) Method and system for predicting ultra-short-term 1 st point power of photovoltaic power station
ElBsat et al. Load and electricity rates prediction for building wide optimization applications
CN116226263A (en) Renewable energy source visual intelligent pipe control method and system
CN103163864B (en) Method for optimizing mechanical equipment state estimation
CN101109099A (en) Control method based on industry ethernet plating production process
CN110006487B (en) Detection device and method for high-temperature slag recovery power generation
CN110110908B (en) New energy monthly power generation prediction oriented data expansion method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant