CN103629524A - Method and system for controlling hydraulic type CNG filling substation pry - Google Patents
Method and system for controlling hydraulic type CNG filling substation pry Download PDFInfo
- Publication number
- CN103629524A CN103629524A CN201310646335.6A CN201310646335A CN103629524A CN 103629524 A CN103629524 A CN 103629524A CN 201310646335 A CN201310646335 A CN 201310646335A CN 103629524 A CN103629524 A CN 103629524A
- Authority
- CN
- China
- Prior art keywords
- state machine
- prying body
- hydraulic type
- controlling
- finite
- 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.)
- Pending
Links
Images
Landscapes
- Safety Devices In Control Systems (AREA)
- Testing And Monitoring For Control Systems (AREA)
- Fluid-Pressure Circuits (AREA)
Abstract
The invention discloses a method and system for controlling a hydraulic type CNG filling substation pry. On the basis of the finite-state machine controlled hydraulic type CNG filling substation pry, the method comprises the following steps: dividing the process of controlling the pry into a limited number of state machines and multi-tasks; setting a switching logic between the state machines according to a preset working mode; receiving the control commands corresponding to state machines and the multi-tasks, and controlling a motor of the pry to receive the switch logic to control the pry to do control action; monitoring normal running of the filling substation and running parameters of related devices, and automatically alarming or stopping when the devices break down. Through application of finite state machine idea in PLC programmable control software, each module respectively forms an independent state machine, the logical deploy is conducted by a performance function to enhance the logical readability of a code and obviously reduce the code amount, so that the system maintenance is convenient, and the error probability and storage space are lowered.
Description
Technical field
The present invention relates to PLC Programmable control technology field, in particular, relate to a kind of hydraulic type CNG air entraining substation prying body controlling method and system.
Background technique
At present, natural gas, as a kind of clean higher calorific value energy, has become the first-selected source of the gas of gas, development be take natural gas as the main automobile-used energy, can reduce fuel cost, alleviates municipal pollution, uplift the people's living standard, promote social development, economic benefit and social benefit are remarkable.
Along with continually developing of new energy, hydraulic type CNG refueling mother station, to the transportation problem of substation, progressively becomes the basic problem that natural gas company need to solve.When hydraulic type CNG transports gas tank to air entraining substation by transport vehicle, need to hydraulic type CNG be unloaded in the gas station of substation from gas tank by controlling motor, conventionally the control mode adopting is that sequential condition control mode is controlled, but the PLC that this control mode adopts controls, code logic is readable poor, size of code is larger, easy care not, the large and waste storage space of error probability.
Therefore, solve code logic readable poor, size of code is larger, easy care not, and the large and problem of wasting storage space of error probability, is that those skilled in the art receive solution.
Summary of the invention
In view of this, the invention provides a kind of hydraulic type CNG air entraining substation prying body controlling method and system, readable poor to overcome in prior art code logic, size of code is larger, easy care not, the large and problem of wasting storage space of error probability.
For achieving the above object, the invention provides following technological scheme:
A hydraulic type CNG air entraining substation prying body controlling method, based on finite states machine control hydraulic type CNG air entraining substation prying body, the method comprises:
The process of controlling described prying body is divided into a plurality of finite state machines and Multi task;
According to default mode of operation, formulate the switch logic between described state machine;
Receive described finite state machine and control command corresponding to described Multi task, the motor of controlling described prying body receives described switch logic and controls described prying body execution control action;
To the normal operation of described air entraining substation with to the Operational Limits of relevant device, monitor, and automatic alarm or shutdown when described device fails.
Wherein, corresponding instruction action is formulated and arranged to described switch logic in programmable logic controller (PLC).
Wherein, described finite state machine comprises model selection state machine, oiling state machine, oil return state machine, main oil pump state machine, auxiliary oil pump state machine, oil filter state machine, changes trains and point out state machine, collaborate state machine and direct-furnish gaseity machine.
Wherein, described Multi task comprise data capture, report to the police chain, screen display is shown, radiator, gas circuit switch and total air valve switch task.
Preferably, also comprise:
Described Operational Limits is shown, and carry out acoustooptic alarm when breaking down.
The invention also discloses a kind of hydraulic type CNG air entraining substation prying body control system, based on finite states machine control hydraulic type CNG air entraining substation prying body, this system comprises:
Division unit, for being divided into a plurality of finite state machines and Multi task by the process of controlling described prying body;
Formulate unit, for formulating the switch logic between described finite state machine according to default mode of operation;
Reception control unit, for receiving described finite state machine and control command corresponding to described Multi task, the motor of controlling described prying body receives described switch logic and controls described prying body execution control action;
Monitoring unit, for monitoring to the normal operation of described air entraining substation with to the Operational Limits of relevant device, and automatic alarm or shutdown when described device fails.
Preferably, also comprise:
Display alarm unit for described Operational Limits is shown, and carries out acoustooptic alarm when breaking down.
Known via above-mentioned technological scheme, compared with prior art, the invention discloses a kind of hydraulic type CNG air entraining substation prying body controlling method and system, based on finite states machine control hydraulic type CNG air entraining substation prying body, the method comprises: the process of controlling described prying body is divided into a plurality of finite state machines and Multi task; According to default mode of operation, formulate the switch logic between described finite state machine; Receive described finite state machine and control command corresponding to described Multi task, the motor of controlling described prying body receives described switch logic and controls described prying body execution control action; To the normal operation of described air entraining substation with to the Operational Limits of relevant device, monitor, and automatic alarm or shutdown when described device fails.The invention described above is applied in PLC control software able to programme by finite state machine thought, modules forms respectively independently state machine, by power function, carried out the allotment of logic, strengthened the also significantly minimizing of code logic readability, size of code, facilitate the maintenance of system, reduced error probability and storage space.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technological scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skills, do not paying under the prerequisite of creative work, other accompanying drawing can also be provided according to the accompanying drawing providing.
Fig. 1 is the disclosed a kind of hydraulic type CNG air entraining substation prying body controlling method flow chart of the embodiment of the present invention;
Fig. 2 is the structural representation of the disclosed a kind of hydraulic type CNG air entraining substation prying body control system of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technological scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiments.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment who obtains under creative work prerequisite, belong to the scope of protection of the invention.
The invention discloses a kind of hydraulic type CNG air entraining substation prying body controlling method and system, based on finite states machine control hydraulic type CNG air entraining substation prying body, the method comprises: the process of controlling described prying body is divided into a plurality of finite state machines and Multi task; According to default mode of operation, formulate the switch logic between described finite state machine; Receive described finite state machine and control command corresponding to described Multi task, the motor of controlling described prying body receives described switch logic and controls described prying body execution control action; To the normal operation of described air entraining substation with to the Operational Limits of relevant device, monitor, and automatic alarm or shutdown when described device fails.The invention described above is applied in PLC control software able to programme by finite state machine thought, modules forms respectively independently state machine, by power function, carried out the allotment of logic, strengthened the also significantly minimizing of code logic readability, size of code, facilitate the maintenance of system, reduced error probability and storage space.
Referring to accompanying drawing 1, is the disclosed a kind of hydraulic type CNG air entraining substation prying body controlling method flow chart of the embodiment of the present invention.The embodiment of the invention discloses a kind of hydraulic type CNG air entraining substation prying body controlling method, based on finite states machine control hydraulic type CNG air entraining substation prying body, the method step specifically comprises:
Step 101: the process of controlling prying body is divided into a plurality of finite state machines and Multi task.
Preferably, above-mentioned finite state machine means the mathematical model of the behaviors such as a plurality of finite states and the transfer between these states and action.
State machine can be summarized as 4 key elements, i.e. now state, condition, action, next state.Such conclusion is mainly for to the causal consideration in the inherence of state machine." existing state " and " condition " be because of, " action " and " next state " is really.Explain in detail as follows:
1. show state: refer to current residing state.
2. condition: be called again " event ", when a condition is satisfied, will trigger an action, or carry out the migration of a next state.
3. action: the action of carrying out after condition meets.After action executing, can move to new state, also can still maintain the original state.Move optionally, after condition meets, also can not carry out any action, directly migrate to new state.
4. next state: the new state that condition will move to after meeting." next state ", for " existing state ", " next state ", once be activated, has just been transformed into new " existing state ".
Preferably, described finite state machine comprises model selection state machine, oiling state machine, oil return state machine, main oil pump state machine, auxiliary oil pump state machine, oil filter state machine, changes trains and point out state machine, collaborate state machine and direct-furnish gaseity machine.
Multi task refers to user's a plurality of application programs of interior operation at one time, and each application program is known as a task.Each task is used CPU in turn, because CPU is very fast to the processing rate of each timeslice, In the view of user, as these tasks, carries out at the same time.
, be to distinguish state machine here, a series of or single processing event without obvious state or logical relation is divided in Multi task, such as: data capture, chain, the gas circuit switching of reporting to the police etc.
Preferably, described Multi task comprise data capture, report to the police chain, screen display is shown, radiator, gas circuit switch and total air valve switch task.Data capture task gathers analog data, and convert data in range to, the chain task of reporting to the police is responsible for each alarming logic, screen display shows that task carries out touch screen demonstration and touch-control logic, radiator task is carried out radiator start and stop logic, gas circuit task switching carries out direct-furnish gas circuit and tonifying Qi gas circuit switch logic, and total air valve switch task is carried out total air valve switching logic.
The top-down process that successively system divides is become to some modules when modularization refers to solve a challenge.Here, state machine and Multi task in order effective and reasonable partition process are exactly modularization, and comprise some repetitive processes and function module, such as: oiling process Further Division becomes oiling state machine and oil pump state machine; Repetitive process is as unit valve switch, the selection of oil circuit selector valve etc.
Step 102: formulate the switch logic between finite state machine according to default mode of operation.
Preferably, corresponding instruction action is formulated and arranged to described switch logic in programmable logic controller (PLC).
Step 103: receive finite state machine and control command corresponding to Multi task, the motor of controlling prying body receives switch logic and controls prying body execution control action.
Step 104: to the normal operation of air entraining substation with to the Operational Limits of relevant device, monitor, and automatic alarm or shutdown when device fails.
Step 105: Operational Limits is shown, and carry out acoustooptic alarm when breaking down.
The invention discloses a kind of hydraulic type CNG air entraining substation prying body controlling method, based on finite states machine control hydraulic type CNG air entraining substation prying body, the method comprises: the process of controlling described prying body is divided into a plurality of finite state machines and Multi task; According to default mode of operation, formulate the switch logic between described finite state machine; Receive described finite state machine and control command corresponding to described Multi task, the motor of controlling described prying body receives described switch logic and controls described prying body execution control action; To the normal operation of described air entraining substation with to the Operational Limits of relevant device, monitor, and automatic alarm or shutdown when described device fails.The invention described above is applied in PLC control software able to programme by finite state machine thought, modules forms respectively independently state machine, by power function, carried out the allotment of logic, strengthened the also significantly minimizing of code logic readability, size of code, facilitate the maintenance of system, reduced error probability and storage space.
Referring to accompanying drawing 2, is the disclosed a kind of hydraulic type CNG air entraining substation prying body control system structural representation of the embodiment of the present invention.On the disclosed embodiment's of the invention described above basis, the embodiment of the invention also discloses a kind of hydraulic type CNG air entraining substation prying body control system, based on finite states machine control hydraulic type CNG air entraining substation prying body, this system comprises: division unit 201, for the process of controlling prying body is divided into a plurality of finite state machines and Multi task; Formulate unit 202, for formulating the switch logic between finite state machine according to default mode of operation; Reception control unit 203, for receiving control command corresponding to finite state machine and Multi task, the motor of controlling prying body receives switch logic and controls prying body execution control action; Monitoring unit 204, for monitoring to the normal operation of air entraining substation with to the Operational Limits of relevant device, and automatic alarm or shutdown when device fails.
Preferably, also comprise: display alarm unit 205 for Operational Limits is shown, and carries out acoustooptic alarm when breaking down.
Refer to following table, table one is the contrast table of the self-service development system of combustion gas of the present invention and former scientific and technological development PLC software.
Comparative run | The self-service development system of combustion gas | Former scientific and technological development PLC software |
Framework | State machine, Multi task, modularization | Sequence design |
Size of code | 50K | 79K |
Address space (position) | 43 | 123 |
Address space (word) | 192 | 357 |
Modularization | 40 | 11 |
Table one
In sum: the invention discloses a kind of hydraulic type CNG air entraining substation prying body controlling method and system, based on finite states machine control hydraulic type CNG air entraining substation prying body, the method comprises: the process of controlling described prying body is divided into a plurality of finite state machines and Multi task; According to default mode of operation, formulate the switch logic between described finite state machine; Receive described finite state machine and control command corresponding to described Multi task, the motor of controlling described prying body receives described switch logic and controls described prying body execution control action; To the normal operation of described air entraining substation with to the Operational Limits of relevant device, monitor, and automatic alarm or shutdown when described device fails.The invention described above is applied in PLC control software able to programme by finite state machine thought, modules forms respectively independently state machine, by power function, carried out the allotment of logic, strengthened the also significantly minimizing of code logic readability, size of code, facilitate the maintenance of system, reduced error probability and storage space.
Above-mentioned explanation to the disclosed embodiments, makes professional and technical personnel in the field can realize or use the present invention.To these embodiments' multiple modification, will be apparent for those skilled in the art, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.
Claims (7)
1. a hydraulic type CNG air entraining substation prying body controlling method, is characterized in that, based on finite states machine control hydraulic type CNG air entraining substation prying body, the method comprises:
The process of controlling described prying body is divided into a plurality of finite state machines and Multi task;
According to default mode of operation, formulate the switch logic between described state machine;
Receive described finite state machine and control command corresponding to described Multi task, the motor of controlling described prying body receives described switch logic and controls described prying body execution control action;
To the normal operation of described air entraining substation with to the Operational Limits of relevant device, monitor, and automatic alarm or shutdown when described device fails.
2. method according to claim 1, is characterized in that, corresponding instruction action is formulated and arranged to described switch logic in programmable logic controller (PLC).
3. method according to claim 1, it is characterized in that, described finite state machine comprises model selection state machine, oiling state machine, oil return state machine, main oil pump state machine, auxiliary oil pump state machine, oil filter state machine, change trains prompting state machine, collaborate state machine and direct-furnish gaseity machine.
4. method according to claim 1, is characterized in that, described Multi task comprises data capture, it is chain to report to the police, screen display is shown, radiator, gas circuit switch and total air valve switch task.
5. method according to claim 1, is characterized in that, also comprises:
Described Operational Limits is shown, and carry out acoustooptic alarm when breaking down.
6. a hydraulic type CNG air entraining substation prying body control system, is characterized in that, based on finite states machine control hydraulic type CNG air entraining substation prying body, this system comprises:
Division unit, for being divided into a plurality of finite state machines and Multi task by the process of controlling described prying body;
Formulate unit, for formulating the switch logic between described finite state machine according to default mode of operation;
Reception control unit, for receiving described finite state machine and control command corresponding to described Multi task, the motor of controlling described prying body receives described switch logic and controls described prying body execution control action;
Monitoring unit, for monitoring to the normal operation of described air entraining substation with to the Operational Limits of relevant device, and automatic alarm or shutdown when described device fails.
7. system according to claim 6, is characterized in that, also comprises:
Display alarm unit for described Operational Limits is shown, and carries out acoustooptic alarm when breaking down.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310646335.6A CN103629524A (en) | 2013-12-04 | 2013-12-04 | Method and system for controlling hydraulic type CNG filling substation pry |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310646335.6A CN103629524A (en) | 2013-12-04 | 2013-12-04 | Method and system for controlling hydraulic type CNG filling substation pry |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103629524A true CN103629524A (en) | 2014-03-12 |
Family
ID=50210849
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310646335.6A Pending CN103629524A (en) | 2013-12-04 | 2013-12-04 | Method and system for controlling hydraulic type CNG filling substation pry |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103629524A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109254763A (en) * | 2018-09-13 | 2019-01-22 | 中国核动力研究设计院 | A kind of nuclear power plant's controlling software design method based on finite state machine |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2772880A1 (en) * | 1997-12-24 | 1999-06-25 | Alpes Systeme Automation | DEVICE AND METHOD FOR MONITORING THE OPERATION OF AN INDUSTRIAL INSTALLATION |
CN201715234U (en) * | 2010-02-11 | 2011-01-19 | 庞维龙 | Hydraulic type CNG air entraining substation and pipeline system, control system thereof |
CN102927437A (en) * | 2012-11-28 | 2013-02-13 | 盛泽能源技术有限公司 | Efficient and energy-saving type large-discharge double-line hydraulic gas substation system |
CN203259840U (en) * | 2013-05-29 | 2013-10-30 | 天津市詹佛斯科技发展有限公司 | Control cabinet of natural gas charging machine |
-
2013
- 2013-12-04 CN CN201310646335.6A patent/CN103629524A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2772880A1 (en) * | 1997-12-24 | 1999-06-25 | Alpes Systeme Automation | DEVICE AND METHOD FOR MONITORING THE OPERATION OF AN INDUSTRIAL INSTALLATION |
CN201715234U (en) * | 2010-02-11 | 2011-01-19 | 庞维龙 | Hydraulic type CNG air entraining substation and pipeline system, control system thereof |
CN102927437A (en) * | 2012-11-28 | 2013-02-13 | 盛泽能源技术有限公司 | Efficient and energy-saving type large-discharge double-line hydraulic gas substation system |
CN203259840U (en) * | 2013-05-29 | 2013-10-30 | 天津市詹佛斯科技发展有限公司 | Control cabinet of natural gas charging machine |
Non-Patent Citations (2)
Title |
---|
李涛: "凝析天然气两相流量计标定及通讯系统开发与应用", 《中国优秀硕士学位论文全文库数据库工程科技II辑》 * |
黄新林等: "有限状态机在单片机编程中的应用", 《哈尔滨理工大学学报》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109254763A (en) * | 2018-09-13 | 2019-01-22 | 中国核动力研究设计院 | A kind of nuclear power plant's controlling software design method based on finite state machine |
CN109254763B (en) * | 2018-09-13 | 2022-02-18 | 中核控制系统工程有限公司 | Nuclear power plant control software design method based on finite-state machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100543800C (en) | A kind of pressure-constant water supply cluster teaching system | |
CN104038373B (en) | information early warning and self-repairing system and method | |
CN103310861A (en) | Functional analysis method of general operation control display of nuclear power plant adopting digital man-machine interface | |
CN105573243A (en) | Pump station monitoring system based on PLC | |
CN103236194A (en) | Auxiliary learning method by utilizing reminding and push functions of intelligent operating system | |
CN103165207A (en) | Sequential control method and system suitable for nuclear power station | |
CN104953707A (en) | Intelligent error prevention method and system for monitoring operation order | |
CN103474115A (en) | Function analysis method for auxiliary operation control display of nuclear plant with digital human machine interface | |
CN104991506A (en) | Production line setting system and setting method based on PLC and touch screen control | |
CN107450512A (en) | A kind of system and method for the access of nuclear power station DCS controller states | |
CN103629524A (en) | Method and system for controlling hydraulic type CNG filling substation pry | |
CN202141924U (en) | Monitoring system for asphalt mixing equipment | |
CN102169343A (en) | Programmed remote operation system and method of grid centralized monitoring center | |
CN103699047A (en) | Handling method of fault of automatic electric automobile battery replacement system based on PLC (Programmable Logic Controller) control | |
CN102183952B (en) | Method for diagnosing embedded nonfatal fault in PLC (programmable logic controller) | |
CN203191815U (en) | Fully-automatic control equipment for material stacking and reclaiming machine | |
CN109976294A (en) | A kind of intelligent parking method and system | |
CN202854558U (en) | Numerical control device used for door and window handle fatigue life testing machine | |
CN102393657B (en) | Function block control method of automatic control system | |
CN105159178B (en) | A kind of object-based definite value area order switching programmed control method | |
CN202351658U (en) | Graphics programming based special control circuit for bearing cutting automatic production line | |
CN104694969A (en) | Alumina conveying and electrolytic gas purifying control system | |
CN111477372B (en) | Nuclear power station DCS controller updating method and system, terminal equipment and storage medium | |
CN203453027U (en) | Safe intelligent control system for air compressors | |
CN202523798U (en) | Application structure of CAN (Controller Area Network) bus-based human-computer interface to fuel cell system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140312 |