Control method, device and system based on signal lamp control circuit

文档序号:1171 发布日期:2021-09-17 浏览:55次 中文

1. A control method based on a signal lamp control circuit is characterized by comprising the following steps:

monitoring the switch state, the output voltage and the output current of a contact of a first relay when the voltage output by a power supply module passes through the first relay;

and controlling the switch of the contact according to the switch state of the contact, and/or controlling the switch of the contact according to the output voltage and the output current of the contact so as to control the input voltage of a target signal lamp connected with the first relay.

2. The signal lamp control circuit-based control method according to claim 1, wherein the controlling the switch of the contact according to the switch state of the contact comprises:

and in the case that the switch state of at least one contact is open, controlling the switch of the contact with the closed switch state to be open.

3. The signal lamp control circuit-based control method according to claim 1, wherein the controlling the switch of the contact according to the output voltage and the output current of the contact comprises:

and under the condition that the output voltage of at least one contact is greater than a first preset threshold value or the output current is greater than a second preset threshold value, controlling the switch of the contact with the closed switch state to be opened.

4. The signal lamp control circuit based control method according to any one of claims 1 to 3, further comprising, after the monitoring of the switching state of the contacts of the first relay, the output voltage and the output current:

monitoring whether an execution circuit where the first relay is located has overvoltage and undervoltage;

and under the condition that the overvoltage and/or the undervoltage exist, the switch of the contact point with the closed switch state is controlled to be opened.

5. The signal lamp control circuit-based control method according to any one of claims 1 to 3, wherein the power supply module comprises a dynamic pulse-to-dc circuit and a second relay;

correspondingly, before the monitoring of the switching state, the output voltage and the output current of the contact of the first relay, the method further comprises the following steps:

and sending a dynamic pulse signal to a dynamic pulse-to-DC circuit of the power module so that the dynamic pulse-to-DC circuit converts the dynamic pulse signal into DC voltage, drives a switch of a contact of the second relay to be closed, and outputs the voltage to the first relay.

6. The signal lamp control circuit-based control method according to claim 5, further comprising, after the sending of the dynamic pulse signal to the dynamic pulse-to-dc circuit of the power module:

monitoring a switch state of a contact of the second relay;

and if the switch state of the contact of the second relay is off, stopping sending the dynamic pulse signal to the dynamic pulse DC-to-DC circuit.

7. A control device based on a signal lamp control circuit is characterized by comprising:

the monitoring module is used for monitoring the switch state, the output voltage and the output current of a contact of the first relay when the voltage output by the power supply module passes through the first relay;

and the control module is used for controlling the switch of the contact according to the switch state of the contact and/or controlling the switch of the contact according to the output voltage and the output current of the contact so as to control the input voltage of a target signal lamp connected with the first relay.

8. A control system based on a signal lamp control circuit, characterized by comprising a plurality of signal lamp control circuit based control devices according to claim 7;

the plurality of control devices are used for simultaneously sending dynamic pulse signals to the dynamic pulse-to-DC circuit of the power module, so that the dynamic pulse-to-DC circuit can convert the dynamic pulse signals into DC voltage under the condition that the dynamic pulse signals sent by the plurality of control devices are simultaneously received.

9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the signal light control circuit based control method according to any one of claims 1 to 6 when executing the program.

10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the signal light control circuit-based control method according to any one of claims 1 to 6.

Background

With the rapid development of urban rail transit, the departure time and distance of trains are more and more concerned. Higher requirements are put on the departure time and distance of the train, and the departure time and distance of the train are required to be compressed as much as possible.

The prior art generally adopts a fixed blocking or manual intervention mode to control the departure time of a train and the distance between a front train and a rear train. However, in the fixed block control mode, the line is divided into fixed positions, and one block subarea can only occupy one train, so that the rear train can only enter the current block subarea when the front train exits the current block subarea. Therefore, it is difficult to satisfy the demand for compressing the departure time and the distance between the preceding and following vehicles to the maximum possible extent. The manual intervention is greatly influenced by human factors, and emergencies are easily caused.

