Relay parameter measurement system and method
By designing a relay parameter measurement system, the operation time and return time of the relay are automatically collected and calculated, and the problems of cumbersome and inefficient in existing methods are solved, and efficient and accurate relay parameter measurement is achieved.
Patent Information
- Application Number
- CN202510384826.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-28
- Publication Date
- 2025-06-10
AI Technical Summary
The existing relay parameter measurement methods are cumbersome and inefficient, and cannot meet the demand for mass production of relays for specific parameter intervals.
A relay parameter measurement system is designed, including a program-controlled power supply module, a coil voltage processing module, a contact signal forming module and a CPU main control module. By automatically collecting the coil voltage signal and contact level signals of the relay, calculating the operation time and return time, and sending measurement data to the upper computer through the Ethernet circuit.
It realizes automation of relay parameter measurement, improves measurement efficiency and accuracy, is suitable for relay parameter screening and purchase inspection, and has good application prospects.
Smart Images

Figure CN120121971A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of relay protection, and particularly relates to a relay parameter measurement system and method. Background Art
[0002] In the field of relay protection, some tripping and closing circuits, power supply monitoring circuits, position monitoring circuits, and voltage switching circuits of relay protection devices are usually designed with relays. Such circuits have requirements for the operating voltage action value, usually in the range of 55% - 70% of the rated action value. According to the requirements of "GB / T 34132-2017 General Technical Conditions for Intelligent Terminal Devices in Intelligent Substations", the action time from the device receiving the protection tripping and closing GOOSE commands to the tripping and closing relay contact outlet of the device should not be greater than 7 ms. The "Q_GDW 11487-2015 Standardized Design Specification for Analog Quantity Input Type Merging Unit and Intelligent Terminal in Intelligent Substation" requires that the action time of the relay contact outlet should not be greater than 5 ms. When the relay leaves the factory, there are discreteness in various parameters. For example, the action value of the relay is usually in the range of 50% - 80% of its rated voltage, and the action time of the relay contact is usually below 10 ms. To design a plug-in that meets the requirements and relevant specifications, it is necessary to measure and classify and screen the relevant parameters of the relay. Therefore, being able to quickly and accurately measure the relay parameters will be a very important task. Some traditional relay parameter measurement methods usually use some instruments such as testers, oscilloscopes, and multimeters, and cooperate with some auxiliary measurement circuits to measure and classify the relay parameters through manual measurement and recording. This measurement method is particularly cumbersome, with a large workload, slow measurement speed, and low measurement efficiency, and cannot meet the requirements for relays in a specific parameter range in batch plug-in production. Summary of the Invention
[0003] The purpose of the present invention is to solve at least one technical problem in the background art, and provide a relay parameter measurement system and method.
[0004] To achieve the above purpose, the present invention provides a relay parameter measurement system, including:
[0005] A programmable power supply module for applying the required measurement voltage to the coil of the relay to be measured;
[0006] A coil voltage processing module for processing the relay coil voltage signal;
[0007] A contact signal forming module, which cooperates with the relay to form a relay contact level signal;
[0008] The CPU main control module is connected to the coil voltage measurement module and the contact signal measurement module, collects the relay coil voltage signal and the relay contact level signal, calculates the relay operation time and return time, then aggregates the calculated measurement data and sends the measurement data to the host computer through the Ethernet circuit;
[0009] The measurement data display and storage module is arranged in the host computer, receives the measurement data, and displays, stores, and prints the measurement data.
[0010] According to one aspect of the present invention, the CPU main control module includes a CPU chip and an ADC chip;
[0011] The ADC chip collects the relay coil voltage;
[0012] The CPU chip collects the level state of the relay contact isolated by the optocoupler through the IO pin to realize the measurement and calculation of the relay operation time and return time;
[0013] The CPU chip analyzes and aggregates the calculated measurement data, and then sends the measurement data to the host computer through the Ethernet circuit.
[0014] According to one aspect of the present invention, the programmable power supply module sets the measurement voltage that meets the measurement requirements according to the rated voltage of the relay, and applies it to the relay coil to be measured to drive the relay to operate and return.
[0015] According to one aspect of the present invention, the coil voltage measurement module divides the relay coil voltage to the input range of the subsequent isolation operational amplifier through a voltage division circuit, then filters out the high-frequency interference on the relay coil voltage through a low-pass filter circuit, and outputs it to the subsequent circuit through the isolation operational amplifier. The subsequent circuit conditions the signal into a signal available for sampling by the ADC chip to realize the acquisition of the relay operation voltage and return voltage.
[0016] According to one aspect of the present invention, the contact signal forming module cooperates with the relay to form the relay contact level signal as:
[0017] One end of the relay contact is connected to the system voltage 5V through a resistor, the other end is connected to the positive input terminal of the primary side of the optocoupler, the negative terminal of the primary side of the optocoupler is connected to the system GND, the secondary side of the optocoupler is connected to the system voltage 5V through a resistor, the other end of the resistor is connected to one end of the secondary side of the optocoupler and is simultaneously connected to the IO pin of the CPU chip, and the other end of the secondary side of the optocoupler is connected to the system GND;
[0018] When the relay contact is closed, the primary side of the optocoupler conducts, forming a logic low level. When the relay contact is open, the primary side of the optocoupler is turned off, forming a logic high level.
[0019] According to one aspect of the present invention, the logic level state collected by the IO pin of the CPU chip is used to determine whether the relay is open or closed, and the action time and return time of the relay contact are calculated based on the typical action waveforms of the closing and opening of the relay contact in combination with the software algorithm.
[0020] To achieve the above object, the present invention also provides a relay parameter measurement method, comprising:
[0021] Apply the required measuring voltage to the relay coil to be tested through the programmable power supply module;
[0022] Process the relay coil voltage signal through the coil voltage processing module;
[0023] The contact signal forming module cooperates with the relay to form a relay contact level signal;
[0024] The CPU main control module is connected with the coil voltage measurement module and the contact signal measurement module, collects the relay coil voltage signal and the relay contact level signal, obtains the relay action time and return time by calculation, and then summarizes the calculated measurement data and sends the measurement data to the host computer through the Ethernet circuit;
[0025] The measurement data is received by a measurement data display and storage module arranged on the host computer, and the measurement data is displayed, stored and printed.
[0026] To achieve the above objectives, the present invention also provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the marine ship monitoring method based on image recognition as described above.
[0027] To achieve the above objectives, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the marine ship monitoring method based on image recognition as described above is implemented.
[0028] According to the solution of the present invention, the relay parameter measurement system proposed in the present invention is used to solve the problems of complicated relay parameter measurement and screening process, low measurement efficiency, low degree of automation, etc. of the relay protection device. The measurement system is simple and reliable, and can realize modular automatic measurement of parameters of multiple relays at the same time, thereby improving the efficiency of relay parameter measurement and screening, with a high level of automation, and is particularly suitable for relay parameter screening and incoming inspection, and has good application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A block diagram schematically showing a structural arrangement of a relay parameter measurement system according to an embodiment of the present invention;
[0030] Figure 2 It is the structural layout diagram of the relay parameter measurement system of Embodiment 1. Detailed implementation manners
[0031] Now, the content of the present invention will be described with reference to exemplary embodiments. It should be understood that the described embodiments are only for enabling those of ordinary skill in the art to better understand and thus implement the content of the present invention, rather than implying any limitation on the scope of the present invention.
[0032] As used herein, the term "comprising" and its variants are to be construed as open-ended terms meaning "including but not limited to". The term "based on" is to be construed as "at least partially based on". The terms "one embodiment" and "an embodiment" are to be construed as "at least one embodiment".
[0033] Figure 1 Schematically shows a structural layout block diagram of a relay parameter measurement system according to an embodiment of the present invention. As Figure 1 shown, in this embodiment, the relay parameter measurement system includes:
[0034] A programmable power supply module for applying a required measurement voltage to the coil of the relay to be measured;
[0035] A coil voltage processing module for processing the relay coil voltage signal;
[0036] A contact signal forming module, cooperating with the relay, to form a relay contact level signal;
[0037] A CPU main control module, connected to the coil voltage measurement module and the contact signal measurement module, to collect the relay coil voltage signal and the relay contact level signal, calculate the relay operation time and return time through calculation, and then summarize the calculated measurement data and send the measurement data to the host computer through an Ethernet circuit;
[0038] A measurement data display and storage module, arranged in the host computer, to receive the measurement data and display, store and print the measurement data.
[0039] Further, according to an embodiment of the present invention, the CPU main control module includes a CPU chip and an ADC chip;
[0040] The ADC chip collects the relay coil voltage;
[0041] The CPU chip collects the level state of the relay contact isolated by an optocoupler through an IO pin to implement the measurement and calculation of the relay operation time and return time;
[0042] The CPU chip analyzes and summarizes the measured data obtained from the calculation, and then sends the measured data to the host computer through the Ethernet circuit.
[0043] Furthermore, according to an embodiment of the present invention, the programmable power supply module sets the measurement voltage that meets the measurement requirements according to the rated voltage of the relay, and applies it to the coil of the relay under test to drive the relay to actuate and return. In this embodiment, the output voltage of the programmable power supply can reach 100V, and the output power can reach 100W, which can meet the demand for the output power of the power supply for simultaneous measurement of multiple groups of relays.
[0044] Furthermore, according to an embodiment of the present invention, the coil voltage measurement module divides the voltage of the relay coil to the input range of the subsequent isolation operational amplifier through a voltage dividing circuit, and then filters out the high-frequency interference on the relay coil voltage through a low-pass filter circuit. After that, it is output to the subsequent circuit through the isolation operational amplifier, and the subsequent circuit conditions the signal into a signal available for sampling by the ADC chip, realizing the acquisition of the actuation voltage and return voltage of the relay.
[0045] In this embodiment, the coil voltage measurement module selects an isolation operational amplifier as the isolation device for sampling signals. The isolation operational amplifier has a high isolation voltage, good linearity and accuracy, can meet the sampling requirements, and the application circuit is simple and reliable. The voltage dividing circuit divides the voltage of the relay coil to the input range of the subsequent isolation operational amplifier; the RC first-order passive low-pass filter circuit effectively filters out the high-frequency interference on the relay coil voltage and improves the sampling accuracy of the DC voltage; the isolation operational amplifier is powered by an isolated regulated DC / DC power supply module; the operational amplifier conditioning circuit converts the differential signal output by the isolation operational amplifier into a single-ended signal for subsequent ADC sampling.
[0046] Furthermore, according to an embodiment of the present invention, the contact signal forming module, in cooperation with the relay, forms the relay contact level signal as:
[0047] One end of the relay contact is connected to the system voltage 5V through a resistor, and the other end is connected to the positive terminal of the primary side input of the optocoupler. The negative terminal of the primary side of the optocoupler is connected to the system GND. The secondary side of the optocoupler is connected to the system voltage 5V through a resistor, and the other end of the resistor is connected to one end of the secondary side of the optocoupler and simultaneously to the IO pin of the CPU chip, and the other end of the secondary side of the optocoupler is connected to the system GND;
[0048] When the relay contact is closed, the primary side of the optocoupler conducts, forming a logic low level. When the relay contact is open, the primary side of the optocoupler is turned off, forming a logic high level.
[0049] Furthermore, according to an embodiment of the present invention, it is judged whether the relay is open or closed by the logic level state collected by the IO pin of the CPU chip. At the same time, according to the typical action waveforms of the relay contact closing and opening, the action time and return time of the relay contact are calculated by combining software algorithms.
[0050] Furthermore, according to one embodiment of the present invention, the measurement data display and storage module is a software module developed based on virtual instrument technology and running on a host computer. The module receives measurement data from the CPU module, can realize the storage of measurement data and the display of measurement waveforms, and also realizes the printing of measurement data.
[0051] According to the above scheme of the present invention, the relay parameter measurement system proposed by the present invention is used to solve the problems of complicated relay parameter measurement and screening process, low measurement efficiency, low degree of automation, etc. of the relay protection device. The measurement system is simple and reliable, and can realize modular automatic measurement of parameters of multiple relays at the same time, thereby improving the efficiency of relay parameter measurement and screening, with a high level of automation, and is particularly suitable for relay parameter screening and incoming inspection, and has good application prospects.
[0052] Furthermore, to achieve the above object, the present invention also provides a relay parameter measurement method, comprising:
[0053] Apply the required measuring voltage to the relay coil to be tested through the programmable power supply module;
[0054] Process the relay coil voltage signal through the coil voltage processing module;
[0055] The contact signal forming module cooperates with the relay to form a relay contact level signal;
[0056] The CPU main control module is connected with the coil voltage measurement module and the contact signal measurement module, collects the relay coil voltage signal and the relay contact level signal, obtains the relay action time and return time by calculation, and then summarizes the calculated measurement data and sends the measurement data to the host computer through the Ethernet circuit;
[0057] The measurement data is received by a measurement data display and storage module arranged on the host computer, and the measurement data is displayed, stored and printed.
[0058] Further, according to an embodiment of the present invention, the CPU main control module includes a CPU chip and an ADC chip;
[0059] The ADC chip collects the relay coil voltage;
[0060] The CPU chip collects the level status of the relay contacts isolated by optocouplers through the IO pins to measure and calculate the relay action time and return time;
[0061] The CPU chip analyzes and summarizes the calculated measurement data, and then sends the measurement data to the host computer through the Ethernet circuit.
[0062] Further, according to an embodiment of the present invention, the programmable power supply module sets a measurement voltage that meets the measurement requirements according to the rated voltage of the relay, and applies it to the coil of the relay under test to drive the relay to operate and return. In this embodiment, the output voltage of the programmable power supply can reach 100V, and the output power can reach 100W, which can meet the power output requirements for simultaneous measurement of multiple groups of relays.
[0063] Further, according to an embodiment of the present invention, the coil voltage measurement module divides the relay coil voltage to the input range of the rear-end isolation operational amplifier through a voltage division circuit, then filters out the high-frequency interference on the relay coil voltage through a low-pass filter circuit, and outputs it to the subsequent circuit through the isolation operational amplifier. The subsequent circuit conditions the signal into a signal available for sampling by the ADC chip, realizing the acquisition of the relay operation voltage and return voltage.
[0064] In this embodiment, the coil voltage measurement module selects an isolation operational amplifier as the isolation device for sampling signals. The isolation operational amplifier has a high isolation voltage, good linearity and accuracy, can meet the sampling requirements, and the application circuit is simple and reliable. The voltage division circuit divides the relay coil voltage to the input range of the rear-end isolation operational amplifier; the RC first-order passive low-pass filter circuit effectively filters out the high-frequency interference on the relay coil voltage and improves the sampling accuracy of the DC voltage; the isolation operational amplifier is powered by an isolated regulated DC / DC power supply module; the operational amplifier conditioning circuit converts the differential signal output by the isolation operational amplifier into a single-ended signal for subsequent ADC sampling.
[0065] Further, according to an embodiment of the present invention, the contact signal forming module, in cooperation with the relay, forms a relay contact level signal as:
[0066] One end of the relay contact is connected to the system voltage 5V through a resistor, and the other end is connected to the positive input terminal of the primary side of the optocoupler. The negative terminal of the primary side of the optocoupler is connected to the system GND. The secondary side of the optocoupler is connected to the system voltage 5V through a resistor, and the other end of the resistor is connected to one end of the secondary side of the optocoupler and simultaneously connected to the IO pin of the CPU chip. The other end of the secondary side of the optocoupler is connected to the system GND;
[0067] When the relay contact is closed, the primary side of the optocoupler conducts, forming a logic low level. When the relay contact is opened, the primary side of the optocoupler is turned off, forming a logic high level.
[0068] Further, according to an embodiment of the present invention, it is judged whether the relay is open or closed by collecting the logic level state through the IO pin of the CPU chip. At the same time, according to the typical operation waveforms of the relay contact closing and opening, the operation time and return time of the relay contact are calculated by combining software algorithms.
[0069] Further, according to an embodiment of the present invention, the measurement data display storage module is a software module running on the upper computer developed based on virtual instrument technology. This module receives the measurement data from the CPU module, can realize the storage of measurement data and the display of measurement waveforms, and at the same time realizes the printing of measurement data.
[0070] According to the above solution of the present invention, the relay parameter measurement method proposed by the present invention is used to solve the problems of cumbersome measurement and screening process of relay parameters by relay protection devices, low measurement efficiency, and low automation level. The measurement system is simple and reliable, can realize modular automatic measurement of parameters of multiple relays simultaneously, improve the efficiency of relay parameter measurement and screening, and has a relatively high automation level. It is especially suitable for relay parameter screening and incoming inspection, and has good application prospects.
[0071] Further, to achieve the above object, the present invention also provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, it realizes the above-mentioned method for monitoring marine ships based on image recognition.
[0072] Further, to achieve the above object, the present invention also provides a computer-readable storage medium with a computer program stored thereon. When the computer program is executed by the processor, it realizes the above-mentioned method for monitoring marine ships based on image recognition.
[0073] To make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only the best embodiments of the present invention, only used to explain the present invention, and do not limit the protection scope of the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
[0074] Embodiment 1
[0075] Combined with Figure 2 The measurement system is used to illustrate this embodiment. As Figure 2As shown in the figure, U1 is a programmable power supply, L1 is the coil of the relay to be measured, and the voltage divider circuit composed of R1 and R2 is used to divide the voltage across the coil L1 and divide the voltage to the input range of the isolation op amp A1. R3 and C1 form a first-order low-pass filter to filter out the high-frequency components in the collected voltage and improve the voltage collection accuracy. A common isolation op amp for A1 is the AMC1200B from Texas Instruments, with an isolation voltage of 4000V and an accuracy of 0.5%. The isolation power supply U2 uses a regulated DC / DC power supply module to output a DC isolation voltage for the isolation op amp. The resistors R4, R5, R6, R7 and the op amp A2 form a conditioning circuit to convert the differential signal output by the isolation op amp into a single-ended signal for the subsequent ADC sampling, as Figure 2 shown, Vp and Vn are the differential voltages output by the isolation op amp. Taking R4 = R5 and R6 = R7, the output voltage of the op amp can be obtained By adjusting the values of R4 and R6, the gain of the sampling signal is adjusted to meet the input range of the subsequent ADC sampling, simplifying the design of the subsequent circuit.
[0076] Furthermore, as Figure 2 shown, K1 is the relay contact. One end is connected to the system voltage of 5V through the resistor R8, and the other end is connected to the positive terminal of the photosensitive diode at the primary side input of the optocoupler. The negative terminal of the photosensitive diode is connected to the system GND. The secondary side of the optocoupler is connected to the system voltage of 5V through the resistor R9. The other end of the resistor is connected to one end of the secondary side of the optocoupler and is also connected to the IO pin of the CPU chip for the acquisition of the logic level. The other end of the secondary side of the optocoupler is connected to the system GND. The optocoupler O1 is a Darlington type optocoupler to accelerate the conduction of the secondary side of the optocoupler. When the K1 contact is closed, the primary side of the optocoupler conducts, and the CPU chip's IO pin acquires a logic low level; when the K2 contact is open, the primary side of the optocoupler is turned off, and the CPU chip's IO pin acquires a logic high level. By judging the state of the relay contact based on the logic level state acquired by the IO pin of the CPU chip, the determination of the operating voltage, return voltage, operating time and return time of the relay is realized. At the same time, the measured data calculated is sent to the upper computer through the Ethernet circuit to complete the display storage and printing of the data.
[0077] Those of ordinary skill in the art can realize that the modules and algorithm steps described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the present invention.
[0078] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described devices and equipment can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0079] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or modules can be in electrical, mechanical or other forms.
[0080] The modules described as separate components may or may not be physically separated. The components displayed as modules may or may not be physical modules, that is, they may be located in one place or distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present invention.
[0081] In addition, each functional module in the embodiments of the present invention can be integrated into a processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.
[0082] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method for sending / receiving energy-saving signals in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical discs that can store program codes.
[0083] The above description is only a preferred embodiment of the present application and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present application.
[0084] It should be understood that the magnitudes of the sequence numbers of the steps in the inventive content and embodiments of the present invention do not absolutely mean the sequence of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Claims
1. Relay parameter measurement system, characterized in that, include: A programmable power supply module, used to apply the required measurement voltage to the relay coil to be tested; A coil voltage processing module, used for processing the relay coil voltage signal; The contact signal forming module cooperates with the relay to form the relay contact level signal; The CPU main control module is connected to the coil voltage measurement module and the contact signal measurement module, collects the relay coil voltage signal and the relay contact level signal, obtains the relay action time and return time by calculation, and then summarizes the calculated measurement data and sends the measurement data to the host computer through the Ethernet circuit; The measurement data display and storage module is arranged on the host computer, receives the measurement data, and displays, stores and prints the measurement data.
2. The relay parameter measurement system according to claim 1, characterized in that: The CPU main control module includes a CPU chip and an ADC chip; The ADC chip collects the relay coil voltage; The CPU chip collects the level status of the relay contacts isolated by optocouplers through the IO pins to measure and calculate the relay action time and return time; The CPU chip analyzes and summarizes the calculated measurement data, and then sends the measurement data to the host computer through the Ethernet circuit.
3. The relay parameter measurement system according to claim 1, characterized in that: The program-controlled power supply module sets a measurement voltage that meets the measurement requirements according to the rated voltage of the relay, and applies it to the coil of the relay to be measured to drive the relay to operate and return.
4. The relay parameter measurement system according to claim 2, characterized in that: The coil voltage measurement module divides the relay coil voltage to the input range of the back-end isolation amplifier through a voltage divider circuit, and then filters out the high-frequency interference on the relay coil voltage through a low-pass filter circuit, and then outputs it to the back-end circuit through the isolation amplifier. The back-end circuit conditions the signal into a signal that can be sampled by the ADC chip, thereby realizing the collection of the relay action voltage and return voltage.
5. The relay parameter measurement system according to claim 2, characterized in that: The contact signal forming module cooperates with the relay to form the relay contact level signal: One end of the relay contact is connected to the system voltage 5V through a resistor, and the other end is connected to the positive terminal of the primary input of the optocoupler. The negative terminal of the primary input of the optocoupler is connected to the system GND. The secondary side of the optocoupler is connected to the system voltage 5V through a resistor. The other end of the resistor is connected to one end of the secondary side of the optocoupler and the IO pin of the CPU chip at the same time. The other end of the secondary side of the optocoupler is connected to the system GND. When the relay contacts are closed, the primary side of the optocoupler is turned on, forming a logic low level; when the relay contacts are opened, the primary side of the optocoupler is turned off, forming a logic high level.
6. The relay parameter measurement system according to claim 2, characterized in that: The logic level state collected by the IO pin of the CPU chip is used to determine whether the relay is open or closed. At the same time, the action time and return time of the relay contact are calculated based on the typical action waveforms of the closing and opening of the relay contact in combination with the software algorithm.
7. A relay parameter measurement method, characterized in that: include: Apply the required measuring voltage to the relay coil to be tested through the programmable power supply module; Process the relay coil voltage signal through the coil voltage processing module; The contact signal forming module cooperates with the relay to form a relay contact level signal; The CPU main control module is connected with the coil voltage measurement module and the contact signal measurement module, collects the relay coil voltage signal and the relay contact level signal, obtains the relay action time and return time by calculation, and then summarizes the calculated measurement data and sends the measurement data to the host computer through the Ethernet circuit; The measurement data is received by a measurement data display and storage module arranged on the host computer, and the measurement data is displayed, stored and printed.
8. An electronic device, characterized in that It comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the method for monitoring marine vessels based on image recognition as claimed in claim 7 is implemented.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the method for monitoring marine vessels based on image recognition as claimed in claim 7 is implemented.