CN109188248B - Circuit diagnosis device, method, equipment and computer readable storage medium - Google Patents

Circuit diagnosis device, method, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109188248B
CN109188248B CN201811063082.9A CN201811063082A CN109188248B CN 109188248 B CN109188248 B CN 109188248B CN 201811063082 A CN201811063082 A CN 201811063082A CN 109188248 B CN109188248 B CN 109188248B
Authority
CN
China
Prior art keywords
circuit
signal
diagnosis
input end
processing system
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.)
Active
Application number
CN201811063082.9A
Other languages
Chinese (zh)
Other versions
CN109188248A (en
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.)
Hangzhou Hollysys Automation Co Ltd
Original Assignee
Hangzhou Hollysys Automation 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 Hangzhou Hollysys Automation Co Ltd filed Critical Hangzhou Hollysys Automation Co Ltd
Priority to CN201811063082.9A priority Critical patent/CN109188248B/en
Publication of CN109188248A publication Critical patent/CN109188248A/en
Application granted granted Critical
Publication of CN109188248B publication Critical patent/CN109188248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2801Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP]
    • G01R31/2806Apparatus therefor, e.g. test stations, drivers, analysers, conveyors
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2801Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP]
    • G01R31/281Specific types of tests or tests for a specific type of fault, e.g. thermal mapping, shorts testing
    • G01R31/2812Checking for open circuits or shorts, e.g. solder bridges; Testing conductivity, resistivity or impedance

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)

Abstract

The application discloses a circuit diagnosis device includes: the system comprises a signal acquisition circuit, a signal diagnosis circuit and a signal processing system, wherein the signal acquisition circuit is used for acquiring a level signal of a detection point and outputting an optical coupling level signal passing through an optical coupler in the signal acquisition circuit; the signal diagnosis circuit is used for comparing and diagnosing the voltage value of the detection point and the voltage value of a reference voltage source of the signal diagnosis circuit through a comparator of the signal diagnosis circuit to obtain a diagnosis level signal; the signal processing system is used for processing the optical coupling level signal and the diagnosis level signal to obtain circuit state information, wherein the detection point is a circuit detection point at the output end side of the field side equipment. The circuit diagnosis device is simple in circuit design, easy to operate and excellent in customer experience. The invention also provides a circuit diagnosis method, a device and a computer readable storage medium, which have the same advantages as the method.

Description

Circuit diagnosis device, method, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of power technologies, and in particular, to a circuit diagnosis apparatus, method, device, and computer-readable storage medium.
Background
In a power distribution network, a distribution line is the most main component and is also the core component of the whole power distribution network, and has important influence on the stability and reliability of the operation of the whole power distribution network. In the actual production process, due to the fact that the design and construction are not standard, the phenomena of broken lines, leakage lines and grounding are caused, or the phenomena of short circuits and open circuits slowly occur when the device is in a humid and easily corroded environment for a long time.
At present, the industry mostly uses a pulse detection mode, the state of an external signal is changed temporarily by sending dynamic pulses, a circuit is periodically opened, and line fault diagnosis is realized by reading back whether a signal acquisition port signal holding capacitor has a level or not. The diagnostic circuit reads back a level signal, and a driving device is required to be added on the input side of pulse sampling: an opto-coupler or a bus driver. The signal holding capacitor parameter selection must make a line state judgment before the voltage across the capacitor drops to a level where it cannot be read back correctly. Inaccurate parameter selection or diagnosis errors due to external environmental influences. The circuit diagnosis circuit is difficult in capacitance type selection, so that the circuit design is complex and the customer experience is poor.
Therefore, how to provide a solution to the above technical problems is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a circuit diagnosis device and method, which avoid the use of a capacitor element, have simple circuit design, are easy to operate and have excellent customer experience.
To solve the above-mentioned technical problem, the present invention provides a circuit diagnosis apparatus comprising:
the system comprises a signal acquisition circuit, a signal diagnosis circuit and a signal processing system, wherein the input end of the signal acquisition circuit is connected with the output end of field side equipment, the output end of the signal acquisition circuit is connected with the signal processing system, the input end of the signal diagnosis circuit is connected with the output end of the field side equipment, and the output end of the signal diagnosis circuit is connected with the signal processing system;
the signal acquisition circuit is used for acquiring a level signal of a detection point and outputting an optical coupling level signal passing through an optical coupler in the signal acquisition circuit; the signal diagnosis circuit is used for comparing and diagnosing the voltage value of the detection point and the voltage value of a reference voltage source of the signal diagnosis circuit through a comparator of the signal diagnosis circuit to obtain a diagnosis level signal; the signal processing system is used for processing the optical coupling level signal and the diagnosis level signal to obtain circuit state information, wherein the detection point is a circuit detection point on the output end side of the field side equipment.
Optionally, the method further includes:
and the signal display system is used for sending the circuit state information to the main controller so as to display the circuit state on a display interface.
Optionally, the signal acquisition circuit includes current-limiting resistor, divider resistor and the opto-coupler, wherein, current-limiting resistor's input with on-the-spot side equipment output is connected, current-limiting resistor's output with divider resistor's input is connected, the input of opto-coupler connects in parallel divider resistor, the output of opto-coupler with signal processing system connects.
Optionally, the signal diagnosis circuit includes an external resistor, the comparator, and the reference voltage source, where the external resistor is connected in parallel to the field-side device, an output terminal of the field-side device is connected to a negative input terminal of the comparator, a positive input terminal of the comparator is connected to the reference voltage source, and an output terminal of the comparator is connected to the signal processing system.
Optionally, the signal diagnosis circuit further includes:
and the input end of the protection circuit is connected with the detection point, and the output end of the protection circuit is connected with the negative electrode input end of the comparator.
Optionally, the signal diagnosis circuit further includes:
and the input end of the voltage regulating circuit is connected with the reference voltage source, and the output end of the voltage regulating circuit is connected with the positive input end of the comparator.
The invention also provides a method for circuit diagnosis, which comprises the following steps:
the signal acquisition circuit acquires a level signal of a detection point at one side of the output end of the field side equipment and outputs an optical coupler level signal passing through an optical coupler in the signal acquisition circuit;
the signal diagnosis circuit carries out circuit diagnosis to obtain a diagnosis level signal, wherein the voltage value of the detection point and the voltage value of the reference voltage source are compared and diagnosed by the comparator;
the signal diagnosis circuit collects the diagnosis level signal and sends the diagnosis level signal to the signal processing system;
and the signal processing system processes the diagnosis level signal to obtain circuit state information.
Optionally, after the signal processing system processes the diagnostic level signal to obtain the circuit state information, the method further includes:
and sending the circuit state information to the main controller so as to display the circuit state on a display interface.
The present invention also provides a circuit diagnosis apparatus comprising:
a memory for storing a computer program;
a processor for implementing the steps of the above-described method of circuit diagnosis when executing the computer program.
The invention also provides 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 above-mentioned method of circuit diagnosis.
The present application provides a circuit diagnosis apparatus including: signal acquisition circuit, signal diagnostic circuit and signal processing system. The input end of the signal acquisition circuit is connected with the output end of the field side equipment, the output end of the signal acquisition circuit is connected with the signal processing system, the input end of the signal diagnosis circuit is connected with the output end of the field side equipment, and the output end of the signal diagnosis circuit is connected with the signal processing system; the signal acquisition circuit is used for acquiring a level signal of a detection point and outputting an optical coupling level signal of an optical coupler in the signal acquisition circuit; the signal diagnosis circuit is used for comparing and diagnosing the voltage value of the detection point and the voltage value of a reference voltage source of the signal diagnosis circuit through a comparator of the signal diagnosis circuit to obtain a diagnosis level signal; the signal processing system is used for processing the optical coupling level signal and the diagnosis level signal to obtain circuit state information, wherein the detection point is a circuit detection point at the output end side of the field side equipment.
Therefore, the circuit diagnosis device provided by the invention has the advantages that the signal acquisition circuit acquires the level signals of the detection points, and further the state judgment is carried out in a level mode; when the signal diagnosis circuit carries out line diagnosis, the voltage value of the detection point is compared with the voltage value of the reference source at the positive input end of the comparator in the information diagnosis circuit to obtain a diagnosis level signal, and then the diagnosis of the line is realized in a digital quantity mode of the diagnosis level signal, so that the use of a capacitance element which is difficult to select is avoided. The invention also provides a circuit diagnosis method, a device and a computer readable storage medium, which have the same advantages as the method and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a circuit diagnosis device provided in the present invention;
FIG. 2 is a schematic diagram of another circuit diagnostic apparatus according to the present invention;
FIG. 3 is a circuit diagram of a signal acquisition circuit according to the present invention;
FIG. 4 is a circuit diagram of another signal acquisition circuit provided by the present invention;
FIG. 5 is a schematic diagram of a software implementation process of circuit diagnosis provided in the present invention;
fig. 6 is a schematic diagram of a circuit diagnosis method according to the present invention.
Detailed Description
The core of the application is to provide a circuit diagnosis device, a method, equipment and a computer readable storage medium. In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the "output terminal" and "input terminal" mentioned in the present invention are not limited to end points, for example, the output terminal of a is connected to the input terminal of B, and it should be understood that a is connected to B in some way, and the output terminal of a may be the end point of the output terminal of a, or any point on a direct wire between a and B, as long as the output of a is ensured.
In the prior art, the circuit diagnosis device is complex and low in accuracy, so that the customer experience is poor. Referring to fig. 1, fig. 1 is a schematic structural diagram of a circuit diagnosis device according to the present invention.
The embodiment provides a circuit diagnosis device, which comprises: the input end of the signal acquisition circuit 200 is connected with the output end of the field-side device 100, the output end of the signal acquisition circuit 200 is connected with the signal processing system 400, the input end of the signal diagnostic circuit 300 is connected with the output end of the field-side device 100, and the output end of the signal diagnostic circuit 300 is connected with the signal processing system 400.
Specifically, the signal acquisition circuit 200 is configured to acquire a level signal of a detection point and output an optical coupler level signal passing through an optical coupler in the signal acquisition circuit 200; the signal diagnosis circuit 300 is configured to compare and diagnose the voltage value of the detection point and the voltage value of the reference voltage source of the signal diagnosis circuit 300 by using a comparator of the signal diagnosis circuit 300 to obtain a diagnosis level signal; the signal processing system 400 is configured to process the optical coupler level signal and the diagnosis level signal to obtain circuit state information, where the detection point is a circuit detection point at an output end side of the field-side device.
Specifically, the field-side device 100 includes a field-side sensor and a switching device, and may be a three-wire sensor or a two-wire switch, or may be other devices as long as the object of the present invention is satisfied, and this embodiment is not limited thereto. The signal acquisition circuit 200 is used for acquiring level signals of the detection points and outputting optical coupling level signals of optical couplers in the signal acquisition circuit, and the signal processing system 400 processes the optical coupling level signals to obtain circuit state information. The detection point is a circuit detection point at the output end side of the field side equipment, the specific position of the invention is not limited, and a user can select the point according to the actual requirement as long as the purpose of the invention is met.
Specifically, the circuit sends the diagnosed circuit state information data to the upper controller through the physical layer interface and the communication protocol, and finally the circuit state information data is displayed on the display interface. Generally, the signal acquisition circuit 200 includes a current-limiting resistor, a voltage-dividing resistor and an optical coupler, and after the optical coupler is turned on, most of signals of the field-side device load two ends of the current-limiting resistor, so that the current-limiting resistor is not limited in this embodiment. Preferably, the current limiting resistor is a power resistor, and the resistance value and the power size of the current limiting resistor can be selected according to actual specification requirements. This embodiment does not restrict the opto-coupler, can be ordinary opto-coupler, also can be the light speed opto-coupler, and the user can set for according to actual demand. In this embodiment, the physical layer transmission port is not limited, and an RS485 interface, an RS232 interface, and an RS422 interface may be used, or other interfaces may be used as long as the requirements of the present invention are met. Wherein, RS485 interface is selected. The RS485 interface is a communication interface based on a serial port. The RS-485 interface adopts a combination of a balanced driver and a differential receiver, so that the common-mode interference resistance is enhanced, namely, the noise interference resistance is good. The electrical characteristic of RS-485 is that logic '1' is expressed by the voltage difference between two lines being + (2-6) V; a logical "0" is represented by a voltage difference between two lines of- (2 to 6) V. The interface signal level is low, and the chip of the interface circuit is not easy to damage; the highest data transmission rate of the RS-485 is 10 Mbps. The maximum communication distance of RS-485 is about 1219M, the maximum transmission rate is 10Mb/S, the transmission rate is inversely proportional to the transmission distance, and the maximum communication distance can be reached at the transmission rate of 100 Kb/S. The communication protocol may be a Profibus DP communication protocol, or may be another communication protocol, as long as the object of the present invention is satisfied.
When the channel of the signal acquisition circuit 200 is closed and the optocoupler is switched on, the signal processing system 400 acquires a high level state instead of an initial low level state, and the circuit of the field side device is a normal circuit. When the channel of the signal acquisition circuit 200 is closed, the optocoupler is not switched on, and the level signal acquired by the signal processing system 400 is in a low level state, the signal acquisition circuit 200 is connected with a signal diagnosis circuit 300, and the voltage value of the detection point and the voltage value of the reference voltage source of the signal diagnosis circuit 300 are compared and diagnosed by a comparator of the signal diagnosis circuit 300 to obtain a diagnosis level signal; diagnostic level signals are collected by the signal processing system 400 to determine the state of the circuit. The signal diagnosis circuit 300 determines whether the voltage values at the positive input terminal and the negative input terminal of the comparator are equal to each other, so as to determine that the circuit is normal when the voltage values are equal to each other, or else, the circuit fails. The signal processing system 400 includes a CPU that collects field side device level signal information and further processes it. It should be noted that the reference voltage source provided by the invention ensures that the optical coupler is not conducted by mistake in the diagnosis process. The comparator is not limited as long as the object of the present invention is satisfied.
Based on the above embodiment, it can be seen that, in the circuit diagnosis device provided in this embodiment, the signal acquisition circuit acquires a level signal at the output end of the field-side device, and further performs state judgment in a level manner; when the signal diagnosis circuit carries out line diagnosis, the voltage value of the detection point is compared with the voltage value of the reference voltage source of the signal diagnosis circuit in the signal diagnosis circuit to obtain a diagnosis level signal, and then the diagnosis of the line is realized in a digital quantity mode of the diagnosis level signal, so that the use of a capacitance element which is difficult to select is avoided.
In another embodiment, the circuit diagnosis apparatus further includes a signal display system 500, configured to send the circuit state information to the main controller, so that the circuit state is displayed on a display interface, specifically referring to fig. 2, where fig. 2 is a schematic structural diagram of another circuit diagnosis apparatus provided in the present invention.
Specifically, the signal display system 500 is used for sending the circuit status information to the main controller, so that the circuit status is displayed on the display interface. The present embodiment does not limit the display interface, and the user can set the display interface according to the actual requirements of the user, for example, the display interface may be an LCD screen or an OLED screen. The circuit status information is sent to the main controller via the signal processing system 400 through a communication protocol, preferably a Profibus DP communication protocol, so that the result is displayed on the display interface, where the communication protocol is not limited in this embodiment, and can be set by the user according to the actual situation. Furthermore, if the circuit is a fault circuit, alarm information can appear on the display interface, the alarm mode embodiment corresponding to the specific alarm information is not limited, and the channel indicator lights flicker to remind a user of the circuit fault, so that the user can find the circuit fault in time and take corresponding operations.
Based on the above embodiments, the signal display system 500 in the circuit diagnosis device provided in this embodiment displays circuit information more intuitively, wherein the circuit information includes normal circuit information and also includes fault circuit information, which improves user experience.
In the above circuit diagnosis apparatus, the signal acquisition circuit 200 includes: the device comprises a current-limiting resistor, a divider resistor and an optical coupler, wherein the input end of the current-limiting resistor is connected with the output end of the field side device 100, the output end of the current-limiting resistor is connected with the input end of the divider resistor, the input end of the optical coupler is connected with the divider resistor in parallel, and the output end of the optical coupler is connected with the signal processing system 400.
Specifically, the current-limiting resistor is not limited in this embodiment, and a user may limit the current-limiting resistor according to actual requirements, for example, the current-limiting resistor is a power resistor, and the resistance value and the power size of the current-limiting resistor may be selected according to actual specification requirements. This embodiment does not restrict the opto-coupler, can be ordinary opto-coupler, also can be the light speed opto-coupler, and the user can set for according to actual demand. A general field-side device connected to the signal acquisition circuit 200 in the field includes two types, namely a three-wire sensor and a two-wire switch, and specifically, refer to fig. 3 and 4 respectively, where fig. 3 is a circuit diagram of a signal acquisition circuit according to the present invention, and fig. 4 is a circuit diagram of another signal acquisition circuit according to the present invention. Wherein R1 is a current limiting resistor, R2 is a voltage dividing resistor, R3 is an optocoupler, S1 is the field-side device 100, point a is a detection point at the output end side of the field-side device 100, and DI Module is a digital quantity acquisition Module, i.e., the signal acquisition circuit 200.
Based on the above embodiments, the signal acquisition circuit 200 of the circuit diagnosis apparatus provided in this embodiment is configured to acquire a level signal of a detection point and output an optical coupler level signal passing through an optical coupler in the signal acquisition circuit 200, so as to determine a circuit state, and if the optical coupler is turned on and the level signal is a high level signal instead of an initial low level signal, the circuit of the field-side device 100 is normal.
In the above circuit diagnosis apparatus, the signal diagnosis circuit 300 includes: the external resistor is connected in parallel with the field-side device 100, the output end of the field-side device 100 is connected with the negative input end of the comparator, the positive input end of the comparator is connected with the reference voltage source, and the output end of the comparator is connected with the signal processing system 400. Specifically, the external resistor and the resistor of the signal acquisition circuit 200 divide the voltage at the output terminal of the field-side device 100 to obtain the voltage at the output terminal of the field-side device 100, and if a circuit disconnection or a ground fault occurs, the voltage at the output terminal of the field-side device 100 is not equal to the voltage of the reference voltage source at the positive input terminal of the comparator, and then the channel fails. It should be noted that in this process, the reference voltage source voltage ensures that the optocoupler does not conduct.
Specifically, to detect a line fault, a sufficiently large quiescent current must pass through, and it is ensured that the optocoupler is not erroneously turned on. After the external resistor is connected, in order to avoid affecting a normal signal acquisition channel, the voltage generated by the voltage of the output end of the quiescent current at the field side device 100 is to enable the optical coupler to be normally closed, namely, the quiescent current is smaller than the normal on-state voltage of the optical coupler, and the value of the external resistor can be calculated. The voltage after the opto-coupler is turned off forms quiescent current on external resistance and information acquisition circuit 200's resistance, in order to prevent the false positive line fault when the opto-coupler switches on, generally can reserve the surplus, and the voltage of actual calculation can slightly be less than the voltage when the opto-coupler is turned off. From the above conditions, the quiescent current can be calculated by ohm's law, and the voltage value generated by the quiescent current at this time on the current limiting resistor and the voltage dividing resistor, that is, the voltage value of the voltage at the output terminal of the field-side device 100 at this time is used as the comparator reference voltage.
Based on the above embodiments, the signal diagnostic circuit 300 of the circuit diagnostic apparatus provided in this embodiment is used to compare and diagnose the voltage value at the detection point of the output terminal of the field-side device 100 and the voltage value of the reference voltage source of the signal diagnostic circuit 300 by the comparator of the signal diagnostic circuit 300 to obtain the diagnostic level signal, and further diagnose the circuit by the level signal, which is simple to operate.
In the above circuit diagnosis apparatus, the apparatus further includes:
and the input end of the protection circuit is connected with the detection point, and the output end of the protection circuit is connected with the negative electrode input end of the comparator.
Specifically, the detection point on the output side of the field-side device 100 is connected to the input terminal of the protection circuit, and the output terminal of the protection circuit is connected to the negative terminal of the comparator. The voltage of the negative terminal of the comparator is compared with the reference voltage of the positive terminal, when the line is normal, the voltage of the output terminal of the field side device 100 is greater than the reference voltage due to the existence of the static current, and the output logic of the comparator is low; in the event of a line fault, the voltage at the output of the field-side device 100 is less than the reference voltage and the comparator outputs a logic high. Specifically, the protection circuit can be selected to be connected with a large-resistance resistor and a voltage regulator tube in series, and it is worth noting that the parameters of the voltage regulator tube are selected to be two points, firstly, the stabilized voltage of the voltage regulator tube is smaller than the power voltage of the comparator, secondly, the leakage current of the voltage regulator tube is as small as possible, and the leakage current of the voltage regulator tube is calculated into the static current.
Based on the above embodiments, the circuit diagnosis device provided by this embodiment can meet different withstand voltage requirements by adjusting the external resistor and the protection circuit, and the channel voltage supports 48V and 60V, and because the channel voltage is expanded on the original acquisition channel, the acquisition channel can still be applied in high-speed situations, and can realize functions such as SOE.
In the above circuit diagnosis apparatus, the apparatus further includes:
and the input end of the voltage regulating circuit is connected with a reference voltage source, and the output end of the voltage regulating circuit is connected with the positive input end of the comparator.
Specifically, the voltage provided may be obtained by dividing the voltage by a reference source or a reference voltage source using a resistor, and then the voltage is connected to the negative terminal of the comparator of the channel diagnosis circuit through the follower.
In any one of the above circuit diagnosis devices, the optical coupler is a high-speed optical coupler. Specifically, the response speed of the high-speed optocoupler is nanosecond level, and the high-level and low-level transmission delay time of the photoelectric device is short, so that the time accuracy is high.
Further, the present invention may also be set by software editing, specifically referring to fig. 5, and fig. 5 is a schematic diagram of a software implementation process of circuit diagnosis provided by the present invention.
The circuit diagnosis is used as a parameter, each channel is independently set, the default is not enabled, and if the circuit diagnosis function is used, the circuit diagnosis selection needs to be selected to be enabled on a display interface.
The method specifically comprises the following steps:
if the circuit diagnosis is enabled, the user can set the circuit diagnosis on the interface; circuit diagnosis is taken as a parameter, each channel is independently set, and default is not enabled; if the circuit diagnosis function is used, the circuit diagnosis selection needs to be selected as the enabling on the display interface;
the parameters enable or disable the information diagnosis circuit by sending a request through a parameter message of a communication protocol; if the information diagnosis circuit is enabled, an external switch or a sensor connection resistor is required;
after the collected circuit positive end state enters the main controller, digital sliding average filtering is carried out to obtain an effective signal so as to improve the circuit diagnosis accuracy and reliability;
judging whether the diagnosis state is faulty or not, and if not, setting the state of the information acquisition circuit to be 0; if the current state is the fault diagnosis state, the corresponding channel circuit fault diagnosis position is set to be 1, data are reported to the main controller through communication protocol diagnosis, an alarm is given on a display interface of the main controller, the state of the information acquisition circuit is set to be 0, and the channel indicator lamp flickers to remind a user of line faults.
The following describes a method for circuit diagnosis provided by an embodiment of the present application, and the method for circuit diagnosis described below and the apparatus for circuit diagnosis described above may be referred to correspondingly. Referring to fig. 6, fig. 6 is a schematic diagram of a circuit diagnosis method according to the present invention.
The invention provides a circuit diagnosis method, which comprises the following steps:
s100, the signal acquisition circuit acquires level signals of detection points on one side of the output end of the field side equipment and outputs optical coupler level signals of optical couplers in the signal acquisition circuit.
Specifically, a suitable detection point is selected, and a general detection point is a circuit detection point on the output end side of the field side equipment, so that a user can set the detection point according to actual requirements. The level signal is output through an optical coupler in the signal acquisition circuit to obtain an optical coupler level signal.
And S110, the signal diagnosis circuit performs circuit diagnosis to obtain a diagnosis level signal, wherein the voltage value of the detection point and the voltage value of the reference voltage source are compared and diagnosed by the comparator to obtain the diagnosis level signal.
Specifically, the diagnosis circuit carries out circuit diagnosis, and when the optical coupler is switched on and the level signal is a high level signal instead of an initial low level signal, the circuit is normal; when the optical coupler is disconnected and the level signal is a low level signal, the voltage value of the detection point and the voltage value of the reference voltage source are compared and diagnosed through the comparator to obtain a diagnosis level signal, at the moment, if the voltage value of the detection point is equal to the voltage value of the reference voltage source, the circuit is normal, otherwise, the circuit breaks down. It should be noted that in this process, the optocoupler is not turned on by mistake.
S120, the signal diagnosis circuit collects diagnosis level signals and sends the diagnosis level signals to a signal processing system;
and S130, the signal processing system processes the diagnosis level signal to obtain circuit state information.
For the introduction of the circuit diagnosis method provided by the present invention, please refer to the above examples, which are not repeated herein.
As a specific implementation manner, based on the above embodiment, the method for circuit diagnosis further includes:
and sending the circuit state information to the main controller so as to display the circuit state on a display interface.
For the introduction of the circuit diagnosis method provided by the present invention, please refer to the above examples, which are not repeated herein.
The following describes a circuit diagnosis device provided by an embodiment of the present application, and the circuit diagnosis device described below and the apparatus for circuit diagnosis described above may be referred to correspondingly.
The present invention also provides a circuit diagnosis apparatus comprising:
a memory for storing a computer program;
a processor for implementing the steps of the above method of circuit diagnosis when executing the computer program.
For the introduction of the circuit diagnosis device provided by the present invention, please refer to the above examples, which are not repeated herein.
The following describes a computer-readable storage medium provided by an embodiment of the present application, and the computer-readable storage medium described below and the apparatus for circuit diagnosis described above may be referred to correspondingly.
The invention also provides 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 for circuit diagnosis described above.
For the introduction of a computer-readable storage medium provided by the present invention, please refer to the above examples, which are not repeated herein.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above apparatus, methods, devices and computer readable storage media for circuit diagnostics are provided. A detailed description is given. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (7)

1. An apparatus for circuit diagnostics, comprising:
the system comprises a signal acquisition circuit, a signal diagnosis circuit and a signal processing system, wherein the input end of the signal acquisition circuit is connected with the output end of field side equipment, the output end of the signal acquisition circuit is connected with the signal processing system, the input end of the signal diagnosis circuit is connected with the output end of the field side equipment, and the output end of the signal diagnosis circuit is connected with the signal processing system; the field side equipment connected with the signal acquisition circuit is a three-wire sensor or a two-wire switch;
the signal acquisition circuit is used for acquiring a level signal of a detection point and outputting an optical coupling level signal passing through an optical coupler in the signal acquisition circuit; the signal diagnosis circuit is used for comparing and diagnosing the voltage value of the detection point and the voltage value of a reference voltage source of the signal diagnosis circuit through a comparator of the signal diagnosis circuit to obtain a diagnosis level signal; the signal processing system is used for processing the optocoupler level signal and the diagnosis level signal to obtain circuit state information, wherein the detection point is a circuit detection point at the output end side of the field side equipment;
the signal acquisition circuit comprises a current-limiting resistor, a voltage-dividing resistor and the optocoupler, wherein the input end of the current-limiting resistor is connected with the output end of the field-side equipment, the output end of the current-limiting resistor is connected with the input end of the voltage-dividing resistor, the input end of the optocoupler is connected with the voltage-dividing resistor in parallel, and the output end of the optocoupler is connected with the signal processing system; the voltage of the reference voltage source ensures that the optocoupler cannot be conducted mistakenly;
the signal diagnosis circuit includes: the external resistor is connected with the field side equipment in parallel, the output end of the field side equipment is connected with the negative input end of the comparator, the positive input end of the comparator is connected with the reference voltage source, and the output end of the comparator is connected with the signal processing system; the signal diagnostic circuit further includes:
the input end of the protection circuit is connected with the detection point, and the output end of the protection circuit is connected with the negative input end of the comparator; the protection circuit is formed by connecting a large-resistance resistor and a voltage stabilizing tube in series;
when the signal acquisition circuit channel is closed and the optocoupler is switched on, the signal processing system acquires a high level state instead of an initial low level state, and a circuit of the field side equipment is a normal circuit; when the signal acquisition circuit channel is closed, the optocoupler is not conducted, and the level signal acquired by the signal processing system is in a low level state, the signal acquisition circuit is connected with the signal diagnosis circuit, and the voltage value of the detection point and the voltage value of the reference voltage source of the signal diagnosis circuit are compared and diagnosed by a comparator of the signal diagnosis circuit to obtain a diagnosis level signal; the signal processing system acquires a diagnosis level signal to judge the state of the circuit, wherein the signal diagnosis circuit judges the state of the circuit by judging whether the voltage values of the positive input end and the negative input end of the comparator are equal, when the voltage values are equal, the circuit is normal, otherwise, the circuit is in fault.
2. The circuit diagnostic apparatus of claim 1, further comprising:
and the signal display system is used for sending the circuit state information to the main controller so as to display the circuit state on a display interface.
3. The circuit diagnostic apparatus of claim 1, wherein the signal diagnostic circuit further comprises:
and the input end of the voltage regulating circuit is connected with the reference voltage source, and the output end of the voltage regulating circuit is connected with the positive input end of the comparator.
4. A method of circuit diagnostics, comprising:
the signal acquisition circuit acquires a level signal of a detection point at one side of the output end of the field side equipment and outputs an optical coupler level signal passing through an optical coupler in the signal acquisition circuit; the field side equipment connected with the signal acquisition circuit is a three-wire sensor or a two-wire switch;
the signal diagnosis circuit carries out circuit diagnosis to obtain a diagnosis level signal, wherein the voltage value of the detection point and the voltage value of the reference voltage source are compared and diagnosed by the comparator to obtain the diagnosis level signal;
the signal diagnosis circuit collects the diagnosis level signal and sends the diagnosis level signal to the signal processing system;
the signal processing system processes the diagnosis level signal to obtain circuit state information;
the signal acquisition circuit comprises a current-limiting resistor, a voltage-dividing resistor and the optocoupler, wherein the input end of the current-limiting resistor is connected with the output end of the field-side equipment, the output end of the current-limiting resistor is connected with the input end of the voltage-dividing resistor, the input end of the optocoupler is connected with the voltage-dividing resistor in parallel, and the output end of the optocoupler is connected with the signal processing system; the voltage of the reference voltage source ensures that the optocoupler cannot be conducted mistakenly;
the signal diagnosis circuit includes: the external resistor is connected with the field side equipment in parallel, the output end of the field side equipment is connected with the negative input end of the comparator, the positive input end of the comparator is connected with the reference voltage source, and the output end of the comparator is connected with the signal processing system; the signal diagnostic circuit further includes:
the input end of the protection circuit is connected with the detection point, and the output end of the protection circuit is connected with the negative input end of the comparator; the protection circuit is formed by connecting a large-resistance resistor and a voltage stabilizing tube in series;
when the signal acquisition circuit channel is closed and the optocoupler is switched on, the signal processing system acquires a high level state instead of an initial low level state, and a circuit of the field side equipment is a normal circuit; when the signal acquisition circuit channel is closed, the optocoupler is not conducted, and the level signal acquired by the signal processing system is in a low level state, the signal acquisition circuit is connected with the signal diagnosis circuit, and the voltage value of the detection point and the voltage value of the reference voltage source of the signal diagnosis circuit are compared and diagnosed by a comparator of the signal diagnosis circuit to obtain a diagnosis level signal; the signal processing system acquires a diagnosis level signal to judge the state of the circuit, wherein the signal diagnosis circuit judges the state of the circuit by judging whether the voltage values of the positive input end and the negative input end of the comparator are equal, when the voltage values are equal, the circuit is normal, otherwise, the circuit is in fault.
5. The method of circuit diagnosis according to claim 4, wherein the signal processing system processes the diagnosis level signal to obtain the circuit state information, and comprises:
and sending the circuit state information to the main controller so as to display the circuit state on a display interface.
6. A circuit diagnostic apparatus characterized by comprising:
a memory for storing a computer program;
processor for implementing the steps of the method of circuit diagnosis according to claim 4 or 5 when executing said computer program.
7. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for circuit diagnosis according to claim 4 or 5.
CN201811063082.9A 2018-09-12 2018-09-12 Circuit diagnosis device, method, equipment and computer readable storage medium Active CN109188248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811063082.9A CN109188248B (en) 2018-09-12 2018-09-12 Circuit diagnosis device, method, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811063082.9A CN109188248B (en) 2018-09-12 2018-09-12 Circuit diagnosis device, method, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109188248A CN109188248A (en) 2019-01-11
CN109188248B true CN109188248B (en) 2021-07-16

Family

ID=64910624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811063082.9A Active CN109188248B (en) 2018-09-12 2018-09-12 Circuit diagnosis device, method, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109188248B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419082B (en) * 2021-06-21 2023-09-26 湖南行必达网联科技有限公司 Input signal processing circuit with detection and diagnosis functions

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087334A (en) * 2009-12-04 2011-06-08 北京广利核系统工程有限公司 High-reliability digital quantity acquisition system
CN103592597A (en) * 2013-11-22 2014-02-19 北京机械设备研究所 Fault mutual-detection method for voltage linear isolating circuit and voltage comparison circuit
CN203929852U (en) * 2014-06-11 2014-11-05 南京华士电子科技有限公司 A kind of novel weak voltage detecting circuit
CN106990353A (en) * 2017-05-09 2017-07-28 浙江英洛华新能源科技有限公司 A kind of relay fault detecting circuit and the relay with the circuit
CN107607862A (en) * 2017-09-01 2018-01-19 北京龙鼎源科技股份有限公司 Circuit state diagnostic circuit and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087334A (en) * 2009-12-04 2011-06-08 北京广利核系统工程有限公司 High-reliability digital quantity acquisition system
CN103592597A (en) * 2013-11-22 2014-02-19 北京机械设备研究所 Fault mutual-detection method for voltage linear isolating circuit and voltage comparison circuit
CN203929852U (en) * 2014-06-11 2014-11-05 南京华士电子科技有限公司 A kind of novel weak voltage detecting circuit
CN106990353A (en) * 2017-05-09 2017-07-28 浙江英洛华新能源科技有限公司 A kind of relay fault detecting circuit and the relay with the circuit
CN107607862A (en) * 2017-09-01 2018-01-19 北京龙鼎源科技股份有限公司 Circuit state diagnostic circuit and method

