[go: up one dir, main page]

CN110763991A - Relay life count measuring device - Google Patents

Relay life count measuring device Download PDF

Info

Publication number
CN110763991A
CN110763991A CN201911076069.1A CN201911076069A CN110763991A CN 110763991 A CN110763991 A CN 110763991A CN 201911076069 A CN201911076069 A CN 201911076069A CN 110763991 A CN110763991 A CN 110763991A
Authority
CN
China
Prior art keywords
relay
switch group
action
counting
unit
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.)
Granted
Application number
CN201911076069.1A
Other languages
Chinese (zh)
Other versions
CN110763991B (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.)
Heilongjiang Zhongke Xipu Electrical Appliances 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
Publication of CN110763991A publication Critical patent/CN110763991A/en
Application granted granted Critical
Publication of CN110763991B publication Critical patent/CN110763991B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)
  • Relay Circuits (AREA)
  • Electronic Switches (AREA)

Abstract

一种继电器寿命计数测量装置,包括控制器单元、L个开关组动作计数单元、人机界面单元、继电器驱动单元。人机界面单元用于发出检测命令,显示L个继电器开关组的寿命;控制器单元向继电器驱动单元发出继电器驱动信号,控制L个继电器开关组的动作;L个开关组动作计数单元分别对L个继电器开关组的动作进行计数得到L个动作计数值并送至控制器单元。所述装置采用在控制器单元外部设置多个计数器分别对继电器开关组的动作次数进行计数的方式,能够自动滤除继电器开关组动作所产生的电脉冲中的边沿抖动干扰,保证了继电器寿命检测的精确性,且同时检测继电器寿命的继电器开关组数量不受控制器单元内部计数器数量的限制。

Figure 201911076069

A relay life counting and measuring device includes a controller unit, an action counting unit of L switch groups, a man-machine interface unit, and a relay driving unit. The man-machine interface unit is used to issue a detection command to display the life of the L relay switch groups; the controller unit sends a relay drive signal to the relay drive unit to control the actions of the L relay switch groups; the L switch group action counting units respectively The actions of each relay switch group are counted to obtain L action count values and sent to the controller unit. The device adopts the method of setting a plurality of counters outside the controller unit to count the number of actions of the relay switch group respectively, which can automatically filter out the edge jitter interference in the electrical pulses generated by the action of the relay switch group, and ensure the life detection of the relay. The accuracy of the relay switch group is not limited by the number of internal counters in the controller unit.

Figure 201911076069

Description

继电器寿命计数测量装置Relay life count measuring device

本发明专利申请为分案申请,原案申请号为201711133940.8,申请日为2017年11月16日,发明名称为继电器寿命计数测量方法。The patent application of the present invention is a divisional application, the original application number is 201711133940.8, the application date is November 16, 2017, and the name of the invention is the relay life count measurement method.

技术领域technical field

本发明涉及测试方法与装置领域,尤其是一种继电器寿命计数测量装置。The invention relates to the field of testing methods and devices, in particular to a relay life count measuring device.

背景技术Background technique

继电器寿命一般在几万次至数十万次。模拟继电器的使用条件,通过控制继电器动作使其开关通断产生电脉冲,然后对电脉冲进行计数,可以测试继电器寿命。继电器动作所产生的电脉冲含有边沿抖动,直接对未处理的脉冲进行计数,会产生极大的误差。使用MCU软件延时方式去除抖动脉冲的影响,当MCU需要同时对多个继电器进行寿命测试时,MCU的软件延时方式会使MCU力不从心。The life of the relay is generally tens of thousands to hundreds of thousands of times. Simulate the use conditions of the relay, by controlling the action of the relay to make the switch on and off to generate electric pulses, and then counting the electric pulses, the life of the relay can be tested. The electrical pulses generated by the relay action contain edge jitter, and directly counting the unprocessed pulses will cause great errors. Use the MCU software delay method to remove the influence of the jitter pulse. When the MCU needs to perform life testing on multiple relays at the same time, the MCU software delay method will make the MCU unable to do what it wants.

发明内容SUMMARY OF THE INVENTION

为了解决现有继电器寿命测量方面所存在的问题,本发明提供了一种继电器寿命计数测量装置。所述装置包括控制器单元、L个开关组动作计数单元、人机界面单元、继电器驱动单元。In order to solve the problems existing in the life measurement of the existing relays, the present invention provides a relay life counting and measuring device. The device includes a controller unit, an action counting unit of L switch groups, a man-machine interface unit, and a relay driving unit.

人机界面单元电性连接至控制器单元,用于发出检测命令,显示L个继电器开关组的寿命;控制器单元电性连接至继电器驱动单元,向继电器驱动单元发出继电器驱动信号,控制L个继电器开关组的动作;L个开关组动作计数单元分别对L个继电器开关组的动作进行计数得到L个动作计数值;开关组动作计数单元电性连接至控制器单元,用于控制器单元分别读入L个开关组动作计数单元的动作计数值和控制L个开关组动作计数单元动作计数值的清0。The man-machine interface unit is electrically connected to the controller unit for issuing detection commands and displaying the lifespan 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 L relay switch groups. Actions of the relay switch groups; the L switch group action counting units respectively count the actions of the L relay switch groups to obtain L action count values; the switch group action counting units are electrically connected to the controller unit for the controller units to separate Read in the action count values of the L switch group action count units and control the clearing of the action count values of the L switch group action count units.

开关组动作计数单元电性连接至控制器单元,用于控制器单元分别读入L个开关组动作计数单元的动作计数值的方法是,L个开关组动作计数单元的动作计数值均采用三态缓冲方式输出;所有开关组动作计数单元的三态缓冲输出端口全部并联至控制器单元的计数数据输入端口;控制器单元发出选通控制信号逐个使能各开关组动作计数单元的三态缓冲输出端口,从计数数据输入端口读入相应的动作计数值。The switch group action counting unit is electrically connected to the controller unit, and the method for the controller unit to read in the action count values of the L switch group action count units respectively is that the action count values of the L switch group action count units are all three. The output ports of all switch group action counting units are all connected in parallel to the count data input port of the controller unit; the controller unit sends a gating control signal to enable the tri-state buffering of each switch group action counting unit one by one The output port reads the corresponding action count value from the count data input port.

所述继电器寿命计数测量装置还包括选通控制单元;控制器单元向选通控制单元发出开关组动作计数单元地址编码信号,由选通控制单元对开关组动作计数单元地址编码信号进行译码,得到选通控制信号。The relay life counting and measuring device further comprises a gating control unit; the controller unit sends a switch group action counting unit address coding signal to the gating control unit, and the gating control unit decodes the switch group action counting unit address coding signal, Get the gating control signal.

L个开关组动作计数单元均包括结构与组成相同的脉冲产生电路、RS触发器和三态输出计数电路。脉冲产生电路输出由继电器开关组动作所产生的第一初始脉冲和第二初始脉冲;RS触发器将输入的第一初始脉冲和第二初始脉冲转换为滤除边沿抖动干扰脉冲后的计数脉冲;三态输出计数电路对计数脉冲进行计数,输出动作计数值。The L switch group action counting units all include a pulse generating circuit, an RS flip-flop and a tri-state output counting circuit with the same structure and composition. The pulse generating circuit outputs the first initial pulse and the 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 the counting pulse after filtering out the edge jitter interference pulse; The three-state output counting circuit counts the counting pulses and outputs the action count value.

继电器开关组由在同一个继电器中的继电器常开开关和继电器常闭开关组成;第一初始脉冲的电平变化与继电器开关组中常开开关的动作变化一致,第二初始脉冲的电平变化与继电器开关组中常闭开关的动作变化一致;继电器开关组中常开开关和常闭开关处于全部断开状态时,其脉冲产生电路输出的第一初始脉冲、第二初始脉冲的状态均为RS触发器的无效信号输入状态。The relay switch group is composed of the relay normally open switch and the relay normally closed switch in the same relay; the level change of the first initial pulse is consistent with the action change of the normally open switch in the relay switch group, and the level change of the second initial pulse is the same as that of the relay switch group. The action changes of the normally closed switches in the relay switch group are consistent; when the normally open switches and normally closed switches in the relay switch group are all disconnected, the state of the first initial pulse and the second initial pulse output by the pulse generating circuit are both RS triggers The invalid signal input status of .

所述继电器寿命计数测量装置进行继电器寿命计数测量的步骤包括:The steps of the relay life count measurement device for performing the relay life count measurement include:

步骤1,初始化,包括将L个继电器开关组的检测标志均置为在检状态,寿命计数器清0,发出清0信号使L个动作计数值全部清0;Step 1, initialization, including setting the detection flags of the L relay switch groups to the detection state, clearing the life counter to 0, and sending a clear signal to clear all the L action count values to 0;

步骤2,控制L个继电器开关组动作一次,同时对L个继电器开关组的动作次数分别进行计数得到L个动作计数值;寿命计数器进行加1计数;Step 2, controlling the L relay switch groups to act once, and simultaneously counting the number of actions of the L relay switch groups to obtain L action count values; the life counter is incremented by 1;

步骤3,读取当次L个动作计数值;Step 3, read the count value of the current L actions;

步骤4,逐个对检测标志为在检状态的继电器开关组是否失效进行判断;将本次被判断为失效继电器开关组的检测标志置为停检状态,同时将当前寿命计数器的计数值作为该次被判断为失效继电器开关组的寿命值;Step 4, one by one, judge whether the relay switch group whose detection mark is in the state of inspection is invalid; set the detection mark of the relay switch group that is judged to be invalid this time to the state of stop inspection, and at the same time use the count value of the current life counter as this time. It is judged as the life value of the failure relay switch group;

步骤5,L个继电器开关组的检测标志中仍有在检状态者,返回步骤2,否则停止检测。Step 5, if the detection flags of the L relay switch groups are still in the detection state, return to Step 2, otherwise stop detection.

对检测标志为在检状态的继电器开关组是否失效进行判断,方法是,待判断继电器开关组被控制通断的次数与其动作计数值之间的误差小于E,则该继电器开关组未失效,否则失效;所述M为动作计数值的最大计数值,所述E为大于等于1且小于等于M/2的整数。所述待判断继电器被控制通断的次数与其动作计数值之间的误差小于E的判断方法是,将当前寿命计数器的计数值对M取模,得到余数Q;读取的当次待判断继电器动作计数值为K,则当满足|K-Q|<E,或者是|K-(Q-M)|<E,或者是|K-(Q+M)|<E三者之一时,待判断继电器被控制通断的次数与其动作计数值之间的误差小于E。The method is to judge whether the relay switch group whose detection flag is in the state of inspection is invalid. The method is that the error between the number of times the relay switch group is controlled to be turned on and off and its action count value is less than E, then the relay switch group is not invalid, otherwise Invalid; the M is the maximum count value of the action count value, and the E is an integer greater than or equal to 1 and less than or equal to M/2. The judgment method that the error between the number of times the relay to be judged is controlled on and off and its action count value is less than E is to take the count value of the current life counter to M to obtain the remainder Q; If the action count value is K, the relay to be judged is controlled when it satisfies |K-Q|<E, or |K-(Q-M)|<E, or |K-(Q+M)|<E The error between the number of on and off and its action count value is less than E.

对检测标志为在检状态的继电器开关组是否失效进行判断,方法或者是是,待判断继电器开关组的当次动作计数值与前次动作计数值不是增1关系时,则该继电器开关组失效,否则未失效;方法或者是,待判断继电器开关组连续S次的当次动作计数值与前次动作计数值不是增1关系时,则该继电器开关组失效,否则未失效;所述S为大于等于2的整数。Judging whether the relay switch group whose detection flag is in the state of inspection is invalid, the method is either, when the count value of the current action of the relay switch group to be judged is not in the relationship of incrementing the count value of the previous action, then the relay switch group is invalid. , otherwise it does not fail; method or is, when it is to be judged that the count value of the current action of the relay switch group for S consecutive times and the count value of the previous action are not in the relationship of increasing by 1, then the relay switch group is invalid, otherwise it is not invalid; the S is Integer greater than or equal to 2.

对检测标志为在检状态的继电器开关组是否失效进行判断,方法还或者是,待判断继电器开关组累计W次的当次动作计数值与前次动作计数值不是增1关系时,则该继电器开关组失效,否则未失效;所述W为大于等于2的整数。Judging whether the relay switch group whose detection flag is in the state of inspection is invalid, the method is alternatively, when it is to be judged that the current operation count value of the accumulated W times of the relay switch group and the previous operation count value are not in the relationship of increasing by 1, then the relay The switch group fails, otherwise it does not fail; the W is an integer greater than or equal to 2.

本发明的有益效果是:继电器寿命测量以同一继电器中的常开开关和常闭开关组成一个开关组的形式进行,能够同时对多个继电器中的多个继电器开关组的寿命进行检测;采用RS触发器自动滤除继电器开关组动作所产生的电脉冲中的边沿抖动干扰,保证了继电器寿命检测的精确性;采用在控制器单元外部设置多个计数器分别对继电器开关组的动作次数进行计数的方式,同时检测继电器寿命的继电器开关组数量不受控制器单元内部计数器数量的限制。The beneficial effects of the invention are: the relay life measurement is carried out in the form of a switch group composed of normally open switches and normally closed switches in the same relay, and the service life of multiple relay switch groups in multiple relays can be detected at the same time; using RS The trigger automatically filters out the edge jitter interference in the electrical pulse generated by the action of the relay switch group, which ensures the accuracy of the relay life detection; multiple counters are set outside the controller unit to count the number of actions of the relay switch group respectively. In this way, the number of relay switch groups that can detect the relay life at the same time is not limited by the number of counters inside the controller unit.

附图说明Description of drawings

图1为L=4时继电器寿命计数测量装置实施例框图;1 is a block diagram of an embodiment of a relay life count measuring device when L=4;

图2为开关组动作计数单元实施例;2 is an embodiment of a switch group action counting unit;

图3为1#脉冲产生电路实施例;Fig. 3 is 1# pulse generation circuit embodiment;

图4为RS触发器实施例;Fig. 4 is an RS trigger embodiment;

图5为三态输出计数电路实施例;5 is an embodiment of a three-state output counting circuit;

图6为继电器驱动单元实施例。FIG. 6 is an embodiment of a relay driving unit.

具体实施方式Detailed ways

以下结合附图对本发明作进一步说明。所述继电器寿命计数测量装置包括控制器单元、L个开关组动作计数单元、人机界面单元、继电器驱动单元。人机界面单元电性连接至控制器单元,用于发出检测命令,显示L个继电器开关组的寿命;控制器单元电性连接至继电器驱动单元,向继电器驱动单元发出继电器驱动信号,控制L个继电器开关组的动作;L个开关组动作计数单元分别对L个继电器的动作次数进行计数得到L个动作计数值;开关组动作计数单元电性连接至控制器单元,控制器单元分别读入L个开关组动作计数单元的动作计数值。当L值较大时,L个开关组动作计数单元的动作计数值均采用三态缓冲方式输出;所有开关组动作计数单元的三态缓冲输出端口全部并联至控制器单元的计数数据输入端口;控制器单元发出选通控制信号逐个使能各开关组动作计数单元的三态缓冲输出端口,从计数数据输入端口读入相应的动作计数值;控制器单元发出清零信号,使L个开关组动作计数单元的动作计数值被清0。所述继电器寿命计数测量装置还可以包括电性连接至控制器单元的选通控制单元;控制器单元向选通控制单元发出开关组动作计数单元地址编码信号,由选通控制单元对开关组动作计数单元地址编码信号进行译码,得到选通控制信号,使能与开关组动作计数单元地址编码信号相应的开关组动作计数单元的三态缓冲输出端口。1个继电器开关组指的是由在同一个继电器中的1个继电器常开开关和1个继电器常闭开关组成的开关组;L个继电器开关组可以全部在同一个继电器中,也可以分别在若干个继电器中,每个继电器中的继电器开关组数量可以相同,也可以不相同。The present invention will be further described below with reference to the accompanying drawings. The relay life counting and measuring device includes a controller unit, an action counting unit of L switch groups, a man-machine interface unit, and a relay driving unit. The man-machine interface unit is electrically connected to the controller unit for issuing detection commands and displaying the lifespan 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 L relay switch groups. The action of the relay switch group; the L switch group action counting units respectively count the action times of the L relays to obtain L action count values; the switch group action counting unit is electrically connected to the controller unit, and the controller unit reads L respectively. The action count value of each switch group action count unit. When the L value is large, the action count values of the L switch group action count units are output in tri-state buffer mode; the tri-state buffer output ports of all switch group action count units are all connected in parallel to the count data input port of the controller unit; The controller unit sends a gating control signal to enable the three-state buffer output ports of the action counting units of each switch group one by one, and reads the corresponding action count value from the counting data input port; the controller unit sends a clear signal to make L switch groups The action count value of the action count unit is cleared to 0. The relay life count measuring device may also include a gating control unit electrically connected to the controller unit; the controller unit sends a switch group action counting unit address coding signal to the gating control unit, and the gating control unit acts on the switch group. The counting unit address coding signal is decoded to obtain a gating control signal, which enables the tri-state buffer output port of the switch group action counting unit corresponding to the switch bank action counting unit address coding signal. 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; L relay switch groups can all be in the same relay, or can be separately in the same relay. In several relays, the number of relay switch groups in each relay may be the same or different.

