CN114510397A - Current output detection circuit, method and device, electronic device and storage medium - Google Patents

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

Info

Publication number
CN114510397A
CN114510397A CN202210134050.3A CN202210134050A CN114510397A CN 114510397 A CN114510397 A CN 114510397A CN 202210134050 A CN202210134050 A CN 202210134050A CN 114510397 A CN114510397 A CN 114510397A
Authority
CN
China
Prior art keywords
voltage signal
detection
signal
current
current output
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
Application number
CN202210134050.3A
Other languages
Chinese (zh)
Inventor
童强
王旻
胡德全
左璐
唐昕瑜
叶顺流
杨林山
袁艳纯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China General Nuclear Power Corp
China Nuclear Power Technology Research Institute Co Ltd
CGN Power Co Ltd
Original Assignee
China General Nuclear Power Corp
China Nuclear Power Technology Research Institute Co Ltd
CGN Power Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China General Nuclear Power Corp, China Nuclear Power Technology Research Institute Co Ltd, CGN Power Co Ltd filed Critical China General Nuclear Power Corp
Priority to CN202210134050.3A priority Critical patent/CN114510397A/en
Publication of CN114510397A publication Critical patent/CN114510397A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

The present application relates to a current output detection circuit and method, an apparatus, a computer device, a storage medium, and a computer program product. The current output detection circuit includes: the current output unit is used for receiving the target current signal and working under the target current signal; the detection unit is connected with the current output unit and used for outputting a detection voltage signal; and the processing unit is respectively connected with the current output unit and the detection unit and determines the working state of the current output unit according to the correlation among the power supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal and the correlation among the target current signal and the detection current signal. By detecting the current, the fault state of the current output unit can be comprehensively judged.

Description

Current output detection circuit, method and device, electronic device and storage medium
Technical Field
The present application relates to the field of industrial control technologies, and in particular, to a current output detection circuit, a method, an apparatus, an electronic device, a storage medium, and a computer program product.
Background
With the development of industrial Control technology, a current signal communication technology has appeared, and the current signal communication technology has the characteristic of strong anti-electromagnetic interference capability and is widely used in a Distributed Control System (DCS), a Programmable Logic Controller (PLC) and various instruments and meters. In an industrial control System, especially in a Strategic Information System (SIS), a current output function unit fails, and if the current output function unit cannot be diagnosed and fault-warned in time, equipment failure, System partial function breakdown, and serious production accidents and safety accidents may be caused.
At present, in conventional application, current output is rarely diagnosed, only the output current value can be recovered in an individual system, all faults of the current output cannot be diagnosed, and the diagnosis coverage rate is not high.
Disclosure of Invention
Based on this, the present application provides a current output detection circuit, a method, an apparatus, an electronic device, and a storage medium, which can realize a comprehensive diagnosis of a circuit.
In a first aspect, the present application provides a current output detection circuit comprising:
the current output unit is used for receiving a target current signal and working under the target current signal;
the detection unit is connected with the current output unit and used for outputting a detection voltage signal;
and the processing unit is respectively connected with the current output unit and the detection unit, and is used for acquiring a target current signal and transmitting the target current signal to the current output unit, acquiring 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 the working state of the current output unit according to the correlation among the power supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal, and the correlation among the target current signal and the detection current signal.
In the current output detection circuit, the processing unit transmits the target current signal to the current output unit, and after the current output unit receives the target current signal, working under a target current signal, outputting a detection voltage signal under the target current signal by a detection unit, finally acquiring a power supply voltage signal of a 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 the detection voltage signal output by the detection unit by a processing unit, determining a sensed current signal based on the sensed voltage signal, and based on a correlation between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the sensed voltage signal, and the correlation between the target current signal and the detection current signal, and determining the working state of the current output unit. The fault problem of the current output unit can be comprehensively detected, and the safety and the reliability of the system are improved.
In one embodiment, the detection unit includes:
one end of the sampling resistor is connected with the output end of the current output unit, and the other end of the sampling resistor is used for being connected with a load;
the differential operational amplifier unit is used for outputting a detection voltage signal, and an anode input end of the differential operational amplifier unit is connected with one end of the sampling resistor, a cathode input end of the differential operational amplifier unit is connected with the other end of the sampling resistor, an output end of the differential operational amplifier unit is connected with the processing unit, and the differential operational amplifier unit is used for outputting the detection voltage signal.
In one embodiment, the current output detection circuit further comprises:
and the following operational amplifier unit is respectively connected with the current output unit and the processing unit and is used for outputting an actual compliance voltage signal.
In one embodiment, the current output detection circuit further comprises:
and the conversion unit is respectively connected with the detection unit, the following operational amplifier unit and the processing unit and is used for converting the detection voltage signal into a detection voltage digital signal and converting the actual compliance voltage signal into an actual compliance voltage digital signal.
In a second aspect, an embodiment of the present application provides a current output detection method, including:
acquiring 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;
acquiring an actual compliance voltage value output by the current output unit when the current output unit works under the target current signal and a detection voltage signal output by a detection unit connected with the current output unit;
determining a detection current signal according to the detection voltage signal;
and determining the working state of the current output unit according to the correlation among the power supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal and the correlation among the target current signal and the detection current signal.
According to the current output detection method, 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 are obtained; acquiring an actual compliance voltage value output by the current output unit when the current output unit works under a target current signal and a detection voltage signal output by a detection unit connected with the current output unit; determining a detection current signal according to the detection voltage signal; and determining the working state of the current output unit according to the correlation among the power supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal and the correlation among the target current signal and the detection current signal. All dangerous faults existing in current output can be detected, and the safety and reliability of the system are improved.
In one embodiment, the detection unit comprises a sampling resistor and a differential operational amplifier unit; acquiring a detection voltage signal output by a detection unit connected with the current output unit, comprising:
and acquiring a detection voltage signal output by the differential operational amplifier unit, wherein the differential operational amplifier unit is used for detecting the voltage at two ends of the sampling resistor to generate a detection voltage signal.
In one embodiment, the determining the operating state of the current output unit according to the correlation among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, and the correlation among 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;
determining that the current output unit is faulty when the detected voltage signal is greater than the actual compliance voltage signal;
determining that an output load is shorted when the detected voltage signal is equal to the actual compliance voltage signal and the detected current signal is equal to the target current signal;
determining that current output accuracy is over-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 not equal to the target current signal;
determining that the output load is open 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;
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 detected current signal is greater than zero and less than the target current signal, then the load is overloaded;
determining that a current output unit is faulty 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 detected current signal is greater than the target current signal;
and when the power supply voltage signal is smaller than the actual compliance voltage signal, determining that the current loop is wrongly connected into the power supply.
In a third aspect, the present application provides a current output detection apparatus, the apparatus comprising:
the device comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring 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;
the second acquisition module is used for acquiring an actual compliance voltage value output by the current output unit when the current output unit works under the target current signal and a detection voltage signal output by a detection unit connected with the current output unit;
the calculation module is used for determining a detection current signal according to the detection voltage signal;
a state determination module for determining an operating state of the current output unit according to a correlation among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, and a correlation between the target current signal and the detection current signal.
In a fourth aspect, the present application further provides an electronic device. The computer device comprises a memory storing a computer program and a processor implementing the following steps when executing the computer program:
acquiring 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;
acquiring an actual compliance voltage value output by the current output unit when the current output unit works under the target current signal and a detection voltage signal output by a detection unit connected with the current output unit;
determining a detection current signal according to the detection voltage signal;
and determining the working state of the current output unit according to the correlation among the power supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal and the correlation among the target current signal and the detection current signal.
In a fifth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring 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;
acquiring an actual compliance voltage value output by the current output unit when the current output unit works under the target current signal and a detection voltage signal output by a detection unit connected with the current output unit;
determining a detection current signal according to the detection voltage signal;
and determining the working state of the current output unit according to the correlation among the power supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal and the correlation among the target current signal and the detection current signal.
In a sixth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
acquiring 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;
acquiring an actual compliance voltage value output by the current output unit when the current output unit works under the target current signal and a detection voltage signal output by a detection unit connected with the current output unit;
determining a detection current signal according to the detection voltage signal;
and determining the working state of the current output unit according to the correlation among the power supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal and the correlation among the target current signal and the detection current signal.
The above-described current output detection circuit, method, apparatus, electronic device, storage medium, and computer program product,
it is to be understood that beneficial effects achieved by the computer device according to the fourth aspect, the computer-readable storage medium according to the fifth aspect, and the computer program product according to the sixth aspect may refer to the beneficial effects of the current output detection method according to the second aspect and any one of the embodiments, which are not repeated herein.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the conventional technologies of the present application, the drawings used in the descriptions of the embodiments or the conventional technologies will be briefly introduced below, it is obvious that the drawings in the following descriptions are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating an exemplary current output detection circuit;
FIG. 2 is a second schematic diagram of an embodiment of a current output detection circuit;
FIG. 3 is a third schematic diagram of an embodiment of a current output detection circuit;
FIG. 4 is a fourth schematic diagram illustrating the structure of the current output detection circuit in one embodiment;
FIG. 5 is a fifth exemplary embodiment of a current output detection circuit;
FIG. 6 is a schematic flow chart of a current output detection method according to an embodiment;
FIG. 7 is a schematic diagram of a current output detection device according to an embodiment.
Detailed Description
To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Embodiments of the present application are set forth in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It is to be understood that the terms "first", "second", and the like, as used herein, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicit to a number of technical features being indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. The terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. Further, in the description of the present application, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise. In the description of the present application, "a number" means at least one, such as one, two, etc., unless specifically limited otherwise.
It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or be connected to the other element through intervening elements. Further, "connection" in the following embodiments is understood to mean "electrical connection", "communication connection", or the like, if there is a transfer of electrical signals or data between the connected objects.
As used herein, the singular forms "a", "an" and "the" may include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises/comprising," "includes" or "including," etc., 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. Also, as used in this specification, the term "and/or" includes any and all combinations of the associated listed items.
The current output channel is used as a conventional output mode and commonly exists in each DCS and PLC, the conventional structure of the current output channel is that a current output transmitting module is adopted to realize current output control, the power supply input end of the current output transmitting module is connected to an external power supply, and the current output control end of the current output transmitting module is connected to an external control signal.
In the related art, aiming at current output detection, all dangerous faults caused by current output are diagnosed back to the current, but no method is provided for covering all accidents occurring in the system.
Based on the above analysis, the inventor researches and discovers that, aiming at current diagnosis, the current output detection circuit provided by the application can realize comprehensive judgment of faults, and compared with a current extraction technology in the related technology, the current output detection circuit provided by the embodiment of the application has a simple structure, can diagnose all dangerous faults of current output, and improves the safety, reliability and maintainability of a system.
In one embodiment, as shown in fig. 1, the present application provides a current output detection circuit for realizing a comprehensive judgment of a system fault. 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 a target current signal and operate under the target current signal. The target current signal is a current signal generated from system data.
The detection unit 200 is connected to the current output unit 100 for outputting a detection voltage signal. The detection voltage signal is a voltage signal obtained by the detection unit working under the target current.
The processing unit 300 is respectively connected to the current output unit 100 and the detection unit 200, and is configured to acquire a target current signal and transmit the target current signal to the current output unit 100, and is further configured to acquire a supply voltage signal of the current output unit 100, a maximum compliance voltage signal of the current output unit 100, an actual compliance voltage signal output by the current output unit 100 according to the target current signal, and a detection voltage signal output by the detection unit 200, determine a detection current signal according to the detection voltage signal, and determine an operating state of the current output unit according to a correlation among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, and a correlation between the target current signal and the detection current signal. The Processing Unit 300 may be a Micro Control Unit (MCU), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), or other control Processing devices capable of analyzing and Processing digital signals. The compliance voltage signal is a voltage signal that can be reached when the current output unit 100 normally drives the current required by the load. Taking the processing unit 300 as an example of a micro control unit, the micro control unit 300 determines the operation state of the current output unit 100 according to the correlation between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal, and the correlation 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, determining normal operation; determining that the current output unit 100 is failed when the detected voltage signal is greater than the actual compliance voltage signal; determining that the output load is shorted when the detected voltage signal is equal to the actual compliance voltage signal and the detected current signal is equal to the target current signal; determining that the current output accuracy is over-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 not equal to the target current signal; determining that the output load is open 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; 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, then the load is overloaded; determining that the current output unit is faulty 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 detected current signal is greater than the target current signal; and when the power supply voltage signal is smaller than the actual compliance voltage signal, determining that the current loop is wrongly connected to the power supply.
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 configured to receive a target current signal and operate under the target current signal; a detection unit 200 connected to the current output unit for outputting a detection voltage signal; and a processing unit 300, connected to the current output unit and the detection unit, respectively, for acquiring a target current signal and transmitting the target current signal to the current output unit 100, and for acquiring a supply voltage signal of the current output unit 100, a maximum compliance voltage signal of the current output unit 100, an actual compliance voltage signal output by the current output unit 100 according to the target current signal and a detection voltage signal output by the detection unit 200, determining a detection current signal according to the detection voltage signal, and determining an operating state of the current output unit 100 according to a correlation among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal, and a correlation among the target current signal and the detection current signal. The detection unit 200 detects a voltage under operation of a target current signal of the current output unit 100 and outputs a detection voltage signal, and the processing unit 300 acquires the target current signal, a supply voltage signal, a maximum compliance voltage signal, an actual compliance voltage signal of the current output unit 100, and the detection voltage signal output by the detection unit 200, and determines an operation state of the current output unit according to a correlation among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, and a correlation among the target current signal and the detection current signal. The current output detection circuit provided by the embodiment of the application can be used for comprehensively judging dangerous faults possibly generated by current output.
In one embodiment, as shown in fig. 2, the detection unit 200 includes a sampling resistor 210 and a differential operational amplifier unit 220 electrically connected in sequence. One end of the sampling resistor 210 is connected to the output end of the current output unit, and the other end is used for connecting to a load; the load refers to an electronic component connected in a circuit and having a certain potential difference between two ends, and is a device for converting electric energy into other forms of energy. In the embodiment of the present application, the detection current analog signal output in the current output unit 100 may be collected by a sampling resistor. The sampling resistor is used for collecting, and the collection accuracy of the current signal can be improved.
The positive input end of the differential operational amplifier unit 220 is connected with one end of the sampling resistor 210, the negative input end of the differential operational amplifier unit 220 is connected with the other end of the sampling resistor 210, the output end of the differential operational amplifier unit 220 is connected with the processing unit 300, and the differential operational amplifier unit 220 is used for outputting a detection voltage signal. The differential operational amplifier unit 220 includes a differential amplifier, which is an electronic unit for amplifying a difference between voltages at the output terminal and the input terminal of the sampling resistor 210 by a fixed gain. The differential operational amplifier unit 220 converts the difference between the voltages at the input end and the output end collected by the sampling resistor into a detection voltage signal.
Specifically, the sampling resistor 210 collects a current signal output by the current output unit 100, the differential amplifier 220 obtains a voltage difference signal between two ends of the sampling resistor 210 under the operation of the current signal output by the current output unit 100, and the differential operational amplifier unit 200 outputs the voltage difference signal to a detection voltage signal. The processing unit 300 receives the detection voltage signal.
In the embodiment of the application, the voltage at two ends of 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 stability of the output detection electric signal is high.
In one embodiment, as shown in fig. 3, the current output detection circuit further includes: following the op-amp unit 400. Wherein the follower operational amplifier unit 400 includes a follower amplifier. The follower operational amplifier unit 400 is connected to the current output unit 100 and the processing unit 300, respectively, for outputting an actual compliance voltage signal. The following operational amplifier means that the output voltage is the same as the input voltage, so that the signal loss generated when the output impedance is higher and the input impedance of the next stage is lower can be avoided, and the effect of starting and stopping is achieved. The voltage follower has the characteristics of high input impedance and low output impedance, so that the voltage follower presents a high-impedance state for a previous-stage circuit and presents a low-impedance state for a next-stage circuit, and the voltage follower is commonly used for an intermediate stage to isolate the previous-stage circuit and the next-stage circuit and eliminate the mutual influence between the previous-stage circuit and the next-stage circuit.
In this embodiment, the following operational amplifier unit 400 is provided, so that the detection current can be prevented from being shunted, and the accuracy of the detection current signal can be improved.
In one embodiment, as shown in fig. 4, the current output detection circuit further includes: a conversion unit 500. Wherein the conversion unit 500 is connected to the detection unit 200, the follower op-amp unit 100 and the processing unit 300, respectively, and the conversion unit 500 is configured 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. Wherein the conversion unit 500 comprises an analog-to-digital converter. An Analog-to-Digital Converter (ADC) is a device that converts a continuous variable Analog signal into a discrete Digital signal.
In this embodiment, the detection voltage signal is converted into the detection voltage digital signal by the conversion unit 500, and the actual compliance voltage signal is converted into the actual compliance voltage digital signal, so that the detection current value can be calculated conveniently.
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.
In one embodiment, as shown in fig. 5, the current output detection circuit includes: the circuit comprises an MCU, a current output unit, a sampling resistor Rs, a following operational amplifier unit A1, a differential operational amplifier unit A2, a load unit R1 and an ADC unit. The MCU is connected with the control end of the current output unit, the power supply end of the current output unit is connected with a voltage Vs, the output end of the current output unit is connected with the positive input end of the following operational amplifier unit A1, the output end of the current output unit is connected with the first end of the sampling resistor Rs, the first end of the sampling resistor Rs is connected with the positive input end of the differential operational amplifier unit A1, the second end of the sampling resistor Rs is connected with the negative input end of the differential operational amplifier unit A2, the output end of the following operational amplifier unit A1 is connected with one input end of the ADC unit, the negative input end of the following operational amplifier unit A1 is connected with the output end of the following operational amplifier unit A1, the output end of the differential operational amplifier unit A2 is connected with the other input end of the ADC unit, the output end of the ADC unit is connected with the MCU, one end of the load unit R1 is connected with the second end of the sampling resistor Rs, and one end of the load unit R1 is connected with the grounding end of the current output unit. The MCU receives a system control signal and sends a target current signal I to the current output unit, the current output unit outputs a detection current signal I according to the control signal, the following operational amplifier 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 operational amplifier unit performs differential operational amplification on the differential voltage signal converted by the sampling resistor Rs into a detection voltage signal Vi, the ADC unit converts the received actual compliance voltage signal Vh output by the following operational amplifier unit and the detection voltage signal Vi output by the differential operational amplifier 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, and the MCU acquires the actual compliance voltage digital signal, the detection voltage digital signal and the sampling resistor resistance output by the ADC unit, the MCU calculates a detection current signal I according to the detection voltage digital signal and the resistance value of the sampling resistor, the MCU also obtains a power supply voltage signal Vs of the current output unit and a maximum compliance voltage signal Vomax of the current output unit, and then according to the mutual relation among the power supply voltage signal Vs, the maximum compliance voltage signal Vomax, an actual compliance voltage signal Vh and a detection voltage signal Vi and the mutual relation between a target current signal I and the detection current signal I, as shown in the table 1, when the actual compliance voltage signal Vomax is larger than the detection voltage signal Vi, the actual compliance voltage signal Vh is smaller than or equal to the maximum compliance voltage signal Vomax, and the detection current signal I is equal to the target current signal I, the normal work is determined; determining that the current output unit is faulty when the sensed voltage signal Vi is greater than the actual compliance voltage signal Vh; determining that the output load is short-circuited when the detected voltage signal Vi is equal to the actual compliance voltage signal Vh and the detected current signal I is equal to the target current signal I; determining that the current output accuracy is over-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 not equal to the target current signal I; 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 equal to zero, determining 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, then the load is overloaded; determining that the current output unit is faulty 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 detected current signal I is greater than the target current signal I; when the supply voltage signal Vs is smaller than the actual compliance voltage signal Vh, it is determined that the current loop erroneously accesses the power supply.
The operating state of the current output unit is determined.
Figure BDA0003504000800000121
Figure BDA0003504000800000131
TABLE 1
In one embodiment, a current output detection method is provided as shown in FIG. 6. The current output detection method can be applied to the current output detection circuit in any of the foregoing embodiments. The current output detection method comprises the following steps:
step 602, obtaining a target current signal, a supply voltage signal of a current output unit, and a maximum compliance voltage signal of the current output unit.
Specifically, the processing unit obtains a target current signal, a supply voltage signal of the current output unit, and a maximum compliance voltage signal of the current output unit.
Step 604, acquiring an actual compliance voltage value output by the current output unit working under the target current signal, and a detection voltage signal output by a detection unit connected with the current output unit;
specifically, the processing unit acquires a target current signal, acquires an actual compliance voltage output by the current output unit at the target current signal, and acquires a detection voltage signal output by the detection unit connected with the current output unit.
At step 608, a sensed current signal is determined from the sensed voltage signal.
Specifically, the processor acquires 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. Wherein, the calculation formula is as follows:
I=Vi/Rs
wherein, I is a detection current signal, Vi is a detection voltage signal, and Rs is a resistance value of a sampling resistor.
Step 610, determining the working state of the current output unit according to the correlation among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal, and the correlation among the target current signal and the detection current signal.
Specifically, the processor determines the operating state of the current output unit based on the correlation between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detected voltage signal, and the correlation between the target current signal and the detected current signal.
In the current output detection method, 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 are obtained; acquiring an actual compliance voltage value output by the current output unit when the current output unit works under the target current signal and a detection voltage signal output by a detection unit connected with the current output unit; determining a detection current signal according to the detection voltage signal; determining an operating state of the current output unit based on a correlation between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal, and a correlation between the target current signal and the detection current signal. All faults can be comprehensively diagnosed, and the safety, reliability and maintainability of the system are improved.
In one embodiment, the detection unit comprises a sampling resistor and a differential operational amplifier unit; the method for acquiring the detection voltage signal output by the detection unit connected with the current output unit comprises the following steps: and acquiring a detection voltage signal output by the differential operational amplifier unit, wherein the differential operational amplifier unit is used for detecting the voltage at two ends of the sampling resistor to generate the detection voltage signal.
Specifically, the processor obtains a detection voltage signal output by the differential operational amplifier unit, and the differential operational amplifier unit is used for generating the detection voltage signal at the voltage at two ends of the sampling resistor by enabling the detection current signal output by the current output unit to pass through the sampling resistor under the target current signal.
In this embodiment, the detection current signal can be conveniently calculated by acquiring the detection voltage signal.
In one embodiment, determining the operating state of the current output unit based on the correlation between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detected voltage signal, and the correlation between the target current signal and the detected current signal includes:
specifically, when the processing unit judges 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, the normal operation is determined; when the processing unit judges that the detection voltage signal is greater than the actual compliance voltage signal, determining that the current output unit has a fault; when the processing unit judges 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, determining that the output load is short-circuited; when the processing unit judges 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, determining that the current output precision exceeds the standard; when the processing unit judges 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, determining that the output load is open-circuited; when the processing unit judges 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 judges 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, determining that the current output unit has a fault; and when the processing unit judges that the power supply voltage signal is smaller than the actual compliance voltage signal, determining that the current loop is wrongly connected to the power supply.
In this embodiment, the working state of the current transmission state is determined by different determination conditions, all faults existing in the current output unit can be comprehensively analyzed, and the safety, reliability and maintainability of the current output unit are improved.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a current output detection apparatus for implementing the current output detection method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the method, so the specific limitations in one or more embodiments of the current output detection device provided below can be referred to the limitations of the current output detection method in the above, and are not described herein again.
In one embodiment, as shown in fig. 7, there is provided a current output detecting device including: a first obtaining module 710, a second obtaining module 720, a calculating module 730, and a status determining module 740, wherein:
a first obtaining module 710, configured to obtain a target current signal, a supply voltage signal of the current output unit, and a maximum compliance voltage signal of the current output unit;
a second obtaining module 720, configured to obtain an actual compliance voltage value output by the current output unit operating under the target current signal, and a detection voltage signal output by the detection unit connected to the current output unit;
a calculating module 730, configured to determine a detection current signal according to the detection voltage signal;
a state determination module 740 for determining the operating state of the current output unit based on the correlation between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detected voltage signal, and the correlation between the target current signal and the detected current signal.
In one embodiment, the second obtaining module 720 is further configured to obtain a detection voltage signal output by the differential operational amplifier unit. The status determination module 740 is configured to determine normal operation 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 that the current output unit is faulty when the detected voltage signal is greater than the actual compliance voltage signal; determining that the output load is shorted when the detected voltage signal is equal to the actual compliance voltage signal and the detected current signal is equal to the target current signal; determining that the current output accuracy is over-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 not equal to the target current signal; determining that the output load is open 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; 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, then the load is overloaded; determining that the current output unit is faulty 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 detected current signal is greater than the target current signal; and when the power supply voltage signal is smaller than the actual compliance voltage signal, determining that the current loop is wrongly connected to the power supply.
The modules in the current output detection device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
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 for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A current output sensing circuit, comprising:
the current output unit is used for receiving a target current signal and working under the target current signal;
the detection unit is connected with the current output unit and used for outputting a detection voltage signal;
and the processing unit is respectively connected with the current output unit and the detection unit, and is used for acquiring a target current signal and transmitting the target current signal to the current output unit, acquiring 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 the working state of the current output unit according to the correlation among the power supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal, and the correlation among the target current signal and the detection current signal.
2. The current output detection circuit according to claim 1, wherein the detection unit includes:
one end of the sampling resistor is connected with the output end of the current output unit, and the other end of the sampling resistor is used for being connected with a load;
the differential operational amplifier unit is used for outputting a detection voltage signal, and an anode input end of the differential operational amplifier unit is connected with one end of the sampling resistor, a cathode input end of the differential operational amplifier unit is connected with the other end of the sampling resistor, an output end of the differential operational amplifier unit is connected with the processing unit, and the differential operational amplifier unit is used for outputting the detection voltage signal.
3. The current output detection circuit according to claim 1, further comprising:
and the following operational amplifier unit is respectively connected with the current output unit and the processing unit and is used for outputting an actual compliance voltage signal.
4. The current output detection circuit according to claim 3, further comprising:
and the conversion unit is respectively connected with the detection unit, the following operational amplifier unit and the processing unit and is used for converting the detection voltage signal into a detection voltage digital signal and converting the actual compliance voltage signal into an actual compliance voltage digital signal.
5. A current output detection method, comprising:
acquiring a power supply voltage signal of a target current signal current output unit and a maximum compliance voltage signal of the current output unit;
acquiring an actual compliance voltage value output by the current output unit when the current output unit works under the target current signal and a detection voltage signal output by a detection unit connected with the current output unit;
determining a detection current signal according to the detection voltage signal;
and determining the working state of the current output unit according to the correlation among the power supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal and the detection voltage signal and the correlation among the target current signal and the detection current signal.
6. The method of claim 5, wherein the detection unit comprises a sampling resistor and a differential operational amplifier unit; acquiring a detection voltage signal output by a detection unit connected with the current output unit, comprising:
and acquiring a detection voltage signal output by the differential operational amplifier unit, wherein the differential operational amplifier unit is used for detecting the voltage at two ends of the sampling resistor to generate a detection voltage signal.
7. The method of claim 5, wherein determining the operating state of the current output unit based on the correlation between the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detected voltage signal, and the correlation between the target current signal and the detected current signal comprises:
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;
determining that the current output unit is faulty when the detected voltage signal is greater than the actual compliance voltage signal;
determining that an output load is shorted when the detected voltage signal is equal to the actual compliance voltage signal and the detected current signal is equal to the target current signal;
determining that current output accuracy is over-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 not equal to the target current signal;
determining that the output load is open 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;
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 detected current signal is greater than zero and less than the target current signal, then the load is overloaded;
determining that a current output unit is faulty 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 detected current signal is greater than the target current signal;
and when the power supply voltage signal is smaller than the actual compliance voltage signal, determining that the current loop is wrongly connected into the power supply.
8. A current output detection device, comprising:
the device comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring 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;
the second acquisition module is used for acquiring an actual compliance voltage value output by the current output unit when the current output unit works under the target current signal and a detection voltage signal output by a detection unit connected with the current output unit;
the calculation module is used for determining a detection current signal according to the detection voltage signal;
a state determination module for determining an operating state of the current output unit according to a correlation among the supply voltage signal, the maximum compliance voltage signal, the actual compliance voltage signal, and the detection voltage signal, and a correlation between the target current signal and the detection current signal.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any of claims 5 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 5 to 7.
CN202210134050.3A 2022-02-14 2022-02-14 Current output detection circuit, method and device, electronic device and storage medium Pending CN114510397A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210134050.3A CN114510397A (en) 2022-02-14 2022-02-14 Current output detection circuit, method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210134050.3A CN114510397A (en) 2022-02-14 2022-02-14 Current output detection circuit, method and device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN114510397A true CN114510397A (en) 2022-05-17

Family

ID=81552028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210134050.3A Pending CN114510397A (en) 2022-02-14 2022-02-14 Current output detection circuit, method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114510397A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116010200A (en) * 2022-12-27 2023-04-25 中科可控信息产业有限公司 Voltage output method, mainboard, voltage output device and computer equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116010200A (en) * 2022-12-27 2023-04-25 中科可控信息产业有限公司 Voltage output method, mainboard, voltage output device and computer equipment
CN116010200B (en) * 2022-12-27 2024-09-17 中科可控信息产业有限公司 Voltage output method, mainboard, voltage output device and computer equipment

Similar Documents

Publication Publication Date Title
CN102216793B (en) System and method for measuring battery internal resistance
CN109782111B (en) Three-phase three-wire system electric energy metering system wrong wiring analysis method
KR20140104893A (en) Apparatus and method for detecting faults in a battery system
US10718810B2 (en) Power drive transistor resonance sensor
CN104571079A (en) Wireless long-distance fault diagnosis system based on multiple-sensor information fusion
CN110632912B (en) DCS power system fault diagnosis method
US9882572B2 (en) Field device and detector
WO2023284039A1 (en) Method and system for diagnosing short circuit abnormality inside of lithium battery pack
CN114510397A (en) Current output detection circuit, method and device, electronic device and storage medium
CN112649758A (en) Open-circuit fault detection method and device and computer equipment
CN110764027A (en) Electric connector intermittent fault diagnosis method based on frequency spectrum characteristic change
Nandi et al. Diagnosis of induction motor faults using frequency occurrence image plots—a deep learning approach
CN116866222A (en) Intelligent network cable fault detection method, system, equipment and storage medium
CN109425803B (en) Analog quantity disconnection fault detection method, system and acquisition device
CN110222399B (en) Power health assessment method and device
CN111398810A (en) Slip ring electric spark detection and diagnosis system and detection and diagnosis method
CN220690299U (en) Temperature sampling circuit
CN112858977A (en) Hall current sensor chip fault detection circuit and detection method
CN111489542A (en) Receiving circuit of M-Bus instrument Bus
CN213398823U (en) Circuit detection device
CN220525896U (en) Open-short circuit test circuit based on hardware short-term test
CN114019222B (en) Half-wave detection method for high-precision measurement of residual current
CN113960124B (en) Portable ECT system with image correction function
US20230341466A1 (en) Synchronous monitoring circuit and synchronous monitoring method for battery management system
CN111190050B (en) Electromagnetic signal interference detection system and method based on FPGA

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