CN107463148A - A kind of method of PLC redundancies switching - Google Patents
A kind of method of PLC redundancies switching Download PDFInfo
- Publication number
- CN107463148A CN107463148A CN201710754096.4A CN201710754096A CN107463148A CN 107463148 A CN107463148 A CN 107463148A CN 201710754096 A CN201710754096 A CN 201710754096A CN 107463148 A CN107463148 A CN 107463148A
- Authority
- CN
- China
- Prior art keywords
- cpu
- switching
- host cpu
- plc
- redundancies
- 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
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
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/058—Safety, monitoring
-
- 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
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/16—Plc to applications
- G05B2219/163—Domotique, domestic, home control, automation, smart, intelligent house
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
- Small-Scale Networks (AREA)
Abstract
The application is related to technical field of automatic control, and in particular to a kind of method of PLC redundancies switching.Industrialized production is a continuous process, when existing PLC redundancies switch, is limited by special network adapter and software, causes the real-time monitoring of production process to interrupt, it is impossible to ensure converted products quality.The application provides a kind of method of PLC redundancies switching, including:In WINCC projects main connection attribute parameter is set for protocol suite;The parameter of standby connection is set, it is corresponded with main Connecting quantity;Write and generate executable script, host CPU data are monitored in real time;The abnormal data that the communication with host CPU goes wrong is monitored, switches to the real-time communication of spare CPU.By being monitored in real time to main connection attribute parameter, after data exception is received, that is, the operational factor identical spare CPU with host CPU is switched to, realize the timely switching of operation interface, ensure to monitor smooth progress in real time in production process.
Description
Technical field
The application is related to technical field of automatic control, and in particular to a kind of method of PLC redundancies switching.
Background technology
Redundancy refers to unnecessary repetition or hello prolixity content (including information, language, code etc.), is often referred to pass through multiple duplication
To increase the reliability of system.It is a large amount of in industrial automation system to be used as controller from programmable logic controller (PLC) (PLC),
As the development of technology and establishment redundant system further improve the reliability of system.The mode classification of redundancy is many at present, and
There are two kinds using PLC redundant fashions, i.e., soft redundancy and hard redundancy.
Soft redundancy just refers to two CPU in system operation while starts and run, but only has in normal operation
Host CPU sends control command, and spare CPU detects host CPU state and records the order that host CPU is sent, when host CPU breaks down
When the virtual condition that can continue at that time take over host CPU and send and perform order.When specific fault occurs for system, system can be real
Existing active-standby switch, standby station are taken over main website and continued to run with.But industrialized production is a continuous process, existing PLC redundancies
During switching, implementing monitoring system will follow PLC switching, implement to be switched to the connection with spare CPU, and this function must be by
In special network adapter and software, if using common network interface card, the interruption that production process monitors in real time will result in so that can not be timely
Monitor production status.
The content of the invention
It is a continuous process the invention aims to solve industrialized production, when existing PLC redundancies switch,
Implementing monitoring system will follow PLC switching, implement to be switched to the connection with spare CPU, this function must be by means of special
Network interface card and software, if using common network interface card, it will result in the interruption that production process monitors in real time so that life can not be monitored in time
The problem of occurrence state.
Therefore, the embodiments of the invention provide following technical scheme:A kind of method of PLC redundancies switching, methods described bag
Include following steps:
In WINCC projects main connection attribute parameter is set for communications protocol collection;
The parameter of standby connection is set, makes it corresponding with main connection attribute parameter, establishes main link, is set in main link
Parameter is consistent with the information of host CPU, while in alternate links, the MAC Address of spare CPU is inputted, by the frame of spare CPU
Number it is set to 1;
Write and generate executable script, host CPU data are monitored in real time;
When script monitors the abnormal data of host CPU in the process of implementation, it is automatic connect alternate links switch to it is standby
CPU connection carries out real-time data communication.
Alternatively, the main connection attribute parameter includes the MAC Address, shelf number or connection source of host CPU.
Alternatively, it is described switch to the connection of spare CPU after, continue to monitor host CPU data in real time.
Alternatively, the operation interface of the spare CPU switching and the switching of hard redundancy carry out simultaneously.
Alternatively, it is further comprising the steps of:
Production control procedures are attached to host CPU, treat redundancy CPU normal operations;
Stop host CPU operation manually, detect the running status of spare CPU;
Judge whether the switching of PLC redundancies is timely.
Technical scheme provided in an embodiment of the present invention includes following beneficial effect:The application passes through to main connection attribute parameter
Monitored in real time, after the signal of data exception is received, that is, switch to the operational factor identical spare CPU with host CPU,
The timely switching of operation interface is realized, ensures the smooth progress that production process monitors in real time.
Embodiment
Herein show meeting embodiments of the invention, and it is used for together with specification the principle for explaining the present invention.
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is technology description to be briefly described, it should be apparent that, for those of ordinary skills, do not paying creative labor
, can also be according to these acquisition other guides on the premise of dynamic property.
PLC redundancy switching systems, including PLC, interchanger and the engineer station comprising Ethernet card, interchanger point
It is not connected with PLC and industrial computer, PLC includes two redundancy CPU connected by synchronization optical fiber, and interchanger is
A kind of network equipment for electric signal forwarding, PLC and engineer station for access switch provide the telecommunications exclusively enjoyed
Number path.The engineer station realizes the means of operation to field apparatus.PLC is powered using double loop power supply.PLC is controlled
Device includes coupled switching input module, Analog input mModule, switching value output module and analog output module.
PLC is arranged on low-voltage distribution room, and interchanger and engineer station are arranged on master control room.The realization of redundancy is by two sets of phases
Same system configuration is synchronously operated by optical fiber connection, the data communication synchronized, failure response and self-test;Two sons
The synchronizing function of unit, two subelements are independently completed the control of whole process during fault-free, and two subelements are all being run
State.And automatically switch when failure occurs, they have identical user program, identical data block, and process is reflected. undisturbed
As content and identical internal data;Such a faulty another can undertake whole control tasks.
Below by embodiment, the technical scheme of the application is described in further detail.
Embodiment one
The application provides a kind of method of PLC redundancies switching, it is characterised in that methods described comprises the following steps:
In WINCC projects main connection attribute parameter is set for communications protocol collection;
The parameter of standby connection is set, makes it corresponding with main connection attribute parameter, establishes main link, is set in main link
Parameter is consistent with the information of host CPU, while in alternate links, the MAC Address of spare CPU is inputted, frame is set into 1;
Write and generate executable script, host CPU data are monitored in real time;
When script monitors the abnormal data of host CPU in the process of implementation, it is automatic connect alternate links switch to it is standby
CPU connection carries out real-time data communication.
The application specific operation process:Build hardware:For the hard redundant system designs of Siemens S7 414-4H PLC, adopt
Communicated with TCP modes.Software installation:STTP7 and WINCC softwares, installation Siemens bottom software are installed under WIN7 environment
STTP7 and mandate.Configuration and configuration:Main connection attribute, including CP443 address, machine are first defined in WINCC project S7 protocol suites
The information such as frame number and connection source is as " H1,0800069D781C, 1,3,02 ", defined the parameter of standby connection, with main Connecting quantity
It is corresponding.C Script Actions are write, and generate executable script, when realizing CPU master-slave swaps, the real-time monitoring of cpu data, reach
The purpose of on-line monitoring.
Software is monitored in real time to host CPU data, and when failure occurs, hard redundancy switches over, while soft redundancy monitors
To after main connection attribute supplemental characteristic exception, the connection with spare CPU is switched to according to the executable script write and generated, it is real
The timely switching of existing operation interface, because standby Connecting quantity is identical with main connection attribute parameter, then can ensure production process
The smooth progress monitored in real time.
Embodiment two
The application provides a kind of method of PLC redundancies switching, it is characterised in that methods described comprises the following steps:
In WINCC projects main connection attribute parameter is set for communications protocol collection;
The parameter of standby connection is set, makes it corresponding with main connection attribute parameter, establishes main link, is set in main link
Parameter is consistent with the information of host CPU, while in alternate links, the MAC Address of spare CPU is inputted, frame is set into 1;
Write and generate executable script, host CPU data are monitored in real time;
When script monitors the abnormal data of host CPU in the process of implementation, it is automatic connect alternate links switch to it is standby
CPU connection carries out real-time data communication.
Alternatively, the main connection attribute parameter includes the MAC Address, shelf number or connection source of host CPU.
Alternatively, it is described switch to the connection of spare CPU after, continue to monitor host CPU data in real time.
Alternatively, the operation interface of the spare CPU switching and the switching of hard redundancy carry out simultaneously.
The application specific operation process:Software to the main connection attribute supplemental characteristic of host CPU such as:Main website address, frame
Number or connection source etc. monitored in real time, when failure occurs, hard redundancy switches over, while soft redundancy monitors main connection category
Property supplemental characteristic exception after, the operation interface that spare CPU is switched to according to the executable script write and generated continues to produce, real
The timely switching of existing operation interface, then it is changed into the operation interface of host CPU after the operation interface switching of spare CPU, due to standby
Connecting quantity is identical with main connection attribute parameter, then can ensure the smooth progress of production process.
Embodiment three
The application provides a kind of method of PLC redundancies switching, it is characterised in that methods described comprises the following steps:
In WINCC projects main connection attribute parameter is set for communications protocol collection;
The parameter of standby connection is set, makes it corresponding with main connection attribute parameter, establishes main link, is set in main link
Parameter is consistent with the information of host CPU, while in alternate links, the MAC Address of spare CPU is inputted, frame is set into 1;
Write and generate executable script, host CPU data are monitored in real time;
When script monitors the abnormal data of host CPU in the process of implementation, it is automatic connect alternate links switch to it is standby
CPU connection carries out real-time data communication.
Alternatively, the main connection attribute parameter includes the MAC Address, shelf number or connection source of host CPU.
Alternatively, it is described switch to the connection of spare CPU after, continue to monitor host CPU data in real time.
Alternatively, the operation interface of the spare CPU switching and the switching of hard redundancy carry out simultaneously.
Alternatively, it is further comprising the steps of:
Production control procedures are attached to host CPU, treat redundancy CPU normal operations;
Stop host CPU operation manually, detect the running status of spare CPU;
Judge whether the switching of PLC redundancies is timely.
The application specific operation process:Software to the main connection attribute supplemental characteristic of host CPU such as:Main website address, frame
Number or connection source etc. monitored in real time, when failure occurs, hard redundancy switches over, while soft redundancy monitors main connection category
Property supplemental characteristic exception after, the operation interface that spare CPU is switched to according to the executable script write and generated continues to produce, real
The timely switching of existing operation interface, then it is changed into the operation interface of host CPU after the operation interface switching of spare CPU, due to standby
Connecting quantity is identical with main connection attribute parameter, then can ensure the smooth progress of production process.
Periodically soft redundancy is tested, production control procedures are attached to host CPU, after redundancy CPU normal operations, hand
It is dynamic to stop host CPU operation, see whether spare CPU switches to host CPU, to judge whether the switching of PLC redundancies is timely.To ensure software
Normal operation so that production be smoothed out.
The program flow diagram of the application;Comprise the following steps:
Step 100, work starts;
Step 101, power supply and CPU are configured;
Step 102, the MAC Address of host CPU is set;
Step 103, synchronous submodule is added;
Step 104, ethernet module is added, configures MAC Address;
Step 105, CPU parameter settings:
(1) Cycle/Clock memory circular treatments parameter,
(2) buffering area message amount,
(3) the module self-test time,
(4) CPU is from the overhaul period;
Step 106, communications protocol collection sets main connection attribute;
Step 107, the parameter of standby connection is set;
Step 108, script edit;
Step 109, executable script is generated;
Step 110, Monitoring Data;
Step 111, note abnormalities data, carries out master-slave swap.
Described above is only the embodiment of the embodiment of the present invention, is made skilled artisans appreciate that or realizing
The present invention.A variety of modifications to these embodiments will be apparent to one skilled in the art, determine herein
The General Principle of justice can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, originally
Invention is not intended to be limited to the embodiments shown herein, and is to fit to and principles disclosed herein and features of novelty
Consistent most wide scope.
It should be appreciated that the application is not limited to the content being described above, and its model can not departed from
Enclose and carry out various modifications and changes.Scope of the present application is only limited by appended claim.
Claims (5)
- A kind of 1. method of PLC redundancies switching, it is characterised in that methods described comprises the following steps:In WINCC projects main connection attribute parameter is set for communications protocol collection;The parameter of standby connection is set, makes it corresponding with main connection attribute parameter, establishes main link, the parameter in main link is set It is consistent with the information of host CPU, while in alternate links, the MAC Address of spare CPU is inputted, the shelf number of spare CPU is set For 1;Write and generate executable script, host CPU data are monitored in real time;When script monitors the abnormal data of host CPU in the process of implementation, the automatic alternate links that connect switch to and spare CPU Connection carries out real-time data communication.
- 2. the method as described in claim 1, it is characterised in that MAC Address of the main connection attribute parameter including host CPU, Shelf number or connection source.
- 3. method as claimed in claim 2, it is characterised in that it is described switch to the connection of spare CPU after, continue to host CPU Data are monitored in real time.
- 4. method as claimed in claim 3, it is characterised in that the switching of the operation interface of the spare CPU and hard redundancy Switching is carried out simultaneously.
- 5. such as method according to any one of claims 1 to 4, it is characterised in that further comprising the steps of:Production control procedures are attached to host CPU, treat redundancy CPU normal operations;Stop host CPU operation manually, detect the running status of spare CPU;Judge whether the switching of PLC redundancies is timely.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710754096.4A CN107463148B (en) | 2017-08-29 | 2017-08-29 | A kind of method of PLC redundancy switching |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710754096.4A CN107463148B (en) | 2017-08-29 | 2017-08-29 | A kind of method of PLC redundancy switching |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107463148A true CN107463148A (en) | 2017-12-12 |
CN107463148B CN107463148B (en) | 2019-12-03 |
Family
ID=60550736
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710754096.4A Active CN107463148B (en) | 2017-08-29 | 2017-08-29 | A kind of method of PLC redundancy switching |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107463148B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656129A (en) * | 2019-03-05 | 2019-04-19 | 北京龙鼎源科技股份有限公司 | A kind of input/output module redundancy approach, apparatus and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202230380U (en) * | 2011-10-17 | 2012-05-23 | 重庆明宝科技发展有限公司 | Industrial online redundancy control system |
CN103701659A (en) * | 2013-12-11 | 2014-04-02 | 中广核工程有限公司 | Monitoring information transmission method and system for nuclear power plant |
CN105334729A (en) * | 2015-11-27 | 2016-02-17 | 王先宏 | Method for redundancy switch of two independent PLC systems in railway locomotive depot signal control |
CN106647613A (en) * | 2017-03-07 | 2017-05-10 | 中国电子信息产业集团有限公司第六研究所 | MAC-based PLC dual-redundant method and MAC-based PLC dual-redundant system |
-
2017
- 2017-08-29 CN CN201710754096.4A patent/CN107463148B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202230380U (en) * | 2011-10-17 | 2012-05-23 | 重庆明宝科技发展有限公司 | Industrial online redundancy control system |
CN103701659A (en) * | 2013-12-11 | 2014-04-02 | 中广核工程有限公司 | Monitoring information transmission method and system for nuclear power plant |
CN105334729A (en) * | 2015-11-27 | 2016-02-17 | 王先宏 | Method for redundancy switch of two independent PLC systems in railway locomotive depot signal control |
CN106647613A (en) * | 2017-03-07 | 2017-05-10 | 中国电子信息产业集团有限公司第六研究所 | MAC-based PLC dual-redundant method and MAC-based PLC dual-redundant system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656129A (en) * | 2019-03-05 | 2019-04-19 | 北京龙鼎源科技股份有限公司 | A kind of input/output module redundancy approach, apparatus and system |
Also Published As
Publication number | Publication date |
---|---|
CN107463148B (en) | 2019-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103455005B (en) | Controller redundancy and switching method | |
CN105278516B (en) | A kind of implementation method of the reliable fault-tolerant controller of dual redundant switching value PLC control system | |
EP3316052B1 (en) | Multi-protocol gateway with several cores in a process control system | |
CN201936169U (en) | Central redundancy control system for shielding door of rail transportation station | |
CN108153144A (en) | A kind of DCS redundant manipulators no-harass switch method | |
US7120820B2 (en) | Redundant control system and control computer and peripheral unit for a control system of this type | |
CN103647781A (en) | Mixed redundancy programmable control system based on equipment redundancy and network redundancy | |
CN106647613A (en) | MAC-based PLC dual-redundant method and MAC-based PLC dual-redundant system | |
CN104516306A (en) | Redundant automation system | |
CN102540985A (en) | Central redundancy control system for rail transit platform screen door | |
CN105045181A (en) | Overall redundant architecture of PAS 100 control system | |
CN109104325A (en) | Train network data transmission method, system and its apparatus based on CANopen agreement | |
KR20080020807A (en) | Apparatus and method for plc redundancy | |
CN107463148B (en) | A kind of method of PLC redundancy switching | |
KR101457733B1 (en) | Apparatus for Duplexing Human Machine Interface | |
TWI627518B (en) | Computer Numerical Controlling System and Controlling Method Thereof | |
CN110247809B (en) | Communication control method of double-ring network control system | |
CN113485237A (en) | PLC redundancy control system and method based on bus monitoring | |
CN109462557A (en) | The backup method of BFD session on a kind of active and standby master control borad | |
KR100724495B1 (en) | Programmable logic controller duplex system and running method | |
CN114407975A (en) | Hot standby method of execution unit of full electronic interlocking system and hot standby interlocking system | |
CN210323800U (en) | Intelligent lighting gateway system capable of being redundant | |
CN109739202B (en) | Production management system | |
CN203827364U (en) | Double star-shaped fiber-optic redundancy measurement and control network system | |
CN215642355U (en) | PLC redundancy control system based on bus monitoring |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |