CN102710402A - Method for forming hot standby redundant main station - Google Patents
Method for forming hot standby redundant main station Download PDFInfo
- Publication number
- CN102710402A CN102710402A CN201210165656XA CN201210165656A CN102710402A CN 102710402 A CN102710402 A CN 102710402A CN 201210165656X A CN201210165656X A CN 201210165656XA CN 201210165656 A CN201210165656 A CN 201210165656A CN 102710402 A CN102710402 A CN 102710402A
- Authority
- CN
- China
- Prior art keywords
- station
- working
- main website
- priority
- subsequent use
- 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
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Abstract
The invention discloses a method for forming a hot standby redundant main station comprising the following steps that: a, each station is identified by a unique ID (Identity) number; b, each station is prioritized according to the fault level and the ID number; for the main station having the same fault level, the larger or smaller the ID number is, the priority level is higher; c, each station is electrified for taking over working privilege by interconnecting a bus, the station which takes over the working privilege is the working master station and other stations are standby master stations; d, the working master station and each standby master station are interconnected by a high-speed bus; e, the working master station updates the real-time data to each standby master station by interconnecting the bus; the working master station periodically obtains the fault levels of other stations, calculates the priority levels, and updates them to each station; each station dynamically takes over the working privilege according to the priority level in a competitive way, when the priority level of the working master station is lower than that of the standby master station, the current working master station releases the working privilege, and the standby master station having the highest priority level is switched as the working master station.
Description
Technical field:
The present invention relates to the hot backup redundancy data acquisition control system, particularly a kind of constructive method that adopts heat to be equipped with the modbus redundancy main station of mode work.
Background technology:
On-the-spot in Industry Control, modbus has received as a kind of application protocol of maturation and has disposed widely and use.Use very ripe at aspects such as instrument, transducer, electric operators.MODBUS is a request/response protocol, can on circuits such as Ethernet, RS232, RS422, RS485, optical fiber, implement.When using at the scene, generally all be,, connect on-the-spot equipment (slave station) through the asynchronous serial bus of RS232, RS422 or RS485 by a modbus main website.RS232 is point-to-point communication, and RS422 can be connected a plurality of equipment with RS485, and each equipment has independent address.
In controlling automatically; In order to improve the reliability of system; The general on-the-spot mode of redundancy that all adopts connects and control appliance; Thereby under the state such as can guarantee to break down, program running makes mistakes, crash, restart, come fast through subsequent use main website and corresponding flow process thereof are set, seamlessly should switch to working main station by subsequent use main website, improve the reliability and stability of system with this at working main station.
Summary of the invention:
The present invention proposes a kind of constructive method that adopts heat to be equipped with the modbus redundancy main station of mode work.So-called heat is equipped with mode, is meant to adopt two or the main website more than two, moves identical program, at any time, has only a main website to have the control of communication link, is called working main station; Other main website is called subsequent use main website.The inventive method mainly is applicable to the hot backup redundancy data acquisition control system.Under the states such as (working main station) breaks down in system, program running makes mistakes, crash, restart, subsequent use main website can be fast, seamless switching is a working main station, obtains the control of communication link.Then the reliability and stability of system have greatly been improved.
Concrete technical scheme of the present invention is following:
The constructive method of a kind of hot backup redundancy main website is characterized in that, may further comprise the steps:
A. each station is adopted and to be identified for unique ID number;
B. each station is according to fault level and ID prioritized; For the main website with same fault grade, ID number big or more little more, and priority is high more;
C. each station is through interconnection, and the back competition work authority that powers on is got the working main station that is of work authority, other be subsequent use main website;
D. adopt high-speed bus interconnected between each working main station and subsequent use main website;
E. working main station arrives each subsequent use main website through interconnection updating real-time data; Working main station periodically obtains the fault level at other each station, calculates its priority, and is updated to each station; Each is stood according to priority dynamic competition work authority, when the priority of working main station is lower than the priority of subsequent use main website, and work at present main website release work authority, the subsequent use main website that priority is the highest switches to working main station.
In the such scheme, the competition work authority described in the said step c is specially: get into subsequent use main website state after two or more redundancy main stations power on, through interconnection searching work main website; If there is not working main station in the system, then get into the competition working main station authority stage; In the competitive stage; Each station is according to the fault level of our station and ID number; Calculate priority separately; Obtain the effective priority (the back priority that powers on is set to an invalid value) at other each station simultaneously, can confirm the working main station authority through the mode of judging limit priority, the competition end after obtaining successfully.
In the such scheme, said step e is specially:
Working main station periodically obtains the fault level of subsequent use main website; Calculate and set the priority of each subsequent use main website; When the fault level of working main station is compared the fault level of subsequent use main website when high, working main station release work authority, the subsequent use main website that priority is the highest switches to working main station; When faults such as the working main station program running makes mistakes, crashes, restarts took place, periodic priority level initializing signal can not be received by each subsequent use main website, and the subsequent use main website that at this moment priority is the highest automatically switches to working main station; When the interconnection between main website when normally becoming fault, it is subsequent use main website that working main station switches authority, the subsequent use main website that priority is the highest automatically switches to working main station; Before the interconnection reparation, no longer carry out any type of work authority and switch.
In the such scheme, interface module is shared at said each station or each station has independently interface module.
In the such scheme, said redundancy main station is the modbus redundancy main station.
Compared with prior art, the inventive method has the following advantages:
(1) each main website seized the work authority according to ID number with fault level after system powered on, and got the working main station that is of work authority, otherwise was subsequent use main website;
(2) in the course of work, according to fault level with carry out the dynamic switching of work authority for ID number;
(3) it is interconnected that each main website adopts high speed data bus;
(4) need be through manually setting the activestandby state at each station, thus the work authority obtained by the main website of appointment when powering on simultaneously in system.
Description of drawings:
Further specify the present invention below in conjunction with accompanying drawing and embodiment.
Fig. 1 is the communication structure sketch map of redundant system main website and slave station (subsequent use main website).
Fig. 2 is the redundancy main station workflow sketch map of the embodiment of the invention.
Embodiment:
For technological means, creation characteristic that the present invention is realized, reach purpose and effect and be easy to understand and understand, below in conjunction with concrete diagram, further set forth the present invention.
Redundant system as shown in Figure 1, that the inventive method is related comprises some main websites 101 through interconnection 104 connections, passes through the slave station 102 that fieldbus 103 connects.Each main website adopts identical hardware and software, and operation simultaneously has only a working main station in any time system.Working main station has all controls of communication link, and the synchronous dynamic data are to subsequent use main website in real time; Periodically check the fault level of each subsequent use main website, calculate and be provided with the priority of each subsequent use main website; When the fault level of working main station was higher than the fault level of subsequent use main website, working main station was surrendered the work authority, and the subsequent use main website that priority is the highest obtains the work authority; Because program is carried out faults such as makeing mistakes, crash, restart, also or during the interconnection fault, the work authority lost automatically by the work at present main website, the subsequent use main website that priority is the highest obtains the work authority when working main station.
Do detailed explanation below in conjunction with accompanying drawing for practical implementation of the present invention.
As shown in Figure 2, the redundancy main station flow chart of the embodiment of the invention, idiographic flow is following:
Step 201: get into initialization, the working main station in the inquiry system after main website powers on.When having working main station in the system, jump to step 203, the switch operating authority is subsequent use main website; When in inquiring about, whether having working main station, get into main website authority competitive stage--step 202 less than system;
Step 202: competition working main station authority.Comprise:
1. according to ID number priority with fault level calculating our station;
2. through interconnection, obtain the effective priority at other each station;
3. according to the priority at each station that gets access to, whether priority is the highest to judge our station.Setting our station when the highest is working main station, otherwise setting our station is subsequent use main website.
Step 203: switch operating authority.
When our station is working main station, the control of obtaining communication link;
Step 204: communicate by letter between main website.Comprise:
1. interconnected through high-speed bus between the main website, working main station synchronous real-time data are to subsequent use main website;
2. working main station periodically obtains the fault level of subsequent use main website, calculates and upgrade the priority of each subsequent use main website;
3. the renewal situation of configuration in the periodicity testing main website of subsequent use main website, the consistency of configuration on maintenance our station and the working main station;
Step 205: fault and priority are judged.Comprise:
1. when the priority of working main station was lower than the priority of subsequent use main website, working main station release work authority got into step 203; The subsequent use main website that priority is the highest obtains the working main station authority;
2. when working main station can not obtain the fault level of each subsequent use main website, working main station release work authority got into step 203;
3. when subsequent use main website can not obtain the priority update bag of working main station, the subsequent use main website that priority is the highest obtained the working main station authority.
In addition, above-mentioned present embodiment is not that the present invention is done any pro forma restriction.The present invention is fit to multiple fieldbus, does not receive the restriction of field bus protocol, communication mode; The present invention is directed to the main website redundancy and do the concrete grammar description, all be fit to for adopting communication link to carry out the redundant redundancy main station constituted mode that connects.In the method for the competition authority that powers on that is proposed among the present invention, with ID number mode as race condition, but and not exclusive mode, also not restriction must not adopted this mode.
More than show and described basic principle of the present invention and principal character and advantage of the present invention.The technical staff of the industry should understand; The present invention is not restricted to the described embodiments; That describes in the foregoing description and the specification just explains principle of the present invention; Under the prerequisite that does not break away from spirit and scope of the invention, the present invention also has various changes and modifications, and these variations and improvement all fall in the scope of the invention that requires protection.The present invention requires protection range to be defined by appending claims and equivalent thereof.
Claims (5)
1. the constructive method of a hot backup redundancy main website is characterized in that, may further comprise the steps:
A. each station is adopted and to be identified for unique ID number;
B. each station is according to fault level and ID prioritized; For the main website with same fault grade, ID number big or more little more, and priority is high more;
C. each station is through interconnection, and the back competition work authority that powers on is got the working main station that is of work authority, other be subsequent use main website;
D. adopt high-speed bus interconnected between each working main station and subsequent use main website;
E. working main station arrives each subsequent use main website through interconnection updating real-time data; Working main station periodically obtains the fault level at other each station, calculates its priority, and is updated to each station; Each is stood according to priority dynamic competition work authority, when the priority of working main station is lower than the priority of subsequent use main website, and work at present main website release work authority, the subsequent use main website that priority is the highest switches to working main station.
2. according to the constructive method of the hot backup redundancy main website of claim 1; It is characterized in that; Competition work authority described in the said step c is specially: get into subsequent use main website state after two or more redundancy main stations power on, through interconnection searching work main website; If there is not working main station in the system, then get into the competition working main station authority stage; In the competitive stage, each station according to the fault level of our station with ID number, calculate priority separately, obtain the effective priority at other each station simultaneously, can confirm the working main station authority through the mode of judging limit priority after obtaining successfully, compete end.
3. according to the constructive method of the hot backup redundancy main website of claim 1; It is characterized in that; Said step e is specially: working main station periodically obtains the fault level of subsequent use main website, calculates and set the priority of each subsequent use main website, when the fault level of working main station is compared the fault level of subsequent use main website when high; Working main station release work authority, the subsequent use main website that priority is the highest switches to working main station; When faults such as the working main station program running makes mistakes, crashes, restarts took place, periodic priority level initializing signal can not be received by each subsequent use main website, and the subsequent use main website that at this moment priority is the highest automatically switches to working main station; When the interconnection between main website when normally becoming fault, it is subsequent use main website that working main station switches authority, the subsequent use main website that priority is the highest automatically switches to working main station; Before the interconnection reparation, no longer carry out any type of work authority and switch.
4. according to the constructive method of the hot backup redundancy main website of claim 1, it is characterized in that interface module is shared at said each station or each station has independently interface module.
5. according to the constructive method of the hot backup redundancy main website of claim 1, it is characterized in that said redundancy main station is the modbus redundancy main station.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210165656XA CN102710402A (en) | 2012-05-25 | 2012-05-25 | Method for forming hot standby redundant main station |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210165656XA CN102710402A (en) | 2012-05-25 | 2012-05-25 | Method for forming hot standby redundant main station |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102710402A true CN102710402A (en) | 2012-10-03 |
Family
ID=46902976
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210165656XA Pending CN102710402A (en) | 2012-05-25 | 2012-05-25 | Method for forming hot standby redundant main station |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102710402A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019202A (en) * | 2012-12-06 | 2013-04-03 | 国电南瑞科技股份有限公司 | Redundant front-end processor (FEP) standby interface state on-line detecting method |
CN104505102A (en) * | 2014-12-31 | 2015-04-08 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for examining physical conditions |
CN104536413A (en) * | 2014-12-22 | 2015-04-22 | 重庆川仪自动化股份有限公司 | IO data redundancy seamless transmission method and system in communication control system |
CN104536358A (en) * | 2014-12-17 | 2015-04-22 | 中船航海科技有限责任公司 | Automatic switchover method and device for dual-steering control signals of marine autopilot |
CN108008624A (en) * | 2017-12-08 | 2018-05-08 | 北京交大思诺科技股份有限公司 | Rob power logic control element |
CN110677302A (en) * | 2019-10-09 | 2020-01-10 | 浙江中控技术股份有限公司 | Communication control method, device and system |
WO2020143243A1 (en) * | 2019-01-07 | 2020-07-16 | 北京全路通信信号研究设计院集团有限公司 | Dual-system hot backup switching method and system applied to automatic running system of train |
CN112822102A (en) * | 2020-12-30 | 2021-05-18 | 瑞斯康达科技发展股份有限公司 | Link switching method, device, equipment, system and storage medium |
CN113162778A (en) * | 2020-01-07 | 2021-07-23 | 中国科学院沈阳自动化研究所 | Method for high-speed industrial Ethernet main station redundancy |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101296065A (en) * | 2008-06-19 | 2008-10-29 | 浙江中控技术股份有限公司 | Method and system for improving reliability of redundancy main station |
CN102193543A (en) * | 2011-03-25 | 2011-09-21 | 上海磁浮交通发展有限公司 | Control system based on profibus redundant network topological structure and switching method of control system |
-
2012
- 2012-05-25 CN CN201210165656XA patent/CN102710402A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101296065A (en) * | 2008-06-19 | 2008-10-29 | 浙江中控技术股份有限公司 | Method and system for improving reliability of redundancy main station |
CN102193543A (en) * | 2011-03-25 | 2011-09-21 | 上海磁浮交通发展有限公司 | Control system based on profibus redundant network topological structure and switching method of control system |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019202A (en) * | 2012-12-06 | 2013-04-03 | 国电南瑞科技股份有限公司 | Redundant front-end processor (FEP) standby interface state on-line detecting method |
CN104536358A (en) * | 2014-12-17 | 2015-04-22 | 中船航海科技有限责任公司 | Automatic switchover method and device for dual-steering control signals of marine autopilot |
CN104536413A (en) * | 2014-12-22 | 2015-04-22 | 重庆川仪自动化股份有限公司 | IO data redundancy seamless transmission method and system in communication control system |
CN104505102A (en) * | 2014-12-31 | 2015-04-08 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for examining physical conditions |
CN108008624A (en) * | 2017-12-08 | 2018-05-08 | 北京交大思诺科技股份有限公司 | Rob power logic control element |
WO2020143243A1 (en) * | 2019-01-07 | 2020-07-16 | 北京全路通信信号研究设计院集团有限公司 | Dual-system hot backup switching method and system applied to automatic running system of train |
CN110677302A (en) * | 2019-10-09 | 2020-01-10 | 浙江中控技术股份有限公司 | Communication control method, device and system |
CN110677302B (en) * | 2019-10-09 | 2023-04-25 | 浙江中控技术股份有限公司 | Communication control method, device and system |
CN113162778A (en) * | 2020-01-07 | 2021-07-23 | 中国科学院沈阳自动化研究所 | Method for high-speed industrial Ethernet main station redundancy |
CN113162778B (en) * | 2020-01-07 | 2023-09-19 | 中国科学院沈阳自动化研究所 | Method for high-speed industrial Ethernet main station redundancy |
CN112822102A (en) * | 2020-12-30 | 2021-05-18 | 瑞斯康达科技发展股份有限公司 | Link switching method, device, equipment, system and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102710402A (en) | Method for forming hot standby redundant main station | |
CN101608599B (en) | Method for controlling a wind generating unit | |
CN105487413B (en) | The active and standby control system of urban track traffic and main/standby switching method | |
CN104571041B (en) | Based on 1:The method of data synchronization of 1 controller redundancy | |
CN105306605B (en) | A kind of double host server systems | |
CN101867468B (en) | Hot reboot processing method for power over Ethernet switch and power over Ethernet switch | |
CN110658718A (en) | Multi-master-control redundancy switching control method and system | |
CN106452864A (en) | Parking lot fault protection method, apparatus and system thereof | |
CN102193543A (en) | Control system based on profibus redundant network topological structure and switching method of control system | |
CN105024798A (en) | Method and device for time synchronization | |
JP2009290271A (en) | Network repeater and network repeater system | |
US10070389B2 (en) | Relay apparatus | |
CN116699964A (en) | Redundant operation method and system for industrial process controller | |
CN106941424B (en) | Redundancy switching method and device based on TTDP protocol | |
CN109720379A (en) | Train control system and the cross cutting of train control system four change display methods | |
CN105812161A (en) | Controller fault backup method and system | |
CN106789506B (en) | BC switching method based on hybrid structure of optical fiber bus and 1553B bus | |
CN110412862A (en) | Computer interlock system and its method for handover control, equipment, storage medium | |
JP2013197869A (en) | Network device, network control method, and program | |
CN103441878A (en) | Method and device for processing ownership of PE device in VCF network | |
CN102710356A (en) | Real time redundancy master station data synchronization method | |
US20220250665A1 (en) | Apparatus and method for controlling a railway system | |
CN103152209A (en) | Application service operation processing system based on multi-machine hot backup | |
CN102983997A (en) | Method and device for migrating master services | |
JP2003296133A (en) | Controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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: 20121003 |