图1为L=4时继电器寿命计数测量装置实施例框图,包括控制器单元10、1#开关组动作计数单元11、2#开关组动作计数单元12、3#开关组动作计数单元13、4#开关组动作计数单元14、人机界面单元15、选通控制单元16、继电器驱动单元17,能够同时对4个继电器开关组进行寿命计数测量。Fig. 1 is a block diagram of an embodiment of a relay life counting measuring device when L=4, including a controller unit 10, 1# switch group action counting unit 11, 2# switch group action counting unit 12, 3# switch group action counting unit 13, 4 #The switch group action counting unit 14, the man-machine interface unit 15, the gating control unit 16, and the relay drive unit 17 can simultaneously measure the life of four relay switch groups.

人机界面单元15通过控制器单元10的接口I/O1与控制器单元10通信,用于检测命令的发出、参数修改和各继电器开关组寿命的显示等;控制器单元10通过输出端口OUT2向继电器驱动单元17发出继电器驱动信号,控制1#至4#继电器开关组的动作;1#开关组动作计数单元11、2#开关组动作计数单元12、3#开关组动作计数单元13、4#开关组动作计数单元14分别对4个继电器开关组进行电脉冲产生、滤波和动作次数计数;控制器单元10通过输出端口OUT1向选通控制单元16发出待选通的开关组动作计数单元地址编码信号,选通控制单元16对开关组动作计数单元地址编码信号进行译码,得到选通控制信号CS1、CS2、CS3、CS4,分别控制1#开关组动作计数单元11、2#开关组动作计数单元12、3#开关组动作计数单元13、4#开关组动作计数单元的动作计数值CV1、CV2、CV3、CV4通过输入端口IN1送至控制器单元10,IN1为控制器单元的计数数据输入端口;控制器单元10通过输出端口OUT3向1#开关组动作计数单元11、2#开关组动作计数单元12、3#开关组动作计数单元13、4#开关组动作计数单元14发出清0信号CLR;清0信号CLR有效时,4个开关组动作计数单元的动作计数值均被清0。The man-machine interface unit 15 communicates with the controller unit 10 through the interface I/O1 of the controller unit 10, and is used for the issuance of detection commands, parameter modification and display of the life of each relay switch group; The relay drive unit 17 sends a relay drive signal to control the actions of the 1# to 4# relay switch groups; 1# switch group action counting unit 11, 2# switch group action counting unit 12, 3# switch group action counting unit 13, 4# The switch group action counting unit 14 respectively performs electrical pulse generation, filtering and counting the number of actions for the 4 relay switch groups; the controller unit 10 sends the address code of the switch group action counting unit to be gated to the gating control unit 16 through the output port OUT1 signal, the gating control unit 16 decodes the address coding signal of the switch group action counting unit, and obtains the gating control signals CS1, CS2, CS3, CS4, and controls the 1# switch group action counting unit 11 and the 2# switch group action count respectively. Unit 12, 3# switch group action count unit 13, 4# switch group action count unit The action count values CV1, CV2, CV3, CV4 of the switch group action count unit are sent to the controller unit 10 through the input port IN1, and IN1 is the count data input of the controller unit Port; controller unit 10 sends a clear signal to 1# switch group action counting unit 11, 2# switch group action counting unit 12, 3# switch group action counting unit 13, 4# switch group action counting unit 14 through output port OUT3 CLR; When the clear signal CLR is valid, the action count values of the 4 switch group action count units are all cleared to 0.

如图2所示为1#开关组动作计数单元实施例框图。图2中,1#脉冲产生电路100输出由1#继电器开关组动作所产生的第一初始脉冲P11和第二初始脉冲P12;RS触发器101将输入的第一初始脉冲P11和第二初始脉冲P12转换为滤除边沿抖动干扰脉冲后的计数脉冲P13;三态输出计数电路102对计数脉冲P13进行计数,受选通控制信号CS1的控制,输出1#继电器开关组的动作计数值CV1;三态输出计数电路102同时受清0信号CLR的控制,清0信号CLR有效时,三态输出计数电路103中的动作计数值被清0。Figure 2 is a block diagram of an embodiment of the 1# switch group action counting unit. In FIG. 2, the 1# pulse generation circuit 100 outputs the first initial pulse P11 and the second initial pulse P12 generated by the action of the 1# relay switch group; the RS flip-flop 101 will input the first initial pulse P11 and the second initial pulse P11 and the second initial pulse P12 is converted into the counting pulse P13 after filtering out the edge jitter interference pulse; the three-state output counting circuit 102 counts the counting pulse P13, controlled by the gating control signal CS1, and outputs the action count value CV1 of the 1# relay switch group; three The three-state output counting circuit 102 is also controlled by the clear-to-zero signal CLR. When the clear-to-zero signal CLR is valid, the action count value in the three-state output count circuit 103 is cleared to zero.

图3为1#脉冲产生电路实施例。1#继电器开关组包括常开开关KA1-1和常闭开关KA1-2;KA1-1与负载电阻R11串联后,并联至直流供电电源+VCC1和公共地GND;电阻R13、电阻R14组成分压电路,对负载电阻R11上的电压进行分压,输出由1#继电器开关组中常开开关KA1-1通断所产生的第一初始脉冲P11;二极管VD1起单向导通保护作用,二极管TVS1起限幅和反向保护作用。KA1-2与负载电阻R12串联后,并联至供电电源+VCC1和公共地GND;电阻R13、电阻R14组成分压电路,对负载电阻R12上的电压进行分压,输出由1#继电器开关组中常闭开关KA1-2通断所产生的第二初始脉冲P12;二极管VD2起单向导通保护作用,二极管TVS2起限幅和反向保护作用。二极管TVS1、TVS2选择稳压二极管或者是TVS管。改变负载电阻R11、R12的大小,可以调整待检测继电器开关组中常开开关KA1-1、常闭开关KA1-2的阻性直流负载电流的大小。2个分压电路的分压比例需要根据供电电源+VCC1大小,以及P11、P12的允许高电平、低电平范围综合考虑。FIG. 3 is an embodiment of a 1# pulse generating circuit. 1# Relay switch group includes normally open switch KA1-1 and normally closed switch KA1-2; KA1-1 is connected in series with load resistor R11, and then connected in parallel to DC power supply +VCC1 and common ground GND; resistor R13 and resistor R14 form a voltage divider The circuit divides the voltage on the load resistor R11, and outputs the first initial pulse P11 generated by the opening and closing of the normally open switch KA1-1 in the 1# relay switch group; the diode VD1 acts as a unidirectional conduction protection, and the diode TVS1 acts as a limit Amplitude and reverse protection. After KA1-2 is connected in series with the load resistor R12, it is connected in parallel to the power supply +VCC1 and the common ground GND; the resistor R13 and the resistor R14 form a voltage divider circuit to divide the voltage on the load resistor R12, and the output is connected to the 1# relay switch group. Close the second initial pulse P12 generated by the on-off of the switch KA1-2; the diode VD2 plays the role of unidirectional conduction protection, and the diode TVS2 plays the role of limiting and reverse protection. Diodes TVS1 and TVS2 select Zener diodes or TVS tubes. By changing the size of the load resistors R11 and R12, the magnitude of the resistive DC load current of the normally open switch KA1-1 and normally closed switch KA1-2 in the relay switch group to be detected can be adjusted. The voltage dividing ratio of the two voltage dividing 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.

当待检测继电器开关组的负载需要采用交流电源供电时,图3的1#脉冲产生电路实施例中,直流供电电源+VCC1、GND可以替换为交流电源AC1、AC2,设AC1电位高于AC2时为正半波。当常开开关KA1-1接通时,第一初始脉冲P11输出的是周期为20ms、占空比小于50%的脉冲波;当常开开关断开KA1-1时,第一初始脉冲P11输出低电平;当常闭开关KA1-2接通时,第二初始脉冲P12输出的是周期为20ms、占空比小于50%的脉冲波;当常闭开关KA1-2断开时,第二初始脉冲P12输出低电平;在1#继电器开关组进行动作切换开关状态时,在周期为20ms、占空比小于50%的脉冲波的首、尾可能产生宽度、间隔不定的抖动脉冲。同样地,改变负载电阻R11、R12的大小,可以调整待检测继电器开关组中常开开关KA1-1、常闭开关KA1-2的阻性交流负载电流的大小。2个分压电路的分压比例需要根据交流电源AC1、AC2峰值大小,以及P11、P12的允许高电平、低电平范围综合考虑。负载电阻R11、R12也可以改为感性负载或者是容性负载。When the load of the relay switch group to be detected needs to be powered by an AC power supply, in the embodiment of the 1# pulse generation circuit shown in FIG. 3, the DC power supply +VCC1 and GND can be replaced by the AC power supply AC1 and AC2. When the potential of AC1 is higher than that of AC2 is a positive half wave. When the normally open switch KA1-1 is turned on, the first initial pulse P11 outputs a pulse wave with a period of 20ms and a duty cycle of less than 50%; when the normally open switch KA1-1 is turned off, the first initial pulse P11 outputs Low level; when the normally closed switch KA1-2 is turned on, the second initial pulse P12 outputs a pulse wave with a period of 20ms and a duty cycle of less than 50%; when the normally closed switch KA1-2 is turned off, the second The initial pulse P12 outputs a low level; when the 1# relay switch group performs the action to switch the switch state, the beginning and end of the pulse wave with a period of 20ms and a duty cycle of less than 50% may generate jitter pulses with variable width and interval. Similarly, by changing the size of the load resistors R11 and R12, the magnitude of the resistive AC load current 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 dividing ratio of the two voltage dividing circuits needs to be comprehensively considered according to the peak value of AC1 and AC2 of the AC power supply, as well as the allowable high level and low level ranges of P11 and P12. The load resistors R11 and R12 can also be changed to inductive loads or capacitive loads.

图4为RS触发器实施例。图4中,或非门FO1、FO2组成RS触发器,第一初始脉冲P11为RS触发器的置位信号,第二初始脉冲P12为RS触发器的复位信号,均高电平有效。当1#继电器开关组中常开开关KA1-1断开、常闭开关KA1-2闭合时,P11为低电平,P12的高电平或者是正脉冲将从FO2输出的计数脉冲P13置为0;当1#继电器开关组中常开开关KA1-1闭合、常闭开关KA1-2断开时,P12为低电平,P11的高电平或者是正脉冲将计数脉冲P13置为1;继电器开关组中的常开开关、常闭开关在动作时,均先断后合,在1#继电器开关组在其继电器线圈得电动作或者是失电动作的过程中,常开开关KA1-1和常闭开关KA1-2有短时间处于全部断开的状态,此时P11、P12均为低电平,计数脉冲P13的状态维持;常开开关由断开转为接通时,常闭开关已经断开,复位信号无效,常开开关由断开转为接通时即使存在抖动脉冲,该抖动脉冲也是有效的置位信号,将P13置为1;同样地,常闭开关由断开转为接通时,常开开关已经断开,置位信号无效,常闭开关由断开转为接通时即使存在抖动脉冲,该抖动脉冲也是有效的复位信号,将P13置为0。图4中,或非门FO2的输出端为RS触发器的同相输出端;计数脉冲P13也可以从RS触发器的反相输出端、即或非门FO1的输出端输出。FIG. 4 is an embodiment of an RS flip-flop. In FIG. 4 , the NOR gates FO1 and FO2 form an RS flip-flop, the first initial pulse P11 is the set signal of the RS flip-flop, and the second initial pulse P12 is the reset signal of the RS flip-flop, both of which are active high. When the normally open switch KA1-1 in the 1# relay switch group is disconnected and the normally closed switch KA1-2 is closed, P11 is low level, and the high level or positive pulse of P12 will set the count pulse P13 output from FO2 to 0; When the normally open switch KA1-1 in the 1# relay switch group is closed and the normally closed switch KA1-2 is disconnected, P12 is low level, and the high level or positive pulse of P11 will set the counting pulse P13 to 1; in the relay switch group When the normally open switch and normally closed switch are in action, they are both broken first and then closed. In the process of the 1# relay switch group being electrified or de-energized in its relay coil, the normally open switch KA1-1 and the normally closed switch KA1 -2 is in the state of all disconnection for a short time, at this time, P11 and P12 are both low level, and the state of count pulse P13 is maintained; when the normally open switch is turned from OFF to ON, the normally closed switch has been disconnected and reset The signal is invalid, even if there is a jitter pulse when the normally open switch is turned from off to on, the jitter pulse is also a valid set signal, and P13 is set to 1; similarly, when the normally closed switch is turned from off to on, The normally open switch has been turned off, and the set signal is invalid. Even if there is a jitter pulse when the normally closed switch is turned from off to on, the jitter pulse is a valid reset signal, and P13 is set 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 can also be output from the inverting output terminal of the RS flip-flop, that is, the output terminal of the NOR gate FO1.

RS触发器也可以采用图4之外其他形式的RS触发器,脉冲产生电路也可以采用图3之外其他形式的电路。由于脉冲产生电路输出的第一初始脉冲、第二初始脉冲作为RS触发器的输入信号,RS触发器不允许输入的置位信号和复位信号同时有效,因此,脉冲产生电路产生第一初始脉冲、第二初始脉冲的原则是:继电器开关组在继电器线圈得电动作或者是失电动作的过程中常开开关和常闭开关处于全部断开状态时,其脉冲产生电路输出的第一初始脉冲、第二初始脉冲的状态均为RS触发器的无效信号输入状态。例如,当RS触发器输入的置位信号和复位信号均高电平有效时,则继电器开关组中的常开开关和常闭开关全部断开时,第一初始脉冲、第二初始脉冲均为低电平;当RS触发器输入的置位信号和复位信号均低电平有效时,则继电器开关组中的常开开关和常闭开关全部断开时,第一初始脉冲、第二初始脉冲均为高电平。The RS flip-flops can also use other forms of RS flip-flops other than those shown in FIG. 4 , and the pulse generating circuit can also use other forms of circuits other than those shown in FIG. 3 . Since the first initial pulse and the second initial pulse output by the pulse generating circuit are used as the input signals of the RS flip-flop, the RS flip-flop does not allow the input set signal and reset signal to be valid at the same time. Therefore, the pulse generating circuit generates the first initial pulse, The principle of the second initial pulse is: when the normally open switch and normally closed switch of the relay switch group are all disconnected during the process of electrification or power loss of the relay coil, the first initial pulse, the second initial pulse output by the pulse generation circuit The states of the two initial pulses are both the invalid signal input states of the RS flip-flop. For example, when the set signal and reset signal input by the RS flip-flop are both active at high level, when the normally open switches and normally closed switches in the relay switch group are all disconnected, the first initial pulse and the second initial pulse are both Low level; when both the set signal and reset signal input by the RS trigger are active at low level, when the normally open switches and normally closed switches in the relay switch group are all disconnected, the first initial pulse, the second initial pulse are high level.

