CN105469693B - A kind of oil-gas gathering and transportation virtual controlling experience system and method - Google Patents
A kind of oil-gas gathering and transportation virtual controlling experience system and method Download PDFInfo
- Publication number
- CN105469693B CN105469693B CN201610005603.XA CN201610005603A CN105469693B CN 105469693 B CN105469693 B CN 105469693B CN 201610005603 A CN201610005603 A CN 201610005603A CN 105469693 B CN105469693 B CN 105469693B
- Authority
- CN
- China
- Prior art keywords
- plc
- virtual
- module
- oil
- gui
- 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.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B25/00—Models for purposes not provided for in G09B23/00, e.g. full-sized devices for demonstration purposes
- G09B25/02—Models for purposes not provided for in G09B23/00, e.g. full-sized devices for demonstration purposes of industrial processes; of machinery
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of oil-gas gathering and transportation virtual controlling experience system and method, it is related to field of virtual reality.The system includes virtual PLC, OPC, 3D virtual scene, mathematical computations backstage, GUI graphical interface systems and three-dimensional engine.The data that wherein virtual PLC is used in processing system;The data communication that OPC is used in connection system;3D virtual scenes are used to provide intuitively oil-gas gathering and transportation process;Mathematical computations backstage is used to calculate processing system variable, processing user and the interactive information of virtual scene and GUI graphical interface systems;GUI graphical interface systems are used to provide the user with operation interface;Three-dimensional engine is used to condense together 3D virtual scenes, mathematical computations backstage, GUI graphical interface systems.The invention devises a kind of new oil-gas gathering and transportation virtual controlling experience system and method, it is easy to operate, be easy to safeguard, cost it is low, optimal teaching result can be reached.
Description
Technical field
The present invention relates to field of virtual reality, more particularly to a kind of oil-gas gathering and transportation virtual controlling experience system and method.
Background technology
PLC(Programmable Logic Controller, programmable logic controller (PLC)), it is that one kind is exclusively used in industry
The computer of control, its hardware configuration are substantially identical with microcomputer.With it is versatile, easy to use, adapt to it is wide,
The features such as reliability height, strong antijamming capability, simple programming.
Virtual PLC, i.e. PLC simulation softwares, it can be simulated in a practical situation by running the software, PLC operation shape
Condition, can play a part of that small investment, effect be good, efficiency high.
OPC(OLE for Process Control, the OLE for process control), it is an industrial standard, it can be with
Efficient, flexible reading and writing data between application program and industrial control equipment is realized, the visitor for meeting standard OPC interface can be worked out
Family end application software completes the acquisition tasks of data.
3Ds MAX, it is that a kind of three-dimensional animation based on PC systems renders and Software for producing, it can make three-dimensional true to nature
Model.
OpenGL(Open Graphics Library, open graphic library)Be define one across programming language, across flat
The professional graphic package interface of the DLL specification of platform.It is used for 3-D view(Two dimension also may be used), it is that One function is strong
Greatly, convenient underlying graphics storehouse is called.
GUI(Graphical User Interface, graphic user interface)Refer to the calculating shown using graphics mode
Machine operates user interface, is easy to layman to operate system.
Oil, associated natural gas and other products that oil-gas gathering and transportation refers to scattered oil well to be produced are put together, warp
Cross necessary processing, preliminary working, the outer defeated technique overall process to oil plant and natural gas user of qualified oil and gas difference.
Mainly include the techniques such as Oil-gas Separation, oil gas metering, crude oil dehydration, natural gas purification, crude oil stabilization, lighter hydrocarbons recovery.Oil gas collection
Defeated is one of important step in the production of oil field, and the equipment being related to is numerous, and technological process is complicated.Whether it can be steady, safety
Operation, affect the quality of finished product crude oil and the economic benefit of crude oil production.The old oil of a part that China more early puts into production
Field is gradually stepped into the middle and later periods, and exploitation difficulty is stepped up therewith, and the production stage in oil-gas gathering and transportation process etc. later stage is become more meticulous
Controlling extent proposes requirements at the higher level.So oil-gas gathering and transportation industry suffers from very to the relevant professional knowledge and technical ability of technical staff
High requirement.
The virtual emulation control system of existing oil-gas gathering and transportation, hardware aspect is generally by entity sand table, PLC, computer, stream
Journey plate etc. forms, and software aspects are generally by based on 2d flows animation and teaching demonstration animation.For these methods, technology first
Personnel need the special laboratory progress analog simulation gone equipped with sand table, time cost are added, second, a set of simulation of configuration is imitative
Very system is expensive, and sand table is easily damaged and needs special messenger to safeguard, third, not directly perceived succinct enough, operating personnel need continuous
Switch the operation object at computer end sand table end and touch screen end.
The content of the invention
In consideration of it, the invention provides a kind of oil-gas gathering and transportation virtual controlling experience system and method, the system is easy to operate, just
It is low in maintenance, cost, technical staff is quickly understood practical operation flow, reach optimal teaching result.
The technical solution adopted by the present invention is as follows:
A kind of oil-gas gathering and transportation virtual controlling experience system, it is characterised in that the system includes:Virtual PLC, OPC, 3D are empty
Intend scene, mathematical computations backstage, GUI graphical interface systems, three-dimensional engine;
The virtual PLC, for receiving operation requests that user sent by GUI graphical interface systems and being handled;
Operation requests are sent to mathematical computations backstage through OPC, and then control the display of 3D virtual scenes;Receive after coming from mathematical computations
Data after platform processing, carry out the computing of various control laws;Control technological process and the control oil of whole oil-gas gathering and transportation system
Controlled quentity controlled variable in gas gathering system;
The OPC, communicated for connecting the data between virtual PLC and mathematical computations backstage;And connection GUI figures circle
Data between plane system and PLC communicate;
The 3D virtual scenes, for showing the technological process of whole oil-gas gathering and transportation, there is provided intuitively oil-gas gathering and transportation process,
The display effect that the instruction passed over according to virtual PLC changes in scene is consistent with real oil-gas gathering and transportation system;
The mathematical computations backstage, for reading each variable calculated in 3D virtual scenes, GUI is passed to by result of calculation
Graphical interface system, and then show;The variable for being used to control after calculating is passed into virtual PLC through OPC and is used for control law
Regulation;The display effect of model in 3D virtual scenes is directly controlled using OpenGL graphic packages interface;
The GUI graphical interface systems, for receiving the result after mathematical computations hind computation and display;User is led to
Cross GUI graphical interface systems and perform operational order, operational order is sent to virtual PLC through OPC;
The three-dimensional engine, for 3D virtual scenes, mathematical computations backstage, GUI graphical interface systems to be aggregated in
Together.
The virtual PLC can be attached with OPC;
The virtual PLC includes plc data communication module, operation requests processing module, control law adjustment module, flow
Control module, Logic control module;Wherein plc data communication module comes from for operation requests of the reception from GUI and reception
Result after mathematical computations hind computation, and logical control information, flow control information and control law regulation result are passed through
OPC is sent to mathematical computations backstage;Operation requests processing module is used to handle the operation requests that user is sent by GUI;Control
After the preset value that the information and user that rule adjustment module processed is used to be passed over according to mathematical computations backstage are set is compared
It is controlled rule regulation;Process control module is used for the flow that whole oil-gas gathering and transportation is controlled according to system current state.
The mathematical computations backstage is to carry out mathematical modeling to the various equipment in oil-gas gathering and transportation system and pipeline, is established
After mathematical modeling, the corresponding program of programming language is utilized;
The mathematical modeling is with the pipeline in oil-gas gathering and transportation system, heating furnace, regulating valve, motor, separator, transfer
Tank, magnetic valve, hand-operated valve equipment are the mathematical modeling that object is established, and mainly establish controlled variable, performance variable, disturbance variable it
Between mathematical relationship;
Described program includes:Interface module, computing module, back-end data communication module, wherein interface module are used to connect
OpenGL graphic package interfaces, call the 3D models in 3D virtual scenes;Computing module be used to calculating in transmittance process variable it
Result after interphase interaction;Back-end data communication module shows for passing the result to GUI and transmits result through OPC
The result from PLC is handled and received to PLC.
The GUI graphical interface systems include:Interface display module, operation respond module, gui data communication module, its
Median surface display module is used to showing the parameter of the option of operation that user can carry out and display system current state;Operation rings
Module is answered to click on the operation requests after certain option of operation for responding user;Gui data communication module is used to operation responding mould
Operation requests after block processing are sent to PLC through OPC, and receive the information passed over from mathematical computations backstage.
The three-dimensional engine is the computer program write using OpenGL graphic packages interface and programming language.
A kind of oil-gas gathering and transportation virtual controlling practical training method of system based on one of claim 1 to 5, it is characterised in that
Methods described concretely comprises the following steps:
Step 1:Configure the communication between virtual PLC and OPC;
Step 2:Technical staff is according to the IO reference point PLC programs provided, and by download program to virtual PLC system
Middle operation;
Step 3:Arrange parameter option is clicked on GUI graphical interface systems, preset value is set, then clicks on activation system
Option, whole system start;Now, GUI graphical interfaces can display system initial state value;
Step 4:User clicks on GUI graphical interface systems interfaces manually or automatically control button, carry out manually and
The switching automatically controlled;
Manual control mode is:Corresponding unlatching and stop button in GUI panel are manually clicked on, control manually is always entered
Oil tank, transfer oil tank, user's oil supply line, heating furnace aqueous medium, heating furnace are heated fluid, treat that three-phase shunts oil gas, observation
Corresponding data display panels are simultaneously adjusted;
Automatic control mode is:Click on parameter setting and click on control parameter in the parameter setting panel of ejection, set
The control parameter of ownership goal variable parameter and corresponding control law, click on and determine input parameter, then observed data display surface
Plate;
Step 5:PLC is controlled rule regulation, and user can click on the control law process data in parameter setting panel
Button, regulation process is watched in the window of ejection;
Step 6:Experimental data, the opening button of click data window are exported, data are automatically copied into the notepad of ejection
Window, automatically save, and analyze and process.
The clicking operation is handled via operation respond module, and then the operation requests are communicated mould by gui data
Block is sent to plc data communication module through OPC;Operation requests processing module is handled the operation requests, is related to system
Flow processing then sends a request to flow processing module and handled;Sent after being disposed by plc data communication module through OPC
Back-end data communication module is given, computing module is handled, and the mould in 3D virtual scenes is controlled by interface module after being disposed
Type display effect, and system current state is sent to gui data communication module, then interface display module will show the shape
State;
The setup parameter is sent to plc data communication module by gui data communication module through OPC, and virtual PLC will be remembered
The parameter is recorded, the preset value as control law regulation;
The control law regulation is performed automatically by control law adjustment module, and control law adjustment module will be by that will preset
The value for being worth and receiving is compared, and is then adjusted, will regulation result by plc data communication module after OPC is sent to
Platform data communication module, after computing module is handled, gui data communication module, interface are sent to by plc data communication module
Display module vision-control process.
Using above technical scheme, present invention produces following beneficial effect:
1st, it is directly perceived, easy to operate:Using GUI graphical interface systems, user is allowed simply to issue operation
Instruction;Using virtual 3D technology, allow user that the process of actual oil-gas gathering and transportation can intuitively can be clearly seen.
2nd, cost is low, easy care:Whole system is run in a manner of computer program, Wu Xupei
Put the hardware facilities such as PLC, entity sand table, in the absence of hardware maintenance, reduce the cost of whole system.
3rd, the time is saved:The laboratory that staff need not go special configuration and have sand table carries out system emulation
Debugged with PLC program, saved the development time.
Brief description of the drawings
Fig. 1 is a kind of oil-gas gathering and transportation virtual controlling experience system structural representation of the present invention.
Fig. 2 is a kind of virtual PLC structural representation of oil-gas gathering and transportation virtual controlling experience system of the present invention.
Fig. 3 is a kind of mathematical computations backstage structural representation of oil-gas gathering and transportation virtual controlling experience system of the present invention.
Fig. 4 is a kind of GUI graphical interface system structural representations of oil-gas gathering and transportation virtual controlling experience system of the present invention.
Embodiment
All features disclosed in this specification, or disclosed all methods or during the step of, except mutually exclusive
Feature and/or step beyond, can combine in any way.
This specification(Including any accessory claim, summary)Disclosed in any feature, unless specifically stated otherwise,
Replaced by other equivalent or with similar purpose alternative features.I.e., unless specifically stated otherwise, each feature is a series of
An example in equivalent or similar characteristics.
A kind of oil-gas gathering and transportation virtual controlling experience system is provided in the embodiment of the present invention 1, system architecture as shown in figure 1,
Comprise the following steps that:
Step 1:Selected Siemens s7-300 PLC are as the system PLC, and the simulation software carried using the PLC is to PLC
The Realization of Simulation is carried out, establishes virtual PLC, and the OPC provided using the PLC is as the system OPC.
Step 2:Mathematical modeling is carried out to oil-gas gathering and transportation system, to pipeline, heating furnace, regulating valve, motor, separation in system
Device, transfer tank, magnetic valve, hand-operated valve device object are modeled, and are realized using C# programming languages program.It is main to establish
Mathematical relationship between controlled variable and manipulating variable, interference volume, to reach the purpose of virtual controlled device.
Step 3:The real model of oil-gas gathering and transportation system is established using 3Ds MAX modeling softwares, using OpenGL figure journeys
Sequence interface is called to the model in 3D modeling software.
Step 4:Three-dimensional engine is write using OpenGL and programming language, using C# scripting language's GUI figures
Interface system program.
Step 5:3D virtual scenes, mathematical computations backstage, GUI graphical interface systems are aggregated in using three-dimensional engine
Together, 3D virtual scenes and mathematical computations backstage and the connection between GUI graphical interface systems and mathematical computations backstage are established.
Step 6:GUI graphical interface systems and virtual PLC and mathematical operation backstage and the company of virtual PLC are established using OPC
Connect.
A kind of oil-gas gathering and transportation virtual controlling experience system is provided in the embodiment of the present invention 2, system architecture as shown in figure 1,
Comprise the following steps that:
Step 1:Selected Mitsubishi FR-Q PLC are carried out as the system PLC using the simulation software that the PLC is carried to PLC
The Realization of Simulation, virtual PLC is established, and the OPC provided using the PLC is as the system OPC.
Step 2:Mathematical modeling is carried out to oil-gas gathering and transportation system, to pipeline, heating furnace, regulating valve, motor, separation in system
Device, transfer tank, magnetic valve, hand-operated valve object carries out abstract modeling, and writes program realization using JavaScript program language.
The main mathematical relationship established between controlled variable and manipulating variable, interference volume, to reach the purpose of virtual controlled device.
Step 3:Three-dimensional engine is write using OpenGL and programming language, using OpenGL graphic package interfaces to 3D
Model in modeling software is called.
Step 4:Selected three-dimensional engine is compiled as the system three-dimensional engine using JavaScript scripts
Write GUI graphical interface system programs.
Step 5:3D virtual scenes, mathematical computations backstage, GUI graphical interface systems are aggregated in using three-dimensional engine
Together, 3D virtual scenes and mathematical computations backstage and the connection between GUI graphical interface systems and mathematical computations backstage are established.
Step 6:GUI graphical interface systems and virtual PLC and mathematical operation backstage and the company of virtual PLC are established using OPC
Connect.
A kind of oil-gas gathering and transportation virtual controlling experience system and method, system architecture such as Fig. 1 are provided in the embodiment of the present invention 3
It is shown, comprise the following steps that:
Step 1:Selected Mitsubishi FR-Q PLC are carried out as the system PLC using the simulation software that the PLC is carried to PLC
The Realization of Simulation, virtual PLC is established, and the OPC provided using the PLC is as the system OPC.
Step 2:Mathematical modeling is carried out to oil-gas gathering and transportation system, to pipeline, heating furnace, regulating valve, motor, separation in system
Device, transfer tank, magnetic valve, hand-operated valve object carries out abstract modeling, and writes program realization using JavaScript program language.
The main mathematical relationship established between controlled variable and manipulating variable, interference volume, to reach the purpose of virtual controlled device.
Step 3:The real model of oil-gas gathering and transportation system is established using Maya modeling softwares, is connect using OpenGL graphic packages
Mouth is called to the model in 3D modeling software.
Step 4:Three-dimensional engine is write using OpenGL and programming language, using JavaScript scripting languages
GUI graphical interface system programs.
Step 5:3D virtual scenes, mathematical computations backstage, GUI graphical interface systems are aggregated in using three-dimensional engine
Together, 3D virtual scenes and mathematical computations backstage and the connection between GUI graphical interface systems and mathematical computations backstage are established.
Step 6:GUI graphical interface systems and virtual PLC and mathematical operation backstage and the company of virtual PLC are established using OPC
Connect.
Step 7:Arrange parameter option is clicked on GUI graphical interface systems, preset value is set, then clicks on activation system
Option, whole system start;Now, GUI graphical interfaces can display system initial state value;
Step 8:User clicks on GUI graphical interface systems interfaces manually or automatically control button, carry out manually and
The switching automatically controlled;
Manual control mode is:Corresponding unlatching and stop button in GUI panel are manually clicked on, control manually is always entered
Oil tank, transfer oil tank, user's oil supply line, heating furnace aqueous medium, heating furnace are heated fluid, treat that three-phase shunts oil gas, observation
Corresponding data display panels are simultaneously adjusted.
Automatic control mode is:Click on parameter setting and click on control parameter in the parameter setting panel of ejection, set
The control parameter of ownership goal variable parameter and corresponding control law, click on and determine input parameter, then observed data display surface
Plate;
Step 9:PLC is controlled rule regulation, and user can click on the control law process data in parameter setting panel
Button, regulation process is watched in the window of ejection;
Step 10:Experimental data, the opening button of click data window are exported, data are automatically copied into the notepad of ejection
Window, and automatically save.
Clicking operation is handled via operation respond module, then passes through the operation requests by gui data communication module
OPC is sent to plc data communication module;Operation requests processing module is handled the operation requests, if be related to be
System flow processing then sends a request to flow processing module and handled, if being related to system logic processing then sends request
Handled to logic processing module;After being disposed back-end data communication mould is sent to by plc data communication module through OPC
Block, computing module are handled, and control the model display effect in 3D virtual scenes by interface module after being disposed, and will be
System current state is sent to gui data communication module, and then interface display module will show the state;
Setup parameter is sent to plc data communication module by gui data communication module through OPC, and virtual PLC will record should
Parameter, the preset value as control law regulation;
The regulation of control law is performed automatically by control law adjustment module, and control law adjustment module is by by preset value
It is compared with the value received, is then adjusted, regulation result is sent to backstage by plc data communication module through OPC
Data communication module, after computing module is handled, gui data communication module is sent to by plc data communication module, interface shows
Show module vision-control process.
A kind of oil-gas gathering and transportation virtual controlling experience system and method, system architecture such as Fig. 1 are provided in the embodiment of the present invention 4
It is shown, virtual PLC structure chart as shown in Fig. 2 mathematical computations backstage structure chart as shown in figure 3, GUI graphical interface system structure charts
As shown in figure 4, comprise the following steps that:
Step 1:Selected Mitsubishi FR-Q PLC are carried out as the system PLC using the simulation software that the PLC is carried to PLC
The Realization of Simulation, virtual PLC is established, and can be entered using the PLC OPC provided as virtual PLC described in the system OPC with OPC
Row connection.
The virtual PLC includes plc data communication module, operation requests processing module, control law adjustment module, flow
Control module;Wherein plc data communication module is by receiving the operation requests from GUI and receiving based on from mathematical computations backstage
Result after calculation, and flow control information and control law are adjusted into result and sent through OPC to mathematical computations backstage;Operation please
Processing module is asked to be used to handle the operation requests that user is sent by GUI;Control law adjustment module is based on according to mathematics
The information and the preset value of user's setting that calculation backstage passes over carry out control law regulation after being compared;Process control module
For controlling the flow of whole oil-gas gathering and transportation according to system current state.
Step 2:Mathematical modeling is carried out to oil-gas gathering and transportation system, to pipeline, heating furnace, regulating valve, motor, separation in system
Device, transfer tank, magnetic valve, hand-operated valve object carries out abstract modeling, and writes program reality using JavaScript program language
It is existing., establish mathematical computations backstage, the mathematical relationship mainly established between controlled variable and manipulating variable, interference volume, to reach void
Intend the purpose of controlled device.
Mathematical computations background program includes:Interface module, computing module, wherein back-end data communication module, interface module
For connecting OpenGL graphic package interfaces, the 3D models in 3D virtual scenes are called;Computing module is used to calculate transmittance process
Result after the interphase interaction of middle variable;Back-end data communication module shows for passing the result to GUI, passes through result
OPC passes to PLC and is handled and received the result from PLC.
Step 3:The real model of oil-gas gathering and transportation system is established using Maya modeling softwares, is connect using OpenGL graphic packages
Mouth is called to the model in 3D modeling software.
Step 4:Three-dimensional engine is write using OpenGL and programming language, using JavaScript scripting languages
GUI graphical interface system programs.
GUI graphical interface systems include:Interface display module, operation respond module, wherein gui data communication module, boundary
Face display module is used to showing the parameter of the option of operation that user can carry out and display system current state;Operation response mould
Block clicks on the operation requests after certain option of operation for responding user;Gui data communication module is used for please by the operation after response
Ask and be sent to PLC through OPC, and receive the information passed over from mathematical computations backstage.
Step 5:3D virtual scenes, mathematical computations backstage, GUI graphical interface systems are aggregated in using three-dimensional engine
Together, 3D virtual scenes and mathematical computations backstage and the connection between GUI graphical interface systems and mathematical computations backstage are established.
Step 6:GUI graphical interface systems and virtual PLC and mathematical operation backstage and the company of virtual PLC are established using OPC
Connect.
Step 7:Arrange parameter option is clicked on GUI graphical interface systems, preset value is set, then clicks on activation system
Option, whole system start;Now, GUI graphical interfaces can display system initial state value;
Step 8:User clicks on GUI graphical interface systems interfaces manually or automatically control button, carry out manually and
The switching automatically controlled;
Manual control mode is:Corresponding unlatching and stop button in GUI panel are manually clicked on, control manually is always entered
Oil tank, transfer oil tank, user's oil supply line, heating furnace aqueous medium, heating furnace are heated fluid, treat that three-phase shunts oil gas, observation
Corresponding data display panels are simultaneously adjusted.
Automatic control mode is:Click on parameter setting and click on control parameter in the parameter setting panel of ejection, set
The control parameter of ownership goal variable parameter and corresponding control law, click on and determine input parameter, then observed data display surface
Plate;
Step 9:PLC is controlled the regulation of rule, and the control law that user can be clicked in parameter setting panel crosses number of passes
According to button, regulation process is watched in the window of ejection;
Step 10:Experimental data, the opening button of click data window are exported, data are automatically copied into the notepad of ejection
Window, and automatically save.
Clicking operation is handled via operation respond module, then passes through the operation requests by gui data communication module
OPC is sent to plc data communication module;Operation requests processing module is handled the operation requests, if be related to be
System flow processing then sends a request to flow processing module and handled, if being related to system logic processing then sends request
Handled to logic processing module;After being disposed back-end data communication mould is sent to by plc data communication module through OPC
Block, computing module are handled, and control the model display effect in 3D virtual scenes by interface module after being disposed, and will be
System current state is sent to gui data communication module, and then interface display module will show the state;
Setup parameter is sent to plc data communication module by gui data communication module through OPC, and virtual PLC will record should
Parameter, the preset value as control law regulation;
The regulation of control law is performed automatically by control law adjustment module, and control law adjustment module is by by preset value
It is compared with the value received, is then adjusted, regulation result is sent to backstage by plc data communication module through OPC
Data communication module, after computing module is handled, gui data communication module is sent to by plc data communication module, interface shows
Show module vision-control process.
The invention is not limited in foregoing embodiment.The present invention, which expands to, any in this manual to be disclosed
New feature or any new combination, and disclose any new method or process the step of or any new combination.
Claims (7)
1. a kind of oil-gas gathering and transportation virtual controlling experience system, it is characterised in that the system includes:Virtual PLC, OPC, 3D are virtual
Scene, mathematical computations backstage, GUI graphical interface systems, three-dimensional engine;
The virtual PLC, for receiving operation requests that user sent by GUI graphical interface systems and being handled, it will grasp
Ask to be sent to mathematical computations backstage through OPC, and then control the display of 3D virtual scenes;Receive at mathematical computations backstage
Data after reason, carry out the computing of various control laws;Control technological process and the control oil gas collection of whole oil-gas gathering and transportation system
Controlled quentity controlled variable in defeated system;
The OPC, communicated for connecting the data between virtual PLC and mathematical computations backstage, and connection GUI graphical interfaces system
System communicates with the data between PLC;
The 3D virtual scenes, for showing the technological process of whole oil-gas gathering and transportation, there is provided intuitively oil-gas gathering and transportation process, according to
The display effect that the instruction that virtual PLC passes over changes in scene is consistent with real oil-gas gathering and transportation system;
The mathematical computations backstage, for reading each variable calculated in 3D virtual scenes, GUI figures are passed to by result of calculation
Interface system, and then show;The variable for being used to control after calculating is passed into regulation of the virtual PLC for control law through OPC;
The display effect of model in 3D virtual scenes is directly controlled using OpenGL graphic packages interface;
The GUI graphical interface systems, for receiving the result after mathematical computations hind computation and display;User passes through
GUI graphical interface systems perform operational order, and operational order is sent into virtual PLC through OPC;
The three-dimensional engine, for 3D virtual scenes, mathematical computations backstage, GUI graphical interface systems to be condensed together;
The virtual PLC can be attached with OPC, and the virtual PLC includes plc data communication module, operation requests processing
Module, control law adjustment module, process control module, Logic control module;Wherein plc data communication module, which is used to receive, comes
From GUI operation requests and the result after mathematical computations hind computation is received, and by logical control information, Row control
Information and control law regulation result are sent to mathematical computations backstage through OPC;Operation requests processing module is led to for handling user
Cross the operation requests that GUI is sent;Control law adjustment module is used for the information and use passed over according to mathematical computations backstage
The preset value of family setting carries out control law regulation after being compared;Process control module is used to be controlled according to system current state
The flow of whole oil-gas gathering and transportation.
2. oil-gas gathering and transportation virtual controlling experience system as claimed in claim 1, it is characterised in that:
The mathematical computations backstage is to carry out mathematical modeling to the various equipment in oil-gas gathering and transportation system and pipeline, establishes mathematics
After model, the corresponding program of programming language is utilized.
3. oil-gas gathering and transportation virtual controlling experience system as claimed in claim 2, it is characterised in that:
The mathematical modeling is with the pipeline in oil-gas gathering and transportation system, heating furnace, regulating valve, motor, separator, transfer tank, electricity
Magnet valve, hand-operated valve equipment are the mathematical modeling that object is established, and mainly establish controlled variable, performance variable, between disturbance variable
Mathematical relationship;
Described program includes:Interface module, computing module, back-end data communication module, wherein interface module are used to connect
OpenGL graphic package interfaces, call the 3D models in 3D virtual scenes;Computing module be used to calculating in transmittance process variable it
Result after interphase interaction;Back-end data communication module shows for passing the result to GUI and transmits result through OPC
The result from PLC is handled and received to PLC.
4. oil-gas gathering and transportation virtual controlling experience system as claimed in claim 1, it is characterised in that:
The GUI graphical interface systems include:Interface display module, operation respond module, wherein gui data communication module, boundary
Face display module is used to showing the parameter of the option of operation that user can carry out and display system current state;Operation response mould
Block clicks on the operation requests after certain option of operation for responding user;Gui data communication module is used to operate at respond module
Operation requests after reason are sent to PLC through OPC, and receive the information passed over from mathematical computations backstage.
5. oil-gas gathering and transportation virtual controlling experience system as claimed in claim 1, it is characterised in that:
The three-dimensional engine is the computer program write using OpenGL graphic packages interface and programming language.
A kind of 6. oil-gas gathering and transportation virtual controlling practical training method based on one of claim 1 to 5 system, it is characterised in that
Methods described concretely comprises the following steps:
Step 1:Configure the communication between virtual PLC and OPC;
Step 2:Technical staff transports according to the IO reference point PLC programs provided, and by download program into virtual PLC system
OK;
Step 3:Arrange parameter option is clicked on GUI graphical interface systems, sets preset value, then clicks on activation system choosing
, whole system starts;Now, GUI graphical interfaces can display system initial state value;
Step 4:User clicks on GUI graphical interface systems interface manually or automatically control button, carries out manually and automatically
The switching of control;
Manual control mode is:Corresponding unlatching and stop button in GUI panel are manually clicked on, controls total oil-feed manually
Tank, transfer oil tank, user's oil supply line, heating furnace aqueous medium, heating furnace are heated fluid, treat that three-phase shunts oil gas, observe phase
The data display panels answered simultaneously are adjusted;
Automatic control mode is:Click on parameter setting and control parameter is clicked in the parameter setting panel of ejection, set user
The control parameter of target variable parameter and corresponding control law, click on and determine input parameter, then observed data display panel;
Step 5:PLC is controlled rule regulation, and user can click on the control law process data button in parameter setting panel,
Regulation process is watched in the window of ejection;
Step 6:Experimental data, the opening button of click data window are exported, data are automatically copied into the notepad window of ejection,
Automatically save, and analyze and process.
7. oil-gas gathering and transportation virtual controlling practical training method as claimed in claim 6, it is characterised in that:
The clicking operation is handled via operation respond module, then passes through the operation requests by gui data communication module
OPC is sent to plc data communication module;Operation requests processing module is handled the operation requests, is related to system flow
Processing then sends a request to flow processing module and handled;After being disposed by plc data communication module after OPC is sent to
Platform data communication module, computing module are handled, and control the model in 3D virtual scenes to show by interface module after being disposed
Show effect, and system current state is sent to gui data communication module, then interface display module will show the state;
The parameter of the setting is sent to plc data communication module by gui data communication module through OPC, and virtual PLC will record should
Parameter, the preset value as control law regulation;
Control law regulation is performed automatically by control law adjustment module, control law adjustment module by by preset value and
The value received is compared, and is then adjusted, will regulation result by plc data communication module the number of units after OPC is sent to
According to communication module, after computing module is handled, gui data communication module, interface display are sent to by plc data communication module
Module vision-control process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610005603.XA CN105469693B (en) | 2016-01-07 | 2016-01-07 | A kind of oil-gas gathering and transportation virtual controlling experience system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610005603.XA CN105469693B (en) | 2016-01-07 | 2016-01-07 | A kind of oil-gas gathering and transportation virtual controlling experience system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105469693A CN105469693A (en) | 2016-04-06 |
CN105469693B true CN105469693B (en) | 2017-11-14 |
Family
ID=55607332
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610005603.XA Expired - Fee Related CN105469693B (en) | 2016-01-07 | 2016-01-07 | A kind of oil-gas gathering and transportation virtual controlling experience system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105469693B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106710346A (en) * | 2016-11-15 | 2017-05-24 | 青岛科技大学 | Simulation training system |
CN117631606B (en) * | 2024-01-26 | 2024-04-05 | 深圳和润达科技有限公司 | PLC analog control method and device applied to cell formation component |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120226486A1 (en) * | 2011-03-04 | 2012-09-06 | Plocek Ken M | Training simulator and related methods |
CN202422562U (en) * | 2012-02-17 | 2012-09-05 | 东北石油大学 | Formation testing simulation operation practice device |
CN103048929A (en) * | 2012-12-25 | 2013-04-17 | 中南大学 | Visualization process control real-time simulation method based on matrix laboratory (MATLAB) engine |
CN104866525A (en) * | 2015-04-13 | 2015-08-26 | 上海电力学院 | Virtual nuclear power station simulation teaching system and building method thereof |
CN104850041A (en) * | 2015-04-21 | 2015-08-19 | 沈阳化工大学 | Oil transportation process energy consumption analysis system |
-
2016
- 2016-01-07 CN CN201610005603.XA patent/CN105469693B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN105469693A (en) | 2016-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11972177B2 (en) | Interface for data exchange between industrial controllers and simulation applications for simulating a machine | |
US10755003B2 (en) | Time synchronization of signal transmission intervals for simulating a machine in industrial automation | |
CN108121216B (en) | Automated workshop virtual debugging method based on digital factory | |
CN102568297B (en) | Comprehensive practical training device for process control | |
CN105489108B (en) | Mechanized equipment based on assembly interface assembles training method | |
CN105469693B (en) | A kind of oil-gas gathering and transportation virtual controlling experience system and method | |
KR20200063889A (en) | Method, system and computer program for plant operation applied by a digital twin model | |
CN104504175A (en) | Simulation system and simulation method for spacecraft assembling | |
CN102955430A (en) | Establishing method of full-automatic detecting system of electric energy meter based on emulation technique | |
CN206671871U (en) | A kind of intelligence manufacture controller | |
CN107300860A (en) | A kind of Simulation of Aeroengine Control System platform courses object online change method | |
CN111300412A (en) | Method for controlling robot based on illusion engine | |
CN112241579A (en) | Virtual simulation system and method for steel production process | |
CN103345879A (en) | Practical training device for production process automation | |
CN105224300B (en) | A kind of visual modeling method based on system member view construction system view | |
CN106855712A (en) | For the methods, devices and systems of multimode process control management | |
CN106155017B (en) | The method of simulation sand table and production scene Rapid transplant towards industrial control system | |
CN205540017U (en) | Embedded PLC simulator | |
CN211043965U (en) | Modularization emulation machine based on electric locomotive | |
CN114694444B (en) | Three-dimensional immersive chemical virtual simulation system | |
CN205590626U (en) | Long -range autonomous system of three -phase separator | |
CN201974964U (en) | Natural gas boosting and distributing simulation system applied to oil and gas storage and transportation | |
Adam | Qualitative models in simulation and control of structural machine processes | |
CN113160638B (en) | Energy efficiency diagnosis simulation training system of comprehensive energy system | |
CN116107294B (en) | Virtual integrated verification system for ship control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171114 Termination date: 20210107 |