Method, module and terminal for realizing disconnection detection of internal relay of expansion module

By configuring an independent disconnection detection circuit and interrupt mechanism in the expansion module of the Type III special transformer terminal, the complexity of relay circuit status judgment is solved, accurate detection and real-time reporting of the relay disconnection status are achieved, and the efficiency of load control is improved. Reliability and operation and maintenance efficiency.

CN118348400BActive Publication Date: 2024-10-22ANHUI ZENITH ELECTRICITY & ELECTRONICS
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410459350.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-17
Publication Date
2024-10-22
Estimated Expiration
2044-04-17

AI Technical Summary

Technical Problem

Existing expansion modules of type III special transformer terminals lack tools to implement circuit continuity self-test, making it complicated to accurately determine the status of the relay circuit.

Method used

Design a method, including configuring an independent disconnection detection circuit for each relay, using the 25MHz APB2 bus clock to design a 1ms interrupt mechanism, collecting the relay status signal, judging the wiring status of the relay through the sampling frequency and level status, and Report events when changes occur in the control loop.

Benefits of technology

It achieves accurate and real-time detection of the relay disconnection status inside the expansion module, reduces the false alarm rate, and improves the reliability and operation and maintenance efficiency of load control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118348400B_ABST
    Figure CN118348400B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of electric power equipment, and specifically relates to a method, module, and terminal for realizing disconnection detection of relays inside an expansion module. The present invention configures a newly designed disconnection detection circuit in an expansion terminal including multiple relays, and the circuit is composed of an isolator OP3, resistors R19, R34, R35, R38, R41, R42, R70, R74, R77, capacitor C7, and transistor Q11, so that the connection state of the relay in the circuit can be converted from an analog signal quantity to a digital signal quantity that is easier to monitor. In terms of software, the present invention also uses a designed interrupt mechanism inside the expansion module to realize discrete sampling of the output of the disconnection detection circuit, and collects the signal quantity of multiple cycles in the digital signal filtering processing stage, and only when the state signal quantity is not less than 90% of the total signal quantity, the acquisition is deemed to be valid. The solution provided by the present invention can ensure the detection accuracy while ensuring the timeliness of state detection and reduce the false alarm rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of electric power equipment, and specifically relates to a method for realizing disconnection detection of an internal relay of an expansion module, an expansion module using the method for self-checking, and a type III special transformer terminal integrating the expansion module. Background Art

[0002] As an in-service device with power control and power consumption information collection, the Type III special transformer terminal is limited by its own insufficient control ability and must be connected to an external expansion module to improve its load carrying capacity. For example, a single expansion module can enable the Type III special transformer terminal to have the ability to control the opening and closing of 4 power loads. The specific operation is completed by the 4-way opening relay output and 4-way closing relay output inside the expansion module, a total of 8 control circuits.

[0003] In actual use, the data collection master station communicates with the Type III dedicated transformer terminal through 4G to achieve visual and controllable management of data. The Type III dedicated transformer terminal is connected to the expansion module through the RS-485-2 interface to achieve the collection and control of power consumption information. The data collection master station needs to monitor the on and off of the control circuit corresponding to each group of relays in real time to ensure stable load control effect.

[0004] Accurately judging whether the control loop between the Type III special transformer terminal and the expansion module is connected is the prerequisite for realizing load control. Considering that not all the multiple relay groups in each expansion module are put into use, how to accurately judge the connection and disconnection of the loop corresponding to each relay is a relatively complicated technical problem. Therefore, the expansion module designed by the technicians urgently needs a tool for realizing the self-check of the loop connection status. Summary of the invention

[0005] In order to solve the problem that the expansion module containing multi-channel relays used in the existing Type III special transformer terminal lacks a tool for realizing circuit continuity self-check, the present invention provides a method for realizing internal relay disconnection detection of the expansion module, an expansion module using the method for self-checking, and a Type III special transformer terminal integrating the expansion module.

[0006] The scheme of the present invention is as follows:

