Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing below, technical scheme of the present invention is carried out clear, intactly description.
Fig. 1 be the present invention is based on two take advantage of two get the safety control of two safe redundant systems structural representation.As shown in Figure 1, safety control 100 is arranged on and is connected in two and takes advantage of two to get between two CPU and actuating equipment of two safe redundant systems, comprising:
First comparison module 10, (CPU as shown in fig. 1 is called for short CPU1 to be used to obtain two CPU; The 2nd CPU is called for short CPU2) data of output, if relatively know the data consistent of two CPU outputs, then generate first drive pulse signal and first control wave;
Wherein, CPU1 and CPU2 interconnect, to obtain the other side's operation result; And self operation result and the other side's operation result compared; When both operation results are consistent, then outwards send the output command data, these output command data are used to start actuating equipment.
Second comparison module 20 with the 10 identical settings of first comparison module, and is connected with first comparison module 10, to generate the second reverse drive pulse signal and second control wave;
Wherein, First comparison module 10 and second comparison module 20 all receive the output command data of CPU1 and CPU2 transmission; And when satisfying following two conditions, think that system is in the security control state: one of which can continue to receive the output command data that CPU1 and CPU2 send; Its two, through relatively knowing the output command data consistent of CPU1 and CPU2 transmission.When first comparison module 10 and second comparison module 20 think that system is in the security control state; The pairing actuating equipment of output command data to CPU1 and CPU2 sends the security control signal that can make its entering duty, comprises drive pulse signal and control wave; In case any one among CPU1 and the CPU2 is inconsistent to its discontinuous transmission data or the comparison of data that both send, thinks that then system is in non-security control state, stops external security control, promptly stops the work of actuating equipment.
And second comparison module 20 is connected with first comparison module 10, to realize information transmission between the two, in order to co-ordination, makes that externally the drive pulse signal and the control wave of output remain oppositely for both.
Safe dynamic driving module 30 is connected with second comparison module 20 with first comparison module 10 respectively, is used for according to the drive pulse signal generation drive signal of obtaining from first comparison module 10 and second comparison module 20;
Wherein, Safe dynamic driving module 30 receives the two-way drive pulse signal from first comparison module 10 and second comparison module 20; And this two-way drive pulse signal carried out " phase demodulation "; Whether the phase place of promptly judging this two-way drive pulse signal is opposite, if opposite, and these safe dynamic driving module 30 output drive signals then; If not opposite, then do not export.This drive signal is the direct current signal with certain power.
Double relay output module 40; Be connected with first comparison module 10, second comparison module 20 and safe dynamic driving module 30 respectively, be used for being used to support that according to the control wave that obtains from first comparison module 10 and second comparison module 20 and from the drive signal generation that safety dynamic driving module 30 is obtained actuating equipment carries out the execution indicator signal of work.
Wherein, double relay output module 40 obtains drive signal, obtains one tunnel controlling and driving signal and obtain another road controlling and driving signal from second comparison module 20 from first comparison module 10 from safety dynamic driving module 30.When drive signal and two-way controlling and driving signal act on double relay output module 40 simultaneously, can carry out indicator signal to actuating equipment output.This actuating equipment can be carried out work under the driving of indicator signal at this, and when double relay output module 40 stopped this execution indicator signal of output, actuating equipment just quit work immediately.
Take advantage of two to get the safety control of two safe redundant systems according to the foregoing description based on two; Because first comparison module and second comparison module need are tested to the data of two CPU outputs and are compared; And, just export drive pulse signal and control wave only when when checking and knowing that relatively current system is in the security control state; Safe dynamic driving module and double relay output module are tested to this drive pulse signal and control wave and/or are handled; Make and only work as drive pulse signal and control wave all just often; Can export the execution indicator signal that is used to support actuating equipment work; If arbitrary signal takes place unusual, then do not send the execution indicator signal, make actuating equipment quit work immediately.Therefore, utilize this safety control, after any CPU among two CPU is sending the output command data; If find that this order possibly have problems or there is fault in system; Then can notify this safety control immediately, thereby cut off the work of actuating equipment, the execution of interrupt error order; Avoid the misoperation of equipment, improved security.
Further, the foregoing description take advantage of two to get in the safety control of two safe redundant systems based on two, first comparison module/second comparison module comprises:
Storage unit is used to obtain and keep in the data of two CPU outputs;
Comparing unit is connected with storage unit, is used for the said data of output after keeping in are carried out consistency desired result, and when check results is unanimity, generates the first/the second drive pulse signal and the first/the second control wave.
Wherein, storage unit for example is first in first out dual port buffer (First In First Out is hereinafter to be referred as FIFO), and comparing unit for example is implemented in field programmable gate array (Field Programmable Gate Array is hereinafter to be referred as FPGA) chip internal.
Storage unit in first comparison module is connected with CPU1; The output command data of its output are carried out FIFO keeps in; The storage unit of this first comparison module from second comparison module obtained the output command data of CPU2 output; Promptly the storage unit in two comparison modules is used for respectively the output of a CPU is kept in, and will keep in data after the output comparing unit to two comparison modules is provided simultaneously.
FPGA in two comparison modules interconnects, and with co-ordination, makes that externally the drive pulse signal and the control wave of output remain oppositely for both.
Further, the foregoing description take advantage of two to get in the safety control of two safe redundant systems based on two, comparing unit also is connected with CPU, is used for carrying out failure message transmission/reception with CPU.
Safety control according to the foregoing description; Can realize the message exchange between comparing unit and the CPU; Make comparing unit can control CPU the data of storage unit are sent,, think that this system is in non-security control state and when cutting off the work of actuating equipment for example when after the comparing unit judgement; Its duty with this safety control feeds back to CPU, thereby makes CPU stop to send data; In addition, when CPU was known failure message, it can directly send to comparing unit with failure message, and need not temporary through FIFO, thereby had improved response efficiency.
Fig. 2 the present invention is based on two to take advantage of two to get the structural representation of safe dynamic driving module in the safety control of two safe redundant systems.As shown in Figure 2, in the safety control of the foregoing description, safe dynamic driving module can comprise switch delay protection unit, capacitor charge and discharge unit and optocoupler unit.Be elaborated in the face of each unit down.
Switch delay protection unit is used for the first reverse each other drive pulse signal and second drive pulse signal from first comparison module (being FPGA1) and second comparison module (being FPGA2) reception are carried out the pulse delay shaping;
Wherein, safe dynamic driving module at first through switch delay protection unit to the shaping of delaying time of the drive pulse signal of the back each other of two comparison modules output, the situation of high level appears simultaneously to prevent the two-way drive pulse signal.Fig. 3 utilizes switch delay protection unit drive pulse signal to be carried out the contrast sequential chart of shaping front and back.As shown in Figure 3; Time-delay shaping through switch delay protection unit is handled; The high level time of two-way drive pulse signal has shortened time t than the high level time of original drive pulse signal; The high level time of two-way drive pulse signal and low level time have just differed 2t like this, thereby have ensured the diversity of this two-way drive pulse signal at the high level place.
The capacitor charge and discharge unit is connected with external power source, is used for that first drive pulse signal and said second is driven the arteries and veins signal and carries out phase demodulation, and only know among both one when being high level when judging, generates said drive signal;
Wherein, the pulse drive signal after the capacitor charge and discharge module is handled two-way carries out " phase demodulation ", promptly judges the phase place (comprise being in high level or low level, and whether two paths of signals being opposite) of two-way pulse drive signal.Phase place is opposite at the high level place of arbitrary signal to have only the two-way pulse drive signal; The capacitor charge and discharge module is just exported the direct current signal with certain power and is driven the double relay output module; This direct current signal produces when reaching predetermined value by the discharge capacity of the discharge capacity in the capacitor charge and discharge module, and the external 24V power supply of this capacitor charge and discharge module can not directly trigger drive signal.
The optocoupler unit; Be arranged between said switch delay protection unit and the said capacitor charge and discharge unit; Be used for the said external power source of said switch delay protection unit and said capacitor charge and discharge unit is isolated; Mutual isolation between the 24V voltage that promptly is used to realize the pulse drive signal of FPGA output and be used to the power supply of capacitor charge and discharge unit causes the damage to switch delay protection unit to avoid this 24V voltage.
And; This safe dynamic driving module also can comprise: monitoring means M; Be used to monitor the capacitor charge and discharge unit, and monitor signal is sent to comparing unit, so that comparing unit judges according to monitor signal whether the capacitor charge and discharge unit breaks down; And know and send failure message to CPU when breaking down when judging.Wherein, This monitoring means M monitors for the transistor that discharges and recharges in the capacitor charge and discharge unit; And monitoring result is sent to FPGA; If FPGA finds this monitoring result several (for example being three times) unusual (being that voltage drop value is not in preset range) continuously, then stop to export drive pulse signal, give CPU with fault information reporting simultaneously.Can in time find to discharge and recharge transistorized implicit fault through this monitoring means M is set, improve security.
Further; The foregoing description based on two take advantage of two get two safe redundant systems safety control and actuating equipment between be connected through safety relay; Correspondingly; The execution indicator signal that the double relay output module generates is used to make the excitation of safety relay to attract, thereby supplies with for actuating equipment provides working power.
Fig. 4 is the synoptic diagram that shows annexation between double relay output module and the safety relay.As shown in Figure 4, the double relay output module is made up of two relays and two electronic switches.Constitute parallel-connection structure after the line bag of each relay is connected with electronic switch, and be connected with safety dynamic driving module.The output terminal of this double relay output module is linked to each other and is constituted the parallel-connection structure of symmetry by the node of often opening of the normally closed node of a relay and another relay.Wherein, Two electronic switches are alternately closed under the effect of control wave and drive signal/break off; Promptly realized excitation by control wave and drive signal two relays of control (being J1 and J2); And realize excitation to safety relay (being J3) through the alternately excitation of two relays, make relay lift, thereby supply with for actuating equipment provides working power.When two relays in the double relay output module stopped alternately excitation, then safety relay J3 fell, make actuating equipment lose the job voltage, quit work.
Take advantage of two to get the safety control of two safe redundant systems according to the foregoing description based on two; Because can this safety control excitation suck up the working power supply of controlling actuating equipment with final control safety relay J3; After in case safety control cuts off the working power of actuating equipment; Even CPU still transmits the output command data to actuating equipment; Actuating equipment also can't fill order, and it makes after CPU is sending bad command or know when actuating equipment breaks down etc., all can cut off the work of actuating equipment through the notice safety control.Improved the security of system.
And, if also can make the state of double relay regularly change, thereby whether the contact that can detect relay sticks together the transformation period (for example being 2 hours) of in comparing unit, presetting a control wave.
According to a further aspect in the invention, also provide a kind of two to take advantage of two to get two safe redundant systems.
Fig. 5 takes advantage of two to get the structural representation of two safe redundant systems for the present invention two.As shown in Figure 5, this two takes advantage of two to get two safe redundant systems and comprise interconnective two CPU, actuating equipment, and connect two CPU and safety control actuating equipment, above-mentioned arbitrary embodiment respectively.
Further, this two takes advantage of two to get two safe redundant systems and also can comprise safety relay J3, and it is connected between safety control and the actuating equipment.
Take advantage of two to get in the two safe redundant systems according to two of the foregoing description;, safety control compares when obtaining output command data that CPU1 and CPU2 send from B1 data line and B2 data line after; After the comparison unanimity; Two relay J 1 in the control double relay output module and the excitation of J2, the alternately excitation of relay J 1 and J2 is being controlled the excitation of safety relay J3, and the contact of safety relay J3 is the condition that can control actuating equipment working power be supplied with.J3 falls when safety relay, and the actuating equipment voltage of losing the job can not be worked.Therefore; Can safety control excitation suck up the working power supply of controlling actuating equipment with final control safety relay J3; Once after the working power of safety control through safety relay J3 cut-out actuating equipment; Even A1 passage and A2 passage have the output command data to give actuating equipment, this order can not finally be performed, and has so just prevented also can in time stop being performed of bad command through safety control after the wrong order of sending of CPU1 or CPU2.On the other hand; If actuating equipment or A1, A2 passage break down; After not receiving the direct control of CPU, CPU can tell safety control this fault through B1 data line, B2 data line, has controlled the work of actuating equipment indirectly through safety control; Stop the mistake output that might cause serious consequence, realized the high security of system.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.