In order to solve the problems, signal lamps are adopted to control departure time and distance of a train. Under the control mode of the signal lamp, the object controller sends an instruction to the control circuit according to the running speed and the position of the train, and the control circuit provides voltage to the corresponding signal lamp position according to the corresponding control instruction to control the state of the signal lamp position. And then APT (Automatic Train Protection) sends the Train according to the state of the signal lamp position and the distance. In the control circuit, the output of the mechanical relay is usually directly used as the output of the control circuit, so that the safety protection performance is poor, the output reliability and safety of the control circuit are poor, and further traffic accidents are caused.

Disclosure of Invention

The invention provides a control method, a control device and a control system based on a signal lamp control circuit, which are used for solving the defects that in the prior art, the output of a mechanical relay is directly used as the output of the control circuit, the safety protection performance is poor, the output reliability and safety of the control circuit are poor, and further traffic accidents are caused, and the safety protection performance of the control circuit is improved.

The invention provides a control method based on a signal lamp control circuit, which comprises the following steps:

monitoring the switch state, the output voltage and the output current of a contact of a first relay when the voltage output by a power supply module passes through the first relay;

and controlling the switch of the contact according to the switch state of the contact, and/or controlling the switch of the contact according to the output voltage and the output current of the contact so as to control the input voltage of a target signal lamp connected with the first relay.

According to the control method based on the signal lamp control circuit, the control of the switch of the contact according to the switch state of the contact comprises the following steps:

and in the case that the switch state of at least one contact is open, controlling the switch of the contact with the closed switch state to be open.

According to the control method based on the signal lamp control circuit, the switch of the contact is controlled according to the output voltage and the output current of the contact, and the control method comprises the following steps:

and under the condition that the output voltage of at least one contact is greater than a first preset threshold value or the output current is greater than a second preset threshold value, controlling the switch of the contact with the closed switch state to be opened.

According to the control method based on the signal lamp control circuit, before the monitoring of the switch state, the output voltage and the output current of the contact of the first relay, the method further comprises the following steps:

monitoring whether an overcurrent protection fuse connected between the power module and the first relay is fused or not, so that the voltage output by the power module is input into the first relay under the condition that the overcurrent protection fuse is not fused.

According to the control method based on the signal lamp control circuit, after the monitoring of the switch state, the output voltage and the output current of the contact of the first relay, the method further comprises the following steps:

monitoring whether an execution circuit where the first relay is located has overvoltage and undervoltage;

and under the condition that the overvoltage and/or the undervoltage exist, the switch of the contact point with the closed switch state is controlled to be opened.

According to the control method based on the signal lamp control circuit, the power supply module comprises a dynamic pulse-to-direct current circuit and a second relay;

correspondingly, before the monitoring of the switching state, the output voltage and the output current of the contact of the first relay, the method further comprises the following steps:

and sending a dynamic pulse signal to a dynamic pulse-to-DC circuit of the power module so that the dynamic pulse-to-DC circuit converts the dynamic pulse signal into DC voltage, drives a switch of a contact of the second relay to be closed, and outputs the voltage to the first relay.

According to the control method based on the signal lamp control circuit provided by the invention, after the dynamic pulse signal is sent to the dynamic pulse-to-direct current circuit of the power module, the method further comprises the following steps:

monitoring a switch state of a contact of the second relay;

and if the switch state of the contact of the second relay is off, stopping sending the dynamic pulse signal to the dynamic pulse DC-to-DC circuit.

The invention also provides a control device based on the signal lamp control circuit, which comprises:

the monitoring module is used for monitoring the switch state, the output voltage and the output current of a contact of the first relay when the voltage output by the power supply module passes through the first relay;

and the control module is used for controlling the switch of the contact according to the switch state of the contact and/or controlling the switch of the contact according to the output voltage and the output current of the contact so as to control the input voltage of a target signal lamp connected with the first relay.

The invention also provides a control system based on the signal lamp control circuit, which comprises a plurality of control devices based on the signal lamp control circuit.

According to the control system based on the signal lamp control circuit, provided by the invention, the plurality of control devices are used for simultaneously sending dynamic pulse signals to the dynamic pulse-to-direct current circuit of the power module, so that the dynamic pulse-to-direct current circuit converts the dynamic pulse signals into direct current voltage under the condition that the dynamic pulse signals sent by the plurality of control devices are simultaneously received.