Also Published As

Publication number Publication date
CN109188248A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
JP2841182B2 (en) Fault tolerant output stage for digital two-conductor bus data communication system
EP1842324B1 (en) Detecting legacy powered device in power over ethernet system
US8049510B2 (en) Method for detecting a fault on a data line
US20040158781A1 (en) Method for determining line faults in a bus system and bus system
CN107959599A (en) A kind of Bus_Off fault test systems and test method
JP2011010190A (en) Disconnection abnormality detecting device
EP3657187B1 (en) Fault detection in a low voltage differential signaling (lvds) system
CN109188248B (en) Circuit diagnosis device, method, equipment and computer readable storage medium
CN105467262A (en) Method and device for detection of connection error of display equipment terminal
CN111669299A (en) Communication failure detection device
JP2014032072A (en) Cable diagnosis device
CN209659302U (en) A kind of interface gating circuit and communication equipment
CN108353011B (en) Bus system and method for diagnosing short circuits
CN116055654B (en) MIPI D_PHY signal analysis circuit and method, and electronic device
CN110426582B (en) Line detection system
CN1333529C (en) Clock signal detection method and apparatus in electronic devices
JP2009181431A (en) Communication device
CN109274615B (en) Bus signal reflection suppression method, device and system and control circuit
CN209992650U (en) Battery wire harness detection circuit
JP6823729B2 (en) Video equipment and connection judgment method
CN209992565U (en) Input port with port state self-diagnosis function
JPH0472937A (en) Fault diagnostic device
CN214895749U (en) Connection state detection circuit, connection state detection device, and electronic apparatus
CN110412345B (en) Device for field verification of multi-device power over ethernet
CN109147643A (en) Discrimination method, device, display panel and the storage medium on rise/fall edge

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
GR01 Patent grant
GR01 Patent grant