[0007] A method for detecting disconnection of an internal relay of an expansion module is applied to an expansion terminal including multiple relays, and detects the connection status between each relay and a type III special transformer terminal. The method comprises the following steps:

[0008] S1: For each relay K in the expansion module i Configure an independent disconnection detection circuit, which is connected to the relay and used to generate a digital signal representing the switch state of the relay, recorded as CHKi .

[0009] S2: Using the existing 25MHz APB2 bus clock, design an interrupt mechanism with an interrupt cycle of 1ms; and collect the status signal CHK corresponding to each relay after each interrupt is triggered i .

[0010] S3: According to the status signals CHK of each channel i Determine the wiring status of the corresponding relay. The process is as follows:

[0011] S31: Obtain the status signal CHK at each moment according to the preset sampling frequency i .

[0012] S32: Distinguish the state signal CHK of each sampling i The level state of the state signal CHK collected in the current cycle i The high level times N1 and the low level times N2 are accumulated.

[0013] S33: After each data sampling period, the following decision is generated based on the statistical results of N1 and N2:

[0014] (1) When N1 / N≥90%, the corresponding relay is determined to be in a disconnected state or a connected state in the current data sampling period according to the working principle of the disconnection detection circuit.

[0015] (2) When N2 / N≥90%, the corresponding relay is determined to be in a connected state or a disconnected state in the current data sampling period according to the working principle of the disconnection detection circuit.

[0016] (3) When N1 / N<90% and N2 / N<90%, the sampling signal of the current cycle is invalid.

[0017] Wherein, N represents the sampling frequency preset in each data sampling period.

[0018] S4: Generate a set of corresponding status flags according to the connection status of each relay generated in each data sampling period, and determine the connection status of the control loop where the specified relay is located according to the status flags at each moment.

[0019] S5: When the connection status of the circuit where any relay is located changes, a circuit change event is recorded, and the event information is reported to the Type III special transformer terminal according to the preset rules.

[0020] As a further improvement of the present invention, in step S1, the disconnection detection circuit is composed of an isolator OP3, resistors R19, R34, R35, R38, R41, R42, R70, R74, R77, a capacitor C7 and a transistor Q11. The circuit connection relationship is as follows:

[0021] Pin 1 of isolator OP3 is connected to the normally open end of the relay through resistors R70, R41, R38, R34, R35, and R19 connected in series; pin 2 is connected to the common end of the relay; pin 4 is connected to the power supply VCC; pin 3 is connected to the base of Q11 through R77; the collector of Q11 is connected to pin 4 of OP3 through resistor R42; the emitter of Q11 is grounded; C7 and R74 are connected in series and connected between the base and emitter of Q11.

[0022] Among them, the collector of Q11 is used to represent the relay K i The status signal CHK of the switch status i The output port of

[0023] As a further improvement of the present invention, in the disconnection detection circuit, the resistance values ​​of resistors R19, R34, R35, R38, R41, and R70 are 50kΩ; the resistance value of resistor R77 is 100kΩ; the resistance value of resistor R42 is 2kΩ; the resistance value of resistor R74 is 10kΩ; C7 is a 100nF capacitor; Q11 is a SOT-23 transistor; and OP3 is an LTV-814 isolator.

[0024] As a further improvement of the present invention, in the disconnection detection circuit, when the relay is disconnected from the type III special transformer terminal, the status signal CHK i When the relay is normally connected to the type III special transformer terminal, the status signal CHK i is low level.

[0025] As a further improvement of the present invention, in step S2, the method for constructing the interruption mechanism is as follows:

[0026] The 25MHz APB2 bus clock is doubled to 50MHz as the clock source of the timer. Then the clock is down-converted by the prescaler, and the prescaler coefficient CK_PSC is set to 500, which reduces the clock frequency to 10000Hz. A counter CNT_COUNTER and an auto-reloader ARR are set in the clock. The counter counts up once after receiving a pulse; when the count value reaches 100, the auto-reloader clears the counter and triggers an interrupt; thus realizing the configuration of 1ms interrupt.

