CN105425618A - Implementation method of software framework applicable to primary mirror control system with active support technology - Google Patents
Implementation method of software framework applicable to primary mirror control system with active support technology Download PDFInfo
- Publication number
- CN105425618A CN105425618A CN201510706450.7A CN201510706450A CN105425618A CN 105425618 A CN105425618 A CN 105425618A CN 201510706450 A CN201510706450 A CN 201510706450A CN 105425618 A CN105425618 A CN 105425618A
- Authority
- CN
- China
- Prior art keywords
- message
- primary mirror
- layer
- control system
- abnormal
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000005516 engineering process Methods 0.000 title claims abstract description 18
- 230000002159 abnormal effect Effects 0.000 claims abstract description 24
- 230000004044 response Effects 0.000 claims abstract description 24
- 230000008569 process Effects 0.000 claims abstract description 18
- 230000005856 abnormality Effects 0.000 claims abstract description 5
- 238000012549 training Methods 0.000 claims description 10
- 238000010586 diagram Methods 0.000 claims description 7
- 238000004891 communication Methods 0.000 claims description 5
- 238000011084 recovery Methods 0.000 claims description 5
- 238000005316 response function Methods 0.000 claims description 5
- 230000007704 transition Effects 0.000 claims description 4
- 235000009508 confectionery Nutrition 0.000 claims description 2
- 238000013461 design Methods 0.000 claims description 2
- 241001522296 Erithacus rubecula Species 0.000 claims 1
- 230000008878 coupling Effects 0.000 abstract description 2
- 238000010168 coupling process Methods 0.000 abstract description 2
- 238000005859 coupling reaction Methods 0.000 abstract description 2
- 239000010410 layer Substances 0.000 abstract 3
- 239000002346 layers by function Substances 0.000 abstract 1
- 238000000926 separation method Methods 0.000 abstract 1
- 230000006870 function Effects 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 239000012141 concentrate Substances 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000011010 flushing procedure Methods 0.000 description 1
- 230000002427 irreversible effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a method for realizing a software framework of a primary mirror control system with an active support technology, which adopts a three-layer software structure of a message-response layer, a device object layer and a basic functional layer to realize the separation of threads from algorithms and algorithms from interfaces, and introduces a state machine principle in the message-response layer to realize a message switching process based on a state machine. The invention also establishes an abnormal database of the primary mirror system according to the possible faults in the operation process of the primary mirror, and takes corresponding software protection measures when the abnormality occurs to ensure the safety of the primary mirror. The three-layer software structure provided by the invention realizes software layering modularization with low coupling degree on the basis of ensuring the safety of the primary mirror, improves the reuse rate of software modules and is easy for system expansion and upgrading.
Description
Technical field
The present invention relates to the technical field that in large aperture telescope, primary mirror controls, particularly relate in large aperture telescope the implementation method of the software frame of the primary mirror control system with initiatively support technology.
Background technology
Tradition telescope has a significant feature: once system process and assemble completes.The optical texture of whole system almost can not change, and therefore traditional telescope is also referred to as passive type telescope.Once there is deformation in such telescope minute surface, whole system just cannot precise operation.
Along with the development of large aperture telescope, create the primary mirror control system with initiatively support technology, its principle is: the deformation being obtained minute surface by the detection real-time to telescope minute surface, makes real-time correction simultaneously, and such telescope just can keep high-quality picture element.
The primary mirror control system with initiatively support technology, compared with common control system, has following difference: when one, it is in debugging mode, demarcation state, normal operating condition, all have different system requirements; Two, it relates to multiple motor, the control of multiple temperature control blower fan and integrated; Three, when its maintenance in the later stage and expansion, the problem such as replacement, module upgrade of equipment will be faced; Four, it relates to forceful electric power, high pressure, often needs the running status of round-the-clock monitoring all devices, when system jam is difficult to get rid of, easily causes the cracked of primary mirror.Therefore, develop high, that extendability is strong, the safe and reliable primary mirror Control System Software framework of reusability and become the key issue needing to solve.
Summary of the invention
For the defect of prior art, the invention provides a kind of implementation method being applicable to the software frame of the primary mirror control system with initiatively support technology, the feature of this software frame is: 1) this software frame adopts the three-layer type software configuration of message-response layer, device object layer, basic training ergosphere, the software module degree of coupling of each layer is lower, is convenient to the access of new equipment or the upgrading of software module; 2) this software frame run based on telescope in the switching of state, introduce state machine principle, definition primary mirror control system in debugging, demarcate, demand under the various states such as normal operation and switching flow; 3) this software frame is according to the issuable exception of primary mirror control system, defines exception vector table, and corresponding software protection measure, can ensure the safety of primary mirror when fault occurs.
The technical solution used in the present invention is: a kind of implementation method being applicable to the software frame of the primary mirror control system with initiatively support technology, this software frame is realized by message-response layer, device object class layer, basic training ergosphere three layers, and this implementation method is specific as follows:
1) in message-response layer, need message to be processed to classify system, in message maps, win message is tied to corresponding response function;
2) according to state machine diagram, the function of define system under various states, and the switching flow between state;
3) in device object class layer, analyze the startup of often kind of equipment, close down, workflow, determine the variable resource function resource needing in equipment class object to encapsulate;
4) reading database in program initialization process, sets up the exception vector of the overall situation and abnormal rank.
Principle of the present invention is: technical assignment of the present invention is realized by following technological means:
1) in this software frame, message-response layer invocation facility object layer in message response process completes the start and stop of multiple equipment successively, and need not the start and stop flow process of interested devices itself, device object layer sends concrete start stop command and control command by calling basic training ergosphere, and need not the communication interface of interested devices itself;
2) wherein in message-response layer, create the main thread of Effect-based operation-response mechanism, first analytic system demand, certainty annuity message is also classified, and binds relative response function in message maps;
3) in stateful switchover process, analyze the state machine transition diagram that primary mirror control system is general, contain debugging mode, standby condition, demarcation state, duty, abnormality five kinds of states, contain and demarcate message, operative message, closedown message, unexpected message, permission message recovery five kinds of message, switch according to message trigger between system state;
4) the device object class that primary mirror support force motor, temperature control blower fan are corresponding is set up, analyze the conventional operation that each equipment needs, and be encapsulated as the subfunction of class object, as submodules such as device start flow process, closing flow path, control algolithm flow processs, This layer provides short and sweet interface, call for message-response layer;
5) basic training ergosphere is general communication class, file operation class etc., wherein communication class encapsulates multiple interfaces agreement, and as serial ports, TCP/IP interface, file operation class wrapper file reads the operations such as write operation.Basic training ergosphere is that the interface API and file operation API basis that provide at VC design;
6) the issuable exception of analytic system; set up abnormal data storehouse; comprise abnormal description, abnormal impact, abnormal safeguard measure, abnormal solution, abnormal contingent probability, abnormal grade; be configured in the initialization procedure of program; take corresponding safeguard measure when abnormal generation by searching database, and point out possible solution.
The present invention's advantage is compared with prior art:
The present invention is the software frame developed on VisualStudio platform, unlike the prior art, invention introduces state machine mechanism, considered primary mirror control system in debugging, demarcate, multiple demand under normal operating condition and switching flow, write the module interface of software, reduce software development cost, improve the reusability of software module; Invention introduces the main thread of Effect-based operation-response mechanism, state machine switches message, interface refresh message are mapped as the win message under software frame, according to the multiple thread of message trigger parallel processing, effectively improve software efficiency; Invention introduces exception handling, and it can be used as the one of system state, when occurring abnormal, the rank according to exception implements software protection measure as early as possible, gives the alarm, and decreases the generation of security incident.
Accompanying drawing explanation
Fig. 1 is the three layer software structure of Effect-based operation-response mechanism that the present invention realizes;
Fig. 2 is the system state transition diagram based on state machine.
Embodiment
The present invention is further illustrated below in conjunction with accompanying drawing and specific embodiment.
Figure 1 shows that the software frame composition schematic diagram that implementation method of the present invention realizes, a kind of software frame being applicable to the primary mirror control system with initiatively support technology, its software frame is realized by message-response layer, device object class layer, basic training ergosphere three layers, and its implementation is specific as follows:
1) in message-response layer, need message to be processed to classify system, in message maps, win message is tied to corresponding response function;
2) according to state machine diagram, the function of define system under various states, and the switching flow between state;
3) in device object class layer, analyze the startup of often kind of equipment, close down, workflow, determine the variable resource function resource needing in equipment class object to encapsulate;
4) reading database in program initialization process, sets up the exception vector of the overall situation and abnormal rank.
Below each step is introduced in detail:
System needs message to be processed, according to the character of its message, be divided into following two kinds: 1) WM_STATE_: this message is that state switches message, wherein demarcate message, operative message, closedown message, allow message recovery to be sent by UI interface, unexpected message sends by refreshing thread, after the state that receives switches message, according to the call back function bound in message maps, completion status handoff functionality.2) WM_UPDATE_: this message is Flushing status message, is sent by timer, after receiving this message, invocation facility object class reads current anchorage force, temperature information, refresh the state that interface display is current, and judge that whether current data is abnormal, if abnormal, send unexpected message.
Because this software frame adopts state machine to change the mechanism, therefore the state transition graph of first drawing system, as Fig. 2, system always co-exists in five kinds of states: debugging mode, standby condition, demarcation state, duty and abnormality, message in system has: the operative message at UI interface, the demarcation message at UI interface, the closedown message at UI interface, the message recovery at UI interface, unexpected message, and wherein unexpected message is produced according to the condition adjudgement of self by system.Introduce five kinds of system states below respectively.
After system initially powers on, be in debugging mode, the state of each equipment of software monitors in debug process, and be presented on interface.In debug process, can realize the unit testing of equipment, enter the standby condition of system after having debugged, this process is irreversible.
After system enters standby condition, software will be monitored the state of primary mirror and send alerting signal when it produces abnormal, and the state simultaneously starting to respond UI interface switches message, if when receiving the demarcation message at UI interface, system proceeds to demarcation state from standby condition, carries out system calibrating; If when receiving the operative message at UI interface, system proceeds to duty from standby condition.
System, under demarcation state, after realizing the demarcation of the anchorage force-voltage form of primary mirror etc., is waited for the message at UI interface, is then entered duty;
Time in working order, system constantly monitors the anchorage force state of primary mirror, and according to the corresponding control signal of telescopical angle of elevation delivering, if receive the closedown message at UI interface, then call closing flow path, get back to standby condition, software is in standby condition all the time when not power-off, the status information of round-the-clock monitoring equipment.
When system is in standby condition, demarcation state, duty; if software monitors there occurs the exception of can not ignore to system; such as device looses power, equipment are without response etc.; then send WM_STATE_UNNORMAL unexpected message by SendMessage, take software protection measure, proceed to abnormality simultaneously; waiting system overhauls; when receiving the permission message recovery at UI interface, namely overhauling, then having got back to standby condition.
In device object layer, definition and primary mirror support force information, resource pool that temperature control information is relevant, trigger according to refresh message, in real time the data of refreshing resource pool, and when message-response layer needs acquisition primary mirror state, the data calling resource pool carry out showing.
In device object layer, write and primary mirror support force motor, control algolithm that temperature control blower fan is relevant, and reserved calling interface is to message-response layer.
The enforcement of this method, can make designer concentrate one's energy concern equipment itself control algolithm or perception interest research direction, reduce the energy of designer's overspending in the problems such as software module is multiplexing, greatly reduce software development cost, improve the reusability of software module, reduce the security incident that equipment failure causes, be applicable to upgrading and the expansion of the primary mirror control system with initiatively support technology, effectively improve economic benefit.
Claims (7)
1. be applicable to an implementation method for the software frame of the primary mirror control system with initiatively support technology, this software frame is realized by message-response layer, device object class layer, basic training ergosphere three layers, it is characterized in that: this implementation method is specific as follows:
1) in message-response layer, need message to be processed to classify system, in message maps, win message is tied to corresponding response function;
2) according to state machine diagram, the function of define system under various states, and the switching flow between state;
3) in device object class layer, analyze the startup of often kind of equipment, close down, workflow, determine the variable resource function resource needing in equipment class object to encapsulate;
4) reading database in program initialization process, sets up the exception vector of the overall situation and abnormal rank.
2. the implementation method being applicable to the software frame of the primary mirror control system with initiatively support technology according to claim 1, it is characterized in that: message-response layer not only can response interface message, refresh message, the unexpected message that also can produce in responding system operational process, in message response process, invocation facility object layer completes the start and stop of multiple equipment successively, and need not the start and stop flow process of interested devices itself; Device object layer sends concrete start stop command and control command by calling basic training ergosphere, and need not the communication interface of interested devices itself.
3. the implementation method being applicable to the software frame of the primary mirror control system with initiatively support technology according to claim 1, it is characterized in that: establish for the general state machine transition diagram of telescope primary mirror control system, contain debugging mode, standby condition, demarcation state, duty, abnormality five kinds of states, contain and demarcate message, operative message, closedown message, unexpected message, permission message recovery five kinds of message, switch according to message trigger between system state.
4. the implementation method being applicable to the software frame of the primary mirror control system with initiatively support technology according to claim 1, it is characterized in that: it is win message in software frame that system state is switched message macro definition by message-response layer, and bind its response function, create main thread in a program, all the time round robin current message, thus completion system state machine switches, interface refresh function.
5. the implementation method being applicable to the software frame of the primary mirror control system with initiatively support technology according to claim 1, it is characterized in that: device object layer establishes the corresponding device object class of primary mirror support force motor, temperature control blower fan, the conventional operation for this kind equipment is encapsulated in each object class, the conventional of this kind equipment is operating as device start flow process, closing flow path, control algolithm flow process submodule, this layer is the specific implementation of equipment flowsheet, and provides short and sweet interface and call for message-response layer.
6. the implementation method being applicable to the software frame of the primary mirror control system with initiatively support technology according to claim 1, it is characterized in that: basic training ergosphere relates to general device talk class, file operation class, wherein communication class encapsulates multiple interfaces agreement, file operation class wrapper file reads write operation operation, and basic training ergosphere is that the interface API and file operation API basis that provide at VC design.
7. the implementation method being applicable to the software frame of the primary mirror control system with initiatively support technology according to claim 1; it is characterized in that: described abnormal data storehouse; comprise abnormal description, abnormal impact, abnormal safeguard measure, abnormal solution, abnormal contingent probability, abnormal grade; be configured in the initialization procedure of program; take corresponding safeguard measure when abnormal generation by searching database, and point out possible solution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510706450.7A CN105425618B (en) | 2015-10-26 | 2015-10-26 | Implementation method of software framework applicable to primary mirror control system with active support technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510706450.7A CN105425618B (en) | 2015-10-26 | 2015-10-26 | Implementation method of software framework applicable to primary mirror control system with active support technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105425618A true CN105425618A (en) | 2016-03-23 |
CN105425618B CN105425618B (en) | 2018-04-03 |
Family
ID=55503895
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510706450.7A Active CN105425618B (en) | 2015-10-26 | 2015-10-26 | Implementation method of software framework applicable to primary mirror control system with active support technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105425618B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1564047A (en) * | 2004-03-23 | 2005-01-12 | 中国科学院国家天文台南京天文光学技术研究所 | Active bearing controller for grinding high precision, large aperture thin minute face of astronmonical telescope |
CN1591078A (en) * | 2004-03-23 | 2005-03-09 | 中国科学院国家天文台南京天文光学技术研究所 | Active optical active supporting electrocontrolling system for astronomical telescope |
GB2431450A (en) * | 2005-10-19 | 2007-04-25 | Ford Global Tech Llc | A suspension strut for a motor vehicle |
CN101231386A (en) * | 2008-02-22 | 2008-07-30 | 中国科学院国家天文台南京天文光学技术研究所 | System for dynamically correcting maximum astronomical telescope rollig friction transmission rotational axis torsion angle |
CN103178685A (en) * | 2013-03-04 | 2013-06-26 | 中国科学院国家天文台南京天文光学技术研究所 | Electromagnetic force actuator for active support of astronomical telescope mirror face |
-
2015
- 2015-10-26 CN CN201510706450.7A patent/CN105425618B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1564047A (en) * | 2004-03-23 | 2005-01-12 | 中国科学院国家天文台南京天文光学技术研究所 | Active bearing controller for grinding high precision, large aperture thin minute face of astronmonical telescope |
CN1591078A (en) * | 2004-03-23 | 2005-03-09 | 中国科学院国家天文台南京天文光学技术研究所 | Active optical active supporting electrocontrolling system for astronomical telescope |
GB2431450A (en) * | 2005-10-19 | 2007-04-25 | Ford Global Tech Llc | A suspension strut for a motor vehicle |
CN101231386A (en) * | 2008-02-22 | 2008-07-30 | 中国科学院国家天文台南京天文光学技术研究所 | System for dynamically correcting maximum astronomical telescope rollig friction transmission rotational axis torsion angle |
CN103178685A (en) * | 2013-03-04 | 2013-06-26 | 中国科学院国家天文台南京天文光学技术研究所 | Electromagnetic force actuator for active support of astronomical telescope mirror face |
Also Published As
Publication number | Publication date |
---|---|
CN105425618B (en) | 2018-04-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2573636B1 (en) | Multi-channel control switchover logic | |
CN102217004A (en) | Protection system and protection method of power plant using fpga | |
CN111143630B (en) | Intelligent substation overhaul safety measure execution state checking method and device | |
CN106790538A (en) | Power system is set up and fault solution method for pushing with O&M fault database | |
CN104319906B (en) | A kind of electrical network is taken precautions against natural calamities control system | |
CN108053041B (en) | Secondary system abnormity identification and anti-misoperation system and method under multi-association scene of transformer substation | |
CN102867232B (en) | Substation comprehensive information visualization display method in a kind of energy management system | |
CN107484430A (en) | A kind of security system and its operating method for nuclear power plant | |
CN103064382A (en) | Optical proximity correction (OPC) embedded-type remote data collecting system and method based on ARM framework | |
CN106448777B (en) | A kind of transfer station for npp safety level I&C system | |
CN102902597B (en) | A kind of method and chip improving chip security | |
CN103400622A (en) | Monitoring mode switching method and system for nuclear power plant master control room | |
CN104794395A (en) | Architecture characteristic based lightweight multi-system safety management structure | |
CN202886949U (en) | Large-scale temporary punching type supersonic velocity wind tunnel digitalized networked safety monitoring system | |
CN103616598B (en) | Testing method for dynamic simulation of linkage between protective channel faults and line faults | |
CN107430895B (en) | Safety critical system | |
CN111093125B (en) | Method, device and storage medium for realizing trunk optical fiber protection of optical line terminal | |
CN101794241A (en) | Circuit of power-on reset of triple redundancecy fault-tolerance computer based on programmable logic device | |
CN100382040C (en) | Redundant method for micro aircraft GNC system | |
CN104267642B (en) | System and method for outputting reliable current signals | |
CN101788940A (en) | Power-on-reset circuit for 2*2 redundancy fault-tolerant computers based on programmable logic device | |
CN105425618A (en) | Implementation method of software framework applicable to primary mirror control system with active support technology | |
CN104735047A (en) | Intelligent mixed mode network physical link emergency switching system | |
CN105971863A (en) | Control method for interlocked starting of standby pumps and condensate pumps in condensed water pumping system | |
CN201717594U (en) | Safety protection device of controlled system and system thereof |
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 |