CN107991605B - Relay life counting and measuring method - Google Patents

Relay life counting and measuring method Download PDF

Info

Publication number
CN107991605B
CN107991605B CN201711133940.8A CN201711133940A CN107991605B CN 107991605 B CN107991605 B CN 107991605B CN 201711133940 A CN201711133940 A CN 201711133940A CN 107991605 B CN107991605 B CN 107991605B
Authority
CN
China
Prior art keywords
relay
switch group
action
counting
relay switch
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
CN201711133940.8A
Other languages
Chinese (zh)
Other versions
CN107991605A (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.)
PIZHOU TIEFU JIULONG PUBLIC SERVICE Co.,Ltd.
Original Assignee
Hunan University of Technology
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 Hunan University of Technology filed Critical Hunan University of Technology
Priority to CN201911076069.1A priority Critical patent/CN110763991B/en
Priority to CN201711133940.8A priority patent/CN107991605B/en
Publication of CN107991605A publication Critical patent/CN107991605A/en
Application granted granted Critical
Publication of CN107991605B publication Critical patent/CN107991605B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/327Testing of circuit interrupters, switches or circuit-breakers
    • G01R31/3277Testing of circuit interrupters, switches or circuit-breakers of low voltage devices, e.g. domestic or industrial devices, such as motor protections, relays, rotation switches
    • G01R31/3278Testing of circuit interrupters, switches or circuit-breakers of low voltage devices, e.g. domestic or industrial devices, such as motor protections, relays, rotation switches of relays, solenoids or reed switches

Abstract

a method for measuring the service life of a relay can count the action times of a plurality of relay switch groups in different relays at the same time to obtain action count values, and determine whether the action count values of the relay switch groups are qualified or not according to the error magnitude between the action count values and the on-off times or the asynchronous times between the counting process and the actions of the relay switch groups; the RS trigger is adopted to automatically filter the edge jitter interference in the electric pulse generated by the action of the relay switch group, so that the accuracy of the detection of the service life of the relay is ensured; the mode that a plurality of counters are arranged outside the controller unit and count the action times of the relay switch group respectively is adopted, and the number of the relay switch groups for detecting the service life of the relay is not limited by the number of the counters inside the controller unit.

Description

relay life counting and measuring method
Technical Field
the invention relates to the field of test methods and devices, in particular to a relay service life counting and measuring method.
Background
the service life of the relay is generally between tens of thousands to hundreds of thousands. The service condition of the relay is simulated, the relay is controlled to be switched on and off to generate electric pulses, and then the electric pulses are counted, so that the service life of the relay can be tested. The electrical pulses generated by the relay action contain edge jitter, and the unprocessed pulses are directly counted, so that a great error is generated. The software delay mode of the MCU can make the MCU unconscious when the MCU needs to test the service life of a plurality of relays at the same time.
Disclosure of Invention
In order to solve the problems existing in the aspect of measuring the service life of the conventional relay, the invention provides a method for counting and measuring the service life of the relay, which comprises the following steps of:
step 1, initializing, namely setting detection marks of L relay switch groups to be in a detection state, clearing 0 by a service life counter, and sending a clear 0 signal to enable all L action count values to be clear 0;
Step 2, controlling the L relay switch groups to act once, and simultaneously counting the action times of the L relay switch groups respectively to obtain L action count values; the service life counter counts by adding 1;
Step 3, reading current L action count values;
Step 4, judging whether the relay switch groups with the detection marks in the detection state are invalid one by one; setting the detection mark which is judged as the failure relay switch group at this time to be in a stop detection state, and simultaneously taking the count value of the current life counter as the life value of the relay switch group which is judged as the failure at this time;
and 5, if the detection marks of the L relay switch groups still have the detection state, returning to the step 2, otherwise, stopping detection.
Judging whether the relay switch group with the detection mark in the detection state is invalid or not, wherein the method is that if the error between the controlled on-off times of the relay switch group to be judged and the action counting value is less than E, the relay switch group is not invalid, otherwise, the relay switch group is invalid; e is an integer greater than or equal to 1 and less than or equal to M/2, and M is the maximum count value of the action count values. The method for judging whether the error between the controlled on-off times of the relay to be judged and the action counting value of the relay to be judged is smaller than E is that the counting value of the current service life counter is subjected to modulus operation on M to obtain a remainder Q; and when the action counting value of the relay to be judged at the time is read to be K, when one of | K-Q | < E, or | K- (Q-M) | < E, or | K- (Q + M) | < E is satisfied, the error between the controlled on-off times of the relay to be judged and the action counting value is smaller than E.
Judging whether the relay switch group with the detection mark in the detection state is invalid or not, wherein the method is that if the current action counting value and the previous action counting value of the relay switch group to be judged are not in the increment 1 relation, the relay switch group is invalid, otherwise, the relay switch group is not invalid; the method comprises the steps that if the current action counting value and the previous action counting value of the relay switch group to be judged are not in the increasing 1 relation for S times continuously, the relay switch group is invalid, otherwise, the relay switch group is not invalid; and S is an integer greater than or equal to 2.
Judging whether the relay switch group with the detection mark in the detection state is invalid or not, wherein the method also or alternatively judges that the relay switch group is invalid if the current action counting value and the previous action counting value which are accumulated for W times by the relay switch group to be judged are not in a relationship of increasing 1, otherwise, the relay switch group is not invalid; and W is an integer greater than or equal to 2.
The action times of the L relay switch groups are respectively counted to obtain L action counting values, and the L action counting values are realized by L switch group action counting units with the same structure and composition; the switch group action counting unit comprises a pulse generating circuit, an RS trigger and a three-state output counting circuit; the pulse generating circuit outputs a first initial pulse and a second initial pulse generated by the action of the relay switch group; the RS trigger converts the input first initial pulse and the second initial pulse into a counting pulse after the edge jitter interference pulse is filtered; the tri-state output counting circuit counts the counting pulse and outputs an action counting value. The relay switch group consists of a relay normally open switch and a relay normally closed switch in the same relay; the level change of the first initial pulse is consistent with the action change of a normally open switch in the relay switch group, and the level change of the second initial pulse is consistent with the action change of a normally closed switch in the relay switch group; when the normally open switch and the normally closed switch in the relay switch group are in all off states, the states of the first initial pulse and the second initial pulse output by the pulse generating circuit are both invalid signal input states of the RS trigger. The maximum count value of the switch group operation counting unit is M.
The relay life counting and measuring method is realized by a relay life counting and measuring device comprising a controller unit and a relay driving unit; the L relay switch groups are controlled to act once, and the controller unit sends a relay driving signal to the relay driving unit to realize the control.
The action count values of the L switch group action count units are all output in a three-state buffer mode; the tri-state buffer output ports of all the switch group action counting units are all connected in parallel to the counting data input port of the controller unit; the controller unit sends out gating control signals to enable the three-state buffer output ports of the switch group action counting units one by one, and corresponding action counting values are read in from the counting data input port.
The relay life counting and measuring device also comprises a gating control unit; the controller unit sends an address coding signal of the switch group action counting unit to the gating control unit, and the gating control unit decodes the address coding signal of the switch group action counting unit to obtain a gating control signal.
The invention has the beneficial effects that: the relay service life measurement is carried out in a mode that a normally open switch and a normally closed switch in the same relay form a switch group, and the service lives of a plurality of relay switch groups in a plurality of relays can be detected at the same time; the RS trigger is adopted to automatically filter the edge jitter interference in the electric pulse generated by the action of the relay switch group, so that the accuracy of the detection of the service life of the relay is ensured; the mode that a plurality of counters are arranged outside the controller unit and count the action times of the relay switch group respectively is adopted, and the number of the relay switch groups for detecting the service life of the relay is not limited by the number of the counters inside the controller unit.
Drawings
Fig. 1 is a block diagram of an embodiment of a relay life counting and measuring device when L is 4;
FIG. 2 shows an embodiment of a switch block motion counting unit;
FIG. 3 shows an embodiment of a 1# pulse generating circuit;
FIG. 4 is an RS flip-flop embodiment;
FIG. 5 is a tri-state output counting circuit embodiment;
fig. 6 is a relay drive unit embodiment.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The relay life counting and measuring method is realized by a relay life counting and measuring device comprising a controller unit, L switch group action counting units, a human-computer interface unit and a relay driving unit. The human-computer interface unit is electrically connected to the controller unit and used for sending out a detection command and displaying the service life of the L relay switch groups; the controller unit is electrically connected to the relay driving unit and sends a relay driving signal to the relay driving unit to control the actions of the L relay switch groups; the L switch group action counting units respectively count the action times of the L relays to obtain L action counting values; the switch group action counting unit is electrically connected to the controller unit, and the controller unit respectively reads in action counting values of the L switch group action counting units. When the L value is larger, the action count values of the L switch group action count units are all output in a three-state buffer mode; the tri-state buffer output ports of all the switch group action counting units are all connected in parallel to the counting data input port of the controller unit; the controller unit sends out gating control signals to enable the three-state buffer output ports of the switch group action counting units one by one, and corresponding action counting values are read in from the counting data input port; the controller unit sends out a zero clearing signal to clear 0 the action count value of the L switch group action count units. The relay life counting and measuring device can further comprise a gating control unit which is electrically connected to the controller unit; the controller unit sends an address coding signal of the switch group action counting unit to the gating control unit, the gating control unit decodes the address coding signal of the switch group action counting unit to obtain a gating control signal, and a tri-state buffer output port of the switch group action counting unit corresponding to the address coding signal of the switch group action counting unit is enabled. The 1 relay switch group refers to a switch group consisting of 1 relay normally-open switch and 1 relay normally-closed switch in the same relay; the L relay switch groups can be all in the same relay or respectively in a plurality of relays, and the number of the relay switch groups in each relay can be the same or different.
fig. 1 is a block diagram of an embodiment of a relay life counting and measuring device when L is 4, and includes a controller unit 10, a 1# switch group operation counting unit 11, a 2# switch group operation counting unit 12, a 3# switch group operation counting unit 13, a 4# switch group operation counting unit 14, a human-machine interface unit 15, a gate control unit 16, and a relay driving unit 17, and can simultaneously count and measure the lives of 4 relay switch groups.
The human-machine interface unit 15 communicates with the controller unit 10 through an interface I/O1 of the controller unit 10, and is used for detecting issuance of commands, parameter modification, display of the service life of each relay switch group, and the like; the controller unit 10 sends a relay driving signal to the relay driving unit 17 through the output port OUT2 to control the actions of the relay switch groups from 1# to 4 #; a 1# switch group action counting unit 11, a 2# switch group action counting unit 12, a 3# switch group action counting unit 13 and a 4# switch group action counting unit 14 respectively carry out electric pulse generation, filtering and action frequency counting on 4 relay switch groups; the controller unit 10 sends an address coding signal of a switch group action counting unit to be gated to the gating control unit 16 through an output port OUT1, the gating control unit 16 decodes the address coding signal of the switch group action counting unit to obtain gating control signals CS1, CS2, CS3 and CS4, and respectively controls action counting values CV1, CV2, CV3 and CV4 of the 1# switch group action counting unit 11, the 2# switch group action counting unit 12, the 3# switch group action counting unit 13 and the 4# switch group action counting unit to be sent to the controller unit 10 through an input port IN1, wherein the IN1 is a counting data input port of the controller unit; controller section 10 sends clear 0 signal CLR to # 1 switch group operation counting section 11, # 2 switch group operation counting section 12, # 3 switch group operation counting section 13, and # 4 switch group operation counting section 14 through output port OUT 3; when the clear 0 signal CLR is valid, the action count values of the 4 switch group action count units are all cleared by 0.
Fig. 2 is a block diagram of an embodiment of a 1# switch group action counting unit. In fig. 2, the 1# pulse generating circuit 100 outputs a first initial pulse P11 and a second initial pulse P12 generated by the operation of the 1# relay switch group; the RS flip-flop 101 converts the input first initial pulse P11 and the second initial pulse P12 into a counting pulse P13 after the edge jitter interference pulse is filtered; the tri-state output counting circuit 102 counts the counting pulse P13, is controlled by a gating control signal CS1, and outputs an action counting value CV1 of the 1# relay switch group; the tri-state output counter circuit 102 is simultaneously controlled by the clear 0 signal CLR, and when the clear 0 signal CLR is active, the action count value in the tri-state output counter circuit 103 is cleared by 0.
FIG. 3 shows an embodiment of a 1# pulse generating circuit. The 1# relay switch group comprises a normally open switch KA1-1 and a normally closed switch KA 1-2; the KA1-1 is connected in series with the load resistor R11 and then connected in parallel to the direct current power supply + VCC1 and the common ground GND; the resistor R13 and the resistor R14 form a voltage dividing circuit, voltage on the load resistor R11 is divided, and a first initial pulse P11 generated by the on-off of a normally open switch KA1-1 in a 1# relay switch group is output; the diode VD1 plays a role in unidirectional conduction protection, and the diode TVS1 plays a role in amplitude limiting and reverse protection. The KA1-2 is connected in series with the load resistor R12 and then connected in parallel to the power supply + VCC1 and the common ground GND; the resistor R13 and the resistor R14 form a voltage dividing circuit, voltage on the load resistor R12 is divided, and a second initial pulse P12 generated by the on-off of a normally closed switch KA1-2 in a 1# relay switch group is output; the diode VD2 plays a role in unidirectional conduction protection, and the diode TVS2 plays a role in amplitude limiting and reverse protection. The diodes TVS1 and TVS2 are selected from zener diodes or TVS transistors. The sizes of the load resistors R11 and R12 are changed, so that the sizes of resistive direct current load currents of the normally open switch KA1-1 and the normally closed switch KA1-2 in the relay switch group to be detected can be adjusted. The voltage division ratio of the 2 voltage division circuits needs to be comprehensively considered according to the size of the power supply + VCC1 and the allowable high-level and low-level ranges of P11 and P12.
When the load of the relay switch group to be detected needs to be supplied with power by an alternating current power supply, in the embodiment of the 1# pulse generating circuit in fig. 3, the direct current power supply + VCC1 and GND can be replaced by alternating current power supplies AC1 and AC2, and the positive half wave is set when the potential of the AC1 is higher than that of the AC 2. When the normally open switch KA1-1 is switched on, the first initial pulse P11 outputs a pulse wave with the period of 20ms and the duty ratio of less than 50%; when the normally-open switch is switched off KA1-1, the first initial pulse P11 outputs a low level; when the normally closed switch KA1-2 is switched on, the second initial pulse P12 outputs a pulse wave with the period of 20ms and the duty ratio of less than 50%; when the normally closed switch KA1-2 is opened, the second initial pulse P12 outputs a low level; when the 1# relay switch group is operated to switch the switching state, jitter pulses with variable widths and intervals may be generated at the beginning and end of a pulse wave with a period of 20ms and a duty ratio of less than 50%. Similarly, the sizes of the load resistors R11 and R12 can be changed, so that the sizes of the resistive alternating current load currents of the normally open switch KA1-1 and the normally closed switch KA1-2 in the relay switch group to be detected can be adjusted. The voltage division ratio of the 2 voltage division circuits needs to be comprehensively considered according to the peak sizes of the alternating current power supplies AC1 and AC2, and the allowable high-level and low-level ranges of P11 and P12. The load resistors R11 and R12 may be inductive or capacitive loads.
Fig. 4 is an RS flip-flop embodiment. In fig. 4, the nor gates FO1 and FO2 constitute an RS flip-flop, the first start pulse P11 is a set signal of the RS flip-flop, and the second start pulse P12 is a reset signal of the RS flip-flop, both of which are active high. When a normally open switch KA1-1 in the 1# relay switch group is opened and a normally closed switch KA1-2 is closed, P11 is at a low level, and a counting pulse P13 output from FO2 is set to be 0 by the high level or positive pulse of P12; when a normally open switch KA1-1 and a normally closed switch KA1-2 in the 1# relay switch group are closed, P12 is at a low level, and counting pulses P13 are set to be 1 by the high level or positive pulse of P11; when a normally open switch and a normally closed switch in the relay switch group act, the normally open switch and the normally closed switch are both opened and then closed, when a 1# relay switch group acts in a power-on action or a power-off action process of a relay coil, the normally open switch KA1-1 and the normally closed switch KA1-2 are in a completely disconnected state for a short time, at the moment, P11 and P12 are both in a low level, and the state of a counting pulse P13 is maintained; when the normally open switch is switched from off to on, the normally closed switch is already switched off, the reset signal is invalid, and even if a shaking pulse exists when the normally open switch is switched from off to on, the shaking pulse is a valid set signal, and P13 is set to be 1; similarly, when the normally closed switch is turned on from off, the normally open switch is already turned off and the set signal is not asserted, and when the normally closed switch is turned on from off, even if there is a dither pulse, the dither pulse is an asserted reset signal and sets P13 to 0. In fig. 4, the output terminal of the nor gate FO2 is the non-inverting output terminal of the RS flip-flop; the count pulse P13 may also be output from the inverting output of the RS flip-flop, i.e., the output of the or gate FO 1.
The RS flip-flop can also adopt other forms of RS flip-flops than fig. 4, and the pulse generating circuit can also adopt other forms of circuits than fig. 3. Because the first initial pulse and the second initial pulse output by the pulse generating circuit are used as input signals of the RS trigger, and the RS trigger does not allow the input set signal and the input reset signal to be simultaneously effective, the principle of the pulse generating circuit for generating the first initial pulse and the second initial pulse is as follows: when the normally open switch and the normally closed switch of the relay switch group are in all off states in the process of power-on action or power-off action of the relay coil, the states of the first initial pulse and the second initial pulse output by the pulse generating circuit are both invalid signal input states of the RS trigger. For example, when the set signal and the reset signal input by the RS flip-flop are both high level and effective, when the normally open switch and the normally closed switch in the relay switch group are all open, the first initial pulse and the second initial pulse are both low level; when the set signal and the reset signal input by the RS trigger are both effective in low level, when the normally open switch and the normally closed switch in the relay switch group are both disconnected, the first initial pulse and the second initial pulse are both high level.
Fig. 5 is a tri-state output counting circuit embodiment. Fig. 5(a) shows tristate output counting circuit embodiment 1, which is composed of counter FC1 and not gate FN1, and FC1 is 8-bit binary counter 74HC590 with tristate output. The count permission end CCKEN of the FC1 inputs 0, and the clear 0 control end CCLR is a clear 0 signal CLR input end of the tri-state output counting circuit; when the clear 0 signal CLR is active low, that is, the clear 0 signal CLR output by the controller unit is low, the action count value in the counter FC1 is cleared 0; when the clear 0 signal CLR output from the controller unit is at a high level, the FC1 operates in an up-count state, the count pulse P13 is directly connected to the count pulse input CCK of the FC1, and the FC1 counts by 1 at the rising edge of the count pulse P13 to obtain an operation count value. The count pulse P13 is connected to the FC1 data latch RCK through the not gate FN1, and the content of the counter inside the FC1 is latched to the output latch at the falling edge of the count pulse P13. When the gate control signal CS1 is connected to the output enable control terminal G of the FC1 and CS1 is low, the FC1 outputs the operation count value CV1 in the output latch from Q7 to Q0; when CS1 is at high level, Q7-Q0 of FC1 are in high-impedance state. The tri-state output counter circuit embodiment 1 outputs an operation count value of an 8-bit binary count value.
Fig. 5(b) shows tristate output counting circuit embodiment 2, which is composed of counter FC2 and tristate buffer FB1, FC2 is 4-bit binary counter 74HC161, FB1 is tristate buffer 74HC 244. Count control ends CTP and CTR of FC2 and a count control end LD are connected to 1, and a clear 0 control end CR is a clear 0 signal CLR input end of the tri-state output counting circuit; when the clear 0 signal CLR is active low, that is, the clear 0 signal CLR output by the controller unit is low, the action count value in the counter FC2 is cleared 0; when the clear 0 signal CLR outputted from the controller unit is at a high level, the FC2 operates in an up-count state, the count pulse P13 is directly connected to the count pulse input CP of the FC2, and the FC2 counts by 1 at the rising edge of the count pulse P13 to obtain an operation count value. The 4-bit data input terminals A3-A0 of the tristate buffer FB1 are respectively connected to the 4-bit count value output terminals Q3-Q0 of the counter FC2, the gating control signal CS1 is connected to the output enable control terminal 1G of the FB1, and when the CS1 is at a low level, the FB1 outputs the action count value CV1 output by the counter FC2 from Y3-Y0; when CS1 is at high level, Y3-Y0 of FB1 are in high-impedance state. The action count value output by the tri-state output counting circuit embodiment 2 is a 4-bit binary count value.
In the embodiment of the relay service life counting and measuring device when L is 4, the 2# switch group action counting unit, the 3# switch group action counting unit and the 4# switch group action counting unit adopt the same circuit composition and structure as the 1# switch group action counting unit, namely all the switch group action counting units comprise a pulse generating circuit, an RS trigger and a three-state output counting circuit; the composition and structure of all the pulse generating circuit, RS trigger and tri-state output counting circuit are the same.
fig. 6 is a relay drive unit embodiment. Fig. 6(a) is an embodiment of a relay coil powered by a dc power supply, and includes a transistor VT, a freewheeling diode VD, and a base resistor R61; the coil of the relay to be detected is connected in parallel with the nodes A1 and A2, and the direct current power supply of the coil of the relay is + V. Assuming that 4 relay switch groups in the embodiment of fig. 1 are included in 2 relays, only 2 relay coils J1, J2 are connected in parallel in fig. 6 (a). When a relay driving signal C1 sent by the controller unit is in a high level, all relay coils connected in parallel on the nodes A1 and A2 are electrified; when the relay driving signal C1 sent by the controller unit is in a low level, all the relay coils connected in parallel on the nodes A1 and A2 lose power; when the relay driving signal C1 sent by the controller unit changes one pulse period, the relay switch group in all the relays with the coils connected in parallel at the nodes A1 and A2 acts once. When the number of the relay coils is large and the transistor VT in fig. 6(a) is not fully driven, the same or similar driving circuit may be added to expand the driving capability.
fig. 6(b) is an embodiment of a relay coil powered by an ac power supply, and is composed of a current-driven solid-state relay SSR1, a voltage dependent resistor RU1, and a current limiting resistor R62; the coil of the relay to be detected is connected in parallel with the nodes B1 and B2, and the alternating current power supply of the coil of the relay is AC 0; + VCC is the current driven power supply of the SSR 1. Assuming that 4 relay switch groups in the embodiment of fig. 1 are included in 2 relays, only 2 relay coils J3, J4 are connected in parallel in fig. 6 (b). When a relay driving signal C2 sent by the controller unit is in a low level, all relay coils connected in parallel on the nodes B1 and B2 are electrified; when a relay driving signal C2 sent by the controller unit is in a high level, all relay coils connected in parallel on the nodes B1 and B2 lose power; when the relay driving signal C2 sent by the controller unit changes by one pulse period, the relay switch group in all the relays with the coils connected in parallel at the nodes B1 and B2 acts once. When the number of the relay coils is large and the solid-state relay SSR1 in fig. 6(b) is not enough to be driven completely, the same or similar driving circuit can be added to expand the driving capability.
When the relay coil using the dc power supply and the relay coil using the ac power supply exist in the relay in which the L relay switch groups are located, the circuits of fig. 6(a) and 6(b) can be used to perform classified driving. The relay drive unit may also employ other circuits as desired.
The human-computer interface unit preferably uses a touch screen and adopts RS485 or RS232 to communicate with the controller unit. The man-machine interface unit can also be optionally composed of a key circuit and a liquid crystal display.
the action count values of all the switch group action count units are output in a three-state buffer mode; all the tri-state buffer output ports of all the switch group action counting units are connected in parallel to the counting data input port of the controller unit, the controller unit sends out gating control signals to enable the tri-state buffer output ports of all the switch group action counting units respectively, and action count values output by the enabled tri-state buffer output ports are read in from the counting data input port. The action counting value in the embodiment 1 of the tri-state output counting circuit is 8-bit binary data, and the tri-state buffer output port of the switch group action counting unit and the counting data input port of the controller unit are 8-bit parallel ports; in embodiment 2 of the tri-state output counting circuit, the action count value is 4-bit binary data, and the tri-state buffer output port of the switch group action counting unit and the counting data input port of the controller unit are both 4-bit parallel ports. When the L value is small and the number of bits of the action counting value is small, the action counting value of the switch group action counting unit can be output without adopting a three-state buffer mode, and the action counting value output port of each switch group action counting unit is directly connected to different parallel ports of the controller unit; for example, when L is 4 and the operation count value is a 4-bit binary value, the operation count value output ports of the 4 switch group operation count units are directly connected to different parallel ports of the controller unit, and only 16-bit I/O port lines, i.e., 2 8-bit input ports, in total need to be consumed by the controller unit.
The controller unit sends out gating control signals through the gating control unit. The gating control unit is a decoder circuit and decodes the address coding signal of the switch group action counting unit sent by the controller unit to obtain a gating control signal. In the embodiment of fig. 1, the address code signals of the switch group operation counting units corresponding to the 1# switch group operation counting unit 11, the 2# switch group operation counting unit 12, the 3# switch group operation counting unit 13 and the 4# switch group operation counting unit are binary 00, 01, 10 and 11 respectively, and the decoded outputs are CS1, CS2, CS3 and CS 4; the controller unit enables CS1, CS2, CS3, and CS4 one by one, enables the tri-state buffer output port of each switch group operation count unit, and reads IN the corresponding operation count value from the count data input port IN 1. The decoder circuit of the gate control unit in the embodiment can select 74HC139, or 74HC138, or adopt gate circuit composition. When the value of L is large, the decoder circuit can adopt a plurality of pieces of 74HC139, or a multistage cascade circuit formed by 74HC138 and the like, or a plurality of gates. When the value of L is small, the gate control unit may be omitted, and the controller unit may directly send the gate control signals to the switch group operation counting units through the output port, for example, in the embodiment of fig. 1, the gate control signals CS1, CS2, CS3, and CS4 may be directly sent by the controller unit 10, and the gate control unit is not required.
The controller unit is used for controlling the whole relay life counting and measuring device and realizing the relay life counting and measuring method. The controller unit is preferably formed by using a single chip microcomputer as a core, and the core of the controller unit can also be ARM, or DSP, or a programmable controller. The method for measuring the service life count of the relay comprises the following steps:
step 1, initializing, namely setting detection marks of L relay switch groups to be in a detection state, clearing 0 by a service life counter, and sending a clear 0 signal to enable all L action count values to be clear 0;
Step 2, controlling the L relay switch groups to act once, and simultaneously counting the action times of the L relay switch groups respectively to obtain L action count values; the service life counter counts by adding 1;
step 3, reading current L action count values;
Step 4, judging whether the relay switch groups with the detection marks in the detection state are invalid one by one; setting the detection mark which is judged as the failure relay switch group at this time to be in a stop detection state, and simultaneously taking the count value of the current life counter as the life value of the relay switch group which is judged as the failure at this time;
and 5, if the detection marks of the L relay switch groups still have the detection state, returning to the step 2, otherwise, stopping detection.
the one-time on/off control of the L relay switch groups means that the controller unit sends a signal to operate the relay switch groups once through the relay driving unit, for example, the relay driving signal C1 sent by the controller unit in fig. 6(a) changes by one pulse cycle, or the relay driving signal C2 sent by the controller unit in fig. 6(b) changes by one pulse cycle. The service life counter is a software counter in the controller unit, the controller unit sends a signal for enabling the L relay switch groups to act once, and the count value of the service life counter is increased by 1. And meanwhile, the on-off times of the L relays are respectively counted to obtain L action count values, and the L action count values are respectively counted by L switch group action counting units outside the controller unit.
And judging whether the relay switch group with the detection mark in the detection state fails, wherein the method is that if the error between the controlled on-off times of the relay switch group to be judged and the action counting value is less than E, the relay switch group does not fail, otherwise, the relay switch group fails. The specific judgment method is that the count value of the current life counter is subjected to modulus operation on M to obtain a remainder Q; if the read action count value of the relay switch set to be judged at the time is K, when one of | K-Q | < E, or | K- (Q-M) | < E, or | K- (Q + M) | < E is satisfied, the error between the number of times the relay switch set to be judged is controlled to be turned on and off and the action count value is smaller than E. The action counting value adopts a cyclic counting mode, and after reaching the maximum value M of the three-state output counting circuit, 1 is added, and the overflow is changed into 0; taking the 4-bit binary operation count value outputted by the tri-state output counting circuit embodiment 2 as an example, the maximum count value M is 1111, and the next operation count value is 0; in the judgment expression, comparing K with Q-M, the influence of smaller K value plus counting overflow and larger Q value is counteracted; comparing K with Q + M offsets the effect of larger K value and smaller Q value modulo M. Because E is an integer which is more than or equal to 1 and less than or equal to M/2, after the error E is determined, the maximum count value of the action count value must be more than 2 times of E; for example, if E is determined to be 3, the maximum count value of the action count value must be greater than 6, and at this time, both the decimal BCD counter and the binary counter with more than 3 bits satisfy the requirement. And in the current L read action count values, the controller unit does not judge and process the action count value of the relay with the detection mark in the stop detection state.
Whether the relay switch group with the detection mark in the detection state is invalid or not can be judged, and the following method can also be adopted: when the current action counting value and the previous action counting value of the relay switch group are not in the increment 1 relation to be judged, the relay switch group is invalid, otherwise, the relay switch group is not invalid; or, when the current action counting value and the previous action counting value of the relay switch group to be judged for S times are not in the increasing 1 relation, the relay switch group is invalid, otherwise, the relay switch group is not invalid; and S is an integer greater than or equal to 2. Because the action counting value adopts a cyclic counting mode, the action counting value is overflowed to be 0 after reaching the maximum value of the three-state output counting circuit and then 1 is added; taking the 4-bit binary on-off count value output by the tri-state output counting circuit embodiment 2 as an example, the maximum value is 1111, and the next on-off count value satisfying the 1-increasing relationship is 0.
Whether the relay switch group with the detection mark in the detection state is invalid or not can be judged, and the following method can be adopted: when the current action counting value and the previous action counting value which are accumulated to reach W times by the relay switch group are not in the increment 1 relation, the relay switch group is invalid, otherwise, the relay switch group is not invalid; and W is an integer greater than or equal to 2.
the controller unit and the human-computer interface unit can adjust and display NO and NC duty ratios (namely, setting the proportion of pull-in time and release time) of the relay switch group, select a failure judgment mode, set and display failure judgment parameters, set and display action cycles of the relay switch group and the like according to needs. The relay life counting and measuring device can also be additionally provided with a temperature monitoring unit to monitor the temperature of the relay in the test process.
except for the technical features described in the specification, the method is the conventional technology which is mastered by a person skilled in the art. For example, the controller of the controller unit is selected, and the related peripheral control circuits are designed and programmed to realize the functions thereof; selecting or designing a gating control unit circuit to meet the requirement of decoding gating; selecting or designing a drive circuit of the relay drive unit to meet the requirement of controlling the L relay switch groups; selecting the composition and circuit structure of the human-computer interface unit, and connecting the human-computer interface unit with the controller unit to realize corresponding functions; and the like, are conventional techniques known to those skilled in the art.