[0027] As a further improvement of the present invention, in step S2, based on the designed 1ms interrupt interrupt mechanism, a 1ms interrupt callback function is constructed. When the timer interrupt configuration is completed, the 1ms interrupt service function is automatically called. The interrupt callback function is placed in the 1ms interrupt service function, and data sampling can be performed every 1ms.

[0028] As a further improvement of the present invention, in step S3, the sampling frequency N is preset to be 100 in each data sampling period.

[0029] As a further improvement of the present invention, in the internal protocol of the expansion module, the protocol content representing the relay wiring state is added to the instruction of the relay output, and the signal format is as follows:

[0030] F205 0200 {Switch attribute enum {Pulse type (0), Hold type (1)}, Wiring status - enum {Connected (0), Not connected (1)}}

[0031] Among them, enum{} means that there can only be one state at the same time.

[0032] As a further improvement of the present invention, in step S4, after receiving the control loop position change event, the Type III dedicated transformer terminal immediately alerts the main station, and the main station dispatches relevant personnel to perform on-site operation and maintenance work.

[0033] The present invention also includes an expansion module of a type III special transformer terminal, which is used to expand the load management capability of the type III special transformer terminal. The expansion module includes a plurality of relays and a disconnection detection circuit corresponding to each relay. The expansion module uses the aforementioned method for realizing disconnection detection of relays inside the expansion module, performs self-check on the wiring status of each relay in the expansion module circuit, and reports the self-check result to the type III special transformer terminal.

[0034] The present invention also includes a type III dedicated transformer terminal, which integrates an expansion module of the type III dedicated transformer terminal as described above.

[0035] The technical solution provided by the present invention has the following beneficial effects:

[0036] In terms of hardware, the present invention configures a newly designed disconnection detection circuit in an extension terminal including multiple relays, thereby converting the connection state of the relay in the circuit from an analog signal quantity to a digital signal quantity that is easier to monitor. In terms of software, the present invention also utilizes the designed interrupt mechanism inside the extension terminal to implement discrete sampling of the output of the disconnection detection circuit, and redesigns the state judgment strategy based on the sampling signal, thereby ensuring the timeliness of state detection while ensuring detection accuracy and reducing the false alarm rate. The software and hardware solution provided by the present invention can determine the on-off state of the control loop of the special transformer terminal extension module in real time, and the detection is accurate, efficient and convenient; the solution can also use the Type III special transformer terminal to report the on-off state of the loop to the main station in real time, providing an effective reference for operation and maintenance work.

[0037] When the present invention implements discrete sampling, a 1ms timer interrupt and a corresponding interrupt callback function with a disconnection detection function are opened up in the running program of the expansion module, so that the function is automatically executed in the 1ms interrupt service function. When the present invention implements data processing, for the acquisition and detection of the hardware pin status, the signal quantity of multiple cycles is collected in the digital signal filtering processing stage. Only when the state signal quantity is not less than 90% of the total signal quantity, the acquisition is considered valid. Combined with discrete sampling and filtering processing, the present invention can significantly reduce the false alarm rate of the disconnection line status alarm of the expansion module. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 This is a system architecture diagram of Example 1 of the present invention, which uses an expansion module to improve the load capacity of a Type III dedicated transformer terminal.

[0039] Figure 2 This is a flowchart of the steps of the method for realizing the disconnection detection of the internal relay of the expansion module provided in Embodiment 1 of the present invention.

[0040] Figure 3 It is a circuit principle diagram of the disconnection detection circuit configured in the expansion module in Example 1 of the present invention.

[0041] Figure 4 This is the design principle of the 1ms clock used to construct the interrupt mechanism in Example 1 of the present invention.

[0042] Figure 5 This is a flow chart of performing disconnection status self-checking according to discrete sampling signals inside the expansion module in Example 1 of the present invention. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0044] Example 1