The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the signal lamp control circuit-based control method.

The invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the signal lamp control circuit-based control method as defined in any one of the above.

According to the control method, the device and the system based on the signal lamp control circuit, the on-off state, the output voltage and the output current of the contact of the first relay are monitored in real time, the on-off of the contact is controlled in real time according to the on-off state and/or the output voltage and the output current of the contact, and when the on-off state and/or the output voltage and the output current of the contact do not meet the conditions, the on-off of the contact is controlled in time to cut off the output voltage of the first relay, so that the control circuit is guided to the safety side, wrong output is avoided, the safety protection performance of the control circuit is effectively improved, and the reliability and the safety of the output of the control circuit are improved.

Drawings

In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.

FIG. 1 is a schematic flow chart of a control method based on a signal lamp control circuit according to the present invention;

FIG. 2 is a schematic diagram of a hardware structure of a signal lamp control circuit based control method according to the present invention;

FIG. 3 is a second schematic flow chart of a control method based on a signal lamp control circuit according to the present invention;

FIG. 4 is a schematic structural diagram of a control device based on a signal lamp control circuit provided by the invention;

fig. 5 is a schematic structural diagram of an electronic device provided in the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. 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 invention.

The control method based on the signal lamp control circuit of the invention is described below with reference to fig. 1, and comprises the following steps: step 101, monitoring the switch state, the output voltage and the output current of a contact of a first relay when the voltage output by a power supply module passes through the first relay;

the execution subject in this embodiment is a control device, such as a Central Processing Unit (CPU).

The first relay includes a solid-state relay and a safety relay, which is not specifically limited in this embodiment. The number of solid state relays and safety relays in the first relay can be set according to actual requirements.

The control method based on the signal lamp control circuit is described below with the first relay including a solid-state relay and a safety relay.

Wherein, the solid-state relay and the safety relay are connected in series and are integrated in the execution circuit.

The execution circuit and the power supply module are integrated in the control circuit.

As shown in fig. 2, the output terminal of the power module is connected to the input terminal of the execution circuit, that is, the output terminal of the power module is connected to the input terminal of the solid-state relay in series, and the output terminal of the solid-state relay is connected to the input terminal of the safety relay in series.

The switching states of the contacts of a solid state relay or safety relay include closed and open.

The output voltage and the output current are respectively the voltage and the current output by each contact under the condition that the switch states of all the contacts of the solid-state relay or the safety relay are closed.

When the voltage output by the power module passes through the solid-state relay and the safety relay, the feedback module periodically and continuously monitors the solid-state relay and the safety relay, and the on-off state, the output voltage and the output current of the contacts of the solid-state relay and the safety relay are obtained in real time.

In the embodiment, the safety of the execution circuit is ensured by the solid-state relay and the safety relay together, and the double protection of the execution circuit is realized.

And 102, controlling the switch of the contact according to the switch state of the contact, and/or controlling the switch of the contact according to the output voltage and the output current of the contact so as to control the input voltage of a target signal lamp connected with the first relay.

Specifically, the switch of the contact can be controlled in real time through the control execution module according to the monitored switch state of the contact.

Optionally, when the switching states of the contacts of the solid-state relay and the safety relay are abnormal, indicating that the solid-state relay and the safety relay are in fault, the switches of all the contacts of the solid-state relay and the safety relay need to be turned off in time to cut off the output voltage of the execution circuit, so that the execution circuit is guided to the safety side, the wrong output voltage is avoided, and the safety and the reliability of the execution circuit are ensured.

Wherein, the abnormal switch state of the contact points indicates that the contact points can not be opened or closed normally.

For example, in the case where the switching states of the contacts of the solid-state relay and the safety relay are normal, when the voltage output from the power supply module passes through the solid-state relay and the safety relay, the contact switches of the solid-state relay and the safety relay may be driven to be closed by the voltage. And under the condition that the switch state of the contacts of the solid-state relay or the safety relay is abnormal, when the voltage output by the power module passes through the solid-state relay and the safety relay, the switch state of the contacts of the solid-state relay and/or the safety relay is off and the contacts of the solid-state relay and/or the safety relay cannot be normally closed.