图5为三态输出计数电路实施例。图5(a)为三态输出计数电路实施例1,由计数器FC1和非门FN1组成,FC1为带三态输出的8位二进制计数器74HC590。FC1的计数允许端CCKEN输入0,清0控制端CCLR为三态输出计数电路的清0信号CLR输入端;清0信号CLR低电平有效,即控制器单元输出的清0信号CLR为低电平时,计数器FC1中的动作计数值被清0;控制器单元输出的清0信号CLR为高电平时,FC1工作在加计数状态,计数脉冲P13直接连接至FC1的计数脉冲输入端CCK,FC1在计数脉冲P13的上升沿加1计数,得到动作计数值。计数脉冲P13经非门FN1连接至FC1数据锁存端RCK,FC1内部计数器的内容在计数脉冲P13的下降沿被锁存至输出锁存器。选通控制信号CS1连接至FC1的输出使能控制端G,CS1为低电平时,FC1将输出锁存器中的动作计数值CV1从Q7-Q0输出;CS1为高电平时,FC1的Q7-Q0为高阻状态。三态输出计数电路实施例1输出的动作计数值为8位二进制计数值。FIG. 5 is an embodiment of a three-state output counting circuit. Figure 5(a) is the first embodiment of the three-state output counting circuit, which is composed of a counter FC1 and a non-gate FN1, and FC1 is an 8-bit binary counter 74HC590 with a three-state output. FC1's counting enable terminal CCKEN inputs 0, and the clearing control terminal CCLR is the input terminal of the clearing signal CLR of the tri-state output counting circuit; the clearing signal CLR is active at low level, that is, the clearing signal CLR output by the controller unit is low power Usually, the action count value in the counter FC1 is cleared to 0; when the clear signal CLR output by the controller unit is at a high level, FC1 works in the counting state, and the counting pulse P13 is directly connected to the counting pulse input terminal CCK of FC1, and FC1 is in the counting state. The rising edge of the count pulse P13 is counted up by 1 to obtain the action count value. The count pulse P13 is connected to the data latch terminal RCK of FC1 through the NOT gate FN1, and the content of the internal counter of FC1 is latched to the output latch at the falling edge of the count pulse P13. The strobe control signal CS1 is connected to the output enable control terminal G of FC1. When CS1 is low, FC1 outputs the action count value CV1 in the output latch from Q7-Q0; when CS1 is high, Q7- of FC1 Q0 is in a high-impedance state. The action count value output by the three-state output counting circuit Embodiment 1 is an 8-bit binary count value.

图5(b)为三态输出计数电路实施例2,由计数器FC2和三态缓冲器FB1组成,FC2为4位二进制计数器74HC161,FB1为三态缓冲器74HC244。FC2的计数控制端CTP和CTR,以及置数控制端LD均连接至1,清0控制端CR为三态输出计数电路的清0信号CLR输入端;清0信号CLR低电平有效,即控制器单元输出的清0信号CLR为低电平时,计数器FC2中的动作计数值被清0;控制器单元输出的清0信号CLR为高电平时,FC2工作在加计数状态,计数脉冲P13直接连接至FC2的计数脉冲输入端CP,FC2在计数脉冲P13的上升沿加1计数,得到动作计数值。三态缓冲器FB1的4位数据输入端A3-A0分别连接至计数器FC2的4位计数值输出端Q3-Q0,选通控制信号CS1连接至FB1的输出使能控制端1G,CS1为低电平时,FB1将计数器FC2输出的动作计数值CV1从Y3-Y0输出;CS1为高电平时,FB1的Y3-Y0为高阻状态。三态输出计数电路实施例2输出的动作计数值为4位二进制计数值。Figure 5(b) shows the second embodiment of the tri-state output counting circuit, which is composed of a counter FC2 and a tri-state buffer FB1, FC2 is a 4-bit binary counter 74HC161, and FB1 is a tri-state buffer 74HC244. The counting control terminals CTP and CTR of FC2, and the number setting control terminal LD are connected to 1, and the clearing control terminal CR is the input terminal of the clearing signal CLR of the three-state output counting circuit; the clearing signal CLR is active at low level, that is, the control When the clearing signal CLR output by the controller unit is low level, the action count value in the counter FC2 is cleared to 0; when the clearing signal CLR outputted by the controller unit is high level, FC2 works in the counting state, and the counting pulse P13 is directly connected To the count pulse input terminal CP of FC2, FC2 adds 1 count on the rising edge of count pulse P13 to obtain the action count value. The 4-bit data input terminals A3-A0 of the tri-state 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 FB1, and CS1 is low power Usually, FB1 outputs the action count value CV1 output by the counter FC2 from Y3-Y0; when CS1 is at a high level, Y3-Y0 of FB1 is in a high-impedance state. The action count value output by Embodiment 2 of the three-state output counting circuit is a 4-bit binary count value.

L=4时继电器寿命计数测量装置实施例中,2#开关组动作计数单元、3#开关组动作计数单元和4#开关组动作计数单元采用与1#开关组动作计数单元相同的电路组成与结构,即所有开关组动作计数单元中都包括有脉冲产生电路、RS触发器和三态输出计数电路;所有脉冲产生电路、RS触发器、三态输出计数电路的组成与结构均相同。In the embodiment of the relay life counting measuring device when L=4, the 2# switch group action counting unit, the 3# switch group action counting unit and the 4# switch group action counting unit use the same circuit composition as the 1# switch group action counting unit and Structure, that is, all switch group action counting units include pulse generating circuit, RS flip-flop and tri-state output counting circuit; all pulse generating circuits, RS trigger and tri-state output counting circuit have the same composition and structure.

图6为继电器驱动单元实施例。图6(a)为继电器线圈采用直流电源供电时的实施例,由三极管VT、续流二极管VD、基极电阻R61组成;待检测继电器的线圈并联在节点A1、A2上,继电器线圈的直流供电电源为+V。设图1实施例中的4个继电器开关组包括在2个继电器中,图6(a)中,只并联了2个继电器线圈J1、J2。当控制器单元发出的继电器驱动信号C1为高电平时,并联在节点A1、A2上的所有继电器线圈得电;当控制器单元发出的继电器驱动信号C1为低电平时,并联在节点A1、A2上的所有继电器线圈失电;控制器单元发出的继电器驱动信号C1变化一个脉冲周期,则线圈并联在节点A1、A2上所有继电器中的继电器开关组动作一次。当继电器线圈的数量多,图6(a)中三极管VT不足以全部驱动时,可以增加相同的或者类似的驱动电路,扩大驱动能力。FIG. 6 is an embodiment of a relay driving unit. Figure 6(a) is an embodiment when the relay coil is powered by a DC power supply, which is composed of a triode VT, a freewheeling diode VD, and a base resistor R61; the coil of the relay to be detected is connected in parallel to nodes A1 and A2, and the DC power supply of the relay coil The power supply is +V. Assuming that the four relay switch groups in the embodiment of FIG. 1 are included in two relays, in FIG. 6( a ), only two relay coils J1 and J2 are connected in parallel. When the relay drive signal C1 sent by the controller unit is at a high level, all the relay coils connected in parallel to nodes A1 and A2 are energized; when the relay drive signal C1 sent by the controller unit is at a low level, the parallel connection between nodes A1 and A2 All relay coils on the switch are de-energized; the relay drive signal C1 sent by the controller unit changes for one pulse period, and the relay switch group in all the relays on the nodes A1 and A2 in parallel with the coils acts once. When the number of relay coils is large and the triode VT in Fig. 6(a) is not enough to drive all of them, the same or similar drive circuit can be added to expand the drive capability.