[0045] In view of the problem that the existing type III dedicated transformer terminal has insufficient load capacity, the technical personnel of the present invention have designed an expansion module, such as Figure 1 As shown, the expansion module includes 4 closing relays and 4 opening relays, and each closing relay and opening relay constitutes a relay group that can independently control one load. Therefore, the expansion model can support the opening and closing control of multiple users. On this basis, this embodiment also provides a method for realizing the disconnection detection of the internal relay of the expansion module. When the expansion module is actually used, the method can detect the wiring status of each relay in the expansion module circuit, and then realize the disconnection self-check of the circuit where each relay is located.

[0046] The solution provided in this embodiment mainly includes two aspects: hardware improvement and software improvement. Among them, the hardware improvement includes configuring a disconnection detection circuit for each relay to detect its switch state. The software improvement includes a data processing part for realizing state judgment based on the output signal of the disconnection detection circuit, and a process of state setting, event recording and risk reporting based on the data processing result.

[0047] Specifically, Figure 2 As shown, the method for realizing the disconnection detection of the internal relay of the expansion module provided in this embodiment includes the following steps:

[0048] S1: For each relay K in the expansion module i Configure an independent disconnection detection circuit, which is connected to the relay and used to generate a digital signal representing the switch state of the relay, recorded as CHK i .

[0049] The disconnection detection circuit designed in this embodiment is composed of an isolator OP3, resistors R19, R34, R35, R38, R41, R42, R70, R74, R77, a capacitor C7 and a transistor Q11. Among them, Q11 adopts a SOT-23 transistor; OP3 adopts an LTV-814 isolator. The specifications of resistors R19, R34, R35, R38, R41, and R70 are: 1206-500kΩ-1 / 4w-100ppm-1%. The specifications of resistor R77 are: 0603-100Ω-1 / 10w-100ppm-5%. The specifications of resistor R42 are: 0603-2kΩ-1 / 10w-100ppm-1%; the specifications of resistor R74 are: 0603-10kΩ-1 / 10w-100ppm-5%. The specifications of the capacitor used by C7 are: 0603-X7R-50V-100nF-10%.

[0050] like Figure 3 As shown, the circuit connection relationship of the disconnection detection circuit is as follows:

[0051] Pin 1 of the isolator OP3 is connected to the normally open terminal of the relay through resistors R70, R41, R38, R34, R35, and R19 connected in series. Pin 2 is connected to the common terminal of the relay; Pin 4 is connected to the power supply VCC; Pin 3 is connected to the base of Q11 through R77; The collector of Q11 is connected to pin 4 of OP3 through resistor R42; The emitter of Q11 is grounded; C7 and R74 are connected in series and connected between the base and emitter of Q11.

[0052] Among them, the collector of Q11 is used to represent the relay K i The status signal CHK of the switch status i The output port of

[0053] exist Figure 3 In the circuit, pin JDQ-K4 and pin JDQ-G4 are connected to the normally open terminal and common terminal of the relay respectively. When the relay is disconnected in the circuit, the No. 4 and No. 3 terminals of the isolator OP3 are not conducting, and the voltage at the K4 CHK terminal is affected by VCC and is pulled up to VCC, that is, high level 1; when the relay is normally connected in the circuit and supplied with a sinusoidal signal, the No. 4 and No. 3 terminals of the isolator OP3 are conducting, then at this time the VCC voltage reaches the base of the transistor Q11 after passing through OP3, and is pulled down to 0 by GND, then the voltage at the K4 CHK terminal is also pulled down, that is, low level 0. Therefore, when the relay is disconnected from the Type III special transformer terminal, the status signal CHK i When the relay is normally connected to the type III special transformer terminal, the status signal CHK i is low level.

[0054] It should be noted that: Figure 3 Provided in the present invention is an analog-to-digital conversion circuit connected between the normally open terminal and the common terminal of the relay and used to detect the switch state of the relay. In other schemes, other identical circuits can also be designed based on similar circuit principles, including designing other detection circuits connected between the normally closed terminal and the common terminal of the relay. In different types of disconnection detection circuits, the mapping relationship between the output detection signal and the switch state of the relay may be different. For example, in this embodiment, the state signal CHK i When it is high level, that is, "1", it indicates that the relay is disconnected. Status signal CHK i When it is low level, that is, "0", it indicates that the relay is closed. In other disconnection detection circuits, the output signal may be reversed, that is: CHK i =1, indicating that the relay is closed, CHK i= 0, indicating that the relay is disconnected. Due to the different states of the signal CHK i This has an impact on the setting process of the status flag in the subsequent process, so it is necessary to determine the corresponding status flag setting logic in combination with different disconnection detection circuits.

[0055] S2: Using the existing 25MHz APB2 bus clock, design an interrupt mechanism with an interrupt cycle of 1ms; and collect the status signal CHK corresponding to each relay after each interrupt is triggered i .

[0056] This embodiment uses an interrupt trigger to control the sampling frequency of the disconnection detection circuit output. The preset signal sampling period of this embodiment is 1ms, so a 1ms timer needs to be configured in the interrupt mechanism. Based on the designed 1ms interrupt interrupt mechanism, a 1ms interrupt callback function is constructed. When the timer interrupt configuration is completed, the 1ms interrupt service function is automatically called. The interrupt callback function is placed in the 1ms interrupt service function, and data sampling can be performed every 1ms.

[0057] Specifically, Figure 4 As shown, the clock design method used in the interrupt mechanism of this embodiment is as follows:

[0058] The clock of the timer comes from the APB2 bus clock PLCK2, PLCK2 = 25MHz. The 25MHz APB2 bus clock is doubled to 50MHz. As the clock source of the timer, it can generate 50M pulses per second. Then the clock is down-converted by the pre-divider, and the pre-divider coefficient CK_PSC is set to 500, and the clock is down-converted to 10000Hz. Next, a counter CNT_COUNTER and an automatic reloader ARR are set in the clock. The counter CNT_COUNTER counts up once after receiving each pulse; when the value of the counter CNT_COUNTER reaches the preset automatic reload value (ie: 100), the automatic reloader ARR clears the counter CNT_COUNTER, and the timer triggers an interrupt. The calculation formula for the interrupt period T that can be achieved by the timer is:

[0059] T=1 / (25000000*2 / 500 / 100)=1ms

[0060] So far, using Figure 4 The mechanism can realize the configuration of 1ms interrupt, and the interrupt mechanism can be used to control the MCU to sample the output signal of the disconnection detection circuit according to the sampling period of 1ms. Among them, the setting of the timer interrupt in this embodiment is mainly reflected in three aspects, namely the clock source of the timer, the pre-scaling coefficient of the timer and the automatic reload value of the timer.

[0061] S3: Figure 5 As shown, according to the obtained status signals CHK of each channel i Determine the wiring status of the corresponding relay. The process is as follows:

[0062] S31: Obtain the status signal CHK at each moment according to the preset sampling frequency i .

[0063] S32: Distinguish the state signal CHK of each sampling i The level state of the state signal CHK collected in the current cycle i The high level times N1 and the low level times N2 are accumulated.

[0064] S33: After each data sampling period, the following decision is generated based on the statistical results of N1 and N2:

[0065] (1) When N1 / N≥90%, the corresponding relay is determined to be in a disconnected state or a connected state in the current data sampling period according to the working principle of the disconnection detection circuit.

[0066] (2) When N2 / N≥90%, the corresponding relay is determined to be in a connected state or a disconnected state in the current data sampling period according to the working principle of the disconnection detection circuit.

[0067] (3) When N1 / N<90% and N2 / N<90%, the sampling signal of the current cycle is invalid.

[0068] Wherein, N represents the sampling frequency preset in each data sampling period. In this embodiment, the value of N is 100.

[0069] S4: Generate a set of corresponding status flags according to the connection status of each relay generated in each data sampling period, and determine the connection status of the control loop where the specified relay is located according to the status flags at each moment.