Furthermore, the switching of the contacts may be controlled in dependence on the output voltage and output current of the contacts.

Alternatively, when the output voltage and the output current of the contacts of the solid-state relay and the safety relay exceed the set ranges, indicating that the solid-state relay or the safety relay has a fault, it is also necessary to timely open the switches of all the contacts of the solid-state relay and the safety relay to cut off the output voltage of the execution circuit so that the execution circuit is led to the safety side.

In summary, when the switch states of the contacts of the solid-state relay and the safety relay are both closed, and the output current are within the set range, the voltage output by the power module can be input into the target signal lamp through the solid-state relay and the safety relay. By the control method, the safety protection performance of the execution circuit can be effectively improved, and the reliability and the safety of the output of the execution circuit are improved.

This embodiment is through the on-off state of the contact of real time supervision first relay, output voltage and output current, on-off state and/or output voltage and the output current according to the contact, carry out real time control to the switch of contact, with on-off state and/or output voltage and output current at the contact when unsatisfied the condition, in time control the switch of contact, with the output voltage who cuts off first relay, make control circuit direction safety side, avoid wrong output, and then effectively improve control circuit's safety protection performance, and the reliability and the security of control circuit's output.

On the basis of the above embodiments, in this embodiment, the controlling the switch of the contact according to the switch state of the contact includes: and in the case that the switch state of at least one contact is open, controlling the switch of the contact with the closed switch state to be open.

The number of the contacts of the solid-state relay or the safety relay can be set according to actual requirements, such as two.

When the voltage output by the power module passes through the solid-state relay and the safety relay, if the switch state of at least one contact of the solid-state relay and the safety relay is off, the switch of at least one contact of the solid-state relay and the safety relay is abnormal. At this time, it is necessary to cut off the output voltage of the execution circuit in time, which indicates that the device in the execution circuit is out of order.

Alternatively, the output voltage of the execution circuit is cut off in such a way that the switches of all the contacts whose switching states are closed are opened.

As shown in fig. 3, the manner of opening the switches of all the contacts whose switch states are closed may be to open the switches of all the contacts whose switch states are closed in the solid-state relay first, and monitor whether the switches of all the contacts whose switch states are closed in the solid-state relay are all open;

under the condition that the switches of all the contacts with the closed switch states in the solid-state relay are all opened, the switches of all the contacts with the closed switch states in the safety relay are opened, and whether the switches of all the contacts with the closed switch states in the solid-state relay are all opened or not is monitored;

in addition, when the switches of all the contacts of the solid-state relay, the switch states of which are closed, are opened, the power supply module is cut off from the paths of the input voltages to the solid-state relay and the safety relay.

In addition, the number of the signal lamp control circuits in this embodiment may be plural.

As shown in fig. 2, the multiple signal lamp control circuits communicate with each other through a dynamic interaction module, an RS422 module, and a CAN (Controller Area Network) bus, so as to synchronize clocks and communications among the multiple signal lamp control circuits.

In addition, parameters of the signal lamp control circuit can be adjusted through the RS232 module.

The signal lamp control circuits are mutually active and standby. And under the condition that the main system signal lamp control circuit is down, switching to the standby system signal lamp control circuit.

As shown in fig. 3, the condition that the signal lamp control circuit is down includes that, before the signal lamp control circuit is controlled, the signal lamp control circuit is self-checked by a BUS (BUS) acquisition module and an Analog-to-Digital Converter (ADC) acquisition module to find that the path of the signal lamp control circuit and the path of the execution circuit are abnormal; or when the switch of all the contacts of the safety relay or the solid-state relay, the switch state of at least one contact is closed, and the like.

In this way, the present embodiment can timely cut off the path of the input voltage to the signal lamp when the contact switch state of the solid state relay or the safety relay is abnormal. The circuit can find and respond in time when the circuit for inputting voltage to the signal lamp is abnormal, so that danger or error output is avoided.