图6(b)为继电器线圈采用交流电源供电时的实施例,由电流驱动型固态继电器SSR1、压敏电阻RU1、限流电阻R62组成;待检测继电器的线圈并联在节点B1、B2上,继电器线圈的交流供电电源为AC0;+VCC为SSR1的电流驱动供电电源。设图1实施例中的4个继电器开关组包括在2个继电器中,图6(b)中,只并联了2个继电器线圈J3、J4。当控制器单元发出的继电器驱动信号C2为低电平时,并联在节点B1、B2上的所有继电器线圈得电;当控制器单元发出的继电器驱动信号C2为高电平时,并联在节点B1、B2上的所有继电器线圈失电;控制器单元发出的继电器驱动信号C2变化一个脉冲周期,则线圈并联在节点B1、B2上所有继电器中的继电器开关组动作一次。当继电器线圈的数量多,图6(b)中固态继电器SSR1不足以全部驱动时,可以增加相同的或者类似的驱动电路,扩大驱动能力。Figure 6(b) is an embodiment when the relay coil is powered by an AC power supply, which consists of a current-driven solid-state relay SSR1, a varistor RU1, and a current limiting resistor R62; the coils of the relays to be detected are connected in parallel on nodes B1 and B2, and the relays The AC power supply of the coil is AC0; +VCC is the current drive power supply of SSR1. Assuming that the four relay switch groups in the embodiment of FIG. 1 are included in two relays, in FIG. 6(b), only two relay coils J3 and J4 are connected in parallel. When the relay drive signal C2 sent by the controller unit is at low level, all the relay coils connected in parallel on nodes B1 and B2 are energized; when the relay drive signal C2 sent by the controller unit is at high level, they are connected in parallel at nodes B1 and B2. All the relay coils on the node are de-energized; the relay drive signal C2 sent by the controller unit changes for one pulse period, and the relay switch groups in all the relays on the nodes B1 and B2 in parallel with the coils act once. When the number of relay coils is large and the solid state relay SSR1 in Figure 6(b) is not enough to drive all of them, the same or similar drive circuit can be added to expand the drive capability.

当L个继电器开关组所在的继电器中,同时存在采用直流电源供电的继电器线圈和采用交流电源供电的继电器线圈,则可以同时使用图6(a)、图6(b)电路来分类驱动。继电器驱动单元还可以根据需要采用其他电路。When there are relay coils powered by DC power supply and relay coils powered by AC power supply in the relay where the L relay switch groups are located, the circuits in Figure 6(a) and Figure 6(b) can be used to classify and drive at the same time. The relay drive unit can also use other circuits as required.

人机界面单元优选使用触摸屏,采用RS485或者是RS232与控制器单元进行通信。人机界面单元也可以选择由按键电路和液晶显示器共同组成。The human-machine interface unit preferably uses a touch screen, and uses RS485 or RS232 to communicate with the controller unit. The man-machine interface unit can also be composed of a key circuit and a liquid crystal display.

所有开关组动作计数单元的动作计数值均采用三态缓冲方式输出;所有开关组动作计数单元的三态缓冲输出端口全部并联至控制器单元的计数数据输入端口,控制器单元发出选通控制信号分别使能各开关组动作计数单元的三态缓冲输出端口,从计数数据输入端口读入被使能三态缓冲输出端口输出的动作计数值。三态输出计数电路实施例1中的动作计数值为8位二进制数据,开关组动作计数单元的三态缓冲输出端口、控制器单元的计数数据输入端口均为8位并行端口;三态输出计数电路实施例2中的动作计数值为4位二进制数据,开关组动作计数单元的三态缓冲输出端口、控制器单元的计数数据输入端口均为4位并行端口。当L值小且动作计数值的位数少时,开关组动作计数单元的动作计数值可以不采用三态缓冲方式输出,而是将每个开关组动作计数单元的动作计数值输出端口分别直接连接至控制器单元的不同并行端口;例如,L=4且动作计数值为4位二进制数值时,直接将4个开关组动作计数单元的动作计数值输出端口连接至控制器单元的不同并行端口,只需要消耗控制器单元共16位I/O口线,即2个8位输入端口。The action count values of all switch group action count units are output in tri-state buffer mode; the tri-state buffer output ports of all switch group action count units are all connected in parallel to the count data input port of the controller unit, and the controller unit sends a gating control signal The tri-state buffer output port of each switch group action counting unit is respectively enabled, and the action count value output by the enabled tri-state buffer output port is read from the count data input port. The action count value in Embodiment 1 of the tri-state output counting circuit is 8-bit binary data, and the tri-state buffer output port of the action counting unit of the switch group and the count data input port of the controller unit are both 8-bit parallel ports; the tri-state output count The action count value in the circuit embodiment 2 is 4-bit binary data, and the tri-state buffer output port of the switch group action count unit and the count data input port of the controller unit are both 4-bit parallel ports. When the L value is small and the number of digits of the action count value is small, the action count value of the action count unit of the switch group may not be output in the three-state buffer mode, but the action count value output ports of the action count unit of each switch group are directly connected respectively. To different parallel ports of the controller unit; for example, when L=4 and the action count value is a 4-bit binary value, directly connect the action count value output ports of the 4 switch group action count units to different parallel ports of the controller unit, It only needs to consume a total of 16-bit I/O lines of the controller unit, that is, 2 8-bit input ports.

控制器单元通过选通控制单元发出选通控制信号。选通控制单元为译码器电路,对控制器单元发出的开关组动作计数单元地址编码信号进行译码,得到选通控制信号。图1的实施例中,与1#开关组动作计数单元11、2#开关组动作计数单元12、3#开关组动作计数单元13、4#开关组动作计数单元对应的开关组动作计数单元地址编码信号分别为二进制00、01、10、11,译码输出为CS1、CS2、CS3、CS4;控制器单元逐个使CS1、CS2、CS3、CS4有效,使能各开关组动作计数单元的三态缓冲输出端口,然后从计数数据输入端口IN1读入相应的动作计数值。实施例中选通控制单元的译码器电路可以选择74HC139,或者是74HC138,或者是采用门电路组成。当L值大时,译码器电路可以采用多片74HC139,或者是74HC138等组成的多级级联电路,或者是采用多个门电路组成。当L值小时,也可以省略选通控制单元,由控制器单元通过输出端口直接向各开关组动作计数单元发出选通控制信号,例如,图1的实施例中,选通控制信号CS1、CS2、CS3、CS4可以直接由控制器单元10发出,无需采用选通控制单元。The controller unit sends a gating control signal through the gating control unit. The gating control unit is a decoder circuit, which decodes the address coding signal of the switch group action counting unit sent by the controller unit to obtain the gating control signal. In the embodiment of FIG. 1, the address of the switch group action counting unit corresponding to the 1# switch group action counting unit 11, 2# switch group action counting unit 12, 3# switch group action counting unit 13, and 4# switch group action counting unit The encoded signals are binary 00, 01, 10, and 11, respectively, and the decoded output is CS1, CS2, CS3, CS4; the controller unit enables CS1, CS2, CS3, CS4 one by one, and enables the three-state operation of each switch group action counting unit Buffer the output port, and then read the corresponding action count value from the count data input port IN1. In the embodiment, the decoder circuit of the gating control unit may select 74HC139, or 74HC138, or be composed of gate circuits. When the L value is large, the decoder circuit can be composed of multiple pieces of 74HC139, or a multi-level cascade circuit composed of 74HC138, etc., or composed of multiple gate circuits. When the L value is small, the gating control unit can also be omitted, and the controller unit directly sends gating control signals to the action counting units of each switch group through the output port. For example, in the embodiment of FIG. 1 , the gating control signals CS1 and CS2 , CS3, CS4 can be directly issued by the controller unit 10, without using a gating control unit.

控制器单元用于对整个继电器寿命计数测量装置进行控制,实现继电器寿命的计数测量。控制器单元优选使用单片机作为核心来组成,控制器单元的核心也可以选择ARM,或者是DSP,或者是可编程序控制器。继电器寿命的计数测量包括以下步骤:The controller unit is used to control the whole relay life counting and measuring device, so as to realize the counting measurement of the relay life. The controller unit is preferably composed of a single-chip microcomputer as the core, and the core of the controller unit can also be selected from ARM, DSP, or programmable logic controller. The count measurement of relay life consists of the following steps:

步骤1,初始化,包括将L个继电器开关组的检测标志均置为在检状态,寿命计数器清0,发出清0信号使L个动作计数值全部清0;Step 1, initialization, including setting the detection flags of the L relay switch groups to the detection state, clearing the life counter to 0, and sending a clear signal to clear all the L action count values to 0;

步骤2,控制L个继电器开关组动作一次,同时对L个继电器开关组的动作次数分别进行计数得到L个动作计数值;寿命计数器进行加1计数;Step 2, controlling the L relay switch groups to act once, and simultaneously counting the number of actions of the L relay switch groups to obtain L action count values; the life counter is incremented by 1;

