Safety output circuit with physical disconnection mode and implementation method
Technical Field
The invention belongs to the technical field of safety output circuits, and particularly relates to a safety output circuit with a physical disconnection mode and an implementation method thereof.
Background
The dynamic working mode is a very effective fault detection and safety protection measure commonly adopted in railway signal systems, particularly in the aspects of design and realization of a collecting unit circuit, a driving unit circuit and a control circuit thereof, the dynamic working mode can play a role in protecting static faults, particularly control output error retention, and inherent failure-safety to a certain extent.
In fact, among the various faults that lead to erroneous outputs, the "error retention" of the outputs is a condition that is not negligible and that is easily occurred, which is unique to the computer control system.
The "dynamic driving" is a driving method in which, when a driving control of a non-limiting "dangerous side" is given, a software is required to alternately give an "ON" and an "OFF" control command to a driving circuit at a certain cycle. Different from a static driving mode, the dynamic driving circuit realizes the conversion and isolation of a dynamic logic level pulse sequence and a static driving level, and the key of dynamic driving is mainly the mode and the safety of the conversion in a driving unit circuit. Since the dynamic driving mode is essentially a driving mode with an inherent "fail-safe" property for static faults, it is usually achieved that some inherent "fail-safe" technical measure is adopted, so that the driving unit circuit gives an effective driving output (level) only when a pulse sequence of a certain frequency or some alternating signal is input, and any inconvenient static level/current input (fixed ON or fixed OFF) is ineffective for it, and thus is safe.
The random faults of the hardware of the digital computer are usually static faults, and in a non-complex driving program, the possibility of continuous and regular pulse output caused by software bug is extremely low, so that a dynamic driving mode is the most thorough method for protecting the driving circuit, including 'error retention', from any software and hardware faults which lead to 'fixed ON' or 'fixed OFF', and particularly has good safety protection capability for lightning strokes, even the extreme cases of the invasion of traction current and the like which can cause simultaneous breakdown of multiple subsystem and multistage control devices. The dynamic driving mode is also used for controlling a rejection mechanism for forcing the system to a safe state, and usually drives a relay for switching on the control power supply of the system when the system is normal, and cuts off the control power supply once the pulse driving is stopped.
The key element for implementing the dynamic driving mode is that a pulse-level (intrinsic) "fail-safe" circuit can be implemented. The circuit converts the driving pulse sequence of the logic voltage standard given by the computer into the energy driving level of the relay voltage standard in a failure-safety mode, and finally, the safety control of the safety relay is realized. Because the pulse driving mode is generally poor in anti-interference capability, and the mode of timing readback detection cannot achieve complete and effective monitoring on the interference effect of the pulse with higher frequency, the possibility that the circuit is malfunction due to interference violation discovery exists in theory, and therefore the anti-interference capability of the front-stage pulse driving circuit is strictly required.
Railway signals and the like have strict requirements on safe output, and once judging that the output is inconsistent with the expected output, the requirements cannot be solved by means of re-judging, restarting and the like. The CPU error and the two-point fault of the dynamic driving circuit, the power supply pulse interference and the fault of the dynamic driving circuit can output the safe output error, so that the dynamic driving circuit can not realize failure-safety.
Disclosure of Invention
Aiming at the problem that a dynamic circuit cannot realize failure-safety in the prior art, the invention provides a safety output circuit with a physical disconnection mode and an implementation method thereof, and the output of unexpected conditions is removed through the physical disconnection mode of a fuse so as to ensure that the dynamic driving circuit realizes inherent failure-safety.
The invention adopts the following technical scheme:
A safety output circuit with a physical disconnection mode comprises a fuse, a dynamic driving circuit, a stoping module, a CPU module, a watchdog circuit and a self-protection circuit, wherein the CPU module is connected with the dynamic driving circuit to drive the dynamic driving circuit, the dynamic driving circuit is connected with the CPU module through the stoping module, the CPU module collects output of the dynamic driving circuit, the CPU module is connected with the watchdog circuit to provide a watchdog feeding signal for the watchdog circuit, the watchdog circuit is connected with the self-protection circuit, two terminals at the output end of the self-protection circuit are respectively connected with a power supply and a ground, and the fuse is arranged on a power supply channel.
Further, the self-protection circuit is composed of a relay resistor, an input end coil of the relay is connected with an output signal of the watchdog circuit, an output end of the relay is a normally open contact, one end of the relay is connected to the fuse, and the other end of the relay is grounded.
The implementation method of the safety output circuit with the physical disconnection mode comprises the following steps:
1) The self-protection circuit is connected with the CPU module through the watchdog circuit;
2) The CPU module judges the working states of the CPU module and the dynamic driving circuit through the self-checking or stoping module, and provides different dog feeding signals for the watchdog circuit;
3) The watchdog circuit inputs a watchdog feeding signal output by the CPU module, and outputs a signal for the self-protection circuit;
4) The self-protection circuit controls whether the fuse is fused or not through the output node;
5) The one-time output process ends.
Further, in the step 2), if the CPU module judges that the circuit is faulty through the self-checking or stoping module, the output of the feeding dog signal is terminated, the high level is output by the watchdog circuit, the self-protection circuit is enabled, the power supply and GND are short-circuited, the fuse is fused, the safety output port has no output level, and the one-time output process is ended.
Further, in the step 2), if the CPU module determines that the circuit is normal through the self-checking or stoping module, the CPU module generates a watchdog signal, and provides the watchdog circuit with the watchdog signal, the watchdog circuit outputs a low-level signal, the output node of the self-protection circuit remains disconnected, and the one-time output process is ended.
Further, in the step 3), after the watchdog circuit outputs a high level to drive the relay coil, the normally open contact of the relay is conducted, and the fuse in the power circuit is blown by short circuit, so that no output of the circuit is ensured.
The invention has the following beneficial effects and advantages:
According to the dynamic driving circuit with the physical disconnection mode, the output of unexpected conditions is removed through the physical disconnection mode of the fuse, and the fuse is actively blown to solve the problem that the safety output is inconsistent with the expected output after circuit faults caused by power supply interference and the like, so that the safety is high.
Drawings
FIG. 1 is a schematic block diagram of a dynamic secure output circuit;
FIG. 2 is a flow chart of a method for implementing a dynamic safety output circuit with a physical disconnection mode according to the present invention;
fig. 3 is a schematic diagram of a self-protection circuit.
Detailed Description
The invention will be described in further detail with reference to the drawings and the detailed description.
As shown in FIG. 1, in order to obtain working conditions (normal working or damage) of a safety output circuit, the invention provides the safety output circuit with a physical disconnection mode, which comprises a fuse, a dynamic driving circuit, a stoping module, a CPU module, a watchdog circuit and a self-protection circuit, wherein the CPU module is connected with the dynamic driving circuit to drive the dynamic driving circuit, the CPU module is connected with the stoping module to collect output of the dynamic driving circuit, the CPU module is connected with the watchdog circuit to continuously provide a dog feeding signal for the watchdog circuit, the watchdog circuit is connected with the self-protection circuit, two terminals of the output end of the self-protection circuit are respectively connected with a power supply and a ground, and the fuse is arranged on a power supply circuit.
The CPU module judges the state of the circuit tool through the self-checking and stoping module, and controls whether the fuse is fused or not through the watchdog circuit and the self-protection circuit.
As shown in fig. 3, the self-protection circuit is composed of a relay resistor, an input coil of the relay is connected with an output signal of the watchdog circuit, an output end of the relay is a normally open contact, one end of the relay is connected to the fuse, and the other end of the relay is grounded.
As shown in fig. 2, the present invention further provides a method for implementing a dynamic driving circuit with a physical disconnection mode, which includes the following steps:
1) The self-protection circuit is connected with the CPU module through the watchdog circuit;
2) The CPU module judges the working states of the CPU module and the dynamic driving circuit through the self-checking or stoping module, and provides different dog feeding signals for the watchdog circuit;
3) The watchdog circuit inputs a watchdog signal for the CPU module to output a low-level (opposite to a self-protection circuit enabling signal) signal for the self-protection circuit;
4) The self-protection circuit controls whether the fuse is fused or not through the output node;
5) The one-time output process ends.
In step 2), if the CPU module judges that the circuit is faulty through the self-checking or stoping module, the output of the feeding dog signal is stopped, the watchdog circuit outputs a high level, the self-protection circuit is enabled, the power supply and GND are short-circuited, the fuse is fused, the safety output port has no output level, and the one-time output process is finished.
In step 2), if the CPU module judges that the circuit is normal through the self-checking or stoping module, the CPU module generates a dog feeding signal and provides the dog feeding signal for the watchdog circuit, the watchdog circuit outputs a low-level signal, an output node of the self-protection circuit is kept disconnected, and the one-time output process is finished.
As shown in fig. 3, the self-protection circuit is composed of relay resistors, when the watchdog circuit outputs high level to drive the relay coil, the relay node is conducted, and the fuse in the power circuit is short-circuited, so that no output of the circuit is ensured.