On the basis of the above embodiments, in this embodiment, the controlling the switch of the contact according to the output voltage and the output current of the contact includes: and under the condition that the output voltage of at least one contact is greater than a first preset threshold value or the output current is greater than a second preset threshold value, controlling the switch of the contact with the closed switch state to be opened.

Specifically, when the voltage output by the power module passes through the solid-state relay and the safety relay, when it is monitored that the output voltage of any contact of the solid-state relay and the safety relay is greater than a first preset threshold value or the output current is greater than a second preset threshold value, the contact can be damaged. At this time, the switch that is required to timely cut off all the contacts whose switch states are closed is turned off to avoid the erroneous output of voltage to the signal lamp by the execution circuit due to the damaged contact.

The first preset threshold and the second preset threshold can be set according to actual requirements.

On the basis of the foregoing embodiments, in this embodiment, before the monitoring of the switching state, the output voltage, and the output current of the contact of the first relay, the method further includes: monitoring whether an overcurrent protection fuse connected between the power module and the first relay is fused or not, so that the voltage output by the power module is input into the first relay under the condition that the overcurrent protection fuse is not fused.

Specifically, in order to prevent the solid-state relay and the safety relay of the execution circuit from generating common cause failure phenomenon due to overcurrent or overvoltage, an overcurrent protection fuse is connected in series at the input end of the execution circuit.

When the voltage or current of the overcurrent protection fuse input by the power module is greater than or equal to a set value, the overcurrent protection fuse is fused at the moment, a passage between the power module and the execution circuit is disconnected, and the output voltage of the power module cannot be input into the solid-state relay and the safety relay of the execution circuit.

When the voltage or current input by the power module to the overcurrent protection fuse is smaller than a set value, the overcurrent protection fuse is not fused at the moment, and the power module can input the output voltage to the solid-state relay and the safety relay of the execution circuit through the overcurrent protection fuse.

This embodiment is through monitoring overcurrent protection insurance, can effectively prevent the solid state relay of executive circuit and the potential risk that safety relay produced the common cause failure phenomenon and cause because of overflowing or overvoltage.

On the basis of the foregoing embodiments, in this embodiment, after the monitoring of the switching state, the output voltage, and the output current of the contact of the first relay, the method further includes: monitoring whether an execution circuit where the first relay is located has overvoltage and undervoltage; and under the condition that the overvoltage and/or the undervoltage exist, the switch of the contact point with the closed switch state is controlled to be opened.

In particular, when an over-voltage and/or under-voltage condition occurs in the execution circuitry, it can cause the execution circuitry to malfunction. Therefore, in order to find and respond in time when the execution circuit is abnormal and avoid dangerous or wrong output, whether the execution circuit has overvoltage and undervoltage needs to be monitored in real time.

When the execution circuit has overvoltage and/or undervoltage, the switches of all the contacts of which the switch states are closed in the solid-state relay and the safety relay are controlled to be opened in time.

In addition, a TVS (Transient Voltage Suppressor) protection may be provided at the output terminal of the execution circuit, and when the Transient Voltage is greater than the normal operating Voltage of the execution circuit, the TVS is in an open circuit, and the path between the execution circuit and the signal lamp is cut off.

Lightning protection means and EMC (Electromagnetic Compatibility) protection may also be provided at the output of the execution circuit.

And the output end of the execution circuit can be monitored in a mixed mode, and the condition that wrong connection or mixed connection of wires exists in the execution circuit is represented under the condition that the current abnormality and the output voltage normality exist in the path of the execution circuit. At the moment, all the switches of the contacts of which the switch states are closed in the solid-state relay and the safety relay are controlled to be disconnected in time, and a mixed line connection alarm is sent out.

On the basis of the above embodiments, in this embodiment, the power supply module includes a dynamic pulse-to-dc circuit and a second relay; correspondingly, before the monitoring of the switching state, the output voltage and the output current of the contact of the first relay, the method further comprises the following steps: and sending a dynamic pulse signal to a dynamic pulse-to-DC circuit of the power module so that the dynamic pulse-to-DC circuit converts the dynamic pulse signal into DC voltage, drives a switch of a contact of the second relay to be closed, and outputs the voltage to the first relay.