Claims (9)

1. A method for measuring the service life count of a relay is characterized by comprising the following steps:
Step 1, initializing, namely setting detection marks of L relay switch groups to be in a detection state, clearing 0 by a service life counter, and sending a clear 0 signal to enable all L action count values to be clear 0;
Step 2, controlling the L relay switch groups to act once, and simultaneously counting the action times of the L relay switch groups respectively to obtain L action count values; the service life counter counts by adding 1;
Step 3, reading current L action count values;
Step 4, judging whether the relay switch groups with the detection marks in the detection state are invalid one by one; setting the detection mark which is judged as the failure relay switch group at this time to be in a stop detection state, and simultaneously taking the count value of the current life counter as the life value of the relay switch group which is judged as the failure at this time;
Step 5, if the detection marks of the L relay switch groups still have detection states, returning to the step 2, otherwise, stopping detection;
the action times of the L relay switch groups are respectively counted to obtain L action counting values, and the L action counting values are realized by L switch group action counting units with the same structure and composition; the switch group action counting unit comprises a pulse generating circuit, an RS trigger and a three-state output counting circuit;
The pulse generating circuit outputs a first initial pulse and a second initial pulse generated by the action of the relay switch group; the RS trigger converts the input first initial pulse and the second initial pulse into a counting pulse after the edge jitter interference pulse is filtered; the tri-state output counting circuit counts the counting pulse and outputs an action counting value.
2. The relay life count measuring method according to claim 1, characterized in that:
judging whether the relay switch group with the detection mark in the detection state fails, wherein the method is that if the error between the controlled on-off times of the relay switch group to be judged and the action counting value is less than E, the relay switch group does not fail, otherwise, the relay switch group fails; e is an integer greater than or equal to 1 and less than or equal to M/2, and M is the maximum count value of the action count values.
3. the relay life count measuring method according to claim 2, characterized in that:
The method for judging whether the error between the controlled on-off times of the relay switch group to be judged and the action counting value of the relay switch group to be judged is smaller than E is that the counting value of the current service life counter is subjected to modulus operation on M to obtain a remainder Q; and when the read action count value of the relay switch group to be judged at the time is K, and when one of | K-Q | < E, or | K- (Q-M) | < E, or | K- (Q + M) | < E is met, the error between the on-off control frequency of the relay to be judged and the action count value is smaller than E.
4. The relay life count measuring method according to claim 1, characterized in that:
Judging whether the relay switch group with the detection mark in the detection state is invalid or not, wherein the method is that when the current action counting value and the previous action counting value of the relay switch group to be judged are not in the increment 1 relation, the relay switch group is invalid, otherwise, the relay switch group is not invalid; the method comprises the steps that if the current action counting value and the previous action counting value of the relay switch group to be judged are not in the increasing 1 relation for S times continuously, the relay switch group is invalid, otherwise, the relay switch group is not invalid; and S is an integer greater than or equal to 2.
5. the relay life count measuring method according to claim 1, characterized in that:
judging whether the relay switch group with the detection mark in the detection state is invalid or not, wherein the method is that when the current action counting value and the previous action counting value which are accumulated to reach W times by the relay switch group to be judged are not in the increase 1 relation, the relay switch group is invalid, otherwise, the relay switch group is not invalid; and W is an integer greater than or equal to 2.
6. the relay life count measuring method according to claim 1, characterized in that: the relay switch group consists of a relay normally open switch and a relay normally closed switch in the same relay; the level change of the first initial pulse is consistent with the action change of a normally open switch in the relay switch group, and the level change of the second initial pulse is consistent with the action change of a normally closed switch in the relay switch group; when the normally open switch and the normally closed switch in the relay switch group are in all off states, the states of the first initial pulse and the second initial pulse output by the pulse generating circuit are both invalid signal input states of the RS trigger.
7. The relay life count measurement method according to any one of claims 1 to 6, characterized in that: the device is realized by a relay service life counting and measuring device comprising a controller unit and a relay driving unit; the L relay switch groups are controlled to act once, and the controller unit sends a relay driving signal to the relay driving unit to realize the control.
8. The relay life count measuring method according to claim 7, characterized in that: the action count values of the L switch group action counting units are all output in a three-state buffer mode; the tri-state buffer output ports of all the switch group action counting units are all connected in parallel to the counting data input port of the controller unit; the controller unit sends out gating control signals to enable the three-state buffer output ports of the switch group action counting units one by one, and corresponding action counting values are read in from the counting data input port.
9. The relay life count measuring method according to claim 8, characterized in that: the relay life counting and measuring device also comprises a gating control unit; the controller unit sends an address coding signal of the switch group action counting unit to the gating control unit, and the gating control unit decodes the address coding signal of the switch group action counting unit to obtain a gating control signal.
CN201711133940.8A 2017-11-16 2017-11-16 Relay life counting and measuring method Active CN107991605B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911076069.1A CN110763991B (en) 2017-11-16 2017-11-16 Relay life counting and measuring device
CN201711133940.8A CN107991605B (en) 2017-11-16 2017-11-16 Relay life counting and measuring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711133940.8A CN107991605B (en) 2017-11-16 2017-11-16 Relay life counting and measuring method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201911076069.1A Division CN110763991B (en) 2017-11-16 2017-11-16 Relay life counting and measuring device

Publications (2)

Publication Number Publication Date
CN107991605A CN107991605A (en) 2018-05-04
CN107991605B true CN107991605B (en) 2019-12-06

Family

ID=62029963

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201711133940.8A Active CN107991605B (en) 2017-11-16 2017-11-16 Relay life counting and measuring method
CN201911076069.1A Active CN110763991B (en) 2017-11-16 2017-11-16 Relay life counting and measuring device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201911076069.1A Active CN110763991B (en) 2017-11-16 2017-11-16 Relay life counting and measuring device

Country Status (1)

Country Link
CN (2) CN107991605B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109459686B (en) * 2018-10-09 2020-09-08 荣盛盟固利新能源科技有限公司 Electrical service life testing device for large-current electromagnetic relay
CN109901413B (en) * 2019-01-10 2022-05-24 国网诺博特江苏自动化设备有限公司 Framework capable of re-entering virtual relay and implementation method
CN109828203A (en) * 2019-03-20 2019-05-31 杭州市地铁集团有限责任公司运营分公司 A kind of relay contact automatic detection device and detection method
CN111965462B (en) * 2020-08-24 2023-07-21 中国科学院微电子研究所 Device and method for testing fatigue characteristics of gate tube
CN113589206A (en) * 2021-08-10 2021-11-02 江阴市懿泓电气有限公司 Electromagnet action frequency service life detection device
CN114089071A (en) * 2021-11-22 2022-02-25 南京熊猫汉达科技有限公司 Device and method for predicting state of harmonic filtering unit of short-wave transmitter

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1460863A (en) * 2003-05-16 2003-12-10 华东师范大学 Contact MEMS switch life testing method and its testing instrument
EP1755135A2 (en) * 2005-08-19 2007-02-21 ABB PATENT GmbH Circuit arrangement for the collection and evaluation of electrical and physical measured variables in an electrical switchgear
CN101330225A (en) * 2008-07-08 2008-12-24 奇瑞汽车股份有限公司 Apparatus for monitoring high voltage output of power battery
CN202013405U (en) * 2010-12-17 2011-10-19 杭州鸿雁电器有限公司 Device for detecting life of inductive electronic time-delay switch
CN203376449U (en) * 2013-07-03 2014-01-01 衢州三源汇能电子有限公司 Device for testing contact service life of relay
CN206618838U (en) * 2017-03-20 2017-11-07 陕西法士特齿轮有限责任公司 A kind of pressure switch function life-span test control system

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587167B (en) * 2009-07-08 2012-02-29 天津渤海易安泰电子半导体测试有限公司 Multi-functional integrated circuit chip testing machine
CN201615929U (en) * 2010-03-04 2010-10-27 济南中森机械制造有限公司 Reed pipe detector
JP2011210546A (en) * 2010-03-30 2011-10-20 Yamatake Corp Relay end-of-service-life forecasting device
CN202600109U (en) * 2012-03-30 2012-12-12 快捷半导体(苏州)有限公司 Button detection circuit, filter circuit and external equipment button detection chip
CN203643573U (en) * 2013-11-19 2014-06-11 湖南工业大学 An apparatus for measuring a jitter frequency of a button switch
CN203759206U (en) * 2014-01-23 2014-08-06 石家庄格力电器小家电有限公司 Reed switch detection apparatus
CN104009739B (en) * 2014-05-22 2016-10-26 湖南工业大学 The on-off control method thereof of a kind of standby automatic power-off switch and device
CN204065353U (en) * 2014-08-20 2014-12-31 芜湖美的厨卫电器制造有限公司 relay life test device
KR102034209B1 (en) * 2015-11-30 2019-10-18 주식회사 엘지화학 Apparatus and method for estimating life of relay
CN205981383U (en) * 2016-07-19 2017-02-22 天津市炳华节能技术有限公司 Intelligence water gauge tongue tube testing platform
CN106772017B (en) * 2017-01-17 2023-11-17 云南电网有限责任公司西双版纳供电局 Automatic measuring instrument for relay action power
CN107247229A (en) * 2017-06-09 2017-10-13 湖南中车时代通信信号有限公司 The detection method and electronic installation of the service life for the mechanical organ being easily lost

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1460863A (en) * 2003-05-16 2003-12-10 华东师范大学 Contact MEMS switch life testing method and its testing instrument
EP1755135A2 (en) * 2005-08-19 2007-02-21 ABB PATENT GmbH Circuit arrangement for the collection and evaluation of electrical and physical measured variables in an electrical switchgear
CN101330225A (en) * 2008-07-08 2008-12-24 奇瑞汽车股份有限公司 Apparatus for monitoring high voltage output of power battery
CN202013405U (en) * 2010-12-17 2011-10-19 杭州鸿雁电器有限公司 Device for detecting life of inductive electronic time-delay switch
CN203376449U (en) * 2013-07-03 2014-01-01 衢州三源汇能电子有限公司 Device for testing contact service life of relay
CN206618838U (en) * 2017-03-20 2017-11-07 陕西法士特齿轮有限责任公司 A kind of pressure switch function life-span test control system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于嵌入式技术的开关寿命测试仪的设计;张光建等;《微计算机信息》;20061231;第22卷(第5-2期);第1-4部分 *

