CN117826686A - Circuit configuration method, device, circuit and electronic equipment - Google Patents
Circuit configuration method, device, circuit and electronic equipment Download PDFInfo
- Publication number
- CN117826686A CN117826686A CN202311864622.4A CN202311864622A CN117826686A CN 117826686 A CN117826686 A CN 117826686A CN 202311864622 A CN202311864622 A CN 202311864622A CN 117826686 A CN117826686 A CN 117826686A
- Authority
- CN
- China
- Prior art keywords
- circuit
- execution
- load
- output
- mode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000001514 detection method Methods 0.000 claims abstract description 86
- 230000002159 abnormal effect Effects 0.000 claims abstract description 29
- 238000005070 sampling Methods 0.000 claims description 62
- 239000003990 capacitor Substances 0.000 claims description 31
- 238000010586 diagram Methods 0.000 description 11
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 238000004590 computer program Methods 0.000 description 5
- 230000005669 field effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 229910044991 metal oxide Inorganic materials 0.000 description 2
- 150000004706 metal oxides Chemical class 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24215—Scada supervisory control and data acquisition
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The application discloses a circuit configuration method, a circuit and electronic equipment, wherein the circuit configuration method comprises the following steps: an input circuit, an output circuit, an execution circuit and a line detection circuit are configured in the control module; if the control execution circuit is connected with the output circuit, the output circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the control module works in a first mode; if the control executing circuit is connected with the line detecting circuit, the line detecting circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the control module works in a second mode; the second mode is used for detecting whether the load circuit is abnormal or not.
Description
Technical Field
The present disclosure relates to the field of circuit security technologies, and in particular, to a circuit configuration method, a device, a circuit, and an electronic apparatus.
Background
Currently, in industrial process control (Industrial Process Control, IPC), the edge controller basically merges the related functions of the computer and the programmable logic controller, but the transmission channels of the digital input and the digital output are separately wired when communication is performed, that is, the transmission channel of the digital input performs data transmission through one port, and the transmission channel of the digital output performs data transmission through the other port, which results in higher line cost and more complicated wiring design and operation. And after the circuit corresponding to the digital output is required to be failed, the failure can not be automatically detected by manually detecting the failure, and the real-time performance and the automation degree are low.
Disclosure of Invention
The embodiment of the application aims to provide a circuit configuration method, a circuit and electronic equipment.
In a first aspect, an embodiment of the present application provides a circuit configuration method, where the method includes:
an input circuit, an output circuit, an execution circuit and a line detection circuit are configured in the control module;
if the execution circuit is controlled to be connected with an output circuit, the output circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the control module works in a first mode;
if the execution circuit is controlled to be connected with a line detection circuit, the line detection circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the control module works in a second mode; the second mode is used for detecting whether the load circuit is abnormal or not.
In one possible embodiment, the method comprises:
a controller is configured in the control module, and the execution circuit comprises a relay;
if the controller sends a first control signal to the execution circuit, the movable contact of the relay is connected with the first fixed contact, and the execution circuit is connected with the output circuit;
and if the controller sends a second control signal to the execution circuit, the movable contact of the relay is connected with the second fixed contact, and the execution circuit is connected with the line detection circuit.
In one possible embodiment, the method comprises:
a sampler is configured in the control module, and a first power supply, an on-off device and a capacitor are configured in the wire detection circuit;
if the on-off device receives a first pulse signal, the first power supply starts to supply power, the capacitor is charged, the sampler collects a first sampling signal, and the first sampling signal is transmitted to the controller;
and configuring the controller to analyze the first sampling signal so as to obtain a result of whether the load circuit is short-circuited.
In one possible embodiment, the method comprises:
if the on-off device receives a second pulse signal, the first power supply stops supplying power, the capacitor discharges, the capacitor supplies power for the detection circuit, the sampler collects a second sampling signal and transmits the second sampling signal to the controller;
and configuring the controller to analyze the second sampling signal so as to obtain a result of whether the load circuit is broken or not.
In one possible embodiment, the method comprises:
a second power supply is configured in the output circuit;
and configuring the second power supply to start supplying power when the execution circuit is connected with the output circuit.
In one possible embodiment, the method comprises:
a sampler is arranged in the control module,
configuring the execution circuit to transmit an output signal to the load circuit when the output circuit is connected in series with the input circuit, so that the load circuit responds to the output signal;
and configuring the sampler to acquire a third sampling signal and transmitting the third sampling signal to a controller, wherein the third sampling signal is generated based on a feedback signal returned by the load circuit.
In a second aspect, embodiments of the present application further provide a circuit configuration apparatus, where the apparatus includes:
a configuration module configured to configure an input circuit, an output circuit, an execution circuit, and a wire detection circuit in the control module;
the control module is configured to control the execution circuit to be connected with the output circuit so as to enable the control module to work in a first mode; when the execution circuit is connected with an output circuit, the output circuit is connected with the input circuit in series and connected with a load circuit in parallel; or (b)
The execution circuit is controlled to be connected with the line detection circuit so that the control module works in a second mode; when the execution circuit is connected with the line detection circuit, the line detection circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the second mode is used for detecting whether the load circuit is abnormal or not.
In a third aspect, embodiments of the present application further provide a circuit, including a controller, an input circuit, an output circuit, an execution circuit, and a line detection circuit;
the controller sends a first control signal or a second control signal to the execution circuit;
the execution circuit responds to the first control signal to connect the output circuit, so that the output circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the circuit works in a first mode;
the execution circuit responds to the second control signal to connect the wire detection circuit, so that the wire detection circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the circuit works in a second mode; the second mode is used for detecting whether the load circuit is abnormal or not.
In a fourth aspect, an embodiment of the present application further provides an electronic device, including the above circuit;
the circuit comprises a controller, an input circuit, an output circuit, an execution circuit and a wire detection circuit;
the controller sends a first control signal or a second control signal to the execution circuit;
the execution circuit responds to the first control signal to connect the output circuit, so that the output circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the circuit works in a first mode;
the execution circuit responds to the second control signal to connect the wire detection circuit, so that the wire detection circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the circuit works in a second mode; the second mode is used for detecting whether the load circuit is abnormal or not.
In a fifth aspect, embodiments of the present application further provide an electronic device, including: a processor and a memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over a bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of the circuit configuration method as claimed in any one of the preceding claims.
According to the embodiment of the application, the input circuit, the output circuit, the execution circuit and the line detection circuit are configured in the control module, and the input circuit and the output circuit are configured to be connected with the load circuit through the execution circuit, so that the purposes of simplifying wiring and reducing line cost are achieved; meanwhile, when the configuration execution circuit is connected with the line detection circuit, whether the load circuit is abnormal or not can be automatically detected, and potential safety hazards caused by line faults are eliminated.
Drawings
In order to more clearly illustrate the technical solutions of the present application or the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 illustrates a flow chart of a circuit configuration method provided herein;
FIG. 2 shows a schematic diagram of one circuit provided herein;
FIG. 3 illustrates a flow chart of another circuit configuration method provided herein;
FIG. 4 is a schematic circuit diagram of the control module provided by the present application when operating in a second mode;
FIG. 5 illustrates a flow chart of another circuit configuration method provided herein;
FIG. 6 is a schematic circuit diagram of the control module provided by the present application when operating in a first mode;
FIG. 7 shows a detection flow chart provided herein based on circuitry in an embodiment of the present application;
fig. 8 is a schematic diagram showing a circuit configuration device provided in the present application;
fig. 9 shows a schematic structural diagram of an electronic device provided in the present application.
Reference numerals:
1-a control module; 2-a load module; a 3-sampler; 11-an input circuit; 12-an output circuit; 13-an execution circuit; 14-a wire detection circuit; 15-a controller; 141-a first power supply; 142-an on-off device; 143-capacitance; 121-a second power supply.
Detailed Description
Various aspects and features of the present application are described herein with reference to the accompanying drawings.
It should be understood that various modifications may be made to the embodiments of the application herein. Therefore, the above description should not be taken as limiting, but merely as exemplification of the embodiments. Other modifications within the scope and spirit of this application will occur to those skilled in the art.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment, given as a non-limiting example, with reference to the accompanying drawings.
It is also to be understood that, although the present application has been described with reference to some specific examples, a person skilled in the art will certainly be able to achieve many other equivalent forms of the present application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The foregoing and other aspects, features, and advantages of the present application will become more apparent in light of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application will be described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application with unnecessary or excessive detail. Therefore, specific structural and functional details disclosed herein are not intended to be limiting, but merely serve as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the word "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments as per the application.
In order to facilitate understanding of the application, a circuit configuration method provided by the application is described in detail, and the control module or the circuit obtained through configuration of the circuit configuration method can reduce circuit cost, automatically detect whether a load circuit is abnormal or not, and eliminate potential safety hazards caused by circuit faults.
Fig. 1 shows a flowchart of a circuit configuration method provided in an embodiment of the present application, where the steps include S101-S103.
S101, an input circuit, an output circuit, an execution circuit and a line detection circuit are configured in the control module.
Referring to the circuit schematic diagram shown in fig. 2, the circuit includes a control module 1 and a load module 2, further, an input circuit 11, an output circuit 12, an execution circuit 13, and a wire inspection circuit 14 are configured in the control module 1, and the input circuit 11, the output circuit 12, the execution circuit 13, and the wire inspection circuit 14 may be configured in an IO expansion board. The input circuit 11 is used for feeding back the switching value of the load module 2, the output circuit 12 is used for providing voltage and a circuit required for starting the load module 2, the execution circuit 13 is used for executing a control signal sent by the controller 15, and the line detection circuit 14 is used for judging whether the circuit has a short circuit or an open circuit.
As can be seen from fig. 2, the input circuit 11 and the output circuit 12 are connected with the load circuit of the load module 2 through the execution circuit 13, that is, the fusion of the input circuit 11 and the output circuit 12 is realized, and the on-site wiring is changed from four-wire system to two-wire system, so that not only is the wiring simplified, but also the line cost is reduced.
S102, if the control execution circuit is connected with the output circuit, the output circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the control module works in a first mode.
S103, if the control execution circuit is connected with the line detection circuit, the line detection circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the control module works in a second mode; the second mode is used for detecting whether the load circuit is abnormal or not.
Optionally, the working modes of the configuration control module 1 include a first mode and a second mode, wherein the first mode is used for normally starting the load terminal, so that the load of the load terminal is obtained; the second mode is used for detecting whether the load circuit is abnormal, and the control module 1 working in the second mode can dynamically detect whether the load circuit is abnormal, so that potential safety hazards caused by line faults are eliminated.
As one example, fig. 3 shows another circuit configuration method, where the operation mode of the control module is selected by means of the method flowchart shown in fig. 3, wherein the steps comprise possible S301-S303.
S301, a controller is configured in the control module, and a configuration execution circuit comprises a relay.
S302, if the controller sends a first control signal to the execution circuit, the movable contact of the relay is connected with the first stationary contact, and the execution circuit is connected with the output circuit.
S303, if the controller sends a second control signal to the execution circuit, the movable contact of the relay is connected with the second stationary contact, and the execution circuit is connected with the line detection circuit.
As can be seen from fig. 2, the controller 15 is disposed in the control module 1, and therefore, when the circuit 13 arrangement method is executed, the controller 15 is also disposed in the control module 1, and the field programmable gate array (Field Programmable Gate Array, FPGA) is disposed in the controller 15. Meanwhile, the configuration execution circuit 13 includes a relay, and the relay includes one movable contact and two stationary contacts, and it is to be noted that the relay is not shown in fig. 2.
Based on the above configuration, it is further configured that if the controller 15 sends a first control signal to the execution circuit 13, the moving contact of the relay is connected to the first stationary contact, and the execution circuit 13 is connected to the output circuit 12, that is, the control module 1 is caused to operate in the first mode. Accordingly, if the controller 15 sends a second control signal to the execution circuit 13, the movable contact of the relay is connected to the second stationary contact, and the execution circuit 13 is connected to the wire detection circuit 14, at this time, the control module 1 operates in the second mode.
As one example, the first control signal and the second control signal may be configured as a high level signal and a low level signal, respectively, and the embodiment of the present application is not particularly limited thereto.
Fig. 4 shows a schematic circuit diagram of the control module when operating in the second mode. As can be seen in conjunction with fig. 4, the embodiment of the present application further executes the method flowchart shown in fig. 5, where fig. 5 shows another circuit configuration method, and the steps may include S501-S505.
S501, a sampler is configured in the control module, and a first power supply, an on-off device and a capacitor are configured in the wire detection circuit.
S502, if the on-off device receives the first pulse signal, the first power supply starts to supply power, the capacitor is charged, the sampler collects the first sampling signal, and the first sampling signal is transmitted to the controller.
S503, the configuration controller analyzes the first sampling signal, and further a result of whether the load circuit is short-circuited is obtained.
And S504, if the on-off device receives the second pulse signal, the first power supply stops supplying power, the capacitor discharges, the capacitor supplies power for the detection circuit, the sampler collects the second sampling signal, and the second sampling signal is transmitted to the controller.
S505, the configuration controller analyzes the second sampling signal, and further a result of whether the load circuit is broken or not is obtained.
Referring to fig. 4, in the circuit configuration method of the embodiment of the present application, the sampler 3 is configured in the control module 1, and the sampler 3 may be configured as an Analog-to-Digital Converter (ADC) to perform ADC sampling by the sampler 3.
With continued reference to fig. 4, in the embodiment of the present application, a first power supply 141, an on-off device 142 and a capacitor 143 are configured in the wire detection circuit 14, where the first power supply 141 outputs a direct current voltage of 5V, the on-off device 142 is configured as a metal oxide semiconductor field effect transistor (Metal Oxide Semiconductor Field Effect Transistor, MOSFET), and one end of the first power supply 141 is connected to a first end of the on-off device 142, a second end of the on-off device 142 is connected to one end of the capacitor 143 and one end of the sampler 3, the other end of the capacitor 143 is connected to the other end of the first power supply 141, and the other end of the sampler 3 and a third end of the on-off device 142 are connected to the controller 15. In fig. 4, R1 is a current limiting resistor, the resistance of which is set according to actual requirements, and an electromagnetic valve is configured in the load circuit.
Further, in the circuit configuration method of the embodiment of the present application, the controller 15 is further configured to control the on-off of the on-off device 142 periodically by transmitting a pulse signal to the on-off device 142. Alternatively, if the on-off device 142 receives the first pulse signal, the on-off device 142 is turned on according to the first pulse signal, and at this time, the first power source 141 starts to supply power, so that the capacitor 143 is charged, the sampler 3 collects the first sampling signal, and transmits the first sampling signal to the controller 15.
Correspondingly, in the embodiment of the present application, the controller 15 is further configured to analyze the first sampling signal, so as to obtain a result of whether the load circuit is shorted.
As another example, if the on-off device 142 receives the second pulse signal, the on-off device 142 is turned off according to the second pulse signal, at this time, the on-off device 142 is turned off according to the first pulse signal, the first power source 141 stops supplying power, the capacitor 143 discharges, and the capacitor 143 supplies power to the detection circuit, the sampler 3 collects the second sampling signal, and the second sampling signal is transmitted to the controller 15.
Similarly, in the embodiment of the present application, the controller 15 is further configured to analyze the second sampling signal, so as to obtain a result of whether the load circuit is broken.
The control module 1, the circuit and the like are configured based on the circuit configuration method, so that the purposes of simplifying wiring and reducing the cost of the circuit can be achieved; meanwhile, when the configuration execution circuit 13 is connected with the line detection circuit 14, the control module 1 can automatically detect whether the load circuit is abnormal or not, and potential safety hazards caused by line faults are eliminated.
Fig. 6 shows a schematic circuit diagram of the control module 1 when operating in the first mode. In the circuit configuration method of the embodiment of the present application, when the control module 1 operates in the first mode, the second power supply 121 is configured in the output circuit 12, and the second power supply 121 outputs the dc voltage 24V. Meanwhile, the second power supply 121 is configured to start power supply to start/stop the load of the load termination when the execution circuit 13 is connected to the output circuit 12.
In an embodiment, when the circuit configuration method of the embodiment of the present application is executed, one end of the sampler 3 included in the configuration control module 1 is connected to one end of the second power supply 121. Further, the configuration execution circuit 13 transmits the output signal to the load circuit when the output circuit 12 is connected in series with the input circuit 11, so that the load circuit responds to the output signal. Accordingly, the sampler 3 is configured to collect a third sampled signal and transmit the third sampled signal to the controller 15.
Specifically, the load circuit is configured to include a termination resistor R2 and a feedback switch, where the termination resistor and the feedback switch are connected in parallel with the solenoid valve, and further, when the second power supply 121 provides a voltage to the load circuit through the output circuit 12, the solenoid valve is energized, that is, the coil is energized, at this time, the valve of the solenoid valve is closed, and at the same time, the feedback switch is controlled to be closed, so that the termination resistor is energized.
In this embodiment, the third sampling signal collected by the sampler 3 is also configured to be the current in the input circuit 11, and after the terminal resistor is electrified, the third sampling signal changes, that is, the current in the input circuit 11 increases, so that the load circuit is represented to operate normally.
According to the embodiment of the application, the input circuit, the output circuit, the execution circuit and the line detection circuit are configured in the control module, and the input circuit and the output circuit are configured to be connected with the load circuit through the execution circuit, so that the purposes of simplifying wiring and reducing line cost are achieved; meanwhile, when the configuration execution circuit is connected with the line detection circuit, whether the load circuit is abnormal or not can be automatically detected, and potential safety hazards caused by line faults are eliminated.
Based on the same inventive concept, the second aspect of the present application further provides a circuit, and since the principle of solving the problem by the circuit in the present application is similar to that of the circuit configuration method described in the present application, the implementation of the circuit can refer to the implementation of the method, and the repetition is omitted.
Referring to the circuit schematic shown in fig. 2, the circuit includes:
the device comprises a controller, an input circuit, an output circuit, an execution circuit and a wire detection circuit;
the controller sends a first control signal or a second control signal to the execution circuit;
the execution circuit responds to the first control signal to connect the output circuit, so that the output circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the circuit works in a first mode;
the execution circuit responds to the second control signal to connect the wire detection circuit, so that the wire detection circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the circuit works in a second mode; the second mode is used for detecting whether the load circuit is abnormal or not.
Referring to the circuit schematic diagrams shown in fig. 4 or fig. 6, the circuit further includes a sampler, and the line detection circuit includes a first power supply, an on-off device and a capacitor;
when the circuit works in a first mode, the controller sends a first pulse signal to the on-off device;
the on-off device is conducted in response to the first pulse signal, so that the first power supply starts to supply power, the capacitor is charged, the sampler collects a first sampling signal, and the first sampling signal is transmitted to the controller;
and the controller analyzes the first sampling signal to obtain a result of whether the load circuit is short-circuited.
The circuit further comprises:
the controller sends a second pulse signal to the on-off device;
the on-off device is turned off in response to the second pulse signal, so that the first power supply stops supplying power, the capacitor discharges, the capacitor supplies power for the detection circuit, the sampler collects a second sampling signal and transmits the second sampling signal to the controller;
and the controller analyzes the second sampling signal to obtain a result of whether the load circuit is broken or not.
Fig. 7 shows a detection flow chart based on the above circuit, and the detection flow chart is described in detail below in conjunction with the above circuit:
in one embodiment, the load module may include a plurality of load circuits, each of which has a different load. Based on this, configuration and detection are performed for different load circuits, respectively. After the circuit is initialized, a detection channel corresponding to the load circuit to be detected is determined, so that the detection channel is conducted to detect the corresponding load circuit. When the power-up is performed for the first time, each load circuit may be sequentially detected in accordance with a predetermined detection sequence.
Referring to the detection flow chart shown in fig. 7, optionally, the on-off device in the circuit corresponding to the detection channel is controlled to be turned on, so that a first pulse signal can be sent to the on-off device, so that the first power supply supplies power to the circuit, meanwhile, the capacitor is charged, and the sampler collects a first sampling signal. Optionally, the sampler may sample after a certain delay, for example, when the first power supply starts to supply power to the circuit, trigger the delay device, and collect the sampling signal through the collector under the condition that the delay device completes the delay, so as to avoid the problem of low sampling accuracy caused by unstable current in the circuit, and further accurately judge whether the load circuit has an abnormality.
The circuit is powered by a first power supply, and the sampler transmits the first sampling signal to the controller after the first sampling signal is acquired. The controller analyzes the first sampling signal to determine whether the load circuit is in a short circuit state. Specifically, the controller compares the first value represented by the first sampling signal with a first threshold value, and if the first value is smaller than or equal to the first threshold value, determines that the load circuit is in a short circuit state, generates an alarm indication at this time and sends the alarm indication to the processor so that the processor can record and process the alarm indication.
And if the first value is larger than the first threshold value and smaller than the second threshold value, determining that the load circuit is not abnormal. At this time, if the last judgment result of the judgment represents that the load circuit is abnormal, a cancel alarm instruction can be generated and sent to the processor, and if the last judgment result of the judgment represents that the load circuit is not abnormal, no signal is required to be generated.
In another example, the on-off device in the circuit corresponding to the detection channel is controlled to be turned off, so that the second pulse signal can be sent to the on-off device, and then the first power supply stops supplying power to the circuit, at this time, the capacitor discharges, that is, the capacitor supplies power to the circuit, and the sampler collects the second sampling signal. Likewise, the sampler transmits the second sampled signal to the controller after the second sampled signal is acquired.
The controller analyzes the second sampling signal to determine whether the load circuit is in an open state. Specifically, the controller compares the second value represented by the second sampling signal with a second threshold value, and determines that the load circuit is in an open-circuit state if the second value is greater than or equal to the second threshold value, and at this time, the on-off device is controlled to be kept off through the second pulse signal, namely, the first power supply continuously stops supplying power. And after the preset time length, acquiring a second sampling signal again through the sampler, and transmitting the acquired second sampling signal to the controller. The controller analyzes the received re-acquired second sampling signal and can compare a third value represented by the re-received second sampling signal with a third threshold; if the third value is greater than or equal to the third threshold value, determining that the load circuit is abnormal, and the load circuit can be open-circuited; and if the third value is smaller than the third threshold value, determining that the load circuit is not abnormal.
The first threshold value is determined according to the minimum resistance value which can be achieved when the load circuit normally operates, and the second threshold value is determined according to the maximum resistance value which can be achieved when the load circuit normally operates, and the first threshold value is smaller than the second threshold value. The first value, the first threshold value, and the second threshold value may be voltage values, or may be measurement values corresponding to the samplers, or the like, as long as the measurement units of the first value, the first threshold value, and the second threshold value are identical. The third threshold is determined according to the load in the load circuit and the electricity storage capacity of the capacitor per unit time of discharge, and the third threshold can be the residual capacity of the capacitor after the capacitor is discharged for a preset time.
The embodiment of the application provides electronic equipment, which comprises the circuit;
the circuit comprises a controller, an input circuit, an output circuit, an execution circuit and a wire detection circuit;
the controller sends a first control signal or a second control signal to the execution circuit;
the execution circuit responds to the first control signal to connect the output circuit, so that the output circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the circuit works in a first mode;
the execution circuit responds to the second control signal to connect the wire detection circuit, so that the wire detection circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the circuit works in a second mode; the second mode is used for detecting whether the load circuit is abnormal or not.
The principle of solving the problem of the circuit configuration device in the present application is similar to that of the circuit configuration method described in the present application, so that the implementation of the circuit configuration device can refer to the implementation of the method, and the repetition is omitted.
Fig. 8 shows a schematic diagram of a circuit configuration device provided in an embodiment of the present application, specifically including:
a configuration module 801 configured to configure an input circuit, an output circuit, an execution circuit, and a wire detection circuit in a control module;
a control module 802 configured to control the execution circuit to connect with an output circuit to cause the control module to operate in a first mode; when the execution circuit is connected with an output circuit, the output circuit is connected with the input circuit in series and connected with a load circuit in parallel; or (b)
The execution circuit is controlled to be connected with the line detection circuit so that the control module works in a second mode; when the execution circuit is connected with the line detection circuit, the line detection circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the second mode is used for detecting whether the load circuit is abnormal or not.
In a further embodiment of the present invention,
a configuration module 801, further configured to configure a controller in a control module, the configuration execution circuit including a relay;
the control module 802 is further configured to control the controller to send a first control signal to the execution circuit, so that the movable contact of the relay is connected with the first stationary contact, and the execution circuit is connected with the output circuit; or (b)
And the controller is controlled to send a second control signal to the execution circuit so that the movable contact of the relay is connected with the second fixed contact, and the execution circuit is connected with the line detection circuit.
In a further embodiment of the present invention,
the configuration module 801 is further configured to configure a sampler in the control module, and configure a first power supply, an on-off device and a capacitor in the wire detection circuit;
the control module 802 is further configured to control the first power supply to start supplying power when the on-off device receives a first pulse signal, control the sampler to collect a first sampling signal, and transmit the first sampling signal to the controller;
and controlling the controller to analyze the first sampling signal so as to obtain a result of whether the load circuit is short-circuited.
In a further embodiment of the present invention,
the control module 802 is further configured to control the first power supply to stop supplying power, the capacitor to discharge, the capacitor to supply power to the detection circuit, and control the sampler to collect a second sampling signal and transmit the second sampling signal to the controller when the on-off device receives a second pulse signal;
and controlling the controller to analyze the second sampling signal, so as to obtain a result of whether the load circuit is broken or not.
In a further embodiment of the present invention,
a configuration module 801 further configured to configure a second power supply in the output circuit;
the control module 802 is further configured to control the second power supply to start supplying power when the execution circuit is connected to the output circuit.
In a further embodiment of the present invention,
the configuration module 801 is further configured to configure the sampler in the control module,
a control module 802 further configured to control the execution circuit to transmit an output signal to the load circuit to cause the load circuit to respond to the output signal when the output circuit is connected in series with the input circuit;
and controlling the sampler to collect a third sampling signal and transmitting the third sampling signal to a controller, wherein the third sampling signal is generated based on a feedback signal returned by the load circuit.
According to the embodiment of the application, the input circuit, the output circuit, the execution circuit and the line detection circuit are configured in the control module, and the input circuit and the output circuit are configured to be connected with the load circuit through the execution circuit, so that the purposes of simplifying wiring and reducing line cost are achieved; meanwhile, when the configuration execution circuit is connected with the line detection circuit, whether the load circuit is abnormal or not can be automatically detected, and potential safety hazards caused by line faults are eliminated.
The embodiment of the application provides an electronic device, and a schematic structural diagram of the electronic device may be shown in fig. 9, and the electronic device at least includes a memory 901 and a processor 902, where the memory 901 stores a computer program, and the processor 902 implements a method provided by any embodiment of the application when executing the computer program on the memory 901. Exemplary, electronic device computer program steps are as follows S11-S13:
s11, configuring an input circuit, an output circuit, an execution circuit and a line detection circuit in a control module;
s12, if the execution circuit is controlled to be connected with an output circuit, the output circuit is connected with the input circuit in series and connected with a load circuit in parallel, and the control module works in a first mode;
s13, if the execution circuit is controlled to be connected with a line detection circuit, the line detection circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the control module works in a second mode; the second mode is used for detecting whether the load circuit is abnormal or not.
According to the embodiment of the application, the input circuit, the output circuit, the execution circuit and the line detection circuit are configured in the control module, and the input circuit and the output circuit are configured to be connected with the load circuit through the execution circuit, so that the purposes of simplifying wiring and reducing line cost are achieved; meanwhile, when the configuration execution circuit is connected with the line detection circuit, whether the load circuit is abnormal or not can be automatically detected, and potential safety hazards caused by line faults are eliminated.
The embodiment of the application provides a storage medium, which is a computer readable medium and stores a computer program, and when the computer program is executed by a processor, the method provided by any embodiment of the application is implemented, including the following steps S21-S23:
s21, an input circuit, an output circuit, an execution circuit and a line detection circuit are configured in the control module;
s22, if the execution circuit is controlled to be connected with an output circuit, the output circuit is connected with the input circuit in series and connected with a load circuit in parallel, and the control module works in a first mode;
s23, if the execution circuit is controlled to be connected with a line detection circuit, the line detection circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the control module works in a second mode; the second mode is used for detecting whether the load circuit is abnormal or not.
According to the embodiment of the application, the input circuit, the output circuit, the execution circuit and the line detection circuit are configured in the control module, and the input circuit and the output circuit are configured to be connected with the load circuit through the execution circuit, so that the purposes of simplifying wiring and reducing line cost are achieved; meanwhile, when the configuration execution circuit is connected with the line detection circuit, whether the load circuit is abnormal or not can be automatically detected, and potential safety hazards caused by line faults are eliminated.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes. Optionally, in this embodiment, the processor performs the method steps described in the above embodiment according to the program code stored in the storage medium. Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein. It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices and, in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be implemented as individual integrated circuit modules, or as individual integrated circuit modules. Thus, the present application is not limited to any specific combination of hardware and software.
Furthermore, although exemplary embodiments have been described herein, the scope thereof includes any and all embodiments having equivalent elements, modifications, omissions, combinations (e.g., of the various embodiments across), adaptations or alterations as pertains to the present application. Elements in the claims are to be construed broadly based on the language employed in the claims and are not limited to examples described in the present specification or during the practice of the present application, which examples are to be construed as non-exclusive. It is intended, therefore, that the specification and examples be considered as exemplary only, with a true scope and spirit being indicated by the following claims and their full scope of equivalents.
The above description is intended to be illustrative and not restrictive. For example, the above-described examples (or one or more aspects thereof) may be used in combination with each other. For example, other embodiments may be used by those of ordinary skill in the art upon reading the above description. In addition, in the above detailed description, various features may be grouped together to streamline the application. This is not to be interpreted as an intention that the disclosed features not being claimed are essential to any claim. Rather, the subject matter of the present application is capable of less than all of the features of a particular disclosed embodiment. Thus, the following claims are hereby incorporated into the detailed description as examples or embodiments, with each claim standing on its own as a separate embodiment, and it is contemplated that these embodiments may be combined with one another in various combinations or permutations. The scope of the application should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.
While various embodiments of the present application have been described in detail, the present application is not limited to these specific embodiments, and various modifications and embodiments can be made by those skilled in the art based on the conception of the present application, which modifications and modifications are within the scope of the present application as defined in the appended claims.
Claims (10)
1. A circuit configuration method, the method comprising:
an input circuit, an output circuit, an execution circuit and a line detection circuit are configured in the control module;
if the execution circuit is controlled to be connected with an output circuit, the output circuit is connected with the input circuit in series and connected with a load circuit in parallel, and the control module works in a first mode;
if the execution circuit is controlled to be connected with a line detection circuit, the line detection circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the control module works in a second mode; the second mode is used for detecting whether the load circuit is abnormal or not.
2. The circuit configuration method according to claim 1, the method comprising:
a controller is configured in the control module, and the execution circuit comprises a relay;
if the controller sends a first control signal to the execution circuit, the movable contact of the relay is connected with the first fixed contact, and the execution circuit is connected with the output circuit;
and if the controller sends a second control signal to the execution circuit, the movable contact of the relay is connected with the second fixed contact, and the execution circuit is connected with the line detection circuit.
3. The circuit configuration method according to claim 2, the method comprising:
a sampler is configured in the control module, and a first power supply, an on-off device and a capacitor are configured in the wire detection circuit;
if the on-off device receives a first pulse signal, the first power supply starts to supply power, the capacitor is charged, the sampler collects a first sampling signal, and the first sampling signal is transmitted to the controller;
and configuring the controller to analyze the first sampling signal so as to obtain a result of whether the load circuit is short-circuited.
4. A circuit configuration method according to claim 3, the method comprising:
if the on-off device receives a second pulse signal, the first power supply stops supplying power, the capacitor discharges, the capacitor supplies power for the detection circuit, the sampler collects a second sampling signal and transmits the second sampling signal to the controller;
and configuring the controller to analyze the second sampling signal so as to obtain a result of whether the load circuit is broken or not.
5. The circuit configuration method according to claim 1, the method comprising:
a second power supply is configured in the output circuit;
and configuring the second power supply to start supplying power when the execution circuit is connected with the output circuit.
6. The circuit configuration method according to claim 1, the method comprising:
a sampler is arranged in the control module,
configuring the execution circuit to transmit an output signal to the load circuit when the output circuit is connected in series with the input circuit, so that the load circuit responds to the output signal;
and configuring the sampler to acquire a third sampling signal and transmitting the third sampling signal to a controller, wherein the third sampling signal is generated based on a feedback signal returned by the load circuit.
7. A circuit configuration device, the device comprising:
a configuration module configured to configure an input circuit, an output circuit, an execution circuit, and a wire detection circuit in the control module;
the control module is configured to control the execution circuit to be connected with the output circuit so as to enable the control module to work in a first mode; when the execution circuit is connected with an output circuit, the output circuit is connected with the input circuit in series and connected with a load circuit in parallel; or (b)
The execution circuit is controlled to be connected with the line detection circuit so that the control module works in a second mode; when the execution circuit is connected with the line detection circuit, the line detection circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the second mode is used for detecting whether the load circuit is abnormal or not.
8. A circuit comprises a controller, an input circuit, an output circuit, an execution circuit and a wire detection circuit;
the controller sends a first control signal or a second control signal to the execution circuit;
the execution circuit responds to the first control signal to connect the output circuit, so that the output circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the circuit works in a first mode;
the execution circuit responds to the second control signal to connect the wire detection circuit, so that the wire detection circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the circuit works in a second mode; the second mode is used for detecting whether the load circuit is abnormal or not.
9. An electronic device comprising a circuit;
the circuit comprises a controller, an input circuit, an output circuit, an execution circuit and a wire detection circuit;
the controller sends a first control signal or a second control signal to the execution circuit;
the execution circuit responds to the first control signal to connect the output circuit, so that the output circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the circuit works in a first mode;
the execution circuit responds to the second control signal to connect the wire detection circuit, so that the wire detection circuit is connected with the input circuit in series and connected with the load circuit in parallel, and the circuit works in a second mode; the second mode is used for detecting whether the load circuit is abnormal or not.
10. An electronic device, comprising: a processor and a memory storing machine readable instructions executable by the processor, the processor and the memory communicating over a bus when the electronic device is running, the machine readable instructions when executed by the processor performing the steps of the circuit configuration method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311864622.4A CN117826686A (en) | 2023-12-29 | 2023-12-29 | Circuit configuration method, device, circuit and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311864622.4A CN117826686A (en) | 2023-12-29 | 2023-12-29 | Circuit configuration method, device, circuit and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117826686A true CN117826686A (en) | 2024-04-05 |
Family
ID=90518631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311864622.4A Pending CN117826686A (en) | 2023-12-29 | 2023-12-29 | Circuit configuration method, device, circuit and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117826686A (en) |
-
2023
- 2023-12-29 CN CN202311864622.4A patent/CN117826686A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111638448A (en) | Contactor fault detection device and method and vehicle | |
US20160223614A1 (en) | Relay unit, control method for relay unit | |
CN102375128B (en) | Abnormity detection method for server power supply system and apparatus thereof | |
CN111208395A (en) | Vehicle insulation state detection method and device, vehicle and storage medium | |
US4752886A (en) | Method for on-line testing of load control circuitry and the associated load | |
KR101362934B1 (en) | Apparatus and methof for diagnosing performance characteristics of a circuit breaker in a state of live wire | |
CN117826686A (en) | Circuit configuration method, device, circuit and electronic equipment | |
EP3509178B1 (en) | Diagnostic system for vehicle electrical system having dc-dc voltage converter and voltage regulator | |
US20130270901A1 (en) | Method and Arrangement for Diagnosing Drivers of Contactors, Battery, and Motor Vehicle having such a Battery | |
CN112180219B (en) | Cable circuit of industrial digital quantity output loop and implementation method | |
CN112838848B (en) | Insulated gate bipolar transistor series valve structure | |
CN110850316B (en) | Direct current resistance tester and method for all single batteries in battery pack | |
CN107181235A (en) | Fault control for high-current pulse power supply | |
CN115453352B (en) | Motor fault diagnosis circuit, method, device, vehicle and storage medium | |
CN107817453B (en) | Method and device for monitoring stability of power supply system | |
EP4152013A1 (en) | Input/output (io) module power supply with online load test capability | |
US20240056070A1 (en) | Power Supply Device and Method for Checking a Field Effect Transistor of Such a Power Supply Device | |
CN105811371B (en) | Direct current motor control system fault diagnosis method and device | |
EP4113143A1 (en) | Device and method for diagnosing failure of inverter initial charging circuit | |
CN202917396U (en) | High reliability single-chip microcomputer control relay device | |
JP2002062903A (en) | Control device | |
CN115173690B (en) | Bypass switch trigger circuit and detection method | |
JP2010285269A (en) | Elevator control system | |
CN109450653B (en) | Ethernet power supply protection method and device | |
EP4068614B1 (en) | Power tool with safety control circuit module |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |