CN102636988A - PLC (programmed logic controller)-based redundancy system implementation method - Google Patents
PLC (programmed logic controller)-based redundancy system implementation method Download PDFInfo
- Publication number
- CN102636988A CN102636988A CN201210108176XA CN201210108176A CN102636988A CN 102636988 A CN102636988 A CN 102636988A CN 201210108176X A CN201210108176X A CN 201210108176XA CN 201210108176 A CN201210108176 A CN 201210108176A CN 102636988 A CN102636988 A CN 102636988A
- Authority
- CN
- China
- Prior art keywords
- module
- cpu
- plc
- broadcast frame
- implementation method
- 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
Abstract
The invention discloses a PLC (programmed logic controller)-based redundancy system implementation method, wherein the method comprises the following steps: a. at least two CPUs (central processing unit) with different address codes and at least two I/O (input/output) modules with different address codes are connected through a CAN (controller area network) bus; b. after electrification is performed, a main CPU is determined after electrification, and other CPUs are spare CPUs; and c. the main CPU receives data from the I/O modules and sends a broadcast frame, and the spare CPUs only monitor the broadcast frame sent by the main CPU on the CAN bus. The PLC-based redundancy system implementation method provided by the invention has the beneficial effects that according to the invention, redundancy configuration is not required to be adopted for all important components in a PLC system, the system redundancy property can achieve or be close to that of a hardware redundancy PLC system, thus the cost of hardware is saved; the main and auxiliary switching is smooth; automatic fault recognition and positioning can be carried out, and the fault module switching supports hot plug; and the system has high reliability, is easy to implement and is low in cost.
Description
Technical field
The present invention relates to a kind of redundant system implementation method based on PLC.
Background technology
In industrial automation system, select for use programmable logic controller (PLC) PLC as controller in a large number; PLC compares nonshared control unit as relatively ripe, controller independently, has improved system reliability; And reduced the system development difficulty; But, further requirement has been proposed for the reliability of system, in the harsh field of a lot of reliability requirements along with the development of the raising of automated system complicacy and technology; Single PLC system can not meet the demands, so the redundant system of PLC is also more and more important.
Redundant at present mode classification is a lot, and the redundant fashion of PLC mainly contains two kinds: promptly soft redundancy is with hard redundant.At present, software redundancy system obtains using more widely in industrial control fields such as metallurgy, traffic, electric power, chemical industry, water pollution, but does not still have further systematic study for the redundant performance of software redundancy system; The redundancy structure of hard redundant system is that all vitals all are redundant configuration, so reliability is very high, but that shortcoming is the cost of constructing system is also higher.
Summary of the invention
Be technical deficiency more than solving, the invention provides a kind of redundant system implementation method based on PLC reliable, that save hardware cost of using.
The present invention realizes through following measure:
A kind of redundant system implementation method based on PLC of the present invention said method comprising the steps of: a.
The I/O module of the CPU of at least two different address codes and at least two different address codes is total through CAN
Line links to each other; B. the normal image data of each CPU after powering on, and periodically send the broadcast frame of image data, if CPU receives the broadcast frame of other CPU image data; Then compare partner address whether less than this machine address, if this machine is a spare CPU; If not; This machine is a host CPU, finally confirms a host CPU, and other is a spare CPU; C. host CPU receive to be handled from the data of I/O module and is sent broadcast frame; Spare CPU is only monitored the broadcast frame that host CPU sends on the CAN bus; D. start timer, if spare CPU receives broadcast frame, then timer replacement reclocking in the cycle that timer is set; If spare CPU does not receive broadcast frame in the cycle that timer is set, then be judged to be current host CPU fault, return step b.
Above-mentioned I/O module input and output point double is linked on the redundant module; The I/O module that address code is little is defaulted as primary module, and other is from module, and principal and subordinate I/O module all responds the broadcasting command of CPU; If primary module surpasses 3 not responses; Then judge the primary module fault, Data Source switches to from module, and reports to the police.
Above-mentioned changing method, wherein, if primary module recovers response, the Data Source primary module that automaticallyes switch back.
Above-mentioned changing method, wherein, principal and subordinate I/O module run duration, PLC user program compare principal and subordinate's module data in real time and reject invalid data.
The invention has the beneficial effects as follows: the present invention need not adopt redundant configuration by all vitals in the PLC system, and its system redundancy performance reaches or near hardware redundancy PLC system, thereby has saved the cost of hardware; The principal and subordinate is switched smoothly; Can automatic fault discern and the location, hot plug is supported in the malfunctioning module replacement; System reliability is high, is easy to realize that system cost is low.
Description of drawings
Fig. 1 is a FB(flow block) of the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is done further description.
As shown in Figure 1, the redundant system implementation method based on PLC of the present invention may further comprise the steps:
At first, the CPU of at least two different address codes and the I/O module of at least two different address codes are linked to each other through the CAN bus, that is to say that the data mode of all CPU keeps synchronously automatically.
Begin then to power on, the normal image data of each CPU of back that powers on, and periodically send the broadcast frame of image data, and adopting the priority principle, if a plurality of CPU are arranged, the priority that the module's address sign indicating number is little is high, as host CPU in the promptly same system; If CPU receives the broadcast frame of other CPU image data, then relatively whether partner address is less than this machine address, if this machine is a spare CPU, if not, this machine is a host CPU, finally confirms a host CPU, and other is a spare CPU.Avoided occurring the situation of many host CPUs.
The host CPU reception is handled from the data of I/O module and is sent broadcast frame; Spare CPU is only monitored the broadcast frame that host CPU sends on the CAN bus; Start timer simultaneously, if spare CPU receives broadcast frame, then timer replacement reclocking in the cycle that timer is set; If spare CPU does not receive broadcast frame in the cycle that timer is set, then be judged to be current host CPU fault, confirm host CPU again.
Higher more reliable for the redundant performance that makes system, I/O module input and output point double is linked on the redundant module, and the I/O module that address code is little is defaulted as primary module; Other is from module; Principal and subordinate I/O module all responds the broadcasting command of CPU, if primary module surpasses 3 not responses, then judges the primary module fault; Data Source switches to from module, and reports to the police.The primary module if primary module recovery response, Data Source are automaticallyed switch back.Principal and subordinate I/O module run duration, PLC user program compare principal and subordinate's module data in real time and reject invalid data, thereby improve system reliability.
The foregoing description is said to be in order to specify this patent; Though describe through specific term in the literary composition; But can not limit the protection domain of this patent with this; The personage who is familiar with this technical field can change or revise it after the spirit of understanding this patent and principle and reach equivalent purpose, and this equivalence change and modification all should be covered by the claim scope and define in the category.
Claims (4)
1. redundant system implementation method based on PLC, it is characterized in that: said method comprising the steps of: the I/O module of the CPU of at least two different address codes of a. and at least two different address codes links to each other through the CAN bus;
B. the normal image data of each CPU after powering on, and periodically send the broadcast frame of image data, if CPU receives the broadcast frame of other CPU image data; Then compare partner address whether less than this machine address, if this machine is a spare CPU; If not; This machine is a host CPU, finally confirms a host CPU, and other is a spare CPU;
C. host CPU receive to be handled from the data of I/O module and is sent broadcast frame; Spare CPU is only monitored the broadcast frame that host CPU sends on the CAN bus;
D. start timer, if spare CPU receives broadcast frame, then timer replacement reclocking in the cycle that timer is set; If spare CPU does not receive broadcast frame in the cycle that timer is set, then be judged to be current host CPU fault, return step b.
2. the redundant system implementation method based on PLC according to claim 1 is characterized in that: said I/O module input and output point double is linked on the redundant module, and the I/O module that address code is little is defaulted as primary module; Other is from module; Principal and subordinate I/O module all responds the broadcasting command of CPU, if primary module surpasses 3 not responses, then judges the primary module fault; Data Source switches to from module, and reports to the police.
3. the redundant system implementation method based on PLC according to claim 2 is characterized in that: if primary module recovers response, and the Data Source primary module that automaticallyes switch back.
4. the redundant system implementation method based on PLC according to claim 2 is characterized in that: principal and subordinate I/O module run duration, PLC user program compare principal and subordinate's module data in real time and reject invalid data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210108176XA CN102636988A (en) | 2012-04-13 | 2012-04-13 | PLC (programmed logic controller)-based redundancy system implementation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210108176XA CN102636988A (en) | 2012-04-13 | 2012-04-13 | PLC (programmed logic controller)-based redundancy system implementation method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102636988A true CN102636988A (en) | 2012-08-15 |
Family
ID=46621407
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210108176XA Pending CN102636988A (en) | 2012-04-13 | 2012-04-13 | PLC (programmed logic controller)-based redundancy system implementation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102636988A (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103941633A (en) * | 2014-04-29 | 2014-07-23 | 北京依雷特科技有限公司 | PLC redundancy control method and system |
CN105334729A (en) * | 2015-11-27 | 2016-02-17 | 王先宏 | Method for redundancy switch of two independent PLC systems in railway locomotive depot signal control |
CN107065640A (en) * | 2016-12-31 | 2017-08-18 | 广州新科佳都科技有限公司 | Information gathering redundant system based on multiplex data bus |
CN107357162A (en) * | 2017-06-30 | 2017-11-17 | 镇江赛尔尼柯自动化有限公司 | Universal water inlet detecting and warning system |
CN107390513A (en) * | 2017-07-27 | 2017-11-24 | 湖南中车时代通信信号有限公司 | A kind of method and system of redundant system access single channel bus |
CN107942894A (en) * | 2016-10-13 | 2018-04-20 | 中国石油天然气集团公司 | Primary input output sub-module and its diagnostic method, programmable logic controller |
CN108765657A (en) * | 2018-05-23 | 2018-11-06 | 王力安防科技股份有限公司 | A kind of smart lock and its system |
CN109656129A (en) * | 2019-03-05 | 2019-04-19 | 北京龙鼎源科技股份有限公司 | A kind of input/output module redundancy approach, apparatus and system |
CN109782578A (en) * | 2018-12-24 | 2019-05-21 | 中国船舶重工集团公司第七一0研究所 | A kind of high reliability deep-sea autonomous underwater vehicle control method |
CN109828449A (en) * | 2019-01-25 | 2019-05-31 | 杭州电子科技大学 | A kind of triplication redundancy control calculating voting system and method |
CN110618901A (en) * | 2019-09-16 | 2019-12-27 | 道崇电子科技(嘉兴)有限公司 | Master-slave system with master device and slave device capable of being replaced in self-adaptive mode |
CN112327692A (en) * | 2020-11-02 | 2021-02-05 | 珠海格力电器股份有限公司 | SoC chip, servo driver, and control method and device of servo driver |
WO2021253596A1 (en) * | 2020-06-16 | 2021-12-23 | 山东省计算中心(国家超级计算济南中心) | Dual-channel secure plc-based synchronous control and data voting methods |
CN114019785A (en) * | 2021-10-19 | 2022-02-08 | 浙江中控技术股份有限公司 | Data synchronization method, system, equipment and medium for multiple redundancy system |
CN114157528A (en) * | 2021-11-28 | 2022-03-08 | 浙江中控技术股份有限公司 | Redundant communication method, system, electronic device, and storage medium |
CN116224893A (en) * | 2022-09-16 | 2023-06-06 | 珠海瑞能真空电子有限公司 | Control system of exhaust equipment for X-ray tube processing |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1302022A (en) * | 1999-12-29 | 2001-07-04 | 上海龙林通讯技术开发有限公司 | Thermal backup method of IP network equipment |
-
2012
- 2012-04-13 CN CN201210108176XA patent/CN102636988A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1302022A (en) * | 1999-12-29 | 2001-07-04 | 上海龙林通讯技术开发有限公司 | Thermal backup method of IP network equipment |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103941633B (en) * | 2014-04-29 | 2017-01-25 | 北京龙鼎源科技股份有限公司 | PLC redundancy control method and system |
CN103941633A (en) * | 2014-04-29 | 2014-07-23 | 北京依雷特科技有限公司 | PLC redundancy control method and system |
CN105334729A (en) * | 2015-11-27 | 2016-02-17 | 王先宏 | Method for redundancy switch of two independent PLC systems in railway locomotive depot signal control |
CN107942894B (en) * | 2016-10-13 | 2019-12-10 | 中国石油天然气集团公司 | Main input/output submodule, diagnosis method thereof and editable logic controller |
CN107942894A (en) * | 2016-10-13 | 2018-04-20 | 中国石油天然气集团公司 | Primary input output sub-module and its diagnostic method, programmable logic controller |
CN107065640A (en) * | 2016-12-31 | 2017-08-18 | 广州新科佳都科技有限公司 | Information gathering redundant system based on multiplex data bus |
CN107357162A (en) * | 2017-06-30 | 2017-11-17 | 镇江赛尔尼柯自动化有限公司 | Universal water inlet detecting and warning system |
CN107390513A (en) * | 2017-07-27 | 2017-11-24 | 湖南中车时代通信信号有限公司 | A kind of method and system of redundant system access single channel bus |
CN108765657A (en) * | 2018-05-23 | 2018-11-06 | 王力安防科技股份有限公司 | A kind of smart lock and its system |
CN109782578A (en) * | 2018-12-24 | 2019-05-21 | 中国船舶重工集团公司第七一0研究所 | A kind of high reliability deep-sea autonomous underwater vehicle control method |
CN109828449A (en) * | 2019-01-25 | 2019-05-31 | 杭州电子科技大学 | A kind of triplication redundancy control calculating voting system and method |
CN109656129A (en) * | 2019-03-05 | 2019-04-19 | 北京龙鼎源科技股份有限公司 | A kind of input/output module redundancy approach, apparatus and system |
CN110618901A (en) * | 2019-09-16 | 2019-12-27 | 道崇电子科技(嘉兴)有限公司 | Master-slave system with master device and slave device capable of being replaced in self-adaptive mode |
WO2021253596A1 (en) * | 2020-06-16 | 2021-12-23 | 山东省计算中心(国家超级计算济南中心) | Dual-channel secure plc-based synchronous control and data voting methods |
CN112327692A (en) * | 2020-11-02 | 2021-02-05 | 珠海格力电器股份有限公司 | SoC chip, servo driver, and control method and device of servo driver |
CN114019785A (en) * | 2021-10-19 | 2022-02-08 | 浙江中控技术股份有限公司 | Data synchronization method, system, equipment and medium for multiple redundancy system |
CN114019785B (en) * | 2021-10-19 | 2023-11-07 | 浙江中控技术股份有限公司 | Data synchronization method, system, equipment and medium of multiple redundant system |
CN114157528A (en) * | 2021-11-28 | 2022-03-08 | 浙江中控技术股份有限公司 | Redundant communication method, system, electronic device, and storage medium |
CN116224893A (en) * | 2022-09-16 | 2023-06-06 | 珠海瑞能真空电子有限公司 | Control system of exhaust equipment for X-ray tube processing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102636988A (en) | PLC (programmed logic controller)-based redundancy system implementation method | |
CN103390936B (en) | Substation secondary device remote reboot system | |
CN1309146C (en) | System for forming power system wiring diagram and power supply apparatus and program for use therein | |
CN106826825B (en) | A kind of more mechanical arm wireless control cabinets and more mechanical arm control systems | |
CN103036780A (en) | Intelligent hot standby redundant double network cards and hot standby redundant method | |
CN102314540A (en) | Method for automatically generating thermal-control power supply cabinet wiring diagram for electric power plant | |
CN104468508A (en) | Automatic-adapting protocol converter | |
CN103544088A (en) | Method and device for detecting power consumption abnormality of terminal | |
CN105938356B (en) | The hardware redundancy of control module and operation cadence synchronization system in DCS system | |
CN108183814B (en) | Troubleshooting method and device for communication channel of electricity utilization information acquisition system | |
RU2012121154A (en) | AUTOMATION SYSTEM AND METHOD OF AUTOMATION SYSTEM MANAGEMENT | |
CN104237742A (en) | Method for improving fault location tolerance of power distribution network by utilizing fault current relative errors | |
CN202421854U (en) | Triplex level redundancy switching value output module for DCS (data communication system) | |
CN101714776B (en) | 10KV station electric control system of convertor station adopting selecting 2 from 3 logic | |
CN208739134U (en) | A kind of fixed terminal equipment networking automatic controls | |
CN107017915A (en) | A kind of equipment and its method of work for realizing shared by multiple systems wireless network | |
CN104423528A (en) | Power allocation method and power allocation system for data centre | |
CN203232270U (en) | Automatic restart system of electrical energy collection terminal of transformer station | |
CN102234719B (en) | Sintering plant operating simulation system | |
CN106227516A (en) | A kind of apparatus and method of network chip adaptive communications | |
CN107734803A (en) | Lamplight scene control method, device and electronic equipment | |
CN202957650U (en) | Double-channel power supply module | |
CN103209084B (en) | The method of uninterrupted power supply and control power distribution unit thereof | |
CN203179990U (en) | Maintenance system for new energy fuel cell equipment | |
CN202744217U (en) | Programmable logic controller (PLC) redundant system for nuclear power station circular crane 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 | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120815 |