The type, frequency, duty ratio and the like of the dynamic pulse signal can be set according to actual requirements, for example, the dynamic pulse signal is a square wave signal, the frequency is 1KHZ, and the duty ratio is 50%.

The voltage output by the dynamic pulse DC-to-DC circuit can be set according to actual requirements, such as-12V.

The power module comprises a dynamic pulse-to-DC circuit and a second relay. The dynamic pulse-to-DC circuit is connected with the second relay in series and integrated in the power module. The second relay may be the same as or different from the first relay, e.g., the second relay is a safety relay.

The step of outputting voltage by the power supply module is that firstly, a dynamic pulse signal is sent to the dynamic pulse-to-DC circuit; then, after the dynamic pulse-to-DC circuit receives the dynamic pulse signal, the dynamic pulse signal is converted into DC voltage, and the DC voltage is input into a second relay so as to drive a switch of a contact of the second relay to be closed; then, the second relay outputs a voltage to the first relay.

The output voltage may be an ac voltage of 110V, which is not specifically limited in this embodiment.

This embodiment is through sending pulse signal to power module, can output voltage only when the power receives pulse signal, can effectively protect power module, further improves control circuit's safety protection performance.

On the basis of the foregoing embodiment, after the sending the dynamic pulse signal to the dynamic pulse to dc converter circuit of the power module, the method further includes: monitoring a switch state of a contact of the second relay; and if the switch state of the contact of the second relay is off, stopping sending the dynamic pulse signal to the dynamic pulse DC-to-DC circuit.

Specifically, when the direct-current voltage passes through the second relay, the second relay is periodically and continuously monitored, and the on-off state of the second relay is obtained in real time.

And if the switch state of at least one contact of the second relay is off, the switch of at least one contact in the second relay is abnormal. At this time, it is indicated that the second relay has a fault, and the output voltage of the power module needs to be cut off in time.

In this embodiment, the manner of cutting off the output voltage of the power supply module is that the dynamic pulse signal is stopped from being sent to the dynamic pulse-to-dc converter circuit, the dynamic pulse-to-dc converter circuit cannot receive the dynamic pulse signal, the second relay does not have a driving power supply, and the switch of the contact of the second relay is turned off. The switch of the contact of the second relay can also be directly controlled to be opened. In this way, the present embodiment can cut off the path of the input voltage from the power module to the execution circuit in time when the contact switch state of the second relay is abnormal. The circuit can timely find and respond when the path of the power module inputting voltage to the execution circuit is abnormal, so that danger or error output is avoided, and further protection of the control circuit is realized.

In addition, in order to prevent the second relay of the power module from generating common cause failure phenomenon due to overcurrent or overvoltage to cause contact adhesion, an overcurrent protection fuse is connected in series at the input end of the power module.

And meanwhile, whether the power supply module has overvoltage and undervoltage is monitored, and under the condition that the overvoltage and/or undervoltage exists, the on-off states of all the second relays are controlled to be the on-off states of all the contacts.

In the embodiment, the power supply module is monitored, so that when the switching state of the contact of the power supply module is abnormal or abnormal conditions such as overcurrent or overvoltage exist, the output voltage of the second relay is cut off in time, the control circuit is led to the safety side, the wrong output is avoided, the safety protection performance of the control circuit is further improved, and the reliability and the safety of the output of the control circuit are further improved.

The following describes the control device based on the signal lamp control circuit provided by the present invention, and the control device based on the signal lamp control circuit described below and the control method based on the signal lamp control circuit described above can be referred to correspondingly.

As shown in fig. 4, the present embodiment provides a control device based on a signal lamp control circuit, which includes a monitoring module 401 and a control module 402, wherein:

the monitoring module 401 is configured to monitor a switching state, an output voltage, and an output current of a contact of a first relay when a voltage output by the power supply module passes through the first relay;

the execution subject in this embodiment is a controller, such as a CPU.

The first relay includes a solid-state relay and a safety relay, which is not specifically limited in this embodiment. The number of solid state relays and safety relays in the first relay can be set according to actual requirements.

The control method based on the signal lamp control circuit is described below with the first relay including a solid-state relay and a safety relay.

Wherein, the solid-state relay and the safety relay are connected in series and are integrated in the execution circuit.

