Current output detection circuit and method, device, electronic device, and storage medium

Through the current output detection circuit, the relationship between multiple voltage signals of the current output unit is obtained, and comprehensive fault diagnosis of the current output unit is realized, which solves the equipment safety problem caused by the failure of the current output functional unit and improves the safety and reliability of the system.

CN114510397BActive Publication Date: 2025-09-09CHINA NUCLEAR POWER TECH RES INST CO LTD +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210134050.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-14
Publication Date
2025-09-09
Estimated Expiration
2042-02-14

AI Technical Summary

Technical Problem

In the prior art, failure of the current output functional unit cannot be diagnosed in a timely manner, resulting in equipment failure and safety accidents, and the diagnostic coverage is not high.

Method used

A current output detection circuit is provided, comprising a current output unit, a detection unit and a processing unit. By acquiring the relationship between a target current signal, a supply voltage signal, a maximum compliance voltage signal and a detection voltage signal, the working state of the current output unit is determined, thereby achieving comprehensive fault diagnosis.

Benefits of technology

The safety and reliability of the system are improved, and the faults of the current output unit can be fully detected, thereby improving the safety and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114510397B_ABST
    Figure CN114510397B_ABST
Patent Text Reader

Abstract

The present application relates to a current output detection circuit and method, apparatus, computer equipment, storage medium, and computer program product. The current output detection circuit includes: a current output unit for receiving a target current signal and operating under the target current signal; a detection unit connected to the current output unit and configured to output a detection voltage signal; and a processing unit connected to the current output unit and the detection unit, respectively, to determine the operating state of the current output unit based on the relationship between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, as well as the relationship between the target current signal and the detection current signal. By detecting the current, the fault state of the current output unit can be comprehensively determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of industrial control technology, and in particular to a current output detection circuit and method, device, electronic device, storage medium, and computer program product. Background Art

[0002] With the development of industrial control technology, current signal communication technology has emerged. Due to its strong resistance to electromagnetic interference, current signal communication technology is widely used in distributed control systems (DCS), programmable logic controllers (PLC), and various instruments and meters. In industrial control systems, particularly strategic information systems (SIS), failure of current output functional units can lead to equipment failure, partial system functional breakdown, and serious production and safety accidents if not diagnosed and reported promptly.

[0003] Currently, current output is rarely diagnosed in conventional applications. In some systems, only the output current value can be retrieved, and all faults of the current output cannot be diagnosed, resulting in low diagnostic coverage. Summary of the Invention

[0004] Based on this, the present application provides a current output detection circuit and method, device, electronic device, and storage medium, which can realize comprehensive diagnosis of the circuit.

[0005] In a first aspect, the present application provides a current output detection circuit, comprising:

[0006] a current output unit, configured to receive a target current signal and operate under the target current signal;

[0007] a detection unit, connected to the current output unit, and configured to output a detection voltage signal;

[0008] a processing unit connected to the current output unit and the detection unit, respectively, for obtaining a target current signal and transmitting the target current signal to the current output unit, and further for obtaining a power supply voltage signal of the current output unit, a maximum compliance voltage signal of the current output unit, an actual compliance voltage signal output by the current output unit according to the target current signal, and a detection voltage signal output by the detection unit, determining a detection current signal according to the detection voltage signal, and determining an operating state of the current output unit according to a relationship among the power supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, and a relationship between the target current signal and the detection current signal.

[0009] In the above-mentioned current output detection circuit, the processing unit transmits the target current signal to the current output unit. After receiving the target current signal, the current output unit operates under the target current signal. The detection unit then outputs a detection voltage signal under the target current signal. Finally, the processing unit obtains the current output unit's supply voltage signal, the current output unit's maximum compliance voltage signal, the actual compliance voltage signal output by the current output unit based on the target current signal, and the detection voltage signal output by the detection unit. The detection current signal is determined based on the detection voltage signal. The operating status of the current output unit is determined based on the relationship between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, as well as the relationship between the target current signal and the detection current signal. This circuit can comprehensively detect faults in the current output unit, improving the safety and reliability of the system.

[0010] In one embodiment, the detection unit includes:

[0011] a sampling resistor, one end of which is connected to the output end of the current output unit, and the other end of which is connected to the load;

[0012] A differential operational amplifier unit, wherein the positive input terminal of the differential operational amplifier unit is connected to one end of the sampling resistor, the negative input terminal of the differential operational amplifier unit is connected to the other end of the sampling resistor, the output terminal of the differential operational amplifier unit is connected to the processing unit, and the differential operational amplifier unit is used to output a detection voltage signal.

[0013] In one embodiment, the current output detection circuit further includes:

[0014] The follower operational amplifier unit is connected to the current output unit and the processing unit respectively, and is used to output an actual compliance voltage signal.

[0015] In one embodiment, the current output detection circuit further includes:

[0016] A conversion unit is connected to the detection unit, the follower operational amplifier unit and the processing unit respectively, and is used to convert the detection voltage signal into a detection voltage digital signal, and convert the actual compliance voltage signal into an actual compliance voltage digital signal.

[0017] In a second aspect, an embodiment of the present application provides a current output detection method, comprising:

[0018] Acquiring a target current signal, a supply voltage signal of a current output unit, and a maximum compliance voltage signal of the current output unit;

[0019] Acquire an actual compliance voltage value output by the current output unit when operating under the target current signal, and a detection voltage signal output by a detection unit connected to the current output unit;

[0020] determining a detection current signal according to the detection voltage signal;

[0021] The operating state of the current output unit is determined according to the relationship among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal, and the relationship between the target current signal and the detection current signal.

[0022] The current output detection method provided by the present application obtains a target current signal, a power supply voltage signal of a current output unit, and a maximum compliance voltage signal of the current output unit; obtains the actual compliance voltage value output by the current output unit when operating under the target current signal, and a detection voltage signal output by a detection unit connected to the current output unit; determines a detection current signal based on the detection voltage signal; and determines the operating state of the current output unit based on the relationship between the power supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, as well as the relationship between the target current signal and the detection current signal. This method can detect all dangerous faults in the current output, thereby improving system safety and reliability.

[0023] In one embodiment, the detection unit includes a sampling resistor and a differential operational amplifier unit; obtaining a detection voltage signal output by the detection unit connected to the current output unit includes:

[0024] A detection voltage signal output by the differential operational amplifier unit is obtained, where the differential operational amplifier unit is used to detect the voltage across the sampling resistor to generate a detection voltage signal.

[0025] In one embodiment, determining the operating state of the current output unit according to the relationship among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, and the relationship between the target current signal and the detection current signal includes:

[0026] When the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is equal to the target current signal, determining normal operation;

[0027] When the detection voltage signal is greater than the actual compliance voltage signal, determining that the current output unit is faulty;

[0028] When the detection voltage signal is equal to the actual compliance voltage signal and the detection current signal is equal to the target current signal, determining that the output load is short-circuited;

[0029] When the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is not equal to the target current signal, it is determined that the current output accuracy exceeds the standard;

[0030] When the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is equal to zero, determining that the output load is open;

[0031] When the actual compliance voltage signal is greater than the maximum compliance voltage signal, the actual compliance voltage signal is less than or equal to the supply voltage signal, and the detection current signal is greater than zero and less than the target current signal, the load is overloaded;

[0032] When the actual compliance voltage signal is greater than the maximum compliance voltage signal, the actual compliance voltage signal is less than the supply voltage, and the detection current signal is greater than the target current signal, it is determined that the current output unit is faulty;

[0033] When the supply voltage signal is less than the actual compliance voltage signal, it is determined that the current loop is incorrectly connected to the power supply.

[0034] In a third aspect, the present application provides a current output detection device, the device comprising:

[0035] a first acquisition module, configured to acquire a target current signal, a supply voltage signal of a current output unit, and a maximum compliance voltage signal of the current output unit;

[0036] a second acquisition module, configured to acquire an actual compliance voltage value output by the current output unit when operating under the target current signal, and a detection voltage signal output by a detection unit connected to the current output unit;

[0037] a calculation module, configured to determine a detection current signal according to the detection voltage signal;

[0038] a state determination module, configured to determine the operating state of the current output unit based on a relationship among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, and a relationship between the target current signal and the detection current signal.

[0039] In a fourth aspect, the present application further provides an electronic device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor performs the following steps when executing the computer program:

[0040] Acquiring a target current signal, a supply voltage signal of a current output unit, and a maximum compliance voltage signal of the current output unit;

[0041] Acquire an actual compliance voltage value output by the current output unit when operating under the target current signal, and a detection voltage signal output by a detection unit connected to the current output unit;

[0042] determining a detection current signal according to the detection voltage signal;

[0043] The operating state of the current output unit is determined according to the relationship among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal, and the relationship between the target current signal and the detection current signal.

[0044] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following steps:

[0045] Acquiring a target current signal, a supply voltage signal of a current output unit, and a maximum compliance voltage signal of the current output unit;

[0046] Acquire an actual compliance voltage value output by the current output unit when operating under the target current signal, and a detection voltage signal output by a detection unit connected to the current output unit;

[0047] determining a detection current signal according to the detection voltage signal;

[0048] The operating state of the current output unit is determined according to the relationship among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal, and the relationship between the target current signal and the detection current signal.

[0049] In a sixth aspect, the present application further provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the following steps:

[0050] Acquiring a target current signal, a supply voltage signal of a current output unit, and a maximum compliance voltage signal of the current output unit;

[0051] Acquire an actual compliance voltage value output by the current output unit when operating under the target current signal, and a detection voltage signal output by a detection unit connected to the current output unit;

[0052] determining a detection current signal according to the detection voltage signal;

[0053] The operating state of the current output unit is determined according to the relationship among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal, and the relationship between the target current signal and the detection current signal.

[0054] The above-mentioned current output detection circuit and method, device, electronic device, storage medium and computer program product,

[0055] It can be understood that the beneficial effects that can be achieved by the computer device described in the fourth aspect, the computer-readable storage medium described in the fifth aspect, and the computer program product described in the sixth aspect provided above can refer to the beneficial effects of the current output detection method described in the second aspect and any one of its embodiments, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the conventional technology, the following briefly introduces the drawings required for use in the embodiments or the conventional technology descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0057] Figure 1 FIG1 is a structural diagram of a current output detection circuit according to an embodiment;

[0058] Figure 2 This is a second structural diagram of a current output detection circuit in one embodiment;

[0059] Figure 3 This is a third structural diagram of a current output detection circuit in one embodiment;

[0060] Figure 4 This is a fourth structural diagram of a current output detection circuit in one embodiment;

[0061] Figure 5 FIG5 is a fifth structural diagram of a current output detection circuit in one embodiment;

[0062] Figure 6 1 is a flow chart of a current output detection method according to an embodiment;

[0063] Figure 7 Schematic diagram of a current output detection device in one embodiment. DETAILED DESCRIPTION

[0064] To facilitate understanding of the present application, the present application will be described more fully below with reference to the accompanying drawings. The accompanying drawings provide embodiments of the present application. However, the present application may be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to make the disclosure of the present application more thorough and comprehensive.

[0065] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application pertains. The terms used herein in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application.

[0066] It will be understood that the terms "first" and "second" used in this application are for descriptive purposes only and are not to be understood as indicating 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 at least one of such features. The terms "first", "second", etc. may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. In addition, in the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In the description of this application, the meaning of "several" is at least one, such as one, two, etc., unless otherwise clearly and specifically defined.

[0067] It should be noted that when an element is considered to be "connected" to another element, it can be directly connected to the other element or connected to the other element through an intervening element. In addition, the "connection" in the following embodiments should be understood as "electrical connection", "communication connection", etc., if there is transmission of electrical signals or data between the connected objects.

[0068] As used herein, the singular forms "a," "an," and "the" may also include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include," "comprising," "having," and the like specify the presence of stated features, integers, steps, operations, components, parts, or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof. Furthermore, the term "and / or" as used in this specification includes any and all combinations of the relevant listed items.

[0069] As a conventional output method, the current output channel is commonly found in various DCS and PLCs. Its conventional structure is to use a current output transmitter module to realize current output control. The power input terminal of the current output transmitter module is connected to the external power supply, and the current output control terminal of the current output transmitter module is connected to the external control signal.

[0070] In the related art, current output detection is used to diagnose all dangerous faults caused by current output, but there is no way to cover all accidents that occur in the system. The current output detection circuit provided in this application can comprehensively analyze all faults that occur in the system.

[0071] Based on the above analysis, the inventors have found that, for current diagnosis, the present application provides a current output detection circuit that can achieve comprehensive fault judgment. Compared with the current recovery technology in the related technology, the current output detection circuit provided in the embodiment of the present application has a simple structure and can diagnose all dangerous faults of current output, thereby improving system safety, reliability and maintainability.

[0072] In one embodiment, Figure 1 As shown, an embodiment of the present application provides a current output detection circuit for comprehensively determining whether a system fault has occurred. Specifically, the current output detection circuit includes a current output unit 100, a detection unit 200, and a processing unit 300. The current output unit 100 is configured to receive and operate under a target current signal. The target current signal refers to a current signal generated based on system data.

[0073] The detection unit 200 is connected to the current output unit 100 and is used to output a detection voltage signal, wherein the detection voltage signal refers to a voltage signal obtained when the detection unit operates under a target current.

[0074] The processing unit 300 is connected to the current output unit 100 and the detection unit 200, respectively, and is used to obtain a target current signal and transmit the target current signal to the current output unit 100. It is also used to obtain the supply voltage signal of the current output unit 100, the maximum compliance voltage signal of the current output unit 100, the actual compliance voltage signal output by the current output unit 100 based on the target current signal, and the detection voltage signal output by the detection unit 200, determine the detection current signal based on the detection voltage signals, and determine the operating state of the current output unit based on the relationship between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, as well as the relationship between the target current signal and the detection current signal. The processing unit 300 can be a microcontroller unit (MCU), a field programmable gate array (FPGA), a central processing unit (CPU), or other control processing device capable of analyzing and processing digital signals. The compliance voltage signal refers to the voltage signal that the current output unit 100 can achieve when normally driving the current required by the load. Taking the processing unit 300 as a microcontroller unit as an example, the microcontroller unit determines the working state of the current output unit 100 based on the relationship between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal, and the relationship between the target current signal and the detection current signal.When the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is equal to the target current signal, it is determined that normal operation is carried out; when the detection voltage signal is greater than the actual compliance voltage signal, it is determined that the current output unit 100 is faulty; when the detection voltage signal is equal to the actual compliance voltage signal and the detection current signal is equal to the target current signal, it is determined that the output load is short-circuited; when the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal and the detection current signal is not equal to the target current signal, it is determined that the current output accuracy exceeds the standard ... When the voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is equal to zero, it is determined that the output load is open; when the actual compliance voltage signal is greater than the maximum compliance voltage signal, the actual compliance voltage signal is less than or equal to the supply voltage signal, and the detection current signal is greater than zero and less than the target current signal, the load is overloaded; when the actual compliance voltage signal is greater than the maximum compliance voltage signal, the actual compliance voltage signal is less than the supply voltage, and the detection current signal is greater than the target current signal, it is determined that the current output unit is faulty; when the supply voltage signal is less than the actual compliance voltage signal, it is determined that the current loop is incorrectly connected to the power supply.

[0075] The current output unit 100, the detection unit 200, and the processing unit 300 provided in the embodiment of the present application, the current output unit 100 is used to receive a target current signal and operate under the target current signal; the detection unit 200 is connected to the current output unit and is used to output a detection voltage signal; the processing unit 300 is connected to the current output unit and the detection unit respectively, is used to obtain the target current signal and transmit the target current signal to the current output unit 100, and is further used to obtain the supply voltage signal of the current output unit 100, the maximum compliance voltage signal of the current output unit 100, the actual compliance voltage signal output by the current output unit 100 based on the target current signal, and the detection voltage signal output by the detection unit 200, determine the detection current signal based on the detection voltage signal, and determine the operating state of the current output unit 100 based on the relationship between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, and the relationship between the target current signal and the detection current signal. The detection unit 200 detects the voltage of the current output unit 100 under the target current signal and outputs a detection voltage signal. The processing unit 300 obtains the target current signal, the supply voltage signal of the current output unit 100, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal output by the detection unit 200. Based on the relationship between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, as well as the relationship between the target current signal and the detection current signal, the operating state of the current output unit is determined. The current output detection circuit provided in the embodiment of the present application comprehensively determines dangerous faults that may occur due to current output.

[0076] In one embodiment, Figure 2 As shown, the detection unit 200 includes a sampling resistor 210 and a differential operational amplifier unit 220 electrically connected in sequence. The sampling resistor 210 has one end connected to the output end of the current output unit and the other end connected to a load. In physics, a load refers to an electronic component with a certain potential difference between the two ends of a circuit, which is used to convert electrical energy into other forms of energy. In this embodiment of the present application, the detection current analog signal output from the current output unit 100 can be collected through the sampling resistor. Collecting the current signal through the sampling resistor can improve the accuracy of the current signal.

[0077] The positive input terminal of the differential operational amplifier unit 220 is connected to one end of the sampling resistor 210, the negative input terminal of the differential operational amplifier unit 220 is connected to the other end of the sampling resistor 210, and the output terminal of the differential operational amplifier unit 220 is connected to the processing unit 300. The differential operational amplifier unit 220 is used to output a detection voltage signal. The differential operational amplifier unit 220 includes a differential amplifier, which is an electronic unit that amplifies the difference between the output and input voltages of the sampling resistor 210 with a fixed gain. The differential operational amplifier unit 220 converts the voltage difference between the input and output terminals of the sampling resistor, as detected by the sampling resistor, into a detection voltage signal.

[0078] Specifically, the sampling resistor 210 collects the current signal output by the current output unit 100, the differential amplifier obtains the voltage difference signal across the sampling resistor 210 under the current signal output by the current output unit 100, and the differential operational amplifier unit 220 outputs the voltage difference signal as a detection voltage signal. The processing unit 300 receives the detection voltage signal.

[0079] In the embodiment of the present application, the voltage across the sampling resistor under the action of the detection current is obtained, and the detection voltage signal is output through the differential operational amplifier, so that the output detection electrical signal has high stability.

[0080] In one embodiment, Figure 3 As shown, the current output detection circuit also includes: a follower operational amplifier unit 400. The follower operational amplifier unit 400 includes a follower amplifier. The follower operational amplifier unit 400 is respectively connected to the current output unit 100 and the processing unit 300, and is used to output the actual compliance voltage signal. The follower operational amplifier means that the output voltage is the same as the input voltage, which can avoid the signal loss caused by the high output impedance and the low input impedance of the next stage, and plays a role in connecting the upper and lower stages. The voltage follower has the characteristics of high input impedance and low output impedance, which makes it present a high-impedance state to the previous stage circuit and a low-impedance state to the next stage circuit. It is often used in the intermediate stage to isolate the front and rear stage circuits and eliminate the mutual influence between them.