Also Published As

Publication number Publication date
CN107991605A (en) 2018-05-04
CN110763991B (en) 2021-10-01
CN110763991A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN107991605B (en) Relay life counting and measuring method
CN107976626B (en) Relay life detection device
CN104904108B (en) Signal transfering circuit
CN102064807A (en) Switch circuit having overcurrent detection function
US8144047B2 (en) Current-mode dual-slope temperature-digital conversion device
WO2011153028A2 (en) Toggling method and apparatus in controllers for home appliances
CN108450045A (en) The driving device of semiconductor element
CN201242765Y (en) Universal counting device for incremental encoder
CN110658448B (en) Reed pipe service life detection device
CN207601259U (en) A kind of relay life count measurement device
CN107966655B (en) Reed pipe service life counting and measuring method
CN206211499U (en) Overvoltage crowbar
Ruzicka On bifunctional polymorphic gates controlled by a special signal
US20170257090A1 (en) Three-Lead Electronic Switch System Adapted to Replace a Mechanical Switch
Ruzicka New polymorphic NAND/XOR gate
CN219552539U (en) Verification device for resistance measurement value
CN202210789U (en) Household electronic apparatus automatic socket for serial port inquiry management
CN201400527Y (en) Contactless programmable control device for crane
CN217007603U (en) Voltage detection circuit and metering device
CN111947708A (en) Power line and signal line sharing circuit of sensor
CN108170083A (en) A kind of ball mill intelligent energy-saving electric appliance
RU2221328C1 (en) Parallel binary pulse counter
SU1718346A1 (en) Gate switch controlled
SU1446637A1 (en) Device for monitoring the service life of switching units
Sahoo et al. Touch screen based speed control of single phase induction motor

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
TR01 Transfer of patent right

Effective date of registration: 20200720

Address after: 221300 Tiefu Street, Tiefu Town, Pizhou City, Jiangsu Province (Cultural Center)

Patentee after: PIZHOU TIEFU JIULONG PUBLIC SERVICE Co.,Ltd.

Address before: 232200 Democratic constituency of Shiji street, Anfeng Town, Shouxian County, Huainan City, Anhui Province

Patentee before: Wang Jingjing

Effective date of registration: 20200720

Address after: 232200 Democratic constituency of Shiji street, Anfeng Town, Shouxian County, Huainan City, Anhui Province

Patentee after: Wang Jingjing

Address before: 412007 science and Technology Department, Hunan University of Technology, 88 West Taishan Road, Zhuzhou, Hunan

Patentee before: HUNAN University OF TECHNOLOGY

TR01 Transfer of patent right