The execution circuit and the power supply module are integrated in the control circuit.

As shown in fig. 2, the output terminal of the power module is connected to the input terminal of the execution circuit, that is, the output terminal of the power module is connected to the input terminal of the solid-state relay in series, and the output terminal of the solid-state relay is connected to the input terminal of the safety relay in series.

The switching states of the contacts of a solid state relay or safety relay include closed and open.

The output voltage and the output current are respectively the voltage and the current output under the condition that the switch states of all contacts of the solid-state relay or the safety relay are closed.

When the voltage output by the power supply module passes through the solid-state relay and the safety relay, the solid-state relay and the safety relay are periodically and continuously monitored, and the switching state, the output voltage and the output current of the contacts of the solid-state relay and the safety relay are obtained in real time.

In the embodiment, the safety of the execution circuit is ensured by the solid-state relay and the safety relay together, and the double protection of the execution circuit is realized.

The control module 402 is configured to control the switch of the contact according to the switch state of the contact, and/or control the switch of the contact according to the output voltage and the output current of the contact, so as to control the input voltage of the target signal lamp connected to the first relay.

Specifically, the switching of the contacts may be controlled in real time according to the monitored switching state of the contacts.

Optionally, when the switching states of the contacts of the solid-state relay and the safety relay are abnormal, indicating that the solid-state relay and the safety relay are in fault, the switches of all the contacts of the solid-state relay and the safety relay need to be turned off in time to cut off the output voltage of the execution circuit, so that the execution circuit is guided to the safety side, the wrong output voltage is avoided, and the safety and the reliability of the execution circuit are ensured.

Wherein, the abnormal switch state of the contact points indicates that the contact points can not be opened or closed normally.

For example, in the case where the switching states of the contacts of the solid-state relay and the safety relay are normal, when the voltage output from the power supply module passes through the solid-state relay and the safety relay, the contact switches of the solid-state relay and the safety relay may be driven to be closed by the voltage. And under the condition that the switch state of the contacts of the solid-state relay or the safety relay is abnormal, when the voltage output by the power module passes through the solid-state relay and the safety relay, the switch state of the contacts of the solid-state relay and/or the safety relay is off and the contacts of the solid-state relay and/or the safety relay cannot be normally closed.

Furthermore, the switching of the contacts may be controlled in dependence on the output voltage and output current of the contacts.

Alternatively, when the output voltage and the output current of the contacts of the solid-state relay and the safety relay exceed the set ranges, indicating that the solid-state relay or the safety relay has a fault, it is also necessary to timely open the switches of all the contacts of the solid-state relay and the safety relay to cut off the output voltage of the execution circuit so that the execution circuit is led to the safety side.

In summary, when the switch states of the contacts of the solid-state relay and the safety relay are both closed, and the output current are within the set range, the voltage output by the power module can be input into the target signal lamp through the solid-state relay and the safety relay. By the control method, the safety protection performance of the execution circuit can be effectively improved, and the reliability and the safety of the output of the execution circuit are improved.

This embodiment is through the on-off state of the contact of real time supervision first relay, output voltage and output current, on-off state and/or output voltage and the output current according to the contact, carry out real time control to the switch of contact, with on-off state and/or output voltage and output current at the contact when unsatisfied the condition, in time control the switch of contact, with the output voltage who cuts off first relay, make control circuit direction safety side, avoid wrong output, and then effectively improve control circuit's safety protection performance, and the reliability and the security of control circuit's output.

The following describes a control system based on a signal lamp control circuit provided by the present invention, and the control system based on the signal lamp control circuit described below and the control device based on the signal lamp control circuit described above can be referred to correspondingly.

The control system based on the signal lamp control circuit provided by the embodiment comprises a plurality of control devices based on the signal lamp control circuit.

The control device based on the signal lamp control circuit can be a CPU.

The plurality of CPUs respectively and independently monitor the conditions of the execution circuit, and if any CPU monitors that the execution circuit has abnormal conditions such as abnormal switch states of contacts of the first relay or output voltage and output current which do not meet preset conditions, the output voltage of the execution circuit is cut off in time.