[0081] In this embodiment, by providing the follower operational amplifier unit 400 , detection current shunting can be avoided, thereby improving the accuracy of the detection current signal.

[0082] In one embodiment, Figure 4As shown, the current output detection circuit further includes a conversion unit 500. The conversion unit 500 is connected to the detection unit 200, the follower op amp unit 400, and the processing unit 300, respectively. The conversion unit 500 is configured to convert the detection voltage signal into a detection voltage digital signal and the actual compliance voltage signal into an actual compliance voltage digital signal. The conversion unit 500 includes an analog-to-digital converter (ADC). An analog-to-digital converter (ADC) is a device that converts a continuous analog signal into a discrete digital signal.

[0083] In this embodiment, the conversion unit 500 is provided to convert the detection voltage signal into a detection voltage digital signal, and to convert the actual compliance voltage signal into an actual compliance voltage digital signal, so that the detection current value can be conveniently calculated.

[0084] An embodiment of the present application further provides an electronic device, which includes the current output detection circuit described in any of the above embodiments.

[0085] In one embodiment, Figure 5As shown, the current output detection circuit includes: an MCU, a current output unit, a sampling resistor Rs, a follower op amp unit A1, a differential op amp unit A2, a load unit R1, and an ADC unit. The MCU is connected to the control terminal of the current output unit, the power terminal of the current output unit is connected to the voltage Vs, the output terminal of the current output unit is connected to the positive input terminal of the follower op amp unit A1, the output terminal of the current output unit is connected to the first terminal of the sampling resistor Rs, the first terminal of the sampling resistor Rs is connected to the positive input terminal of the differential op amp unit A2, the second terminal of the sampling resistor Rs is connected to the negative input terminal of the differential op amp unit A2, the output terminal of the follower op amp unit A1 is connected to one input terminal of the ADC unit, the negative input terminal of the follower op amp unit A1 is connected to the output terminal of the follower op amp unit A1, the output terminal of the differential op amp unit A2 is connected to the other input terminal of the ADC unit, the output terminal of the ADC unit is connected to the MCU, one terminal of the load unit R1 is connected to the second terminal of the sampling resistor Rs, and one terminal of the load unit R1 is connected to the ground terminal of the current output unit.The MCU receives the system control signal and sends the target current signal I to the current output unit. The current output unit outputs the detection current signal i according to the control signal. The follower op amp follows the actual compliance voltage Vh of the current output loop. The sampling resistor Rs converts the detection current signal output by the current output unit into a differential voltage signal. The differential op amp unit converts the differential voltage signal converted by the sampling resistor Rs into a detection voltage signal Vi. The ADC unit converts the actual compliance voltage signal Vh output by the follower op amp unit and the detection voltage signal Vi output by the differential op amp unit into an actual compliance voltage digital signal and a detection voltage digital signal respectively. The ADC unit outputs the actual compliance voltage digital signal and the detection voltage digital signal. The MC U obtains the actual compliance voltage digital signal output by the ADC unit, the detection voltage digital signal and the sampling resistor value. The MCU calculates the detection current signal i based on the detection voltage digital signal and the sampling resistor value. The MCU also obtains the power supply voltage signal Vs of the current output unit and the maximum compliance voltage signal Vomax of the current output unit. Then, based on the relationship between the power supply voltage signal Vs, the maximum compliance voltage signal Vomax, the actual compliance voltage signal Vh and the detection voltage signal Vi, as well as the relationship between the target current signal I and the detection current signal i, as shown in Table 1, when the actual compliance voltage signal Vomax is greater than the detection voltage signal Vi and the actual compliance voltage signal Vh is less than or equal to the maximum compliance voltage signal Vom ax, and the detection current signal i is equal to the target current signal I, it is determined that normal operation is performed; when the detection voltage signal Vi is greater than the actual compliance voltage signal Vh, it is determined that the current output unit is faulty; when the detection voltage signal Vi is equal to the actual compliance voltage signal Vh and the detection current signal i is equal to the target current signal I, it is determined that the output load is short-circuited; when the actual compliance voltage signal Vh is greater than the detection voltage signal Vi, the actual compliance voltage signal Vh is less than or equal to the maximum compliance voltage signal Vomax, and the detection current signal i is not equal to the target current signal I, it is determined that the current output accuracy exceeds the standard; when the actual compliance voltage signal Vh is greater than the detection voltage signal Vi, the actual compliance voltage signal Vh is less than or equal to the maximum compliance voltage signal Vomax and the detection current signal i is zero, it is determined that the output load is open; when the actual compliance voltage signal Vh is greater than the maximum compliance voltage signal Vomax, the actual compliance voltage signal Vh is less than or equal to the supply voltage signal Vs, and the detection current signal Vi is greater than zero and less than the target current signal I, the load is overloaded; when the actual compliance voltage signal Vh is greater than the maximum compliance voltage signal Vomax, the actual compliance voltage signal Vh is less than the supply voltage Vs, and the detection current signal i is greater than the target current signal I, it is determined that the current output unit is faulty; when the supply voltage signal Vs is less than the actual compliance voltage signal Vh, it is determined that the current loop is incorrectly connected to the power supply.Determine the operating status of the current output unit.