[0070] In the solution of this embodiment, in order to record the status flag of each group of relays, in the internal protocol of the expansion module, the protocol content representing the relay wiring status is added to the instruction of the relay output, and the signal format is as follows:

[0071] F205 0200 {Switch attribute enum {Pulse type (0), Hold type (1)}, Wiring status - enum {Connected (0), Not connected (1)}}

[0072] Among them, enum{} means that there can only be one state at the same time.

[0073] The above-mentioned extension protocol mainly targets two aspects. The first "switch attribute" characterizes the way in which the relay receives electrical signals in the circuit connection. There are two main methods, namely, the hold type and the pulse type. The so-called hold type refers to the continuous high or low level connection state in the circuit; while the pulse type is a signal with a frequency and continuously changing within a certain range. For example, the relay output connection method adopted in this embodiment is through the pulse type. The relay output will be connected to the circuit in the form of receiving a sinusoidal wave signal. The frequency of the sinusoidal wave signal is set at 50Hz, that is, the period t=1 / f=20ms will produce a complete sinusoidal wave signal. The second is to define whether the relay output is in the connected state or the disconnected state in the control loop. This embodiment adds a disconnection detection circuit for 8 control loops for the 8 relays in a single expansion module. The disconnection detection circuit converts the analog signal monitoring of the relay output into digital signal monitoring of the MCU pin, that is, it can be monitored through the 8 pins (CHK i , where i takes the high and low levels of 1-8) to monitor the connection status of the 8-way control loop.

[0074] S5: When the connection status of the circuit where any relay is located changes, a circuit change event is recorded, and the event information is reported to the Type III special transformer terminal according to the preset rules.

[0075] In this embodiment, when the expansion module detects an abnormality in the control loop, it will immediately record the control loop position change event, and determine whether the event needs to be reported to the Type III dedicated transformer terminal according to the reporting flag bit set for the event. At this point, the control loop disconnection detection process is completely completed. Then, after receiving the control loop position change event, the Type III dedicated transformer terminal will immediately alert the main station and signal relevant personnel to perform on-site operation and maintenance work.

[0076] Example 2

[0077] On the basis of the scheme of Example 1, this embodiment further provides an expansion module of a Type III special transformer terminal, which is used to expand the load management capability of the Type III special transformer terminal. The expansion module includes a plurality of relays and a disconnection detection circuit corresponding to each relay. The expansion module adopts the method for realizing disconnection detection of the internal relay of the expansion module as in Example 1, performs self-inspection on the wiring status of each relay in the expansion module circuit, and reports the self-inspection result to the Type III special transformer terminal.

[0078] The expansion module used in this embodiment is an independent module composed of a double-layer PCB board with specific functions for expanding the type III special transformer terminal. This embodiment uses the expansion module to mainly realize the remote opening and closing function and remote signal state quantity collection functions of the extended type III special transformer terminal. In terms of hardware, the module is mainly composed of 8 remote control relays, 4 remote signal state quantity collection units, one 485 communication unit, and one Ethernet communication unit. Its specific information is as follows:

[0079] The 8-way relays of the expansion module all use relays of the same specification, but they are divided into two categories in terms of function. One is the 4-way opening relay on the upper board, which realizes the remote control opening function of the Type III special transformer terminal; the other is the 4-way closing relay on the lower board, which realizes the remote control closing function of the Type III special transformer terminal.

[0080] The function of the remote signal status acquisition unit is mainly to detect whether the external circuit breaker is actually opened / closed after the extension module executes the remote control opening and closing command. In terms of software implementation, some of the logic is consistent with the logic of control circuit break detection.

[0081] The 485 communication unit mainly realizes wired communication with the Type III special transformer terminal. In terms of hardware circuit connection, the Type III special transformer terminal is connected to the special transformer control expansion module through its RS-485-2 interface, and then realizes the interaction of basic data, such as setting default parameters, reading related data, etc. The data transmission function of the communication unit can be used to complete the remote collection of archive information.