步骤3,读取当次L个动作计数值;Step 3, read the count value of the current L actions;

步骤4,逐个对检测标志为在检状态的继电器开关组是否失效进行判断;将本次被判断为失效继电器开关组的检测标志置为停检状态,同时将当前寿命计数器的计数值作为该次被判断为失效继电器开关组的寿命值;Step 4, one by one, judge whether the relay switch group whose detection mark is in the state of inspection is invalid; set the detection mark of the relay switch group that is judged to be invalid this time to the state of stop inspection, and at the same time use the count value of the current life counter as this time. It is judged as the life value of the failure relay switch group;

步骤5,L个继电器开关组的检测标志中仍有在检状态者,返回步骤2,否则停止检测。Step 5, if the detection flags of the L relay switch groups are still in the detection state, return to Step 2, otherwise stop detection.

控制L个继电器开关组通断一次,是指控制器单元通过继电器驱动单元发出使继电器开关组动作一次的信号,例如,图6(a)中控制器单元发出的继电器驱动信号C1变化一个脉冲周期,或者是图6(b)中控制器单元发出的继电器驱动信号C2变化一个脉冲周期。寿命计数器为控制器单元中的一个软件计数器,控制器单元发出使L个继电器开关组动作一次的信号,寿命计数器计数值加1。同时对L个继电器的通断次数分别进行计数得到L个动作计数值,由控制器单元之外的L个开关组动作计数单元分别进行。Controlling the on-off of L relay switch groups means that the controller unit sends a signal to make the relay switch group act once through the relay drive unit. For example, the relay drive signal C1 sent by the controller unit in Fig. 6(a) changes by one pulse period , or the relay drive signal C2 sent by the controller unit in Fig. 6(b) changes one pulse period. The life counter is a software counter in the controller unit, the controller unit sends out a signal to make L relay switch groups act once, and the count value of the life counter is incremented by 1. At the same time, the on-off times of the L relays are respectively counted to obtain L action count values, which are respectively performed by the L switch group action count units outside the controller unit.

对检测标志为在检状态的继电器开关组是否失效进行判断,方法是,待判断继电器开关组被控制通断的次数与其动作计数值之间的误差小于E,则该继电器开关组未失效,否则失效。具体判断方法是,将当前寿命计数器的计数值对M取模,得到余数Q;设读取的当次待判断继电器开关组的动作计数值为K,则当满足|K-Q|<E,或者是|K-(Q-M)|<E,或者是|K-(Q+M)|<E三者之一时,待判断继电器开关组被控制通断的次数与其动作计数值之间的误差小于E。动作计数值采用的是循环加计数方式,动作计数值达到三态输出计数电路的最大值M后再加1会溢出变为0;以三态输出计数电路实施例2输出的4位二进制动作计数值为例,其最大计数值M为1111,下一次动作计数值为0;上述判断表达式中,将K与Q-M进行比较,是抵消K值加计数溢出后较小、而Q值较大的影响;将K与Q+M进行比较,是抵消K值较大、而Q值对M取模后较小的影响。由于E为大于等于1且小于等于M/2的整数,确定了误差E后,动作计数值的最大计数值必须大于E的2倍;例如,确定E为3,则动作计数值的最大计数值必须大于6,此时,十进制BCD计数器,或者是3位以上的二进制计数器均满足要求。读取的当次L个动作计数值中,对于检测标志为停检状态的继电器的动作计数值,控制器单元不再进行判断与处理。The method is to judge whether the relay switch group whose detection flag is in the state of inspection is invalid. The method is that the error between the number of times the relay switch group is controlled to be turned on and off and its action count value is less than E, then the relay switch group is not invalid, otherwise invalid. The specific judgment method is to take the count value of the current life counter modulo M to obtain the remainder Q; set the read action count value of the current relay switch group to be judged as K, then when |K-Q|<E is satisfied, or When |K-(Q-M)|<E, or one of |K-(Q+M)|<E, the error between the number of times the relay switch group is controlled to be on and off and its action count value is less than E. The action count value adopts the cyclic counting method. After the action count value reaches the maximum value M of the tri-state output counting circuit, adding 1 will overflow to 0; the 4-bit binary action count output by the tri-state output counting circuit embodiment 2 For example, the maximum count value M is 1111, and the count value of the next action is 0; in the above judgment expression, the comparison between K and Q-M is to offset the K value plus the count overflow, which is smaller and the Q value is larger. Influence; Comparing K with Q+M is to offset the larger K value and the smaller influence of the Q value on M modulo. Since E is an integer greater than or equal to 1 and less than or equal to M/2, after determining the error E, the maximum count value of the action count value must be greater than 2 times of E; for example, if E is determined to be 3, then the maximum count value of the action count value It must be greater than 6. At this time, the decimal BCD counter or the binary counter with more than 3 digits can meet the requirements. Among the L action count values read at the current time, the controller unit will no longer judge and process the action count values of the relays whose detection flags are in the stop-check state.

对检测标志为在检状态的继电器开关组是否失效进行判断,也可以采用以下方法:待判断继电器开关组的当次动作计数值与前次动作计数值不是增1关系时,则该继电器开关组失效,否则未失效;或者是,待判断继电器开关组连续S次的当次动作计数值与前次动作计数值不是增1关系时,则该继电器开关组失效,否则未失效;所述S为大于等于2的整数。由于动作计数值采用的是循环加计数方式,动作计数值达到三态输出计数电路的最大值后再加1会溢出变为0;以三态输出计数电路实施例2输出的4位二进制通断计数值为例,其最大值为1111,满足增1关系的下一次通断计数值为0。The following method can also be used to judge whether the relay switch group whose detection flag is in the state of inspection is invalid: when it is judged that the current action count value of the relay switch group to be judged is not related to the previous action count value, then the relay switch group Invalid, otherwise it is not invalid; or, if it is to be judged that the current action count value of the relay switch group for S consecutive times and the previous action count value are not in the relationship of incrementing by 1, then the relay switch group is invalid, otherwise it is not invalid; the S is Integer greater than or equal to 2. Since the action count value adopts the cyclic counting method, after the action count value reaches the maximum value of the tri-state output counting circuit, adding 1 will overflow to 0; Taking the count value as an example, its maximum value is 1111, and the next on-off count value that satisfies the relationship of increment by 1 is 0.

对检测标志为在检状态的继电器开关组是否失效进行判断,还可以采用以下方法:待判断继电器开关组累计达到W次的当次动作计数值与前次动作计数值不是增1关系时,则该继电器开关组失效,否则未失效;所述W为大于等于2的整数。The following method can also be used to judge whether the relay switch group whose detection flag is in the state of inspection is invalid: when it is judged that the current operation count value of the relay switch group accumulatively reaching W times and the previous operation count value are not in the relationship of incrementing by 1, then The relay switch group fails, otherwise it does not fail; the W is an integer greater than or equal to 2.

控制器单元、人机界面单元可以根据需要实现继电器开关组的NO、NC占空比(即设置吸合时间和释放时间比例)调整与显示,失效判断方式选择及失效判断参数设置与显示,继电器开关组的动作周期设置与显示等。所述继电器寿命计数测量装置还可以增加温度监测单元来监测测试过程中继电器的温度。The controller unit and the man-machine interface unit can realize the adjustment and display of the NO and NC duty ratio of the relay switch group (that is, to set the ratio of the pull-in time and the release time), the selection of the failure judgment method, and the setting and display of the failure judgment parameters. The action cycle setting and display of the switch group, etc. The relay life count measuring device can also add a temperature monitoring unit to monitor the temperature of the relay during the test.

除说明书所述的技术特征外,均为本领域技术人员所掌握的常规技术。例如,选择控制器单元的控制器,设计相关的外围控制电路和编制程序实现其功能;选择或者设计选通控制单元电路,满足译码选通的要求;选择或者设计继电器驱动单元的驱动电路,实现对L个继电器开关组进行控制的要求;选择人机界面单元的组成与电路结构,与控制器单元相连接,实现相应的功能;等等,均是本领域技术人员所掌握的常规技术。Except for the technical features described in the specification, they are all conventional technologies mastered by those skilled in the art. For example, select the controller of the controller unit, design the relevant peripheral control circuit and compile the program to realize its function; select or design the gating control unit circuit to meet the requirements of decoding gating; select or design the drive circuit of the relay drive unit, Realizing the requirements for controlling the L relay switch groups; selecting the composition and circuit structure of the man-machine interface unit, connecting it with the controller unit, and realizing the corresponding functions; etc., are all conventional techniques mastered by those skilled in the art.