[0086]

[0087] Table 1

[0088] In one embodiment, Figure 6 A current output detection method is provided. The current output detection method can be applied to the current output detection circuit in any of the aforementioned embodiments. The current output detection method includes the following steps:

[0089] Step 602 : Acquire a target current signal, a supply voltage signal of a current output unit, and a maximum compliance voltage signal of the current output unit.

[0090] Specifically, the processing unit obtains the target current signal, the supply voltage signal of the current output unit, and the maximum compliance voltage signal of the current output unit.

[0091] Step 604 , obtaining an actual compliance voltage value output by the current output unit under the target current signal, and a detection voltage signal output by a detection unit connected to the current output unit;

[0092] Specifically, the processing unit obtains the target current signal, obtains the actual compliance voltage output by the current output unit when the target current signal is output, and obtains the detection voltage signal output by the detection unit connected to the current output unit.

[0093] Step 608 : Determine a detection current signal according to the detection voltage signal.

[0094] Specifically, the processor obtains the value of the sampling resistor and the detection voltage signal, and calculates the detection current signal according to the resistance value of the sampling resistor and the detection voltage signal. The calculation formula is:

[0095] I=Vi / Rs

[0096] Among them, I refers to the detection current signal, Vi refers to the detection voltage signal, and Rs is the resistance value of the sampling resistor.

[0097] Step 610 , determining the working state of the current output unit according to the relationship among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal, and the relationship between the target current signal and the detection current signal.

[0098] Specifically, the processor determines the working state of the current output unit according to the relationship between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal, and the relationship between the target current signal and the detection current signal.

[0099] The above-mentioned current output detection method obtains a target current signal, a supply voltage signal of a current output unit, and a maximum compliance voltage signal of the current output unit; obtains the actual compliance voltage value output by the current output unit operating under the target current signal, as well as a detection voltage signal output by a detection unit connected to the current output unit; determines a detection current signal based on the detection voltage signal; and determines the operating status of the current output unit based on the relationship between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, as well as the relationship between the target current signal and the detection current signal. This method can comprehensively diagnose all faults, improving system safety, reliability, and maintainability.

[0100] In one embodiment, the detection unit includes a sampling resistor and a differential operational amplifier unit; obtaining a detection voltage signal output by the detection unit connected to the current output unit includes: obtaining the detection voltage signal output by the differential operational amplifier unit, where the differential operational amplifier unit is used to detect the voltage across the sampling resistor to generate the detection voltage signal.

[0101] Specifically, the processor obtains the detection voltage signal output by the differential operational amplifier unit. The differential operational amplifier unit is used to generate the detection voltage signal by passing the detection current signal output by the current output unit through the sampling resistor under the target current signal, and the voltage at both ends of the sampling resistor generates the detection voltage signal.

[0102] In this embodiment, the detection current signal can be conveniently calculated by acquiring the detection voltage signal.

[0103] In one embodiment, determining the operating state of the current output unit based on a relationship among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, and a relationship between the target current signal and the detection current signal includes:

[0104] Specifically, when the processing unit determines that the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is equal to the target current signal, it is determined that normal operation is performed; when the processing unit determines that the detection voltage signal is greater than the actual compliance voltage signal, it is determined that the current output unit is faulty; when the processing unit determines that the detection voltage signal is equal to the actual compliance voltage signal and the detection current signal is equal to the target current signal, it is determined that the output load is short-circuited; when the processing unit determines that the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is not equal to the target current signal, it is determined that the current output accuracy exceeds the standard ... detection voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is not equal to the target current signal, it is determined that the current output accuracy exceeds the standard; when the processing unit determines that the detection voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is not equal to the target current signal, it is determined that the current output accuracy exceeds the standard; when the processing unit determines that the detection voltage signal is greater than the actual compliance voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is not equal to the target current signal, it is determined that the current output accuracy exceeds the standard When it is determined that the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is equal to zero, the output load is determined to be open; when the processing unit determines that the actual compliance voltage signal is greater than the maximum compliance voltage signal, the actual compliance voltage signal is less than or equal to the power supply voltage signal, and the detection current signal is greater than zero and less than the target current signal, the load is overloaded; when the processing unit determines that the actual compliance voltage signal is greater than the maximum compliance voltage signal, the actual compliance voltage signal is less than the power supply voltage, and the detection current signal is greater than the target current signal, the current output unit is determined to be faulty; when the processing unit determines that the power supply voltage signal is less than the actual compliance voltage signal, it is determined that the current loop is incorrectly connected to the power supply.