For example, when the voltage output from the power supply module passes through the first relay, the plurality of CPUs independently monitor the switching state of the contact of the first relay, the output voltage, and the output current, respectively.

And if any CPU monitors that the switch state of at least one contact in the first relay is disconnected, the output voltage is greater than a first preset threshold value or the output current is greater than a second preset threshold value, controlling the switches of the contacts, the switch states of which are closed, to be disconnected.

In the embodiment, the condition of the execution circuit is independently monitored by the CPUs respectively, so that multiple protection can be performed on the execution circuit, and the safety performance of the execution circuit is further improved.

On the basis of the above embodiments, in this example, the plurality of control devices are configured to simultaneously send a dynamic pulse signal to the dynamic pulse-to-dc converter circuit of the power module, so that the dynamic pulse-to-dc converter circuit converts the dynamic pulse signal into a dc voltage when receiving the dynamic pulse signal sent by the plurality of control devices at the same time.

Specifically, a plurality of CPUs are connected to each other. Before the CPUs send dynamic pulse signals to the dynamic pulse-to-DC circuit of the power module, whether clocks and communication among the CPUs are synchronous or not is judged.

The method of checking clock synchronization between a plurality of CPUs is such that the plurality of CPUs can correctly transmit a dynamic pulse signal according to a preset rule.

The method for checking the communication synchronization among the CPUs is that if any CPU periodically sends an instruction to the other CPUs through a Serial Peripheral Interface (SPI), and the other CPUs can normally receive the instruction and respond to the CPU, the communication synchronization among the CPUs

Under the condition that the clock and the communication are synchronous, the CPUs simultaneously transmit dynamic pulse signals to the dynamic pulse-to-DC circuit of the power module, and the dynamic pulse-to-DC circuit converts the dynamic pulse signals into DC voltage under the condition that the dynamic pulse signals transmitted by the control devices are simultaneously received.

And the plurality of CPUs respectively and independently monitor the conditions of the power supply module, and if any CPU monitors that the power supply module has abnormal conditions such as abnormal on-off state of a contact of the second relay, the output voltage of the power supply module is cut off in time.

In summary, the execution circuit mainly realizes the safe output of the ac voltage, the solid-state relay and the safety relay are connected in series to control the output voltage of the execution circuit, and the power module uses a plurality of CPUs to jointly control the output voltage of the power module. The protection of the whole signal lamp control circuit comprises multiple protection of the power supply module, and protection of a solid-state relay and a safety relay of the execution circuit. When the signal lamp control circuit has multiple faults (3 or less faults), the signal lamp control circuit can still effectively cut off the output, so that the signal lamp control circuit is guided to the safety side, and the wrong output is avoided.

Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)501, a communication Interface (Communications Interface)502, a memory (memory)503, and a communication bus 504, wherein the processor 501, the communication Interface 502, and the memory 503 are configured to communicate with each other via the communication bus 504. The processor 501 may call logic instructions in the memory 503 to perform a semaphore control circuit based control method comprising: monitoring the switch state, the output voltage and the output current of a contact of a first relay when the voltage output by a power supply module passes through the first relay; and controlling the switch of the contact according to the switch state of the contact, and/or controlling the switch of the contact according to the output voltage and the output current of the contact so as to control the input voltage of a target signal lamp connected with the first relay.

In addition, the logic instructions in the memory 503 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the signal lamp control circuit-based control method provided by the above methods, the method comprising: monitoring the switch state, the output voltage and the output current of a contact of a first relay when the voltage output by a power supply module passes through the first relay; and controlling the switch of the contact according to the switch state of the contact, and/or controlling the switch of the contact according to the output voltage and the output current of the contact so as to control the input voltage of a target signal lamp connected with the first relay.

In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor, is implemented to perform the signal lamp control circuit-based control method provided in each of the above aspects, the method including: monitoring the switch state, the output voltage and the output current of a contact of a first relay when the voltage output by a power supply module passes through the first relay; and controlling the switch of the contact according to the switch state of the contact, and/or controlling the switch of the contact according to the output voltage and the output current of the contact so as to control the input voltage of a target signal lamp connected with the first relay.

The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.

Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.

Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:列车自主运行系统下的移动授权方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!