[0082] The Ethernet communication unit mainly realizes the reporting of various events of the special transformer control expansion module, and also supports the interaction of various data connected by wired communication. Various events include the above-mentioned control loop position change event, remote signal state quantity position change event, etc.

[0083] In particular, the special transformer module also includes an 8-way control loop disconnection detection circuit. This circuit is mainly used to detect whether the connection of the relay in the expansion module circuit is normal, which is a prerequisite for judging whether the expansion module can normally execute the remote control opening and closing instructions of the type III special transformer terminal. Specifically, the disconnection detection circuit in this embodiment has 8 channels, which correspond to the detection of 8 remote control opening and closing relays. The hardware circuit of the detection circuit is composed of a plurality of voltage-dividing resistors, a bidirectional conductive isolation optocoupler, and an amplifier circuit, which realizes the detection of the analog quantity of the circuit into the detection of the digital quantity. When the connection terminals JDQ-K4 and JDQ-G4 of the disconnection detection circuit and the relay receive a pulse signal from the relay, the optocoupler is turned on, so that the voltage of the detected pin K4_CHK is pulled down. At this time, the MCU determines that the relay connection is normal, otherwise it is abnormal, and a control loop displacement event is generated and reported to the type III special transformer terminal.

[0084] In particular, this embodiment also implements discrete sampling of the output signal of the disconnection detection circuit through an interrupt mechanism, and uses a specific filtering method to filter the sampled data, thereby significantly reducing the false alarm rate of the disconnection status alarm of the expansion module.

[0085] The expansion module in the present invention can be produced and sold as an independent product, or it can be directly integrated into the Type III special transformer terminal as an internal module of the Type III special transformer terminal to improve the product performance of the Type III special transformer terminal.

[0086] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for detecting disconnection of an internal relay of an expansion module, which is applied to an expansion terminal including a plurality of relays and detects the connection status between each relay and a type III special transformer terminal, characterized in that: It includes the following steps: S1: For each relay K in the expansion module i An independent disconnection detection circuit is configured; the disconnection detection circuit is connected to the relay and used to generate a digital signal representing the switch state of the relay, denoted as CHK i ; S2: Using the existing 25MHz APB2 bus clock, design an interrupt mechanism with an interrupt cycle of 1ms; and collect the status signal CHK corresponding to each relay after each interrupt is triggered i ; S3: According to the status signals CHK of each channel i Determine the wiring status of the corresponding relay. The process is as follows: S31: Obtain the status signal CHK at each moment according to the preset sampling frequency i ; S32: Distinguish the state signal CHK of each sampling i The level state of the state signal CHK collected in the current cycle i The high level times N1 and the low level times N2 are accumulated; S33: After each data sampling period, the following decision is generated based on the statistical results of N1 and N2: (1) When N1 / N≥90%, the corresponding relay is determined to be in a disconnected state or a connected state in the current data sampling period according to the working principle of the disconnection detection circuit; (2) When N2 / N≥90%, the corresponding relay is determined to be in a connected state or disconnected state in the current data sampling period according to the working principle of the disconnection detection circuit; (3) When N1 / N<90% and N2 / N<90%, the sampling signal of the current cycle is invalid; Wherein, N represents the sampling frequency preset in each data sampling period; S4: generating a set of corresponding status flags according to the connection status of each relay generated in each data sampling period, and judging the connection status of the control loop where the specified relay is located according to the status flags at each moment; S5: When the connection status of the circuit where any relay is located changes, a circuit change event is recorded, and the event information is reported to the Type III special transformer terminal according to the preset rules.