[0105] In this embodiment, the working state of the current transmission state is determined by different judgment conditions, which can comprehensively analyze all faults of the current output unit and improve the safety, reliability and maintainability of the current output unit.

[0106] It should be understood that, although the various steps in the flowcharts involved in the various embodiments as above are shown in sequence according to the instructions of the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments as above can include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the steps or stages in other steps.

[0107] Based on the same inventive concept, embodiments of the present application also provide a current output detection device for implementing the current output detection method described above. The solution provided by this device is similar to the solution described in the method described above. Therefore, the specific limitations of one or more current output detection device embodiments provided below can be found in the above-described limitations of the current output detection method and will not be further elaborated here.

[0108] In one embodiment, Figure 7 As shown, a current output detection device is provided, including: a first acquisition module 710, a second acquisition module 720, a calculation module 730 and a state determination module 740, wherein:

[0109] A first acquisition module 710 is configured to acquire a target current signal, a supply voltage signal of a current output unit, and a maximum compliance voltage signal of the current output unit;

[0110] A second acquisition module 720 is configured to acquire an actual compliance voltage value output by the current output unit when operating under a target current signal, and a detection voltage signal output by a detection unit connected to the current output unit;

[0111] A calculation module 730 is configured to determine a detection current signal according to the detection voltage signal;

[0112] The state determination module 740 is used to determine the working state of the current output unit according to the relationship between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal, and the relationship between the target current signal and the detection current signal.

[0113] In one embodiment, the second acquisition module 720 is also used to acquire the detection voltage signal output by the differential operational amplifier unit. The state determination module 740 is used to determine that it is operating normally when the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is equal to the target current signal; when the detection voltage signal is greater than the actual compliance voltage signal, it is determined that the current output unit is faulty; when the detection voltage signal is equal to the actual compliance voltage signal and the detection current signal is equal to the target current signal, it is determined that the output load is short-circuited; when the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal and the detection current signal is not equal to the target current signal, it is determined that the current output accuracy exceeds the standard; when the When the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is equal to zero, it is determined that the output load is open; when the actual compliance voltage signal is greater than the maximum compliance voltage signal, the actual compliance voltage signal is less than or equal to the supply voltage signal, and the detection current signal is greater than zero and less than the target current signal, the load is overloaded; when the actual compliance voltage signal is greater than the maximum compliance voltage signal, the actual compliance voltage signal is less than the supply voltage, and the detection current signal is greater than the target current signal, it is determined that the current output unit is faulty; when the supply voltage signal is less than the actual compliance voltage signal, it is determined that the current loop is incorrectly connected to the power supply.

[0114] Each module in the above-mentioned current output detection device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a memory in the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0115] In one embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0116] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0117] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0118] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0119] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.

[0120] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0121] The above embodiments merely illustrate several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person skilled in the art may make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A current output detection circuit, characterized in that: include: a current output unit, configured to receive a target current signal and operate under the target current signal; a detection unit, connected to the current output unit, and configured to output a detection voltage signal; a processing unit, connected to the current output unit and the detection unit, respectively, for obtaining a target current signal and transmitting the target current signal to the current output unit, and further for obtaining a supply voltage signal of the current output unit, a maximum compliance voltage signal of the current output unit, an actual compliance voltage signal output by the current output unit based on the target current signal, and a detection voltage signal output by the detection unit, determining a detection current signal based on the detection voltage signals, and determining an operating state of the current output unit based on a relationship among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, and a relationship between the target current signal and the detection current signal, including: When the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is equal to the target current signal, determining normal operation; When the detection voltage signal is greater than the actual compliance voltage signal, determining that the current output unit is faulty; When the detection voltage signal is equal to the actual compliance voltage signal and the detection current signal is equal to the target current signal, determining that the output load is short-circuited; When the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is not equal to the target current signal, it is determined that the current output accuracy exceeds the standard; When the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is equal to zero, determining that the output load is open; When the actual compliance voltage signal is greater than the maximum compliance voltage signal, the actual compliance voltage signal is less than or equal to the supply voltage signal, and the detection current signal is greater than zero and less than the target current signal, the load is overloaded; When the actual compliance voltage signal is greater than the maximum compliance voltage signal, the actual compliance voltage signal is less than the supply voltage, and the detection current signal is greater than the target current signal, it is determined that the current output unit is faulty; When the supply voltage signal is less than the actual compliance voltage signal, it is determined that the current loop is incorrectly connected to the power supply.

