CN107463148B - A kind of method of PLC redundancy switching - Google Patents

A kind of method of PLC redundancy switching Download PDF

Info

Publication number
CN107463148B
CN107463148B CN201710754096.4A CN201710754096A CN107463148B CN 107463148 B CN107463148 B CN 107463148B CN 201710754096 A CN201710754096 A CN 201710754096A CN 107463148 B CN107463148 B CN 107463148B
Authority
CN
China
Prior art keywords
cpu
spare
host cpu
switching
parameter
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.)
Active
Application number
CN201710754096.4A
Other languages
Chinese (zh)
Other versions
CN107463148A (en
Inventor
宋婕
谢书霞
苗青
范者峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Software Ltd By Share Ltd
Original Assignee
Software Ltd By Share Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Software Ltd By Share Ltd filed Critical Software Ltd By Share Ltd
Priority to CN201710754096.4A priority Critical patent/CN107463148B/en
Publication of CN107463148A publication Critical patent/CN107463148A/en
Application granted granted Critical
Publication of CN107463148B publication Critical patent/CN107463148B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/058Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/16Plc to applications
    • G05B2219/163Domotique, 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

This application involves technical field of automatic control, and in particular to a kind of method of PLC redundancy switching.Industrialized production is that a continuous process is limited by special network adapter and software when existing PLC redundancy switches, the real time monitoring of production process is caused to interrupt, it cannot be guaranteed that converted products quality.The application provides a kind of method of PLC redundancy switching, comprising: sets main connection attribute parameter for protocol suite in WINCC project;The parameter for setting spare connection corresponds it with main Connecting quantity;Executable script is write and generated, host CPU data are monitored in real time;It monitors the abnormal data that the communication with host CPU goes wrong, switches to the real-time communication of spare CPU.By monitoring in real time to main connection attribute parameter, after receiving data exception, that is, spare CPU identical with the operating parameter of host CPU is switched to, realize the timely switching of operation interface, guarantees to monitor smooth progress in real time in production process.

Description

A kind of method of PLC redundancy switching
Technical field
This application involves technical field of automatic control, and in particular to a kind of method of PLC redundancy switching.
Background technique
Redundancy refers to extra repetition or hello prolixity content (including information, language, code etc.), is often referred to pass through multiple duplication To increase the reliability of system.Programmable logic controller (PLC) (PLC) is largely selected to be used as controller in industrial automation system, Set up the reliability that redundant system further increases system again with the development of technology.There are many mode classification of redundancy at present, and Using there are two types of PLC redundant fashions, i.e., soft redundancy and hard redundancy.
Soft redundancy just refers to two CPU in system operation while starting and running, but only has when operating normally Host CPU issues control command, and spare CPU detects host CPU state and records the order that host CPU issues, when host CPU breaks down When can continue at that time virtual condition take over host CPU sending and execute order.When specific fault occurs for system, system can be real Existing active-standby switch, standby station are taken over main website and are continued to run.But industrialized production is a continuous process, existing PLC redundancy When switching, implementing monitoring system will follow the switching of PLC, implement to be switched to the connection with spare CPU, this function must be by In special network adapter and software, if will result in the interruption of production process real time monitoring, so that cannot be timely using common network interface card Monitor production status.
Summary of the invention
It is a continuous process the purpose of the present invention is to solve industrialized production, when existing PLC redundancy switches, Implementing monitoring system will follow the switching of PLC, implement to be switched to the connection with spare CPU, this function must be by means of dedicated Network interface card and software, if will result in the interruption of production process real time monitoring, so that life cannot be monitored in time using common network interface card The problem of occurrence state.
For this purpose, the embodiment of the invention provides following technical solutions: a kind of method of PLC redundancy switching, the method packet Include following steps:
Main connection attribute parameter is set for communications protocol collection in WINCC project;
The parameter for setting spare connection keeps it corresponding with main connection attribute parameter, establishes main link, is arranged 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 rack of spare CPU Number it is set as 1;
Executable script is write and generated, 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 spare The connection of CPU carries out real-time data communication.
Optionally, the main connection attribute parameter includes the MAC Address, shelf number or connection source of host CPU.
Optionally, after the connection for switching to spare CPU, continue to monitor host CPU data in real time.
Optionally, the switching of the operation interface of the spare CPU and the switching of hard redundancy carry out simultaneously.
Optionally, further comprising the steps of:
Production control procedures are installed to host CPU, to redundancy CPU normal operation;
Stop host CPU operation manually, detects the operating status of spare CPU;
Judge whether the switching of PLC redundancy is timely.
Technical solution provided in an embodiment of the present invention includes following the utility model has the advantages that the application passes through to main connection attribute parameter It is monitored in real time, after receiving the signal of data exception, that is, switches to spare CPU identical with the operating parameter of host CPU, It realizes the timely switching of operation interface, guarantees the smooth progress of production process real time monitoring.
Specific embodiment
Herein show meeting the embodiment of the present invention, and it is used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is technical description to be briefly described, it should be apparent that, for those of ordinary skills, do not paying creative labor Under the premise of dynamic property, other content can also be obtained according to these.
PLC redundancy switching system including PLC controller, interchanger and includes the engineer station of Ethernet card, interchanger point It is not connected with PLC controller and industrial personal computer, PLC controller includes two redundancy CPU connected by synchronization optical fiber, and interchanger is A kind of network equipment for electric signal forwarding, provides the telecommunications exclusively enjoyed for the PLC controller of access switch and engineer station Number access.The engineer station realizes the means of operation to field device.PLC controller is powered using double loop power supply.PLC control Device includes coupled switching input module, Analog input mModule, switching value output module and analog output module. PLC controller is mounted on low-voltage distribution room, and interchanger and engineer station are mounted on master control room.The realization of redundancy is by two sets of phases Same system configuration synchronizes the data communication for working, synchronizing, failure response and self-test by optical fiber connection;Two sons The synchronizing function of unit, two subelements are independently completed the control of whole process when fault-free, and two subelements are all being run State.And automatically switch to undisturbed when failure occurs, they have identical user program, identical data block, and process is reflected As content and identical internal data;Such a faulty another can undertake whole control tasks.
Below by embodiment, the technical solution of the application is described in further detail.
Embodiment one
The application provides a kind of method of PLC redundancy switching, which is characterized in that described method includes following steps:
Main connection attribute parameter is set for communications protocol collection in WINCC project;
The parameter for setting spare connection keeps it corresponding with main connection attribute parameter, establishes main link, is arranged in main link Parameter is consistent with the information of host CPU, while in alternate links, and the MAC Address of spare CPU is inputted, rack is set as 1;
Executable script is write and generated, 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 spare The connection of CPU carries out real-time data communication.
The application specific operation process: it builds hardware: for the hard redundant system design of Siemens S7 414-4H PLC, adopting It is communicated with TCP mode.Software installation: installing STTP7 and WINCC software under WIN7 environment, installs Siemens bottom software STTP7 and authorization.Configuration and configuration: main connection attribute is first defined in WINCC project S7 protocol suite, address, machine including CP443 The information such as frame number and connection source are as " H1,0800069D781C, 1,3,02 " define the parameter of spare connection, with main Connecting quantity It is corresponding.C Script Action is write, and generates executable script, when realizing CPU master-slave swap, the real time monitoring of cpu data reaches The purpose of on-line monitoring.
Software monitors host CPU data in real time, and when failure occurs, hard redundancy is switched 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 can then guarantee production process since spare Connecting quantity is identical as main connection attribute parameter The smooth progress of real time monitoring.
Embodiment two
The application provides a kind of method of PLC redundancy switching, which is characterized in that described method includes following steps:
Main connection attribute parameter is set for communications protocol collection in WINCC project;
The parameter for setting spare connection keeps it corresponding with main connection attribute parameter, establishes main link, is arranged in main link Parameter is consistent with the information of host CPU, while in alternate links, and the MAC Address of spare CPU is inputted, rack is set as 1;
Executable script is write and generated, 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 spare The connection of CPU carries out real-time data communication.
Optionally, the main connection attribute parameter includes the MAC Address, shelf number or connection source of host CPU.
Optionally, after the connection for switching to spare CPU, continue to monitor host CPU data in real time.
Optionally, the switching of the operation interface of the spare CPU 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: master address, rack Number or connection source etc. monitored in real time, when failure occurs, hard redundancy is switched over, while soft redundancy monitors main connection category Property supplemental characteristic exception after, continue to produce according to the operation interface that the executable script write and generated switches to spare CPU, it is real The timely switching of existing operation interface is then changed into the operation interface of host CPU, due to spare after the operation interface switching of spare CPU Connecting quantity is identical as main connection attribute parameter, then can guarantee the smooth progress of production process.
Embodiment three
The application provides a kind of method of PLC redundancy switching, which is characterized in that described method includes following steps:
Main connection attribute parameter is set for communications protocol collection in WINCC project;
The parameter for setting spare connection keeps it corresponding with main connection attribute parameter, establishes main link, is arranged in main link Parameter is consistent with the information of host CPU, while in alternate links, and the MAC Address of spare CPU is inputted, rack is set as 1;
Executable script is write and generated, 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 spare The connection of CPU carries out real-time data communication.
Optionally, the main connection attribute parameter includes the MAC Address, shelf number or connection source of host CPU.
Optionally, after the connection for switching to spare CPU, continue to monitor host CPU data in real time.
Optionally, the switching of the operation interface of the spare CPU and the switching of hard redundancy carry out simultaneously.
Optionally, further comprising the steps of:
Production control procedures are installed to host CPU, to redundancy CPU normal operation;
Stop host CPU operation manually, detects the operating status of spare CPU;
Judge whether the switching of PLC redundancy is timely.
The application specific operation process: software to the main connection attribute supplemental characteristic of host CPU such as: master address, rack Number or connection source etc. monitored in real time, when failure occurs, hard redundancy is switched over, while soft redundancy monitors main connection category Property supplemental characteristic exception after, continue to produce according to the operation interface that the executable script write and generated switches to spare CPU, it is real The timely switching of existing operation interface is then changed into the operation interface of host CPU, due to spare after the operation interface switching of spare CPU Connecting quantity is identical as main connection attribute parameter, then can guarantee the smooth progress of production process.
Periodically soft redundancy is tested, production control procedures are installed to host CPU, after redundancy CPU normal operation, hand It is dynamic to stop host CPU operation, see whether spare CPU switches to host CPU, to judge whether the switching of PLC redundancy is timely.To guarantee software Normal operation so that production go on smoothly.
The program flow diagram of the application;The following steps are included:
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, MAC Address is configured;
Step 105, CPU parameter setting:
(1) Cycle/Clock memory circular treatment parameter,
(2) buffer 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 spare 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.
The above is only the specific embodiment of the embodiment of the present invention, is made skilled artisans appreciate that or realizing The present invention.Various 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 the principles and novel features disclosed herein Consistent widest scope.
It should be understood that the application is not limited to the content being described above, and its model can not departed from It encloses and carry out various modifications and change.Scope of the present application is only limited by the accompanying claims.

Claims (5)

1. a kind of method of PLC redundancy switching, which is characterized in that described method includes following steps:
Main connection attribute parameter is set for communications protocol collection in WINCC project;
The parameter for setting spare connection keeps it corresponding with main connection attribute parameter, establishes main link, and the parameter in main link is arranged 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 It is 1;
Executable script is write and generated, 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 are switched to and spare CPU Connection carries out real-time data communication.
2. the method as described in claim 1, which is characterized in that the main connection attribute parameter include host CPU MAC Address, Shelf number or connection source.
3. method according to claim 2, which is characterized in that after the connection for switching to spare CPU, continue to host CPU Data are monitored in real time.
4. method as claimed in claim 3, which is characterized in that the switching of the operation interface of the spare CPU and hard redundancy Switch while carrying out.
5. method as described in any one of claims 1 to 4, which is characterized in that further comprising the steps of:
Production control procedures are installed to host CPU, to redundancy CPU normal operation;
Stop host CPU operation manually, detects the operating status of spare CPU;
Judge whether the switching of PLC redundancy is timely.
CN201710754096.4A 2017-08-29 2017-08-29 A kind of method of PLC redundancy switching Active CN107463148B (en)

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 CN107463148A (en) 2017-12-12
CN107463148B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
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
CN106647613B (en) * 2017-03-07 2024-06-14 中电智能科技有限公司 PLC (programmable logic controller) dual-machine redundancy method and system based on MAC (media access control)

Also Published As

Publication number Publication date
CN107463148A (en) 2017-12-12

Similar Documents

Publication Publication Date Title
CN103455005B (en) Controller redundancy and switching method
EP3316052B1 (en) Multi-protocol gateway with several cores in a process control system
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
CN201936169U (en) Central redundancy control system for shielding door of rail transportation station
CN104570721B (en) Redundant manipulator master slave mode determines method
CN106647613A (en) MAC-based PLC dual-redundant method and MAC-based PLC dual-redundant system
CN104516306A (en) Redundant automation system
CN103176870B (en) Multi-mode information interaction redundancy safety computer platform
CN102540985A (en) Central redundancy control system for rail transit platform screen door
CN105045181A (en) Overall redundant architecture of PAS 100 control system
JP2004054907A (en) Programmable controller and cpu unit, and communication unit and method for controlling communication unit
CN202421854U (en) Triplex level redundancy switching value output module for DCS (data communication system)
CN115913906A (en) Redundancy control system and method for ship
CN107463148B (en) A kind of method of PLC redundancy switching
CN117573609B (en) System-on-chip with redundancy function and control method thereof
CN205581629U (en) Accuse net integration control system assists in thermal power plant
KR101457733B1 (en) Apparatus for Duplexing Human Machine Interface
CN110247809B (en) Communication control method of double-ring network control system
CN115002128B (en) Control method for OPC client to realize main and standby reliability improvement
JP2006277728A (en) Programmable controller system
CN113485237A (en) PLC redundancy control system and method based on bus monitoring
CN207367033U (en) A kind of PLC double-machine redundancy systems based on MAC
CN204883336U (en) PAS100 control system's controller and redundant framework of communication module
KR100724495B1 (en) Programmable logic controller duplex system and running method

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