Switching device control method and device, storage medium and programmable device
The switching devices are diagnosed and controlled through programmable devices, which solves the problem of high cost of safety relays, and realizes safe and economical switching device control, which is suitable for elevators and other fields.
Patent Information
- Application Number
- CN202411413484.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-02-18
AI Technical Summary
In the prior art, safety relays are difficult to widely use in multiple fields due to their high price and high cost of use, especially in the elevator field, which poses potential safety risks.
The series-connected switching devices are diagnosed through programmable devices, and feedback signals are collected to determine the control signal, thereby controlling the on and off of the switching devices, replacing the diagnostic function of the mirror contacts of the safety relay.
It realizes safety control of switching devices, reduces usage costs, and ensures safety in areas such as elevators.
Smart Images

Figure CN119472369A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic devices, and more specifically, to a switch device control method, device, storage medium and programmable device in the field of electronic devices. Background Art
[0002] A switch device is an electronic component that controls the on and off of current. With the development of technology, series switch devices play an important role in many fields. Especially in the field of elevators, most elevators use safety relays as switch devices. The mirror contacts of the safety relays monitor and protect the status of various elevator components to prevent potential dangers in elevator operation. However, safety relays are often expensive and have high usage costs. Summary of the invention
[0003] The present application provides a switching device control method, apparatus, storage medium and programmable device. The method can diagnose the switching device through the programmable device and then control the switching device, thereby ensuring safety. At the same time, it replaces the diagnostic function of the mirror contacts of the safety relay and reduces the cost of using switching devices in various fields.
[0004] In a first aspect, a method for controlling a switching device is provided, which is applied to a programmable device, wherein the programmable device includes at least two input pins and at least two output pins, wherein the at least two input pins are connected to a signal output end of each of the at least two switching devices, and the at least two output pins are connected to a control end of each of the at least two switching devices, wherein the switching devices are connected in series to form a switching circuit, wherein the method includes: when a turn-on instruction for a target switching device is detected, collecting a first feedback signal of the target switching device through the signal output end of the target switching device, wherein the target switching device is any one of the at least two switching devices; if a turn-on parameter in the first feedback signal does not reach a preset turn-on threshold, determining that the control signal for the target switching device is a turn-off signal; controlling the target switching device to turn off based on the turn-off signal, and switching the control signal for each switching device before the target switching device in the switching circuit to a turn-off signal.
[0005] Through the above technical solution, the power-on timing of the series-connected switch devices is controlled by a programmable device. Before controlling each switch device to be turned on, the first feedback signal of the target switch device is collected, and the control signal for the target switch device is determined according to the first feedback signal, and then the target switch device is controlled based on the control signal. If the control signal is a shutdown signal, the target switch device is controlled to be turned off, and the control signals of all switch devices before the target switch device in the switch circuit are switched to shutdown signals. The switch device is diagnosed by a programmable device, and then the switch device is controlled, which ensures safety, and at the same time replaces the diagnostic function of the mirror contact of the safety relay, reducing the cost of using switch devices in various fields.
[0006] In combination with the first aspect, in some possible implementations, the target switching device includes a first main circuit end and a second main circuit end; the first main circuit end is used to receive an input signal, and the second main circuit end is used to output an input signal; after the step of collecting a first feedback signal of the target switching device through the signal output end of the target switching device, it also includes: if the conduction parameter in the first feedback signal reaches a preset conduction threshold, determining that the control signal for the target switching device is a conduction signal; controlling the target switching device to conduct based on the conduction signal, so as to transmit the input signal to the next switching device through the second main circuit end of the target switching device, and the third main circuit end of the next switching device is connected to the second main circuit end of the target switching device.
[0007] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, if the conduction parameter in the first feedback signal does not reach the preset conduction threshold, then the control signal for the target switching device is determined to be a shutdown signal step, including: if the conduction parameter in the first feedback signal does not reach the preset conduction threshold, then it is determined that a conduction fault occurs in the target switching device; and the control signal for the target switching device is determined to be a shutdown signal.
[0008] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, if the conduction parameter in the first feedback signal reaches a preset conduction threshold, then the step of determining that the control signal for the target switching device is a conduction signal includes: if the conduction parameter in the first feedback signal reaches the preset conduction threshold, then determining that the target switching device has not had a conduction fault; determining that the control signal for the target switching device is a conduction signal.
[0009] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the first feedback signal includes an analog signal or a digital signal; after the step of collecting the first feedback signal of the target switching device through the signal output end of the target switching device, it also includes: if the first feedback signal is an analog signal, converting the analog signal into a digital signal, and extracting the conduction parameter from the digital signal; if the first feedback signal is a digital signal, extracting the conduction parameter from the digital signal.
[0010] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, if the first feedback signal is an analog signal, the step of converting the analog signal into a digital signal includes: if the first feedback signal is an analog signal, sampling the analog signal to obtain temporally discrete analog signal samples; quantizing the analog signal samples to obtain discrete values of the analog signal; and encoding the discrete values to obtain a digital signal.
[0011] In a second aspect, a switch device control method is provided, which is applied to a programmable device, the programmable device comprising two input pins and two output pins, the two input pins are respectively connected to the signal output ends of the first switch device and the second switch device, the two output pins are respectively connected to the control ends of the first switch device and the second switch device, the first switch device and the second switch device further comprising a main circuit end, the first switch device and the second switch device are connected in series through the main circuit end, the method comprising: when a turn-on instruction for the first switch device is detected, a second feedback signal of the first switch device is collected through the signal output end of the first switch device; if a turn-on parameter in the second feedback signal reaches a preset turn-on threshold, determining that the control signal for the first switch device is a turn-on signal; controlling the first switch device to turn on based on the turn-on signal, so that the input signal of the first switch device is transmitted to the second switch device through the main circuit end; collecting a third feedback signal of the second switch device through the signal output end of the second switch device; if the turn-on parameter of the third feedback signal does not reach the preset turn-on threshold, determining that the control signal for the second switch device is a turn-off signal; controlling the second switch device to turn off based on the turn-off signal, and switching the control signal for the first switch device to the turn-off signal.
[0012] Through the above technical solution, the power-on timing of the two switching devices is controlled by a programmable device. When a turn-on instruction for the first switching device is detected, the second feedback signal of the first switching device is collected, and the control signal for the first switching device is determined according to the second feedback signal. If the control signal for the first switching device is a turn-on signal, the third feedback signal of the second switching device is continuously collected, and the control signal for the second switching device is determined according to the third feedback signal. If the control signal for the second switching device is a turn-off signal, the second switching device is controlled to turn off, and the control signal for the first switching device is switched to a turn-off signal. The switch device is diagnosed by a programmable device, and then the switch device is controlled, which ensures safety, and at the same time replaces the diagnostic function of the mirror contact of the safety relay, reducing the cost of using switch devices in various fields.
[0013] In combination with the second aspect, in some possible implementations, after the step of collecting the third feedback signal of the second switching device through the signal output end of the second switching device, it also includes: if the conduction parameter of the third feedback signal reaches a preset conduction threshold, determining that the control signal for the second switching device is a conduction signal; and controlling the conduction of the second switching device based on the conduction signal.
[0014] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, when a conduction instruction for the first switching device is detected, after the step of collecting the second feedback signal of the first switching device through the signal output terminal of the first switching device, it also includes: if the conduction parameter in the second feedback signal does not reach the preset conduction threshold, determining that the control signal for the first switching device is a shutdown signal; and controlling the first switching device to shut down based on the shutdown signal.
[0015] In a third aspect, a switching device control device is provided, the device comprising:
[0016] a feedback signal acquisition unit, configured to acquire a first feedback signal of a target switching device through a signal output terminal of the target switching device when a turn-on instruction for the target switching device is detected, wherein the target switching device is any one of the at least two switching devices;
[0017] a control signal determination unit, configured to determine that the control signal for the target switch device is a turn-off signal if the conduction parameter in the first feedback signal does not reach a preset conduction threshold;
[0018] The switch control unit is used to control the target switch device to be turned off based on the turn-off signal, and to switch the control signal for each switch device before the target switch device in the switch circuit to a turn-off signal.
[0019] In a fourth aspect, a switching device control device is provided, the device comprising:
[0020] A first acquisition unit, configured to acquire a second feedback signal of the first switching device through a signal output terminal of the first switching device when a turn-on instruction for the first switching device is detected;
[0021] A first determining unit, configured to determine that the control signal for the first switching device is a conduction signal if the conduction parameter in the second feedback signal reaches a preset conduction threshold;
[0022] A first control unit, configured to control the first switch device to conduct based on the conduction signal, so that an input signal of the first switch device is transmitted to the second switch device through the main circuit terminal;
[0023] A second collection unit, used for collecting a third feedback signal of the second switching device through a signal output terminal of the second switching device;
[0024] a second determining unit, configured to determine that the control signal for the second switch device is a turn-off signal if the turn-on parameter of the third feedback signal does not reach a preset turn-on threshold;
[0025] The second control unit is used to control the second switch device to turn off based on the shutdown signal, and switch the control signal for the first switch device to the shutdown signal.
[0026] In a fifth aspect, an elevator is provided, characterized in that the elevator comprises: a switch device control device as provided in the third aspect or a switch device control device as provided in the fourth aspect.
[0027] In a sixth aspect, a programmable device is provided, the programmable device comprising: a memory for storing executable program code;
[0028] A processor is used to call and run executable program code from a memory to execute the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.
[0029] In a seventh aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0030] In an eighth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a system architecture diagram of a switch device control method provided in an embodiment of the present application;
[0032] Figure 2 It is a flow chart of a switch device control method provided in an embodiment of the present application;
[0033] Figure 3 It is a flow chart of a switch device control method provided in an embodiment of the present application;
[0034] Figure 4 It is a flow chart of a switch device control method provided in an embodiment of the present application;
[0035] Figure 5 is an example schematic diagram of a switch device control circuit provided in an embodiment of the present application;
[0036] Figure 6It is a flow chart of a switch device control method provided in an embodiment of the present application;
[0037] Figure 7 It is a flow chart of a switch device control method provided in an embodiment of the present application;
[0038] Figure 8 is a structural schematic diagram of a switch device control device provided in an embodiment of the present application;
[0039] Fig. 9 It is a schematic diagram of the structure of a programmable device provided in an embodiment of the present application;
[0040] Fig.10 is a structural schematic diagram of a switch device control device provided in an embodiment of the present application;
[0041] Fig.11 It is a schematic diagram of the structure of a programmable device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The following will be combined with the accompanying drawings to clearly and thoroughly describe the technical solutions in this application. In the description of the embodiments of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more than two.
[0043] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0044] See also Figure 1 , Figure 1 is a system architecture diagram of a switch device control method provided in an embodiment of the present application. Figure 1 As shown, the switch device control method provided in the embodiment of the present application can be applied to a control scenario where a programmable device 30 controls at least two switch devices connected in series. The programmable device 30 is an integrated circuit, including but not limited to programmable logic devices, programmable analog devices, and programmable controllers. The switch device includes but is not limited to low-cost switch devices such as single-pole double-throw relays. The programmable device includes at least two input pins 32 and 34 and at least two output pins 31 and 33. Figure 1The provided switch circuit includes two switch devices 10 and 20, the switch device 10 includes a control terminal 11 and a signal output terminal 12, and the switch device 20 includes a control terminal 21 and a signal output terminal 22. The input pin 32 is connected to the signal output terminal 12 to collect the feedback signal of the switch device 10, and the output pin 31 is connected to the control terminal 11 to output the control signal to control the on and off of the switch device 10; the input pin 34 is connected to the signal output terminal 22 to collect the feedback signal of the switch device 20, and the output pin 33 is connected to the control terminal 21 to control the on and off of the switch device 20.
[0045] The power-on timing of the series-connected switching devices is controlled by a programmable device. Before controlling each switching device to turn on, the first feedback signal of the target switching device is collected, and the control signal for the target switching device is determined according to the first feedback signal. Then, the target switching device is controlled based on the control signal. If the control signal is a shutdown signal, the target switching device is controlled to be shut down, and the control signals of all switching devices before the target switching device in the switching circuit are switched to shutdown signals. The switching device is diagnosed by a programmable device, and then the switching device is controlled, which replaces the diagnostic function of the mirror contact of the safety relay and reduces the cost of using switching devices in various fields.
[0046] based on Figure 1 The system architecture diagram shown below will be combined with Figure 2-Figure 5 , the switching device control method provided in the embodiment of the present application is introduced in detail.
[0047] See also Figure 2 , Figure 2 is a flow chart of a switch device control method provided in an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps S101-S103.
[0048] S101, when a turn-on instruction for a target switching device is detected, a first feedback signal of the target switching device is collected through a signal output terminal of the target switching device, where the target switching device is any one of the at least two switching devices;
[0049] Specifically, the target switching device is any one of at least two switching devices connected in series. The programmable device includes an instruction register that can temporarily store instructions. When the processor of the programmable device reads the on-instruction for the target switching device from the memory, the on-instruction is temporarily stored in the instruction register. The first feedback signal of the target switching device is collected through the signal output end of the target switching device. The signal output end of the target switching device is connected to the input pin of the programmable device, and the signal output end is used to output the feedback signal.
[0050] S102, if the conduction parameter in the first feedback signal does not reach a preset conduction threshold, determining that the control signal for the target switch device is a turn-off signal;
[0051] Specifically, a conduction parameter is extracted from the first feedback signal, and a conduction fault is determined according to the conduction parameter to determine whether the target switch device has a conduction fault, thereby determining a control signal for the target switch device. If the conduction parameter does not reach a preset conduction threshold, it is determined that a conduction fault has occurred in the target switch device, and then the control signal for the target switch device is determined to be a shutdown signal.
[0052] S103 , controlling the target switching device to turn off based on the turn-off signal, and switching the control signal for each switching device before the target switching device in the switching circuit to a turn-off signal.
[0053] Specifically, the output pin of the programmable device is connected to the control end of the target switch device, and the control end is used to receive the control signal output by the programmable device. When the control signal is a shutdown signal, the programmable device outputs a shutdown signal, and controls the target switch device to shut down based on the shutdown signal. At the same time, the control signal of each switch device before the target switch device in the switch circuit is switched to a shutdown signal. Among them, the switch circuit is a circuit formed by connecting at least two switch devices in series. In the switch circuit, if the target switch device is turned off, it is necessary to promptly control the switch device before the target switch device to shut down to ensure safety.
[0054] In the embodiment of the present application, the power-on timing of the series-connected switch devices is controlled by a programmable device. Before controlling each switch device to be turned on, the first feedback signal of the target switch device is collected, and the control signal for the target switch device is determined according to the first feedback signal, and then the target switch device is controlled based on the control signal. If the control signal is a shutdown signal, the target switch device is controlled to be turned off, and the control signals of all switch devices before the target switch device in the switch circuit are switched to shutdown signals. The switch device is diagnosed by a programmable device, and then the switch device is controlled, which ensures safety, and at the same time replaces the diagnostic function of the mirror contact of the safety relay, reducing the cost of using switch devices in various fields.
[0055] See also Figure 3 , Figure 3 is a flow chart of a switch device control method provided in an embodiment of the present application. Figure 3 As shown, the method of the embodiment of the present application may include the following steps S201-S205.
[0056] S201, when a turn-on instruction for a target switching device is detected, a first feedback signal of the target switching device is collected through a signal output terminal of the target switching device, where the target switching device is any one of the at least two switching devices;
[0057] Specifically, the target switching device is any one of at least two switching devices connected in series. The programmable device includes an instruction register that can temporarily store instructions. When the processor of the programmable device reads the on-instruction for the target switching device from the memory, the on-instruction is temporarily stored in the instruction register. The first feedback signal of the target switching device is collected through the signal output end of the target switching device. The signal output end of the target switching device is connected to the input pin of the programmable device, and the signal output end is used to output the feedback signal.
[0058] S202, if the conduction parameter in the first feedback signal does not reach a preset conduction threshold, determining that the control signal for the target switch device is a turn-off signal;
[0059] Specifically, a conduction parameter is extracted from the first feedback signal, and a conduction fault is determined according to the conduction parameter to determine whether the target switch device has a conduction fault, and then a control signal for the target switch device is determined. If the conduction parameter does not reach the preset conduction threshold, it is determined that the target switch device has a conduction fault, and then the control signal for the target switch device is determined to be a shutdown signal. Among them, the conduction parameter can be a digital signal "0" or "1", and the preset conduction threshold can be "1", "0" represents a low level, and "1" represents a high level. When the conduction parameter is "0", that is, the conduction parameter is a low level, it can be determined that the conduction parameter does not reach the preset conduction threshold.
[0060] S203, controlling the target switching device to turn off based on the shutdown signal, and switching the control signal for each switching device before the target switching device in the switching circuit to a shutdown signal;
[0061] Specifically, the output pin of the programmable device is connected to the control end of the target switch device, and the control end is used to receive the control signal output by the programmable device. When the control signal is a shutdown signal, the programmable device outputs a shutdown signal, and controls the target switch device to shut down based on the shutdown signal. At the same time, the control signal of each switch device before the target switch device in the switch circuit is switched to a shutdown signal. Among them, the switch circuit is a circuit formed by connecting at least two switch devices in series. In the switch circuit, if the target switch device is turned off, it is necessary to promptly control the switch device before the target switch device to shut down to ensure safety.
[0062] S204, if the conduction parameter in the first feedback signal reaches a preset conduction threshold, determining that the control signal for the target switch device is a conduction signal;
[0063] Specifically, if the conduction parameter reaches the preset conduction threshold, it is determined that the target switch device has no conduction fault, and then the control signal for the target switch device is determined to be a conduction signal. The conduction parameter can be a digital signal "0" or "1", and the preset conduction threshold can be "1", "0" represents a low level, and "1" represents a high level. When the conduction parameter is "1", that is, the conduction parameter is a high level, it can be determined that the conduction parameter reaches the preset conduction threshold.
[0064] S205, controlling the target switching device to conduct based on the conduction signal to transmit the input signal to the next switching device through the second main circuit terminal of the target switching device, and the third main circuit terminal of the next switching device is connected to the second main circuit terminal of the target switching device.
[0065] Specifically, when the control signal is a conduction signal, the programmable device outputs the conduction signal, and controls the target switch device to conduct based on the conduction signal, so that the input signal can be transmitted to the next switch device through the conducted target switch device. Wherein, in addition to the signal output terminal and the control terminal, the target switch device also includes a first main circuit terminal and a second main circuit terminal, the first main circuit terminal is used to receive the input signal, and the second main circuit terminal is used to output the input signal. At the same time, the target switch device is connected to the third main circuit terminal of the next switch device through the second main circuit terminal to output the input signal to the next switch device, and the input signal can be the current flowing in the switch circuit.
[0066] In the embodiment of the present application, the power-on timing of the series-connected switch devices is controlled by a programmable device. Before controlling each switch device to be turned on, the first feedback signal of the target switch device is collected, and the control signal for the target switch device is determined according to the first feedback signal, and then the target switch device is controlled based on the control signal. If the control signal is a shutdown signal, the target switch device is controlled to be turned off, and the control signals of all switch devices before the target switch device in the switch circuit are switched to shutdown signals; if the control signal is a conduction signal, the target switch device is controlled to be turned on based on the conduction signal, so as to transmit the input signal to the next switch device through the second main circuit terminal of the target switch device. The switch device is diagnosed by a programmable device, and then the switch device is controlled, which ensures safety, and at the same time replaces the diagnostic function of the mirror contact of the safety relay, reducing the cost of using switch devices in various fields.
[0067] See also Figure 4 , Figure 4 is a flow chart of a switch device control method provided in an embodiment of the present application. Figure 4 As shown, the method of the embodiment of the present application may include the following steps S301-S307.
[0068] S301, when a turn-on instruction for a target switching device is detected, a first feedback signal of the target switching device is collected through a signal output terminal of the target switching device, where the target switching device is any one of the at least two switching devices;
[0069] Specifically, the target switching device is any one of at least two switching devices connected in series. The programmable device includes an instruction register that can temporarily store instructions. When the processor of the programmable device reads the on-instruction from the memory, the on-instruction is temporarily stored in the instruction register. The first feedback signal of the target switching device is collected through the signal output end of the target switching device. The signal output end of the target switching device is connected to the input pin of the programmable device, and the signal output end is used to output the feedback signal.
[0070] Optionally, the switch device control method provided in the embodiment of the present application can be applied to an elevator, which includes a programmable device and a switch circuit. The switch device can be a single-pole double-throw relay. The single-pole double-throw relay generally has five terminals, namely two coil terminals, a common terminal, a normally open terminal and a normally closed terminal. Among them, the coil terminal is the control terminal of the embodiment of the present application, which is used to power the relay to control the conduction and shutdown of the relay. The common terminal is a common terminal in the single-pole double-throw relay. The normally open terminal is a contact of the single-pole double-throw relay that is disconnected from the common terminal when the coil terminal is not energized. The normally closed terminal is a contact of the single-pole double-throw relay that is directly connected to the common terminal when the coil terminal is not energized to keep the circuit normally closed.
[0071] S302, if the first feedback signal is an analog signal, convert the analog signal into a digital signal, and extract a conduction parameter from the digital signal;
[0072] Specifically, the first feedback signal output by the target switching device can be an analog signal such as voltage or current, or a digital signal such as a high level or a low level. An analog signal is a continuously changing signal, and a digital signal is a discrete, discontinuous signal, which is usually represented by a binary code. If the first feedback signal is an analog signal, it is necessary to convert the analog signal into a digital signal. First, the analog signal is sampled to obtain analog signal samples that are discrete in time, and the analog signal samples are quantized to obtain discrete values of the analog signal. The discrete values are then encoded to obtain a digital signal, and the conduction parameters are extracted from the digital signal. Among them, sampling is the process of discretizing a continuous analog signal in time. In order to ensure the stability of the sampled value, a holding process can be added between sampling and quantization. Quantization is the process of converting the amplitude of the analog signal after sampling and holding to the closest quantization level.
[0073] S303, if the first feedback signal is a digital signal, extracting a conduction parameter from the digital signal;
[0074] Specifically, if the first feedback signal is a digital signal, the conduction parameter is directly extracted from the digital signal. A digital signal is generally a binary code "0" or "1", so the extracted conduction parameter can be "0" or "1".
[0075] S304, if the conduction parameter in the first feedback signal does not reach the preset conduction threshold, determining that a conduction fault occurs in the target switch device, and determining that the control signal for the target switch device is a shutdown signal;
[0076] Specifically, the preset conduction threshold is generally a high level, and the binary code is "1". If the conduction parameter extracted from the first feedback signal is "0", it is determined that the conduction parameter does not reach the preset conduction threshold, and it is determined that a conduction fault occurs in the target switching device, and then the control signal for the target switching device is determined to be a shutdown signal.
[0077] S305, controlling the target switching device to turn off based on the shutdown signal, and switching the control signal for each switching device before the target switching device in the switching circuit to a shutdown signal;
[0078] Specifically, the output pin of the programmable device is connected to the control end of the target switch device, and the control end is used to receive the control signal output by the programmable device. When the control signal is a shutdown signal, the programmable device outputs a shutdown signal, and controls the target switch device to shut down based on the shutdown signal. At the same time, the control signal of each switch device before the target switch device in the switch circuit is switched to a shutdown signal. Among them, the switch circuit is a circuit formed by connecting at least two switch devices in series. In the switch circuit, if the target switch device is turned off, it is necessary to promptly control the switch device before the target switch device to shut down to ensure the safety of the circuit.
[0079] When the target switch device is a single-pole double-throw relay, the output pin of the programmable device is connected to the coil end of the single-pole double-throw relay.
[0080] S306, if the conduction parameter in the first feedback signal reaches a preset conduction threshold, it is determined that the target switch device has no conduction failure, and the control signal for the target switch device is determined to be a conduction signal;
[0081] Specifically, if the conduction parameter extracted from the first feedback signal is "1", it is determined that the conduction parameter reaches a preset conduction threshold, and it is determined that the target switch device has no conduction failure, and then the control signal for the target switch device is determined to be a conduction signal.
[0082] S307, controlling the target switching device to conduct based on the conduction signal to transmit the input signal to the next switching device through the second main circuit terminal of the target switching device, and the third main circuit terminal of the next switching device is connected to the second main circuit terminal of the target switching device.
[0083] For specific steps, please refer to S205, which will not be repeated here.
[0084] See also Figure 5 , Figure 5 is an example schematic diagram of a switch device control circuit provided in an embodiment of the present application. Figure 5 As shown, the switch device is a relay, the coil instruction of the relay is the control signal, and the normally closed contact of the relay can send a feedback signal. The programmable device determines whether the normally open contact of relay 1 is adhered based on the comparison result between the coil instruction of relay 1 and the feedback signal 1 of the normally closed contact of relay 1. If the normally open contact of relay 1 is adhered, the programmable device controls the coil instructions of relay 1 and relay 2 to be turned off; if the normally open contact of relay 1 is not adhered, the programmable device controls the coil instruction of relay 1 to be turned on, that is, to attract relay 1. At the same time, the programmable device keeps relay 2 disconnected; when relay 1 is attracted, the programmable device determines whether the normally open contact of relay 2 is adhered based on the comparison result between the coil instruction of relay 2 and the feedback signal 2 of the normally closed contact of relay 2. If the normally open contact of relay 2 is adhered, the programmable device controls the coil instructions of relay 1 and relay 2 to be turned off.
[0085] In an embodiment of the present application, the power-on timing of the series-connected switch devices is controlled by a programmable device. Before controlling each switch device to be turned on, the first feedback signal of the target switch device is collected. If the first feedback signal is an analog signal, the first feedback signal is converted into a digital signal, and then the conduction parameter is extracted from the digital signal; if the first feedback signal is a digital signal, the conduction parameter is directly extracted from the digital signal. According to the conduction parameter, the control signal for the target switch device is determined, and then the target switch device is controlled based on the control signal. If the control signal is a shutdown signal, the target switch device is controlled to be turned off, and the control signals of all switch devices before the target switch device in the switch circuit are switched to shutdown signals; if the control signal is a conduction signal, the target switch device is controlled to be turned on based on the conduction signal, so as to transmit the input signal to the next switch device through the second main circuit end of the target switch device. The switch device is diagnosed by a programmable device, and then the switch device is controlled, which ensures safety, and at the same time replaces the diagnostic function of the mirror contact of the safety relay, reducing the cost of using switch devices in various fields.
[0086] based on Figure 1 The system architecture diagram shown below will be combined with Figure 6-Figure 7, the switching device control method provided in the embodiment of the present application is introduced in detail.
[0087] See also Figure 6 , Figure 6 is a flow chart of a switch device control method provided in an embodiment of the present application. Figure 6 As shown, the method of the embodiment of the present application may include the following steps S401-S406.
[0088] S401, when a turn-on instruction for a first switching device is detected, collecting a second feedback signal of the first switching device through a signal output terminal of the first switching device;
[0089] Specifically, the switch circuit provided in the embodiment of the present application is a circuit in which two switch devices are connected in series, and a programmable device is used to control the power-on timing of the switch devices in the switch circuit. The programmable device includes an instruction register that can temporarily store instructions. When the processor of the programmable device reads the on-instruction for the first switch device from the memory, the on-instruction is temporarily stored in the instruction register, and the second feedback signal of the first switch device is collected through the signal output end of the first switch device. Among them, the input pin of the programmable device is connected to the signal output end of each switch device, and the signal output end is used to output the feedback signal.
[0090] S402, if the conduction parameter in the second feedback signal reaches a preset conduction threshold, determining that the control signal for the first switch device is a conduction signal;
[0091] Specifically, a conduction parameter is extracted from the second feedback signal, and whether a conduction fault occurs in the first switch device is determined according to the conduction parameter, thereby determining a control signal for the first switch device. If the conduction parameter in the second feedback signal reaches a preset conduction threshold, it is determined that the first switch device does not have a conduction fault, and thereby determining that the control signal for the first switch device is a conduction signal.
[0092] It should be noted that if the second feedback signal is an analog signal, it is necessary to convert the analog signal into a digital signal and then extract the conduction parameter from the digital signal; if the second feedback signal is a digital signal, the conduction parameter can be directly extracted from the digital signal.
[0093] S403, controlling the first switch device to conduct based on the conduction signal, so that the input signal of the first switch device is transmitted to the second switch device through the main circuit terminal;
[0094] Specifically, the output pin of the programmable device is connected to the control end of the first switch device, and the control end is used to receive the control signal output by the programmable device. When the control signal is a conduction signal, the programmable device outputs the conduction signal, and controls the first switch device to conduct based on the conduction signal. After the first switch device is conducted, the input signal can be transmitted to the second switch device through the main circuit end of the first switch device that is conducted. Wherein, in addition to the signal output end and the control end, the first switch device also includes a fourth main circuit end and a fifth main circuit end. The fourth main circuit end is used to receive the input signal, and the fifth main circuit end is used to output the input signal. At the same time, the first switch device is connected to the sixth main circuit end of the second switch device through the fifth main circuit end to output the input signal to the second switch device. The input signal can be the current flowing in the switch circuit.
[0095] S404, collecting a third feedback signal of the second switching device through a signal output terminal of the second switching device;
[0096] Specifically, when the second switching device receives the input signal, the processor of the programmable device will read the on-instruction for the second switching device from the memory, temporarily store the on-instruction for the second switching device in the instruction register, and collect the third feedback signal of the second switching device through the signal output end of the second switching device.
[0097] S405, if the conduction parameter of the third feedback signal does not reach the preset conduction threshold, determining that the control signal for the second switch device is a turn-off signal;
[0098] Specifically, a conduction parameter is extracted from the third feedback signal, and whether a conduction fault occurs in the second switch device is determined according to the conduction parameter, thereby determining a control signal for the second switch device. If the conduction parameter in the third feedback signal does not reach a preset conduction threshold, it is determined that a conduction fault occurs in the second switch device, and thereby determining that the control signal for the second switch device is a shutdown signal.
[0099] It should be noted that if the third feedback signal is an analog signal, it is necessary to convert the analog signal into a digital signal and then extract the conduction parameter from the digital signal; if the third feedback signal is a digital signal, the conduction parameter can be directly extracted from the digital signal.
[0100] S406 , controlling the second switch device to turn off based on the turn-off signal, and switching the control signal for the first switch device to the turn-off signal.
[0101] Specifically, the programmable device also includes an output pin connected to the control end of the second switching device. When the control signal is a shutdown signal, the programmable device outputs a shutdown signal and controls the second switching device to shut down based on the shutdown signal. At the same time, the control signal for the first switching device is also switched to a shutdown signal, so that the first switching device is shut down in time to ensure circuit safety.
[0102] In the embodiment of the present application, the power-on timing of the two switch devices is controlled by a programmable device. When a turn-on instruction for the first switch device is detected, the second feedback signal of the first switch device is collected, and the control signal for the first switch device is determined according to the second feedback signal. If the control signal for the first switch device is a turn-on signal, the third feedback signal of the second switch device is continuously collected, and the control signal for the second switch device is determined according to the third feedback signal. If the control signal for the second switch device is a turn-off signal, the second switch device is controlled to turn off, and the control signal for the first switch device is switched to a turn-off signal. The switch device is diagnosed by a programmable device, and then the switch device is controlled, which ensures safety, and at the same time replaces the diagnostic function of the mirror contact of the safety relay, reducing the cost of using switch devices in various fields.
[0103] See also Figure 7 , Figure 7 is a flow chart of a switch device control method provided in an embodiment of the present application. Figure 7 As shown, the method of the embodiment of the present application may include the following steps S501-S508.
[0104] S501, when a turn-on instruction for a first switching device is detected, collecting a second feedback signal of the first switching device through a signal output terminal of the first switching device;
[0105] Specifically, the switch circuit provided in the embodiment of the present application is a circuit in which two switch devices are connected in series, and a programmable device is used to control the power-on timing of the switch devices in the switch circuit. The programmable device includes an instruction register that can temporarily store instructions. When the processor of the programmable device reads the on-instruction for the first switch device from the memory, the on-instruction is temporarily stored in the instruction register, and the second feedback signal of the first switch device is collected through the signal output end of the first switch device. Among them, the input pin of the programmable device is connected to the signal output end of each switch device, and the signal output end is used to output the feedback signal.
[0106] Optionally, the first switch device and the second switch device provided in the embodiment of the present application can both be single-pole double-throw relays. The single-pole double-throw relay generally has five terminals, namely, two coil terminals, a common terminal, a normally open terminal, and a normally closed terminal. Among them, the coil terminal is the control terminal of the embodiment of the present application, which is used to supply power to the relay to control the conduction and shutdown of the relay. The common terminal is a common connection terminal in the single-pole double-throw relay. The normally open terminal is a contact of the single-pole double-throw relay that is disconnected from the common terminal when the coil terminal is not energized. The normally closed terminal is a contact of the single-pole double-throw relay that is directly connected to the common terminal when the coil terminal is not energized to keep the circuit normally closed.
[0107] S502, if the conduction parameter in the second feedback signal does not reach the preset conduction threshold, determine that the control signal for the first switch device is a turn-off signal, and control the first switch device to turn off based on the turn-off signal;
[0108] Specifically, a conduction parameter is extracted from the second feedback signal, and it is determined whether a conduction fault occurs in the first switch device according to the conduction parameter, and then a control signal for the first switch device is determined. If the conduction parameter in the second feedback signal does not reach a preset conduction threshold, it is determined that a conduction fault occurs in the first switch device, and then the control signal for the first switch device is determined to be a shutdown signal. The programmable device is connected to the control end of the first switch device through an output pin. When the control signal is a shutdown signal, the programmable device outputs a shutdown signal, and controls the first switch device to shut down based on the shutdown signal, and the programmable device does not need to diagnose the state of the second switch device.
[0109] S503, if the conduction parameter in the second feedback signal reaches a preset conduction threshold, determining that the control signal for the first switch device is a conduction signal;
[0110] Specifically, if the conduction parameter in the second feedback signal reaches a preset conduction threshold, it is determined that the first switch device has no conduction failure, and further the control signal for the first switch device is determined to be a conduction signal.
[0111] It should be noted that if the second feedback signal is an analog signal, it is necessary to convert the analog signal into a digital signal, and then extract the conduction parameter from the digital signal; if the second feedback signal is a digital signal, the conduction parameter can be directly extracted from the digital signal. Analog signals are continuously changing signals, and digital signals are discrete and discontinuous signals. Digital signals are usually represented by binary codes. The specific process of converting analog signals into digital signals is to first sample the analog signal to obtain analog signal samples that are discrete in time, quantize the analog signal samples to obtain discrete values of the analog signal, and then encode the discrete values to obtain digital signals, and extract the conduction parameters from the digital signals. Among them, sampling is the process of discretizing a continuous analog signal in time. In order to ensure the stability of the sampled value, a holding process can also be added between sampling and quantization. Quantization is the process of converting the amplitude of the analog signal after sampling and holding to the closest quantization level.
[0112] The digital signal is generally a binary code "0" or "1", so the extracted conduction parameter can be "0" or "1". The preset conduction threshold is generally a high level, and the binary code is "1". If the conduction parameter is "0", the conduction parameter does not reach the preset conduction threshold; if the conduction parameter is "1", the conduction parameter reaches the preset conduction threshold.
[0113] S504, controlling the first switch device to conduct based on the conduction signal, so that the input signal of the first switch device is transmitted to the second switch device through the main circuit end;
[0114] For specific steps, please refer to S403, which will not be described again here.
[0115] S505, collecting a third feedback signal of the second switching device through a signal output terminal of the second switching device;
[0116] For specific steps, please refer to S404, which will not be repeated here.
[0117] S506, if the conduction parameter of the third feedback signal does not reach the preset conduction threshold, determine that the control signal for the second switch device is a turn-off signal;
[0118] For specific steps, please refer to S405, which will not be described again here.
[0119] S507, controlling the second switch device to turn off based on the shutdown signal, and switching the control signal for the first switch device to the shutdown signal;
[0120] For specific steps, please refer to S406, which will not be described again here.
[0121] S508: If the conduction parameter of the third feedback signal reaches a preset conduction threshold, determine that the control signal for the second switch device is a conduction signal, and control the second switch device to conduct based on the conduction signal.
[0122] Specifically, if the conduction parameter of the third feedback signal reaches a preset conduction threshold, it is determined that the second switching device has not had a conduction failure, and then it is determined that the control signal for the second switching device is a conduction signal. The programmable device outputs the conduction signal, and controls the second switching device to conduct based on the conduction signal, so that the switching circuit formed by the first switching device and the second switching device operates normally.
[0123] In the embodiment of the present application, the power-on timing of two switch devices is controlled by a programmable device. When the on instruction for the first switch device is detected, the second feedback signal of the first switch device is collected, and the control signal for the first switch device is determined according to the second feedback signal. If the control signal for the first switch device is a shutdown signal, the first switch device is controlled to be turned off, and there is no need to diagnose the second switch device. If the control signal for the first switch device is a conduction signal, the third feedback signal of the second switch device is continuously collected, and the control signal for the second switch device is determined according to the third feedback signal. If the control signal for the second switch device is a shutdown signal, the second switch device is controlled to be turned off, and the control signal for the first switch device is switched to a shutdown signal. If the control signal for the second switch device is a conduction signal, the second switch device is controlled to be turned on, so that the switch circuit formed by the first switch device and the second switch device operates normally. The switch device is diagnosed by the programmable device, and then the switch device is controlled, which ensures safety, and at the same time replaces the diagnostic function of the mirror contact of the safety relay, reducing the cost of using switch devices in various fields.
[0124] based on Figure 1 The system architecture diagram will be combined with Figure 8 , the switch device control device provided in the embodiment of the present application is introduced in detail. It should be noted that, Figure 8 The switch device control device in the present application is used to execute Figure 2-Figure 5 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2-Figure 5 The embodiment shown.
[0125] See also Figure 8 , Figure 8 Schematic diagram of a switch device control device provided in an embodiment of the present application. Figure 8 As shown, the switch device control apparatus 3 of the embodiment of the present application may include: a feedback signal acquisition unit 31 , a control signal determination unit 32 and a switch control unit 33 .
[0126] A feedback signal acquisition unit 31 is used to acquire a first feedback signal of a target switching device through a signal output terminal of the target switching device when a turn-on instruction for the target switching device is detected. The target switching device is any one of the at least two switching devices.
[0127] A control signal determination unit 32, configured to determine that the control signal for the target switch device is a turn-off signal if the turn-on parameter in the first feedback signal does not reach a preset turn-on threshold;
[0128] The switch control unit 33 is used to control the target switch device to turn off based on the turn-off signal, and switch the control signal for each switch device before the target switch device in the switch circuit to a turn-off signal.
[0129] Optionally, the target switch device includes a first main circuit terminal and a second main circuit terminal; the first main circuit terminal is used to receive an input signal, and the second main circuit terminal is used to output the input signal; the control signal determination unit 32 is further used to determine that the control signal for the target switch device is a conduction signal if the conduction parameter in the first feedback signal reaches a preset conduction threshold;
[0130] The target switching device is controlled to be turned on based on the turn-on signal to transmit the input signal to the next switching device through the second main circuit terminal of the target switching device, and the third main circuit terminal of the next switching device is connected to the second main circuit terminal of the target switching device.
[0131] Optionally, the control signal determination unit 32 is specifically configured to determine that a conduction fault occurs in the target switch device if the conduction parameter in the first feedback signal does not reach a preset conduction threshold;
[0132] The control signal for the target switching device is determined to be a turn-off signal.
[0133] Optionally, the control signal determination unit 32 is specifically configured to determine that no conduction fault occurs in the target switch device if the conduction parameter in the first feedback signal reaches a preset conduction threshold;
[0134] The control signal for the target switching device is determined to be a turn-on signal.
[0135] Optionally, the first feedback signal includes an analog signal or a digital signal; the switch device control device 3 is further used to convert the analog signal into a digital signal if the first feedback signal is an analog signal, and extract the conduction parameter from the digital signal;
[0136] If the first feedback signal is a digital signal, the conduction parameter is extracted from the digital signal.
[0137] Optionally, the switch device control device 3 is specifically configured to sample the analog signal to obtain temporally discrete analog signal samples if the first feedback signal is an analog signal;
[0138] Quantize the analog signal samples to obtain discrete values of the analog signal;
[0139] Encode discrete values to obtain digital signals.
[0140] In an embodiment of the present application, the power-on timing of the series-connected switch devices is controlled by a programmable device. Before controlling each switch device to be turned on, the first feedback signal of the target switch device is collected. If the first feedback signal is an analog signal, the first feedback signal is converted into a digital signal, and then the conduction parameter is extracted from the digital signal; if the first feedback signal is a digital signal, the conduction parameter is directly extracted from the digital signal. According to the conduction parameter, the control signal for the target switch device is determined, and then the target switch device is controlled based on the control signal. If the control signal is a shutdown signal, the target switch device is controlled to be turned off, and the control signals of all switch devices before the target switch device in the switch circuit are switched to shutdown signals; if the control signal is a conduction signal, the target switch device is controlled to be turned on based on the conduction signal, so as to transmit the input signal to the next switch device through the second main circuit end of the target switch device. The switch device is diagnosed by a programmable device, and then the switch device is controlled, which ensures safety, and at the same time replaces the diagnostic function of the mirror contact of the safety relay, reducing the cost of using switch devices in various fields.
[0141] See also Fig. 9 , Fig. 9 It is a schematic diagram of the structure of a programmable device provided in an embodiment of the present application.
[0142] For example, Fig. 9 As shown, the programmable device 900 includes: a processor 901 and a memory 902, wherein the processor 901 is electrically connected to the memory 902.
[0143] The processor 901 is the control center of the programmable device 900 and may include one or more processing cores. The processor 901 uses various interfaces and lines to connect various parts of the entire programmable device, and executes various functions of the programmable device and processes data by running or calling computer programs stored in the memory 902, and calling data stored in the memory 902, so as to control the programmable device 900 as a whole. Optionally, the processor 901 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 901 may integrate one or a combination of CPU, graphics processing unit (GPU), modem, etc. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 901, but may be implemented separately through a communication chip.
[0144] The memory 902 can be used to store software programs and modules, and the processor 901 executes various functional applications and data processing by running computer programs and modules stored in the memory 902. The memory 902 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, a computer program required for at least one function, etc.; the data storage area can store data created according to the use of the programmable device 900, etc.
[0145] In addition, the memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 902 may also include a memory controller to provide the processor 901 with access to the memory 902.
[0146] In this embodiment, the processor 901 in the programmable device 900 loads instructions corresponding to the processes of one or more computer programs into the memory 902 according to the following steps, and the processor 901 runs the computer program stored in the memory 902, thereby realizing various functions, as follows:
[0147] When a turn-on instruction for a target switching device is detected, a first feedback signal of the target switching device is collected through a signal output terminal of the target switching device, wherein the target switching device is any one of the at least two switching devices;
[0148] If the conduction parameter in the first feedback signal does not reach a preset conduction threshold, determining that the control signal for the target switch device is a turn-off signal;
[0149] The target switching device is controlled to be turned off based on the turn-off signal, and a control signal for each of the switching devices before the target switching device in the switching circuit is switched to the turn-off signal.
[0150] Optionally, the target switch device includes a first main circuit end and a second main circuit end; the first main circuit end is used to receive an input signal, and the second main circuit end is used to output the input signal; after collecting the first feedback signal of the target switch device through the signal output end of the target switch device, the processor 901 further executes:
[0151] If the conduction parameter in the first feedback signal reaches a preset conduction threshold, determining that the control signal for the target switch device is a conduction signal;
[0152] The target switching device is controlled to be turned on based on the turn-on signal to transmit the input signal to the next switching device through the second main circuit terminal of the target switching device, and the third main circuit terminal of the next switching device is connected to the second main circuit terminal of the target switching device.
[0153] Optionally, when the processor 901 determines that the control signal for the target switch device is a turn-off signal if the conduction parameter in the first feedback signal does not reach a preset conduction threshold, the processor 901 specifically executes:
[0154] If the conduction parameter in the first feedback signal does not reach a preset conduction threshold, determining that a conduction fault occurs in the target switch device;
[0155] The control signal for the target switching device is determined to be a turn-off signal.
[0156] Optionally, when the processor 901 determines that the control signal for the target switch device is a conduction signal if the conduction parameter in the first feedback signal reaches a preset conduction threshold, the processor 901 specifically executes:
[0157] If the conduction parameter in the first feedback signal reaches a preset conduction threshold, it is determined that the target switch device has no conduction fault;
[0158] The control signal for the target switching device is determined to be a turn-on signal.
[0159] Optionally, the first feedback signal includes an analog signal or a digital signal; after collecting the first feedback signal of the target switching device through the signal output terminal of the target switching device, the processor 901 further executes:
[0160] If the first feedback signal is the analog signal, converting the analog signal into the digital signal, and extracting the conduction parameter from the digital signal;
[0161] If the first feedback signal is the digital signal, the conduction parameter is extracted from the digital signal.
[0162] Optionally, when the processor 901 converts the analog signal into the digital signal if the first feedback signal is the analog signal, it specifically performs:
[0163] If the first feedback signal is an analog signal, sampling the analog signal to obtain temporally discrete analog signal samples;
[0164] quantizing the analog signal samples to obtain discrete values of the analog signal;
[0165] The discrete value is encoded to obtain a digital signal.
[0166] In an embodiment of the present application, the power-on timing of the series-connected switch devices is controlled by a programmable device. Before controlling each switch device to be turned on, the first feedback signal of the target switch device is collected. If the first feedback signal is an analog signal, the first feedback signal is converted into a digital signal, and then the conduction parameter is extracted from the digital signal; if the first feedback signal is a digital signal, the conduction parameter is directly extracted from the digital signal. According to the conduction parameter, the control signal for the target switch device is determined, and then the target switch device is controlled based on the control signal. If the control signal is a shutdown signal, the target switch device is controlled to be turned off, and the control signals of all switch devices before the target switch device in the switch circuit are switched to shutdown signals; if the control signal is a conduction signal, the target switch device is controlled to be turned on based on the conduction signal, so as to transmit the input signal to the next switch device through the second main circuit end of the target switch device. The switch device is diagnosed by a programmable device, and then the switch device is controlled, which ensures safety, and at the same time replaces the diagnostic function of the mirror contact of the safety relay, reducing the cost of using switch devices in various fields.
[0167] based on Figure 1 The system architecture diagram will be combined with Fig.10 , the switch device control device provided in the embodiment of the present application is introduced in detail. It should be noted that, Fig.10 The switch device control device in the present application is used to execute Figure 6-Figure 7 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 6-Figure 7 The embodiment shown.
[0168] See also Fig.10 , Fig.10 Schematic diagram of a switch device control device provided in an embodiment of the present application. Fig.10 As shown, the switch device control apparatus 4 of the embodiment of the present application may include: a first acquisition unit 41 , a first determination unit 42 , a first control unit 43 , a second acquisition unit 44 , a second determination unit 45 and a second control unit 46 .
[0169] A first acquisition unit 41 is configured to acquire a second feedback signal of the first switching device through a signal output terminal of the first switching device when a turn-on instruction for the first switching device is detected;
[0170] A first determining unit 42, configured to determine that the control signal for the first switch device is a conduction signal if the conduction parameter in the second feedback signal reaches a preset conduction threshold;
[0171] A first control unit 43, configured to control the first switch device to conduct based on the conduction signal, so that the input signal of the first switch device is transmitted to the second switch device through the main circuit terminal;
[0172] A second collecting unit 44, used for collecting a third feedback signal of the second switching device through a signal output terminal of the second switching device;
[0173] A second determining unit 45, configured to determine that the control signal for the second switch device is a turn-off signal if the turn-on parameter of the third feedback signal does not reach a preset turn-on threshold;
[0174] The second control unit 46 is used to control the second switch device to turn off based on the shutdown signal, and switch the control signal for the first switch device to the shutdown signal.
[0175] Optionally, the second determining unit 45 is further configured to determine that the control signal for the second switch device is a conduction signal if the conduction parameter of the third feedback signal reaches a preset conduction threshold;
[0176] The second switching device is controlled to be turned on based on the turn-on signal.
[0177] Optionally, the first determining unit 42 is further configured to determine that the control signal for the first switching device is a turn-off signal if the conduction parameter in the second feedback signal does not reach a preset conduction threshold;
[0178] The first switching device is controlled to be turned off based on the turn-off signal.
[0179] In the embodiment of the present application, the power-on timing of two switch devices is controlled by a programmable device. When the on instruction for the first switch device is detected, the second feedback signal of the first switch device is collected, and the control signal for the first switch device is determined according to the second feedback signal. If the control signal for the first switch device is a shutdown signal, the first switch device is controlled to be turned off, and there is no need to diagnose the second switch device. If the control signal for the first switch device is a conduction signal, the third feedback signal of the second switch device is continuously collected, and the control signal for the second switch device is determined according to the third feedback signal. If the control signal for the second switch device is a shutdown signal, the second switch device is controlled to be turned off, and the control signal for the first switch device is switched to a shutdown signal. If the control signal for the second switch device is a conduction signal, the second switch device is controlled to be turned on, so that the switch circuit formed by the first switch device and the second switch device operates normally. The switch device is diagnosed by the programmable device, and then the switch device is controlled, which ensures safety, and at the same time replaces the diagnostic function of the mirror contact of the safety relay, reducing the cost of using switch devices in various fields.
[0180] See also Fig.11 , Fig.11 It is a schematic diagram of the structure of a programmable device provided in an embodiment of the present application.
[0181] For example, Fig.11 As shown, the programmable device 1100 includes: a processor 1101 and a memory 1102, wherein the processor 1101 is electrically connected to the memory 1102.
[0182] The processor 1101 is the control center of the programmable device 1100 and may include one or more processing cores. The processor 1101 uses various interfaces and lines to connect various parts of the entire programmable device, and executes various functions of the programmable device and processes data by running or calling computer programs stored in the memory 1102, and calling data stored in the memory 1102, so as to control the programmable device 1100 as a whole. Optionally, the processor 1101 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 1101 may integrate one or a combination of CPU, graphics processing unit (GPU), modem, etc. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1101, but may be implemented separately through a communication chip.
[0183] The memory 1102 can be used to store software programs and modules, and the processor 1101 executes various functional applications and data processing by running the computer programs and modules stored in the memory 1102. The memory 1102 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, a computer program required for at least one function, etc.; the data storage area can store data created according to the use of the programmable device 1100, etc.
[0184] In addition, the memory 1102 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 1102 may also include a memory controller to provide the processor 1101 with access to the memory 1102.
[0185] In this embodiment, the processor 1101 in the programmable device 1100 loads instructions corresponding to the processes of one or more computer programs into the memory 1102 according to the following steps, and the processor 1101 runs the computer program stored in the memory 1102, thereby realizing various functions, as follows:
[0186] When a turn-on instruction for the first switching device is detected, collecting a second feedback signal of the first switching device through a signal output terminal of the first switching device;
[0187] If the conduction parameter in the second feedback signal reaches a preset conduction threshold, determining that the control signal for the first switch device is a conduction signal;
[0188] Controlling the first switching device to be turned on based on the turn-on signal, so that an input signal of the first switching device is transmitted to the second switching device through the main circuit terminal;
[0189] collecting a third feedback signal of the second switching device through a signal output terminal of the second switching device;
[0190] If the conduction parameter of the third feedback signal does not reach the preset conduction threshold, determining that the control signal for the second switch device is a turn-off signal;
[0191] The second switching device is controlled to be turned off based on the turn-off signal, and the control signal for the first switching device is switched to the turn-off signal.
[0192] Optionally, after collecting the third feedback signal of the second switching device through the signal output terminal of the second switching device, the processor 1101 further executes:
[0193] If the conduction parameter of the third feedback signal reaches the preset conduction threshold, determining that the control signal for the second switch device is the conduction signal;
[0194] The second switching device is controlled to be turned on based on the turn-on signal.
[0195] Optionally, after executing the step of collecting the second feedback signal of the first switching device through the signal output terminal of the first switching device when the turn-on instruction for the first switching device is detected, the processor 1101 further executes:
[0196] If the conduction parameter in the second feedback signal does not reach a preset conduction threshold, determining that the control signal for the first switch device is a turn-off signal;
[0197] The first switching device is controlled to be turned off based on the turn-off signal.
[0198] In the embodiment of the present application, the power-on timing of the two switch devices is controlled by a programmable device. When the on instruction for the first switch device is detected, the second feedback signal of the first switch device is collected, and the control signal for the first switch device is determined according to the second feedback signal. If the control signal for the first switch device is a shutdown signal, the first switch device is controlled to be turned off, and there is no need to diagnose the second switch device. If the control signal for the first switch device is a conduction signal, the third feedback signal of the second switch device is continuously collected, and the control signal for the second switch device is determined according to the third feedback signal. If the control signal for the second switch device is a shutdown signal, the second switch device is controlled to be turned off, and the control signal for the first switch device is switched to a shutdown signal. If the control signal for the second switch device is a conduction signal, the second switch device is controlled to be turned on, so that the switch circuit formed by the first switch device and the second switch device operates normally. The switch device is diagnosed by the programmable device, and then the switch device is controlled, which ensures safety, and at the same time replaces the diagnostic function of the mirror contact of the safety relay, reducing the cost of using switch devices in various fields.
[0199] The embodiment of the present application also provides an elevator, which may include: Figure 8 The switching device control device 3 of the embodiment shown, or Fig.10 The switching device control device 4 of the illustrated embodiment.
[0200] It should be understood that the device provided in the embodiment of the present application is used to execute the above-mentioned switching device control method, and thus can achieve the same effect as the above-mentioned implementation method.
[0201] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a programmable device, the processing module may be used to control and manage the actions of the programmable device. The storage module may be used to support the programmable device in executing related program codes, etc.
[0202] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.
[0203] In addition, the device provided in the embodiment of the present application can specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a switching device control method provided in the above embodiment.
[0204] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a switching device control method provided in the above embodiment.
[0205] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement a switching device control method provided in the above embodiment.
[0206] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0207] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0208] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0209] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for controlling a switching device, characterized in that: Applied to a programmable device, the programmable device includes at least two input pins and at least two output pins, the at least two input pins are connected to the signal output end of each of the at least two switch devices, the at least two output pins are connected to the control end of each of the at least two switch devices, the switch devices are connected in series to form a switch circuit, the method includes: When a turn-on instruction for a target switching device is detected, a first feedback signal of the target switching device is collected through a signal output terminal of the target switching device, wherein the target switching device is any one of the at least two switching devices; If the conduction parameter in the first feedback signal does not reach a preset conduction threshold, determining that the control signal for the target switch device is a turn-off signal; The target switching device is controlled to be turned off based on the turn-off signal, and a control signal for each of the switching devices before the target switching device in the switching circuit is switched to the turn-off signal.
2. The method according to claim 1, characterized in that The target switch device comprises a first main circuit terminal and a second main circuit terminal; the first main circuit terminal is used to receive an input signal, and the second main circuit terminal is used to output the input signal; After collecting the first feedback signal of the target switching device through the signal output terminal of the target switching device, the method further includes: If the conduction parameter in the first feedback signal reaches a preset conduction threshold, determining that the control signal for the target switch device is a conduction signal; The target switching device is controlled to be turned on based on the turn-on signal to transmit the input signal to the next switching device through the second main circuit terminal of the target switching device, and the third main circuit terminal of the next switching device is connected to the second main circuit terminal of the target switching device.
3. The method according to claim 1, characterized in that If the conduction parameter in the first feedback signal does not reach a preset conduction threshold, determining that the control signal for the target switch device is a turn-off signal includes: If the conduction parameter in the first feedback signal does not reach a preset conduction threshold, determining that a conduction fault occurs in the target switch device; The control signal for the target switching device is determined to be a turn-off signal.
4. The method according to claim 2, characterized in that: If the conduction parameter in the first feedback signal reaches a preset conduction threshold, determining that the control signal for the target switch device is a conduction signal includes: If the conduction parameter in the first feedback signal reaches a preset conduction threshold, it is determined that the target switch device has no conduction fault; The control signal for the target switching device is determined to be a turn-on signal.
5. The method according to claim 1, characterized in that The first feedback signal includes an analog signal or a digital signal; after collecting the first feedback signal of the target switch device through the signal output terminal of the target switch device, the method further includes: If the first feedback signal is the analog signal, converting the analog signal into the digital signal, and extracting the conduction parameter from the digital signal; If the first feedback signal is the digital signal, the conduction parameter is extracted from the digital signal.
6. The method according to claim 5, characterized in that If the first feedback signal is the analog signal, converting the analog signal into the digital signal includes: If the first feedback signal is an analog signal, sampling the analog signal to obtain temporally discrete analog signal samples; quantizing the analog signal samples to obtain discrete values of the analog signal; The discrete value is encoded to obtain a digital signal.
7. A method for controlling a switching device, characterized in that: Applied to a programmable device, the programmable device includes two input pins and two output pins, the two input pins are respectively connected to the signal output ends of a first switch device and a second switch device, the two output pins are respectively connected to the control ends of the first switch device and the second switch device, the first switch device and the second switch device also include a main circuit end, the first switch device and the second switch device are connected in series through the main circuit end, and the method includes: When a turn-on instruction for the first switching device is detected, collecting a second feedback signal of the first switching device through a signal output terminal of the first switching device; If the conduction parameter in the second feedback signal reaches a preset conduction threshold, determining that the control signal for the first switch device is a conduction signal; Controlling the first switching device to be turned on based on the turn-on signal, so that an input signal of the first switching device is transmitted to the second switching device through the main circuit terminal; collecting a third feedback signal of the second switching device through a signal output terminal of the second switching device; If the conduction parameter of the third feedback signal does not reach the preset conduction threshold, determining that the control signal for the second switch device is a turn-off signal; The second switching device is controlled to be turned off based on the turn-off signal, and the control signal for the first switching device is switched to the turn-off signal.
8. The method according to claim 7, characterized in that After collecting the third feedback signal of the second switching device through the signal output terminal of the second switching device, the method further includes: If the conduction parameter of the third feedback signal reaches the preset conduction threshold, determining that the control signal for the second switch device is the conduction signal; The second switching device is controlled to be turned on based on the turn-on signal.
9. The method according to claim 7, characterized in that: After the second feedback signal of the first switching device is collected through the signal output terminal of the first switching device when the turn-on instruction for the first switching device is detected, the method further includes: If the conduction parameter in the second feedback signal does not reach a preset conduction threshold, determining that the control signal for the first switch device is a turn-off signal; The first switching device is controlled to be turned off based on the turn-off signal.
10. A switching device control device, characterized in that: The device comprises: a feedback signal acquisition unit, configured to acquire a first feedback signal of a target switching device through a signal output terminal of the target switching device when a turn-on instruction for the target switching device is detected, wherein the target switching device is any one of the at least two switching devices; a control signal determining unit, configured to determine that the control signal for the target switch device is a turn-off signal if the turn-on parameter in the first feedback signal does not reach a preset turn-on threshold; A switch control unit is used to control the target switch device to turn off based on the shutdown signal, and switch the control signal for each of the switch devices before the target switch device in the switch circuit to the shutdown signal.
11. A switching device control device, characterized in that: The device comprises: a first collecting unit, configured to collect a second feedback signal of the first switching device through a signal output terminal of the first switching device when a turn-on instruction for the first switching device is detected; a first determining unit, configured to determine that the control signal for the first switching device is a conduction signal if the conduction parameter in the second feedback signal reaches a preset conduction threshold; a first control unit, configured to control the first switching device to be turned on based on the turn-on signal, so that an input signal of the first switching device is transmitted to the second switching device through the main circuit terminal; A second collecting unit, configured to collect a third feedback signal of the second switching device through a signal output terminal of the second switching device; a second determining unit, configured to determine that the control signal for the second switch device is a turn-off signal if the turn-on parameter of the third feedback signal does not reach the preset turn-on threshold; The second control unit is configured to control the second switching device to turn off based on the turn-off signal, and switch the control signal for the first switching device to the turn-off signal.
12. An elevator, characterized in that: The elevator comprises: the switching device control device according to claim 10 or the switching device control device according to claim 11.
13. A programmable device, characterized in that: The programmable device comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory, so that the programmable device executes the method according to any one of claims 1 to 9.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program code, and when the computer program code is executed, the method according to any one of claims 1 to 9 is implemented.