2. The method for realizing disconnection detection of internal relays of an expansion module as claimed in claim 1, characterized in that: In step S1, the disconnection detection circuit is composed of an isolator OP3, resistors R19, R34, R35, R38, R41, R42, R70, R74, R77, a capacitor C7 and a transistor Q11; the circuit connection relationship is as follows: Pin 1 of the isolator OP3 is connected to the normally open end of the relay through resistors R70, R41, R38, R34, R35, and R19 connected in series; Pin 2 is connected to the common end of the relay; Pin 4 is connected to the power supply VCC; Pin 3 is connected to the base of Q11 through R77; The collector of Q11 is connected to Pin 4 of OP3 through resistor R42; The emitter of Q11 is grounded; C7 and R74 are connected in series and connected between the base and emitter of Q11; Among them, the collector of Q11 is used to represent the relay K i The status signal CHK of the switch status i The output port of 3. The method for realizing disconnection detection of internal relays of an expansion module as claimed in claim 2, characterized in that: In the disconnection detection circuit, the resistance values ​​of resistors R19, R34, R35, R38, R41, and R70 are 500kΩ; resistor R77 is 100Ω; resistor R42 is 2kΩ; resistor R74 is 10kΩ; C7 is a 100nF capacitor; Q11 is a SOT-23 transistor; and OP3 is an LTV-814 isolator.

4. The method for realizing disconnection detection of internal relays of an expansion module as claimed in claim 2, characterized in that: In the disconnection detection circuit, when the relay is disconnected in the expansion module circuit, the status signal CHK i When the relay is normally connected to the type III special transformer terminal, the status signal CHK i is low level.

5. The method for realizing disconnection detection of internal relays of an expansion module as claimed in claim 1, characterized in that: In step S2, the interruption mechanism is constructed as follows: The 25MHz APB2 bus clock is doubled to 50MHz as the clock source of the timer; the clock is then reduced in frequency through a prescaler, and the prescaler coefficient CK_PSC is set to 500, reducing the clock frequency to 10000Hz; a counter CNT_COUNTER and an automatic reloader ARR are set in the clock; the counter counts up once after receiving each pulse, and when the count value reaches 100, the automatic reloader clears the counter and triggers an interrupt, thereby realizing the configuration of a 1ms interrupt.

6. The method for realizing disconnection detection of internal relays of an expansion module as claimed in claim 5, characterized in that: In step S2, based on the designed 1ms interrupt mechanism, a 1ms interrupt callback function is constructed. When the timer interrupt configuration is completed, the 1ms interrupt service function is automatically called. The interrupt callback function is placed in the 1ms interrupt service function, and data sampling can be performed every 1ms. and / or In step S3, the sampling frequency N is preset to be 100 in each data sampling period.

7. The method for realizing disconnection detection of internal relays of an expansion module as claimed in claim 1, characterized in that: In the internal protocol of the expansion module, the protocol content representing the relay wiring status is added to the instruction of the relay output. The signal format is as follows: F205 0200 {Switch attribute enum {Pulse type (0), Hold type (1)}, Wiring status - enum {Connected (0), Not connected (1)}} Among them, enum{} means that there can only be one state at the same time.

8. The method for realizing disconnection detection of internal relays of an expansion module as claimed in claim 1, characterized in that: In step S4, after receiving the control loop position change event, the Type III dedicated transformer terminal immediately alerts the main station, and the main station dispatches relevant personnel to perform on-site operation and maintenance work.

9. An expansion module for a type III dedicated transformer terminal, which is used to expand the load management capability of the type III dedicated transformer terminal, characterized in that: The expansion module includes multiple relays and a line break detection circuit corresponding to each relay; the expansion module adopts the method for realizing internal relay line break detection of the expansion module as described in any one of claims 1-8, performs self-inspection on the wiring status of each relay in the expansion module circuit, and reports the self-inspection result to the Type III special transformer terminal.

10. A type III dedicated transformer terminal, characterized in that: An expansion module is integrated with the type III dedicated transformer terminal as claimed in claim 9.

Citation Information

Patent Citations

  • Aging and early failure detection method and detection apparatus of solid relay

    CN104345267A

  • Method and device for detecting on / off of bypass relay in boost chopper circuit

    CN104820183A

  • High-speed train electromagnetic contactor test system

    CN112067989A

  • Relay calibration method, device, equipment, medium and program product

    CN116930738A

  • System and method for shared hybrid transfer switch system with integrated relay self test

    US20210389375A1