2. The current output detection circuit according to claim 1, characterized in that: The detection unit comprises: a sampling resistor, one end of which is connected to the output end of the current output unit, and the other end of which is connected to the load; A differential operational amplifier unit, wherein the positive input terminal of the differential operational amplifier unit is connected to one end of the sampling resistor, the negative input terminal of the differential operational amplifier unit is connected to the other end of the sampling resistor, the output terminal of the differential operational amplifier unit is connected to the processing unit, and the differential operational amplifier unit is used to output a detection voltage signal.

3. The current output detection circuit according to claim 1, wherein: The current output detection circuit further includes: The follower operational amplifier unit is connected to the current output unit and the processing unit respectively, and is used to output an actual compliance voltage signal.

4. The current output detection circuit according to claim 3, characterized in that: The current output detection circuit further includes: A conversion unit is connected to the detection unit, the follower operational amplifier unit and the processing unit respectively, and is used to convert the detection voltage signal into a detection voltage digital signal, and convert the actual compliance voltage signal into an actual compliance voltage digital signal.

5. The current output detection circuit according to claim 2, wherein: The differential operational amplifier unit includes: The differential amplifier is used to obtain a voltage difference signal between the two ends of the sampling resistor when the current signal output by the current output unit is working, and output a detection voltage signal according to the voltage difference signal.

6. A current output detection method, characterized in that: include: Acquire a supply voltage signal of a target current signal current output unit and a maximum compliance voltage signal of the current output unit; Acquire an actual compliance voltage signal output by the current output unit when operating under the target current signal, and a detection voltage signal output by a detection unit connected to the current output unit; determining a detection current signal according to the detection voltage signal; Determining the operating state of the current output unit according to a relationship among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, and a relationship between the target current signal and the detection current signal, includes: When the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is equal to the target current signal, determining normal operation; When the detection voltage signal is greater than the actual compliance voltage signal, determining that the current output unit is faulty; When the detection voltage signal is equal to the actual compliance voltage signal and the detection current signal is equal to the target current signal, determining that the output load is short-circuited; When the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is not equal to the target current signal, it is determined that the current output accuracy exceeds the standard; When the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is equal to zero, determining that the output load is open; When the actual compliance voltage signal is greater than the maximum compliance voltage signal, the actual compliance voltage signal is less than or equal to the supply voltage signal, and the detection current signal is greater than zero and less than the target current signal, the load is overloaded; When the actual compliance voltage signal is greater than the maximum compliance voltage signal, the actual compliance voltage signal is less than the supply voltage, and the detection current signal is greater than the target current signal, it is determined that the current output unit is faulty; When the supply voltage signal is less than the actual compliance voltage signal, it is determined that the current loop is incorrectly connected to the power supply.

7. The method according to claim 6, characterized in that The detection unit includes a sampling resistor and a differential operational amplifier unit; obtaining a detection voltage signal output by the detection unit connected to the current output unit includes: A detection voltage signal output by the differential operational amplifier unit is obtained, where the differential operational amplifier unit is used to detect the voltage across the sampling resistor to generate a detection voltage signal.

8. A current output detection device, characterized in that: include: a first acquisition module, configured to acquire a target current signal, a supply voltage signal of a current output unit, and a maximum compliance voltage signal of the current output unit; a second acquisition module, configured to acquire an actual compliance voltage signal output by the current output unit when operating under the target current signal, and a detection voltage signal output by a detection unit connected to the current output unit; a calculation module, configured to determine a detection current signal according to the detection voltage signal; a state determination module, configured to determine an operating state of the current output unit based on a relationship among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, and a relationship between the target current signal and the detection current signal, comprising: When the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is equal to the target current signal, determining normal operation; When the detection voltage signal is greater than the actual compliance voltage signal, determining that the current output unit is faulty; When the detection voltage signal is equal to the actual compliance voltage signal and the detection current signal is equal to the target current signal, determining that the output load is short-circuited; When the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is not equal to the target current signal, it is determined that the current output accuracy exceeds the standard; When the actual compliance voltage signal is greater than the detection voltage signal, the actual compliance voltage signal is less than or equal to the maximum compliance voltage signal, and the detection current signal is equal to zero, determining that the output load is open; When the actual compliance voltage signal is greater than the maximum compliance voltage signal, the actual compliance voltage signal is less than or equal to the supply voltage signal, and the detection current signal is greater than zero and less than the target current signal, the load is overloaded; When the actual compliance voltage signal is greater than the maximum compliance voltage signal, the actual compliance voltage signal is less than the supply voltage, and the detection current signal is greater than the target current signal, it is determined that the current output unit is faulty; When the supply voltage signal is less than the actual compliance voltage signal, it is determined that the current loop is incorrectly connected to the power supply.

Citation Information

Patent Citations

  • Accelerometer fault diagnosis method, device, circuit and computer equipment

    CN109596860A