Summary of the invention
For the existing deficiency of prior art, technical matters to be solved by this invention is to provide a kind of SCADA system equipment modeling method of automatic formation control logic.
For realizing above-mentioned goal of the invention, the present invention adopts following technical scheme:
A kind of SCADA system equipment modeling method of automatic formation control logic, comprise the steps:
According to the topological relation between equipment, set up SCADA system equipment model;
Utilize the topological connection relation between the device object record, formation control logic automatically in SCADA system equipment model.
Wherein more preferably, the step of the described SCADA of foundation system equipment model further comprises:
By management function by equipment entity abstract be inhomogeneous device object;
Equipment entity apparatus for establishing object record in the SCADA system for every class;
Set up SCADA system equipment model according to the association between the annexation between equipment and device object record.
Wherein more preferably, described device object is divided into analog quantity class, discrete magnitude class, alarm measurement class.
Wherein more preferably, the described topological connection relation that utilizes, the step of formation control logic further comprises automatically:
According to the control principle of equipment entity, the micro-topological structure of the control law of apparatus for establishing object record;
Find the related control device object record in the device object record, automatically select corresponding gauge point, the formation control logic.
Wherein more preferably, the step of described formation control logic further comprises:
Judge whether current SCADA system equipment can be controlled, if controlled further check whether current SCADA system equipment triggers associate device and control;
If current SCADA system equipment does not trigger associate device and controls, insert the controlled condition value, issue control command to collection point; If current SCADA system equipment triggers associate device and controls, insert and control termination condition and associate device is inserted in termination condition, the reference mark of opertaing device and state of a control are issued to collection point, further judge whether to meet trigger condition;
If do not meet trigger condition, wait for, until meet trigger condition; If meet trigger condition, issue startup command to collection point, and further judge whether control command carries out complete; Also do not meet if surpass schedule time trigger condition, be judged as and control unsuccessfully, recover the state of a control of associate device.
If control command is not finished, wait for, until control command is finished; If control command is finished, recover the state of a control of associate device, issue associate device and recover control command and finish.
Modeling method provided by the present invention both can service equipment self specifications parameter, and the topological connection relation between again can complete description equipment, for condition has been created in the application such as formation control logic automatically.Utilize the present invention, in the situation that it is definite to control principle, can automatically selects corresponding gauge point and equipment according to equipment connecting relation, thereby formulate steering logic, and this steering logic can be multiplexed in other technological processes of using same control principle.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.
The invention provides a kind of SCADA system equipment modeling method of automatic formation control logic, comprise the steps: according to the topological relation between equipment, set up SCADA system equipment model; Utilize the topological connection relation between the device object record, formation control logic automatically in SCADA system equipment model.Below with the oil and gas pipes system equipment, being modeled as example launches to describe in detail to the present invention.
At first, introduce the concrete steps of setting up SCADA system equipment model.Put it briefly, at first need by management function equipment entity is abstract in inhomogeneous device object, then be equipment entity apparatus for establishing object in the SCADA system of every class, finally according to the association between the annexation between equipment and device object record, set up SCADA system equipment model.Be described as follows:
According to SCADA system operation and management characteristic, according to OO technological thought, take equipment as the model main body, by a certain equipment entity or jointly to complete a certain group of equipment entity of a certain technological process function abstract be a kind equipment object, such as pipeline, zone, the field of standing (valve chamber) etc.The various device entity of SCADA system operation, according to measuring character, can be divided into analog quantity class, discrete magnitude class, alarm measurement class.
These device objects of classifying in the SCADA system each entity in the oil gas pipe network system is a device object of this class.Equipment entity apparatus for establishing object in the SCADA system for each class.The specifications parameter of equipment is the base attribute of every kind equipment object, and the annexation between equipment, the measurement information of equipment are the relating attributes of device object.For the application programs such as operating analysis of SCADA system can easy-to-look-up device parameter information, for the equipment entity of each class is set up an equipment records in the SCADA system, so that information such as service equipment parameters.In equipment records, need the configurable selection of measurement information of monitoring.When creating equipment records, according to configuration, select to form required measurement record.By above-mentioned operation, can make the device model necessary being in the SCADA system.
In the present invention, the topological connection relation between equipment entity is as the relating attribute of device object, and the association between device object means that certain equipment entity is connected with which equipment entity is actual.Can be like this application software analyzes the function such as operating condition more detailed information is provided.In addition, all gauge points carry out associated with equipment.By a station management equipment, by the equipment control gauge point, make model hierarchy clearer, be easy to administer and maintain.Set up SCADA system equipment model according to the annexation between equipment and the association between device object.
Below the main framework of this SCADA system equipment model is described in detail.
As shown in Figure 1, the root class provides public name attribute for all classes of name attribute that need.The name attribute of other all classes is all inherited the root class.The resources-type succession root of pipe network system class, what any equipment, pipeline and station etc. belonged to the pipe network system resource all directly or indirectly inherits this type of.Company's class and pipe network system are resources-type is the incidence relation of multi-to-multi, and different pipe network systems is resources-type can belong to the same company entity, also can belong to a plurality of different companys entity.Company's class is also inherited the root class.The pipeline class refers to the whole piece pipeline of oil gas conveying origin-to-destination.It is resources-type that the pipeline class is inherited pipe network system, is the extensive class of pipe network system resource.The equipment container class refers to the one group of equipment (completing a class entity of one group of function) comprised in the oil gas pipe network system, for all container classes that comprise equipment provide a root class.It is resources-type that the equipment container class is inherited pipe network system.(valve chamber) class vial line field, station (valve chamber) entity along the line of standing is the set of one group of equipment for completing oil, the various technological processes of gas transmitting procedure.(valve chamber) class of standing is inherited the equipment container class, is the extensive class of equipment container.Pipeline-like by abstract the obtaining of pipeline between pipeline adjacent two stations along the line (valve chamber).Pipeline-like succession pipe network system is resources-type.Pipeline and pipeline are paradigmatic relations, i.e. the part that pipeline is a pipeline.Pipeline and station (valve chamber) class have the incidence relation of multi-to-multi, and each end points of a pipeline all connects a station (valve chamber), and one stand (valve chamber) is the beginning or end of one or more pipelines.The control zone class refers to the class one zone territory entity that a pipeline each several part is managed respectively.It is resources-type that the control zone class is inherited pipe network system.Control zone class and station (valve chamber) class, control zone class have a paradigmatic relation with pipeline-like, and each control zone comprises affiliated field, station (valve chamber) class and the pipeline of docking station field (valve chamber) class.Equipment class has referred to an a kind of kind equipment or device combination of technological operation, for all devices class provides a root class.It is resources-type that equipment class is inherited pipe network system.Equipment class and equipment container class have paradigmatic relation, and each equipment container class entity can comprise affiliated equipment entity.Oil gas transmission equipment class is the root class that the equipment class of annexation is arranged.Succession equipment has also been expanded topological connection attribute.The end points class obtains by the end points connected between equipment is abstract.The end points class is inherited the root class.End points class and oil gas transmission equipment class have many-to-one incidence relation, and each oil gas transmission equipment has the end points that connects other equipment, and each end points can only belong to a transmission equipment.
The concrete expansion of equipment class is as shown in Figure 2: all devices is inherited from equipment class, comprises the class and the transmission equipment class that connect without topology.The transmission equipment class is extensive again goes out various transmission equipments, as pump, valve, filtrator etc.Some technological process is completed by a series of device combinations, by this cluster tool abstract be a class, as metering system, contaminated product device etc.
The associated modeling of the incidence relation between equipment and equipment and measurement class is as shown in Figure 3: transmission equipment is according to self connection attribute (as single-ended or both-end) associated endpoint class, the corresponding node class object of every end points class object.Node class object carrys out the annexation between description equipment by the end points class object of a plurality of equipment of association.Measure class also associated with transmission equipment by the end points class.
Finally, introduce the concrete steps of automatic formation control logic.
In the present invention, the control process, at first according to the control principle of main equipment, is set up the micro-topological structure of main equipment control law; Find again the related control device object record in the device object record, automatically select corresponding gauge point, the specified control logic.Be described as follows:
At first, according to the control principle of equipment entity, the micro-topological structure of the control law of apparatus for establishing object record, micro-topological control structure relation is as follows:
The technological process of below receiving ball with technological process and the pigging of gas transmission station departures ball valve respectively illustrates micro-topological structure that device object is set up.
As shown in Figure 4, the technological process of the gas transmission station of take departures ball valve is example, and the micro-topological structure of the control law of apparatus for establishing object record is illustrated.Wherein, departures ball valve ESDV-1301 and bypass motorized valve XV-1305 are all SCADA system equipments.
Under based on the equipment modeling mode, the SCADA system can be searched departures ball valve ESDV-1301 automatically according to device type; According to the relation of equipment and measurement, find measuring value PT-1301 force value, PT-1302 force value and the PT-1303 force value of departures ball valve ESDV-1301 pressure at two ends value collection point; According to the annexation between equipment, find bypass motorized valve XV-1305, automatically generate the micro-topological control structure of departures ball valve.
Next, find the related control device object record in the device object record, automatically select corresponding gauge point, the formation control logic.
Departures valve group to jointly control logic as follows: be the steady unlatching that realizes departures ball valve ESDV-1301, before opening departures ball valve ESDV-1301, should judge the measurement differential pressure value one of (PT-1303 force value subtract the absolute value of PT-1301 force value and absolute value that the PT-1303 force value subtracts the PT-1302 force value the two) of departures ball valve ESDV-1301 pressure at two ends value collection point.Directly open if differential pressure is less than or equal to setting value, otherwise first open bypass motorized valve XV-1305, when differential pressure value is less than or equal to setting value, then open departures ball valve ESDV-1301.After receiving departures ball valve ESDV-1301 " valve standard-sized sheet " return signal, close bypass motorized valve XV-1305, make it in " complete shut-down " state.
Under traditional modeling pattern, complete this steering logic, must be according to process flow diagram, artificial measuring value PT-1301 force value, PT-1302 force value and the PT-1303 force value of selecting departures ball valve ESDV-1301 pressure at two ends value collection point, ball valve ESDV-1301 and bypass motorized valve XV-1305 will select to set off simultaneously.In other departures district's technological processes, also need to reselect measuring value and equipment.
The technological process of gas transmission station shown in Fig. 4 departures ball valve of below take is example, and the process of automatic formation control logic is launched to describe in detail, and the ball valve ESDV-1301 that wherein stands is the SCADA system equipment.
In the present invention, automatically during the formation control logic, first find the related control device of departures ball valve ESDV-1301-bypass motorized valve XV-1305 and pressure at both sides value collection point, then formation control logic automatically.Steering logic judgement flow process is as follows:
Judging whether current departures ball valve ESDV-1301 receives starts request, if without request wait for, until receive, starts request; Start request further check whether current departures ball valve ESDV-1301 can control if receive;
If current departures ball valve ESDV-1301 is uncontrollable, finish; If current departures ball valve ESDV-1301 can control, further check whether current departures ball valve ESDV-1301 triggers associate device and control;
If current departures ball valve ESDV-1301 does not trigger associate device and controls, inserting controlled condition value flag value is 0, issues current ball valve control command to collection point, finishes; If current departures ball valve ESDV-1301 triggers associate device and controls, insert the control termination condition, and associate device is inserted in termination condition the reference mark of opertaing device and state of a control are issued to collection point, further judge whether to meet trigger condition;
If do not meet trigger condition, wait for, until meet trigger condition; If meet trigger condition, issue the order of current oil feed channel device start to collection point, and further judge whether control command carries out complete; Also do not meet if surpass the certain hour trigger condition, be judged as and control unsuccessfully, recover the state of a control of associate device;
If control command is not finished, wait for, until control command is finished; If control command is finished, recover the state of a control of associate device, issue associate device and recover control command and finish.
As shown in Figure 5, take pigging receives the ball technological process and the micro-topological structure of the control law of apparatus for establishing object record is described as example.Wherein, pig recenver PR-1201 and gas admittance valve XV-1201, the valve XV-1202 that enters the station, air outlet valve XV-1203, equalizing valve 1204 are all SCADA system equipments.
Under based on the equipment modeling mode, the SCADA system can be searched pigging ball collecting chamber PR-1201 automatically according to device type, according to the relation between equipment, find gas admittance valve XV-1201, the valve XV-1202 that enters the station, air outlet valve XV-1203, equalizing valve 1204 generate micro-topological structure of pigging ball collecting chamber PR-1201 automatically, then find the related control device object record in the device object record, automatically select corresponding gauge point, formation control logic.
The steering logic of pigging receipts ball as shown in Figure 5, after clicking the control command that the receipts ball exercise of pigging ball collecting chamber PR-1201 does, at first confirm that rabbit is received cylinder air outlet valve XV-1203, gas admittance valve XV-1201 and the equalizing valve 1204 that is connected with cylindrical shell in closed condition (enter the station valve XV-1202 should in opening).The speed entered the station for reducing rabbit, can suitably reduce the natural gas upstream flow velocity.Can sequentially carry out following operation by the operation to pigging ball collecting chamber PR-1201, open ball collecting chamber equalizing valve 1204, progressively open air outlet valve XV-1203, judge whether balance of the receipts cylinder pressure of valve both sides and station internal pressure after opening, open ball collecting chamber gas admittance valve XV-1201 after balance, close the valve XV-1202 that enters the station.After receiving the signal of the pigging on cylinder, spherical pig enters in receiving basin.Close gas admittance valve XV-1201, at first it can close the valve XV-1202 that enters the station before carrying out the operation execution of closing, and understands afterwards orderly close-down XV-1201, XV-1203,1204, recovers normal flow.In micro-topological structure that their order generates at pigging ball collecting chamber PR-1201, define.Can judge their opening degree by the state of these valves, thereby judge that whether the control of valve is successful.In addition, can also pass through the pressure at these equipment two ends, whether pressure equilibrium of automatic decision.
Under traditional modeling pattern, complete this steering logic, need to artificially select according to process flow diagram.At first open the equalizing valve 1204 of ball collecting chamber, then open ball collecting chamber air outlet valve XV-1203, also need pressure and the pressure equilibrium of receiving cylinder in the judgement station, then just can open ball collecting chamber gas admittance valve XV-1201, close the valve XV-1202 that enters the station.The wait spherical pig is opened the valve XV-1202 that enters the station after entering in ball collecting chamber again, closes one by one XV-1201, XV-1203,1204, recovers normal flow.
As shown in Figure 6, it is that example describes in detail automatic formation control logic that pigging is received to the ball technological process, during automatic formation control logic, first find the pigging ball collecting chamber opertaing device relevant with it to receive ball gas admittance valve XV-1201, XV-1202, XV-1203,1204 and the collection point of pressure at both sides, then formation control logic automatically.The judgement flow process of steering logic is as follows:
Judge whether pigging ball collecting chamber PR-1201 receives the ball request of receiving, if without request wait for, until receive request; If receive request further check whether pigging ball collecting chamber PR-1201 can control;
If current pigging ball collecting chamber PR-1201 is uncontrollable, finish; If current receipts ball pigging ball collecting chamber PR-1201 can control, further check whether the current equipment associated with it triggers associate device and control;
If current pigging ball collecting chamber PR-1201 does not trigger associate device and controls, inserting controlled condition flag value is 0, issues current pigging ball collecting chamber PR-1201 control command to collection point, finishes; If current pigging ball collecting chamber PR-1201 triggers associate device and controls, insert the control termination condition, associate device is inserted in constraint condition, and the reference mark of opertaing device and state of a control are issued to collection point, further judge whether to meet trigger condition;
If do not meet trigger condition, wait for, until meet trigger condition; If meet trigger condition, issue the order of current oil feed channel device start to collection point, and further judge whether control command carries out complete; Also do not meet if surpass the regular hour trigger condition, be judged as and control unsuccessfully, recover the state of a control of associate device;
If being finished, control command do not wait for, until control command is finished; Recover the state of a control of associate device if control command is finished, issue associate device and recover control command and finish.
In sum, the present invention both can service equipment self specifications parameter, and the topological connection relation between again can complete description equipment, for condition has been created in the application such as formation control logic automatically.Utilize the present invention, in the situation that it is definite to control principle, can automatically selects corresponding gauge point and equipment according to equipment connecting relation, thereby formulate steering logic, and this steering logic can be multiplexed in other technological processes of using same control principle.
The above has been described in detail the SCADA system equipment modeling method of automatic formation control logic provided by the present invention.For one of ordinary skill in the art, any apparent change of under the prerequisite that does not deviate from connotation of the present invention, it being done, all will form infringement of patent right of the present invention, will bear corresponding legal liabilities.