Claims (5)

1. A relay life count measuring device is characterized in that: the system comprises 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 actions of the L relay switch groups to obtain L action counting values; the switch group action counting unit is electrically connected to the controller unit and used for respectively reading action counting values of the L switch group action counting units and controlling the clear 0 of the action counting values of the L switch group action counting units by the controller unit.
2. The relay life count measuring device according to claim 1, characterized in that: the switch group action counting unit is electrically connected to the controller unit, and the method for the controller unit to respectively read in the action counting values of the L switch group action counting units is that the action counting 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.
3. The relay life count measuring device according to claim 2, characterized in that: the 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.
4. A relay life count measuring device according to any one of claims 1 to 3, wherein: the L switch group action counting units respectively comprise a pulse generating circuit, an RS trigger and a three-state output counting circuit, wherein the pulse generating circuit, the RS trigger and the three-state output counting circuit have the same structure and composition;
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.
5. The relay life count measuring device according to claim 4, 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.
CN201911076069.1A 2017-11-16 2017-11-16 Relay life counting and measuring device Active CN110763991B (en)

Priority Applications (1)

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

Applications Claiming Priority (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 count measurement method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201711133940.8A Division CN107991605B (en) 2017-11-16 2017-11-16 Relay life count measurement method

Publications (2)

Publication Number Publication Date
CN110763991A true CN110763991A (en) 2020-02-07
CN110763991B CN110763991B (en) 2021-10-01

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 count measurement method
CN201911076069.1A Active CN110763991B (en) 2017-11-16 2017-11-16 Relay life counting and measuring device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201711133940.8A Active CN107991605B (en) 2017-11-16 2017-11-16 Relay life count measurement method

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 中国科学院微电子研究所 Apparatus and method for testing fatigue characteristics of gating tube
CN113589206A (en) * 2021-08-10 2021-11-02 江阴市懿泓电气有限公司 Electromagnet action frequency service life detection device
CN114089071B (en) * 2021-11-22 2025-04-25 中电防务科技有限公司 A device and method for predicting the state of a harmonic filter unit of a shortwave transmitter

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587167A (en) * 2009-07-08 2009-11-25 天津渤海易安泰电子半导体测试有限公司 Multi-functional integrated circuit chip testing machine
CN201615929U (en) * 2010-03-04 2010-10-27 济南中森机械制造有限公司 Reed pipe detector
EP2372736A1 (en) * 2010-03-30 2011-10-05 Yamatake Corporation Relay-end-of-service-life forecasting device and method
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 湖南工业大学 A device for measuring the vibration times of button switches
CN203759206U (en) * 2014-01-23 2014-08-06 石家庄格力电器小家电有限公司 Reed pipe detection equipment
CN104009739A (en) * 2014-05-22 2014-08-27 湖南工业大学 A method and device for on-off control of a standby automatic power-off switch
CN204065353U (en) * 2014-08-20 2014-12-31 芜湖美的厨卫电器制造有限公司 relay life test device
CN205981383U (en) * 2016-07-19 2017-02-22 天津市炳华节能技术有限公司 Intelligence water gauge tongue tube testing platform
CN106772017A (en) * 2017-01-17 2017-05-31 云南电网有限责任公司西双版纳供电局 Actuating of relay power automatic measuring instrument
KR20170062739A (en) * 2015-11-30 2017-06-08 주식회사 엘지화학 Apparatus and method for estimating life of relay
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

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1216297C (en) * 2003-05-16 2005-08-24 华东师范大学 Contact MEMS switch life testing method and its testing instrument
DE102005039573A1 (en) * 2005-08-19 2007-03-01 Abb Patent Gmbh Circuit arrangement for detecting and evaluating electrical and physical measured variables in an electrical switching device
CN101330225B (en) * 2008-07-08 2010-07-07 奇瑞汽车股份有限公司 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

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587167A (en) * 2009-07-08 2009-11-25 天津渤海易安泰电子半导体测试有限公司 Multi-functional integrated circuit chip testing machine
CN201615929U (en) * 2010-03-04 2010-10-27 济南中森机械制造有限公司 Reed pipe detector
EP2372736A1 (en) * 2010-03-30 2011-10-05 Yamatake Corporation Relay-end-of-service-life forecasting device and method
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 湖南工业大学 A device for measuring the vibration times of button switches
CN203759206U (en) * 2014-01-23 2014-08-06 石家庄格力电器小家电有限公司 Reed pipe detection equipment
CN104009739A (en) * 2014-05-22 2014-08-27 湖南工业大学 A method and device for on-off control of a standby automatic power-off switch
CN204065353U (en) * 2014-08-20 2014-12-31 芜湖美的厨卫电器制造有限公司 relay life test device
KR20170062739A (en) * 2015-11-30 2017-06-08 주식회사 엘지화학 Apparatus and method for estimating life of relay
CN205981383U (en) * 2016-07-19 2017-02-22 天津市炳华节能技术有限公司 Intelligence water gauge tongue tube testing platform
CN106772017A (en) * 2017-01-17 2017-05-31 云南电网有限责任公司西双版纳供电局 Actuating of relay power automatic measuring instrument
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

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BRIAN.J. FROST ET.AL: "A "Universal" life-test system for electromechanical relays", 《26TH INTERNATIONAL CONFERENCE ON ELECTRICAL CONTACTS》 *
张光建 等: "基于嵌入式技术的开关寿命测试仪的设计", 《微计算机信息》 *

Also Published As

Publication number Publication date
CN107991605A (en) 2018-05-04
CN110763991B (en) 2021-10-01
CN107991605B (en) 2019-12-06

Similar Documents

Publication Publication Date Title
CN107991605B (en) Relay life count measurement method
CN107976626B (en) Relay life detection device
WO2006116160A2 (en) Directional capacitive sensor system and method
CN103559802B (en) Varying duty is with drive singal lamp fault detection system
CN207601259U (en) A kind of relay life count measurement device
CN109765828A (en) A kind of reluctance type sensors chip sequential control circuit and control method
CN202404208U (en) Tri-state detection circuit based on I/O port
CN105606999B (en) A kind of multichannel intermediate relay calibration equipment
CN207601198U (en) A kind of tongue tube life detecting device
CN205808433U (en) A kind of electromagnetic valve work condition checkout gear
CN109459686B (en) Electrical service life testing device for large-current electromagnetic relay
CN110658448B (en) Reed switch life detection device
CN108169556B (en) Method capable of measuring electricity-saving quantity and ammeter
CN103869155B (en) Method and device for electric generator frequency measurement based on PLC high-speed input
CN105067996A (en) Toggle switch detection method and detection system
CN205427070U (en) Based on many converters of labVIEW aging testing system
CN211085671U (en) Valve locked rotor detection circuit based on AD voltage sampling
CN110658446B (en) Reed pipe life counting and measuring device
CN1603852A (en) Current Transformer Excitation Characteristic Test System
CN207439480U (en) A kind of comprehensive gas metering equipment of photoelectricity Hall
CN204536515U (en) A kind of multi-power system trouble-shooter
CN107966926A (en) Books automatic sorting control device
CN209182696U (en) A kind of reluctance type sensors chip sequential control circuit
CN221123766U (en) Pressure impact experimental device with automatic counting function
CN221121123U (en) Valve driving circuit of intelligent water meter

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: 20231223

Address after: D9069, Torch Eurasia Building, No. 72, Shimao Avenue, Building 13, Innovation and Entrepreneurship Plaza, Science and Technology Innovation City, Harbin Hi tech Industrial Development Zone, 150000 Heilongjiang Province

Patentee after: Heilongjiang Zhongke Xipu Electrical Appliances Co.,Ltd.

Address before: Department of science and technology, Hunan University of technology, No. 88, Taishan West Road, Zhuzhou City, Hunan Province

Patentee before: HUNAN University OF TECHNOLOGY

TR01 Transfer of patent right