Digital quantity output redundancy circuit and PLC control system
Technical Field
The application relates to the technical field of automatic control, in particular to a digital quantity output redundancy circuit and a PLC control system.
Background
With the development of industrial automation technology, the redundancy design of a PLC (Programmable Logic Controller) control system is more and more emphasized. The redundancy design can improve the reliability of the whole system, reduce the failure rate of the system, improve the Mean Time Between Failures (MTBF) of the system, ensure the uninterrupted operation of the system and avoid economic loss caused by production halt.
The existing PLC control system is focused on redundancy design of control, power supply and communication, IO redundancy, particularly digital output redundancy is basically designed, so that the output reliability of the PLC control system in an actual application scene is poor, and the reliability of the system is reduced.
Disclosure of Invention
In view of this, the present application provides a digital quantity output redundancy circuit and a PLC control system, which are used to improve the reliability of the PLC control system.
In order to achieve the above object, the following solutions are proposed:
a digital quantity output redundancy circuit is applied to a PLC control system, the PLC control system comprises a processor, the digital quantity output redundancy circuit comprises at least two mutually redundant signal output circuits connected with a signal output end of the processor, and the digital quantity output redundancy circuit comprises:
the signal output circuit is also connected with a load and used for transmitting the digital quantity signal output by the signal output end to the load;
the signal output circuit is also connected with a channel readback self-diagnosis circuit and is used for diagnosing whether the signal output circuit is abnormal or not;
when all the signal output circuits are normal, all the signal output circuits simultaneously transmit the digital quantity signals, when part of the signal output circuits are abnormal, the other normal signal output circuits transmit the digital quantity signals, and when all the signal output circuits are abnormal, any one of the signal output circuits outputs a safety preset value.
Optionally, the signal output circuit includes a DO integrated circuit and an anti-reverse diode, wherein:
the input end of the DO integrated circuit is connected with the signal output end, and the output end of the DO integrated circuit is connected with the load through a lead;
and the wire for connecting the positive pole of the output end of the DO integrated circuit is provided with the anti-reverse diode, and the positive pole of the anti-reverse diode is connected with the positive pole of the output end.
Optionally, the output ends of all the signal output circuits are connected in parallel through a back plate connecting circuit.
Optionally, the DO integrated circuit includes a fault diagnosis module.
Optionally, the contents of the fault diagnosed by the fault diagnosis module include a system power failure, a field power failure detection, a backplane communication failure, and a single chip microcomputer run-off failure.
Optionally, the channel readback self-diagnosis circuit includes a voltage dividing resistor, a coupling device, a pull-up resistor, and an amplifying circuit, where:
one end of the divider resistor is connected with the signal output circuit and used for detecting a voltage signal on the signal output circuit;
the coupling device is used for outputting the voltage signal to an input end of the amplifying circuit;
the input end of the amplifying circuit is connected with the driving voltage input end through a pull-up resistor, and the output end of the amplifying circuit is used as a state output end and used for outputting an output level signal of the signal output circuit, so that the processor judges whether the signal output circuit breaks down or not according to the output level signal.
Optionally, the coupling device is an optical coupling element.
Optionally, the types of the faults include a disconnection fault, a short-circuit fault and a channel overheating fault.
A PLC control system is provided with the digital quantity output redundant circuit.
According to the technical scheme, the digital quantity output redundancy circuit and the PLC control system are disclosed, and the circuit comprises two mutually redundant signal output circuits connected with a processor of the PLC control system. The signal output circuit is also connected with a load and used for transmitting the digital quantity signal output by the signal output end to the load; the signal output circuit is also connected with a channel readback self-diagnosis circuit and is used for diagnosing whether the signal output circuit is abnormal or not; when all the signal output circuits are normal, all the signal output circuits simultaneously transmit digital quantity signals, and when some signal output circuits are abnormal, the other normal signal output circuits transmit digital quantity signals. It can be seen from this that, because of the mutually redundant signal output circuits, it is ensured that the digital quantity signal can still be output to the load when some signal output circuits are abnormal, and the reliability of the PLC control system is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of a digital quantity output redundancy circuit according to an embodiment of the present application;
fig. 2 is a circuit diagram of a signal output circuit according to an embodiment of the present application;
fig. 3 is a circuit diagram of a channel read-back self-diagnostic circuit according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
Fig. 1 is a circuit diagram of a digital quantity output redundancy circuit according to an embodiment of the present application.
As shown in fig. 1, the numerical value output redundancy circuit of the present embodiment is applied to a PLC control system, and is configured to output a digital value signal output by a processor 10 through a signal output terminal thereof to a load 100 in the PLC control system, so as to implement a control function of the PLC control system. The digital quantity output redundancy circuit includes two signal output circuits 20 that are redundant with each other.
Two mutually redundant signal output circuits are respectively connected with corresponding signal output ends of the processor and are also connected with a load of the PLC control system, so that the processor can transmit digital quantity signals to the load.
And, each signal output circuit is further provided with a channel readback self-diagnosis circuit 30 for detecting an operating state of the signal output circuit to determine whether an abnormality occurs in the signal output circuit, where the abnormality includes a disconnection fault, a short-circuit fault, and a channel overheating fault.
In the embodiment, when all the signal output circuits work normally, namely, the faults do not exist, the digital quantity signals are output to the corresponding loads through all the signal output circuits; if some signal output circuits are abnormal, namely the fault occurs, the abnormal signal output circuits are shielded, and only the still normal signal output circuits are controlled to output the digital quantity signals to the load.
If all the signal output circuits are abnormal, a part or all of the signal output circuits output a safety preset value. Therefore, even if all the signal output circuits are in failure, the PLC control system can still operate at certain safety parameters.
It can be seen from the above technical solutions that, this embodiment provides a digital quantity output redundancy circuit, which is applied to a PLC control system, where the PLC control system includes a processor, and the digital quantity output redundancy circuit includes two mutually redundant signal output circuits connected to the processor of the PLC control system. The signal output circuit is also connected with a load and used for transmitting the digital quantity signal output by the signal output end to the load; the signal output circuit is also connected with a channel readback self-diagnosis circuit and is used for diagnosing whether the signal output circuit is abnormal or not; when all the signal output circuits are normal, all the signal output circuits simultaneously transmit digital quantity signals, and when some signal output circuits are abnormal, the other normal signal output circuits transmit digital quantity signals. It can be seen from this that, because of the mutually redundant signal output circuits, it is ensured that the digital quantity signal can still be output to the load when some signal output circuits are abnormal, and the reliability of the PLC control system is improved.
In the present embodiment, each signal output circuit includes a DO integrated circuit 21 and an anti-reverse diode 22, as shown in fig. 2. The input end of the DO integrated circuit is connected with the processor, the output end of the DO integrated circuit is connected with the load through a lead, the anti-reverse diode is arranged on the lead, specifically on the lead connected with the positive electrode of the output end, and the positive electrode of the anti-reverse diode is connected with the positive electrode of the output end.
In addition, the wires connected to the output terminals of each DO integrated circuit are connected in parallel by the board-to-board connector 23, that is, the board-to-board connector is provided with two connection terminals, which are connected to the wires connected to the DO integrated circuits, respectively, and connected in parallel by the wires, and the connection terminals are used for connecting a load.
The DO integrated circuit comprises a fault diagnosis module, and the fault diagnosis module is used for diagnosing system power supply faults, field power supply fault detection, backboard communication faults and singlechip run-off faults.
And the DO integrated circuit self-diagnosis circuit diagnoses the system power supply fault in advance, all channels of the local module DO not output, and fault information is transmitted to the normal pairing module through the redundant communication circuit. And normally outputting all channels of the machine-to-machine module. And if the system power supply faults occur to the two redundant DO integrated circuits, the DO integrated circuits output safety preset values.
The DO integrated circuit self-diagnosis circuit detects corresponding failure modes, all channels of the local module DO not output, and failure information is transmitted to the opposite module through the redundant communication circuit. And outputting all channels of the machine module normally. And when the redundant two DO integrated circuits have field power supply failure or backboard communication failure and the fire disaster single chip microcomputer breaks away, the DO integrated circuits output safety preset values.
And can also carry out detailed diagnosis, and the detailed diagnosis can diagnose channel disconnection, channel short circuit and overheating. And (4) performing channel disconnection diagnosis, wherein when the channel outputs a low level, the output voltage is greater than 7.35V, the channel judges that the line is disconnected, and otherwise, the channel judges that the line is normal. When the channel outputs a high level and the output circuit is less than 3mA, the channel judges that the line is broken, otherwise, the channel judges that the line is normal.
The channel readback self-diagnosis circuit in the embodiment comprises voltage division resistors R1 and R2, a coupling device U1 and a pull-up resistor RCAnd an amplifying circuit U2, as shown in fig. 3. The coupling deviceIs a light coupling element.
One end of the divider resistor is connected with the positive electrode of the output end, the other end of the divider resistor is grounded, the two ends of the divider resistor are respectively connected with the output end of the coupling element, and the output end of the optical coupling element is connected with the input end of the amplifying circuit. The input end of the amplifying circuit is connected with the input end of the driving voltage through a pull-up resistor, and the output end DO _ fdbk is connected with the processor.
The channel readback self-diagnosis circuit outputs a level signal through the output end of the amplifying circuit, the level signal reflects the level of a digital quantity signal output by the DO integrated circuit, and if the output level is inconsistent with a signal input to the DO integrated circuit by the processor, the signal output circuit is abnormal. Thus, fault detection of the signal output circuit is realized.
The hot plug function and the plug-in function are necessary components of the redundancy technology. The hot plug circuit function is realized through an integrated hot plug function chip LT 4256. After overcurrent fault occurs, latch-up operation can be executed, and the power-up rate of the 24V power supply voltage can be set. The hot plug circuit also has the functions of diagnosing overvoltage, undervoltage and overcurrent faults of a 24V input power supply of the system. Ensuring that the module 24V power supply must be in a certain state.
Whether the DO integrated circuit is reliably and stably inserted into the backplane is judged by reading the level of 4 pins at the extreme edge of the backplane connector. After the DO integrated circuit is reliably inserted into the backboard, the DO integrated circuit starts to operate functionally.
The redundancy function communication circuit comprises a heartbeat signal of the module, a power state signal of the computer and a redundancy communication interface circuit between the modules. Through the heartbeat signal and the power state signal, the digital quantity output redundancy circuit can determine the state of the machine. And the redundant communication interface circuit transmits fault information between the redundant modules, including channel faults and module faults.
In order to improve the reliability of the module and reduce the failure rate of the system. The backboard communication circuit, the system power supply and the field power supply are double redundant circuits.
Example two
The present embodiment provides a PLC control system including a processor and a digital quantity output facilitating circuit connecting the processor to a load.
The digital quantity output redundancy circuit comprises two mutually redundant signal output circuits which are connected with a processor of the PLC control system. The signal output circuit is also connected with a load and used for transmitting the digital quantity signal output by the signal output end to the load; the signal output circuit is also connected with a channel readback self-diagnosis circuit and is used for diagnosing whether the signal output circuit is abnormal or not; when all the signal output circuits are normal, all the signal output circuits simultaneously transmit digital quantity signals, and when some signal output circuits are abnormal, the other normal signal output circuits transmit digital quantity signals. It can be seen from this that, because of the mutually redundant signal output circuits, it is ensured that the digital quantity signal can still be output to the load when some signal output circuits are abnormal, and the reliability of the PLC control system is improved.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The technical solutions provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained in this document by applying specific examples, and the descriptions of the above examples are only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.