The content of the invention
The problems of in terms of in order to solve existing relay life measurement, the present invention provides a kind of relay life
Count measurement method, comprises the following steps:
Step 1, initialize, including the detection mark of L relay switch group is set in inspection state, lifetime counter
Clear 0, sending clear 0 signal makes L movement counting value all clear 0;
Step 2, L relay switch group action is controlled once, while the action frequency of L relay switch group is distinguished
Carry out counting to get L movement counting value;Lifetime counter carries out plus 1 counts;
Step 3, read when time L movement counting value;
Step 4, detection is indicated one by one to judge whether the relay switch group of inspection state fails;By this quilt
The detection mark of relay switch group of being judged as failing is set to and stops inspection state, at the same using the count value of current age counter as
This time is judged as the life value of failure relay switch group;
Step 5, still have in the detection mark of L relay switch group in inspection state person, return to step 2, otherwise stops inspection
Survey.
For described pair of detection mark to judge whether the relay switch group of inspection state fails, method is to wait to judge
Relay switch group is less than E by the error between the number of control break-make and its movement counting value, then the relay switch group is not
Failure, otherwise fails;The M is the maximum count value of movement counting value, and the E is more than or equal to 1 and whole less than or equal to M/2
Number.The relay to be judged is less than the determination methods of E by the error between the number of control break-make and its movement counting value,
By the count value of current age counter to M modulus, remainder Q is obtained;Read when time actuating of relay count value to be judged is
K, then as | K-Q |<E, either | K- (Q-M) |<E, either | K- (Q+M) |<When E thrins are met, wait to judge after
Error between the number of electric controlled break-make and its movement counting value is less than E.
To detection mark to judge whether the relay switch group of inspection state fails, method either, is waited to judge
Relay switch group when secondary movement counting value and previous movement counting value are not to increase 1 relation, then the relay switch group is lost
Effect, does not otherwise fail;Method either, relay switch group to be judged it is S times continuous when time movement counting value and previous action
Count value is not that then the relay switch group fails, and does not otherwise fail when increasing 1 relation;The S is the integer more than or equal to 2.
To detection mark to judge whether the relay switch group of inspection state fails, method also either, is waited to sentence
Disconnected relay switch group add up W time when secondary movement counting value and previous movement counting value are not 1 relations of increasing, then the relay
Switching group fails, and does not otherwise fail;The W is the integer more than or equal to 2.
The action frequency of L relay switch group is carried out counting to get L movement counting value respectively, by L structure with
Identical switching group movement counting unit is formed to realize;Switching group movement counting unit includes pulse-generating circuit, rest-set flip-flop
With ternary output counting circuit;Pulse-generating circuit output first inceptive impulse and the as caused by the action of relay switch group
Two inceptive impulses;Rest-set flip-flop, which is converted to the first inceptive impulse of input and the second inceptive impulse, filters out edge trembling interference arteries and veins
Counting pulse after punching;Ternary output counting circuit is counted to counting pulse, output action count value.Relay switch group
It is made of the relay normally open switch in same relay and relay normally closed switch;The level change of first inceptive impulse
It is consistent with the action change of normal open switch in relay switch group, in the level change and relay switch group of the second inceptive impulse
The action change of normally closed switch is consistent;When normal open switch and normally closed switch are in all off state in relay switch group, its
First inceptive impulse of pulse-generating circuit output, the state of the second inceptive impulse are the invalid signals input shape of rest-set flip-flop
State.The maximum count value of switching group movement counting unit is M.
The relay life count measurement method is by the relay life including controller unit, relay drive unit
Count measurement device is realized;L relay switch group of the control acts once, from controller unit to relay drive unit
Send relay drive signal realization.
The movement counting value of the L switching group movement counting unit is exported using Three-State mode;All switches
The Three-State output port of group movement counting unit is all connected in parallel to the enumeration data input port of controller unit;Controller
Unit sends the Three-State output port that gate control signal enables each switching group movement counting unit one by one, from enumeration data
Input port reads in corresponding movement counting value.
The relay life count measurement device further includes gating control cells;Controller unit is to gating control cells
Switching group movement counting element address encoded signal is sent, switching group movement counting element address is encoded by gating control cells
Signal obtains gate control signal into row decoding.
The beneficial effects of the invention are as follows:Relay life is measured with the normal open switch in same relay and normally closed switch group
Form into a switching group carries out, and the service life of multiple relay switch groups in multiple relays can be examined at the same time
Survey;Filter out the edge trembling interference in electric pulse caused by the action of relay switch group automatically using rest-set flip-flop, ensure that
The accuracy of relay life detection;Using setting multiple counters respectively to relay switch group outside controller unit
The mode that action frequency is counted, while detect inside the uncontrolled device unit of relay switch group quantity of relay life
The limitation of counter number.
Embodiment
Below in conjunction with attached drawing, the invention will be further described.The relay life count measurement method is by including control
Device unit, L switching group movement counting unit, human and machine interface unit, the relay life count measurement of relay drive unit
Device is realized.Human and machine interface unit is electrically connected to controller unit, for sending sense command, shows L relay switch
The service life of group;Controller unit is electrically connected to relay drive unit, and relay driving letter is sent to relay drive unit
Number, control the action of L relay switch group;L switching group movement counting unit respectively to the action frequency of L relay into
Row counts to get L movement counting value;Switching group movement counting unit is electrically connected to controller unit, controller unit difference
Read in the movement counting value of L switching group movement counting unit.When L values are larger, the action of L switching group movement counting unit
Count value is exported using Three-State mode;The Three-State output port of all switching group movement counting units is all in parallel
To the enumeration data input port of controller unit;Controller unit sends gate control signal and enables each switching group action one by one
The Three-State output port of counting unit, corresponding movement counting value is read in from enumeration data input port;Controller unit
Reset signal is sent, makes the movement counting value of L switching group movement counting unit by clear 0.The relay life count measurement
Device can also include the gating control cells for being electrically connected to controller unit;Controller unit is sent to gating control cells
Switching group movement counting element address encoded signal, by gating control cells to switching group movement counting element address encoded signal
Into row decoding, gate control signal is obtained, switching group corresponding with switching group movement counting element address encoded signal is enabled and moves
Make the Three-State output port of counting unit.1 relay switch group is referred to by 1 relay in same relay
The switching group of device normal open switch and 1 relay normally closed switch composition;L relay switch group can be all in same relay
, can also be respectively in several relays in device, the relay switch group quantity in each relay can be identical, can also
Differ.
Relay life count measurement device embodiment block diagram when Fig. 1 is L=4, including controller unit 10,1# switching groups
Movement counting unit 11,2# switching group movement countings unit 12,3# switching group movement countings unit 13,4# switching group movement countings
Unit 14, human and machine interface unit 15, gating control cells 16, relay drive unit 17, can be at the same time to 4 relay switches
Group carries out life counter measurement.
Human and machine interface unit 15 is communicated by the interface I/O1 of controller unit 10 with controller unit 10, is ordered for detecting
The sending of order, parameter modification and the display etc. in each relay switch group service life;Controller unit 10 by output port OUT2 to
Relay drive unit 17 sends relay drive signal, the action of control 1# to 4# relay switch groups;1# switching groups act
Counting unit 11,2# switching group movement countings unit 12,3# switching group movement countings unit 13,4# switching group movement counting units
14 carry out electric pulse generation, filtering and action frequency to 4 relay switch groups respectively counts;Controller unit 10 passes through output
Port OUT1 sends switching group movement counting element address encoded signal to be gated to gating control cells 16, and gating control is single
First 16 pairs of switching group movement counting element address encoded signals obtain gate control signal CS1, CS2, CS3, CS4 into row decoding,
Control respectively 1# switching group movement countings unit 11,2# switching group movement countings unit 12,3# switching group movement countings unit 13,
Movement counting value CV1, CV2, CV3, CV4 of 4# switching group movement counting units is sent to controller unit by input port IN1
The enumeration data input port of 10, IN1 device units in order to control;Controller unit 10 is moved by output port OUT3 to 1# switching groups
Make counting unit 11,2# switching group movement countings unit 12,3# switching group movement countings unit 13,4# switching group movement counting lists
Member 14 sends clear 0 signal CLR;When clear 0 signal CLR is effective, the movement counting value of 4 switching group movement counting units is by clear 0.
It is illustrated in figure 2 1# switching group movement counting unit embodiment block diagrams.In Fig. 2,1# pulse-generating circuits 100 export
The first inceptive impulse P11 and the second inceptive impulse P12 as caused by the action of 1# relay switches group;Rest-set flip-flop 101 will be defeated
The the first inceptive impulse P11 and the second inceptive impulse P12 entered is converted to the counting pulse after filtering out edge trembling disturbing pulse
P13;Ternary output counting circuit 102 to count pulse P13 count, controlled by gate control signal CS1, output 1# after
The movement counting value CV1 of electric switch group;Ternary output counting circuit 102 is controlled by clear 0 signal CLR at the same time, clear 0 signal
When CLR is effective, the movement counting value in ternary output counting circuit 103 is by clear 0.
Fig. 3 is 1# pulse-generating circuit embodiments.1# relay switches group includes normal open switch KA1-1 and normally closed switch
KA1-2;After KA1-1 connects with load resistance R11, DC power supply+VCC1 and publicly GND are connected in parallel to;Resistance R13, electricity
R14 composition bleeder circuits are hindered, partial pressure is carried out to the voltage on load resistance R11, exports and is opened by normally opened in 1# relay switch groups
Close the first inceptive impulse P11 caused by KA1-1 break-makes;Diode VD1 plays one-way conduction protective effect, and diode TVS1 plays limit
Width and reverse protection effect.After KA1-2 connects with load resistance R12, power supply+VCC1 and publicly GND are connected in parallel to;Resistance
R13, resistance R14 form bleeder circuit, carry out partial pressure to the voltage on load resistance R12, export by 1# relay switch groups
Second inceptive impulse P12 caused by normally closed switch KA1-2 break-makes;Diode VD2 plays one-way conduction protective effect, diode
TVS2 plays amplitude limit and reverse protection.Diode TVS1, TVS2 selection zener diode either TVS pipe.Change load electricity
Hinder R11, R12 size, can adjust normal open switch KA1-1 in relay switch group to be detected, normally closed switch KA1-2 it is resistive
The size of DC load current.The dividing ratios of 2 bleeder circuits are needed according to power supply+VCC1 sizes, and P11, P12
Permission high level, low level scope considers.
When the load of relay switch group to be detected is needed using AC power power supply, the 1# pulse-generating circuits of Fig. 3
In embodiment, DC power supply+VCC1, GND could alternatively be AC power AC1, AC2, if AC1 current potentials are when being higher than AC2
Positive half-wave.When normal open switch KA1-1 is connected, the first inceptive impulse P11 outputs are to be less than 50% for 20ms, duty cycle in the cycle
Impulse wave;When normal open switch disconnects KA1-1, the first inceptive impulse P11 output low levels;When normally closed switch KA1-2 is connected
When, the second inceptive impulse P12 outputs are the impulse waves for being less than 50% for 20ms, duty cycle in the cycle;When normally closed switch KA1-2 breaks
When opening, the second inceptive impulse P12 output low levels;When 1# relay switches group carries out action switching switch state, in the cycle
For the initial and end of the impulse wave of 20ms, duty cycle less than 50%, there may be width, the indefinite Vibrating pulse in interval.Similarly, change
The size of varying load resistance R11, R12, can adjust normal open switch KA1-1, normally closed switch in relay switch group to be detected
The size of the resistive AC load electric current of KA1-2.The dividing ratios of 2 bleeder circuits are needed according to AC power AC1, AC2 peak
It is worth size, and the permission high level of P11, P12, low level scope consider.Load resistance R11, R12 can also be changed to feel
Property load either capacitive load.
Fig. 4 is rest-set flip-flop embodiment.In Fig. 4, nor gate FO1, FO2 form rest-set flip-flop, and the first inceptive impulse P11 is
The set signal of rest-set flip-flop, the second inceptive impulse P12 are the reset signal of rest-set flip-flop, and equal high level is effective.When 1# relays
When normal open switch KA1-1 is disconnected in device switching group, normally closed switch KA1-2 is closed, P11 is low level, and the high level of P12 is either
The counting pulse P13 exported from FO2 is set to 0 by positive pulse;When in 1# relay switch groups normal open switch KA1-1 closure, it is normally closed
When switching KA1-2 disconnections, P12 is low level, and the high level either positive pulse of P11 is set to 1 by pulse P13 is counted;Relay
Normal open switch, normally closed switch in switching group is in action, equal break-before-make, in 1# relay switches group in its relay coil
During energized action either dead electricity action, normal open switch KA1-1 and normally closed switch KA1-2 have the short time to be in all disconnected
The state opened, P11, P12 are low level at this time, and the state for counting pulse P13 maintains;Normal open switch switchs to connect by disconnecting
When, normally closed switch is already off, and reset signal is invalid, even if there are Vibrating pulse when normal open switch switchs to connect by disconnecting, should
Vibrating pulse is also effective set signal, and P13 is set to 1;Similarly, it is normally opened to open when normally closed switch switchs to connect by disconnecting
Already off, set invalidating signal is closed, even if there are Vibrating pulse, the Vibrating pulse when normally closed switch switchs to connect by disconnecting
It is effective reset signal, P13 is set to 0.In Fig. 4, the output terminal of nor gate FO2 is the in-phase output end of rest-set flip-flop;Meter
Rapid pulse rushes P13 and can also be exported from the output terminal of the reversed-phase output of rest-set flip-flop, i.e. nor gate FO1.
Rest-set flip-flop can also use the rest-set flip-flop of other forms outside Fig. 4, and pulse-generating circuit can also use Fig. 3
Outside other forms circuit.Since the first inceptive impulse of pulse-generating circuit output, the second inceptive impulse are triggered as RS
The input signal of device, rest-set flip-flop do not allow the set signal of input and reset signal effective at the same time, therefore, pulse-generating circuit
Produce the first inceptive impulse, the principle of the second inceptive impulse is:Relay switch group in relay coil energized action either
When normal open switch and normally closed switch are in all off state during dead electricity acts, the first of the output of its pulse-generating circuit
Inceptive impulse, the state of the second inceptive impulse are the invalid signals input state of rest-set flip-flop.For example, when rest-set flip-flop inputs
Set signal and effective equal high level of reset signal when, then the normal open switch in relay switch group and normally closed switch are all disconnected
When opening, the first inceptive impulse, the second inceptive impulse are low level;When the set signal and reset signal of rest-set flip-flop input are equal
When low level is effective, then during normal open switch and all off normally closed switch in relay switch group, the first inceptive impulse, second
Inceptive impulse is high level.
Fig. 5 is ternary output counting circuit embodiment.Fig. 5 (a) is ternary output counting circuit embodiment 1, by counter
FC1 and NOT gate FN1 compositions, FC1 is 8 binary counter 74HC590 with ternary output.The counting of FC1 allows to hold CCKEN
Input 0, clear 0 control terminal CCLR are the clear 0 signal CLR input terminals of ternary output counting circuit;Clear 0 signal CLR low levels are effective,
That is when the clear 0 signal CLR of controller unit output is low level, the movement counting value in counter FC1 is by clear 0;Controller list
When the clear 0 signal CLR of member output is high level, FC1 is operated in plus count status, counts the meter that pulse P13 is connected directly to FC1
Number pulse input end CCK, FC1 adds 1 counting in the rising edge for counting pulse P13, obtains movement counting value.Count pulse P13 warps
The FC1 data that NOT gate FN1 are connected to latch end RCK, and the content of FC1 internal counters is latched in the trailing edge for counting pulse P13
To output latch.The output that gate control signal CS1 is connected to FC1 enables control terminal G, and when CS1 is low level, FC1 will be defeated
The movement counting value CV1 gone out in latch is exported from Q7-Q0;When CS1 is high level, the Q7-Q0 of FC1 is high-impedance state.Tri-state
The movement counting value for exporting the output of counting circuit embodiment 1 is 8 binary count values.
Fig. 5 (b) is ternary output counting circuit embodiment 2, is made of counter FC2 and three state buffer FB1, FC2 4
Binary counter 74HC161, FB1 are three state buffer 74HC244 for position.The tally control end CTP and CTR of FC2, and put number
Control terminal LD is connected to 1, and clear 0 control terminal CR is the clear 0 signal CLR input terminals of ternary output counting circuit;Clear 0 signal CLR
Low level is effective, i.e. when the clear 0 signal CLR of controller unit output is low level, the movement counting value in counter FC2 is clear
0;When the clear 0 signal CLR of controller unit output is high level, FC2 is operated in plus count status, counts pulse P13 and directly connects
Counting the pulse input end CP, FC2 for being connected to FC2 add 1 counting in the rising edge for counting pulse P13, obtain movement counting value.Tri-state
4 data input pin A3-A0 of buffer FB1 are respectively connected to 4 count value output terminal Q3-Q0 of counter FC2, gating control
The output that signal CS1 processed is connected to FB1 enables control terminal 1G, when CS1 is low level, action meter that FB1 exports counter FC2
Numerical value CV1 is exported from Y3-Y0;When CS1 is high level, the Y3-Y0 of FB1 is high-impedance state.Ternary output counting circuit embodiment 2
The movement counting value of output is 4 binary count values.
During L=4 in relay life count measurement device embodiment, 2# switching group movement countings unit, 3# switching groups are moved
Make counting unit and 4# switching group movement countings unit using the circuit composition identical with 1# switching group movement counting units and knot
Structure, i.e., all include pulse-generating circuit, rest-set flip-flop and ternary output counting circuit in all switching group movement counting units;
All pulse-generating circuits, rest-set flip-flop, the composition of ternary output counting circuit and structure all same.
Fig. 6 is relay drive unit embodiment.Fig. 6 (a) is implementation when relay coil is powered using DC power supply
Example, is made of triode VT, fly-wheel diode VD, base resistance R61;The coils from parallel connection of coils of relay to be detected is in node A1, A2
On, the DC power supply of relay coil is+V.If 4 relay switch groups in Fig. 1 embodiments are included in 2 relays
In, in Fig. 6 (a), only in parallel 2 relay coils J1, J2.When the relay drive signal C1 that controller unit is sent is height
During level, all relay coils for being connected in parallel on node A1, A2 obtain electric;When the relay drive signal that controller unit is sent
When C1 is low level, all relay coil dead electricity for being connected in parallel on node A1, A2;The relay driving that controller unit is sent
Signal C1 changes a pulse period, then relay switch group action of the coils from parallel connection of coils on node A1, A2 in all relays
Once.When the quantity of relay coil is more, when triode VT is not enough to all drive in Fig. 6 (a), can increase it is identical or
Similar drive circuit, expands driving force.
Fig. 6 (b) is embodiment when relay coil is powered using AC power, by current drive-type solid-state relay
SSR1, varistor RU1, current-limiting resistance R62 compositions;The coils from parallel connection of coils of relay to be detected is on node B1, B2, relay line
The communication power supply of circle is AC0;The electric current that+VCC is SSR1 drives power supply.If 4 relays in Fig. 1 embodiments are opened
Pass group is included in 2 relays, in Fig. 6 (b), only in parallel 2 relay coils J3, J4.Sent when controller unit
When relay drive signal C2 is low level, all relay coils for being connected in parallel on node B1, B2 obtain electric;Work as controller unit
When the relay drive signal C2 sent is high level, all relay coil dead electricity for being connected in parallel on node B1, B2;Controller
The relay drive signal C2 that unit is sent changes a pulse period, then coils from parallel connection of coils all relays on node B1, B2
In relay switch group action once.When the quantity of relay coil is more, solid-state relay SSR1 is not enough to entirely in Fig. 6 (b)
When portion drives, identical or similar drive circuit can be increased, expand driving force.
When in the relay where L relay switch group, while there is the relay coil using DC power supply power supply
, then can be at the same time using Fig. 6 (a), Fig. 6 (b) circuits come driving of classifying with the relay coil using AC power power supply.Relay
Device driving unit can also use other circuits as needed.
Human and machine interface unit is communicated preferably using touch-screen using RS485 either RS232 with controller unit.
Human and machine interface unit can also select to be collectively constituted by key circuit and liquid crystal display.
The movement counting value of all switching group movement counting units is exported using Three-State mode;All switching groups are moved
The Three-State output port for making counting unit is all connected in parallel to the enumeration data input port of controller unit, controller unit
The Three-State output port that gate control signal enables each switching group movement counting unit respectively is sent, is inputted from enumeration data
Read in the movement counting value for the Three-State output port output that is enabled in port.It is dynamic in ternary output counting circuit embodiment 1
It is 8 bit binary datas to make count value, the counting of the Three-State output port, controller unit of switching group movement counting unit
Data-in port is 8 parallel-by-bit ports;Movement counting value in ternary output counting circuit embodiment 2 is 4 binary systems
Data, the Three-State output port of switching group movement counting unit, the enumeration data input port of controller unit are 4
Parallel port.When L values are small and the digit of movement counting value is few, the movement counting value of switching group movement counting unit can not adopt
Exported with Three-State mode, but the movement counting value output port of each switching group movement counting unit is directly connected respectively
It is connected to the different parallel ports of controller unit;For example, L=4 and when movement counting value is 4 bit binary value, directly by 4
The movement counting value output port of switching group movement counting unit is connected to the different parallel ports of controller unit, it is only necessary to disappears
Consume controller unit totally 16 I/O mouth lines, i.e. 28 input ports.
Controller unit sends gate control signal by gating control cells.Gating control cells are decoder circuit,
The switching group movement counting element address encoded signal sent to controller unit obtains gate control signal into row decoding.Fig. 1
Embodiment in, with 1# switching group movement countings unit 11,2# switching group movement countings unit 12,3# switching group movement counting lists
Member 13, the corresponding switching group movement counting element address encoded signal of 4# switching group movement counting units be respectively Binary Zero 0,
01st, 10,11, decoding output is CS1, CS2, CS3, CS4;Controller unit makes CS1, CS2, CS3, CS4 effective one by one, enables each
The Three-State output port of switching group movement counting unit, then reads in corresponding action from enumeration data input port IN1
Count value.The decoder circuit of gating control cells can select 74HC139, or 74HC138 in embodiment, or adopt
Formed with gate circuit.When L values are big, decoder circuit can use multi-disc 74HC139, or the composition such as 74HC138 is more
Level cascade circuit, or formed using multiple gate circuits.When L values are small, gating control cells can also be omitted, by controller
Unit directly sends gate control signal by output port to each switching group movement counting unit, for example, the embodiment of Fig. 1
In, gate control signal CS1, CS2, CS3, CS4 can directly be sent by controller unit 10, single without gating control
Member.
Controller unit is used to be controlled whole relay life count measurement device, realizes that relay life counts
Measuring method.Controller unit forms preferably using microcontroller as core, and the core of controller unit can also select
ARM, or DSP, or programmable controller.Relay life count measurement method comprises the following steps:
Step 1, initialize, including the detection mark of L relay switch group is set in inspection state, lifetime counter
Clear 0, sending clear 0 signal makes L movement counting value all clear 0;
Step 2, L relay switch group action is controlled once, while the action frequency of L relay switch group is distinguished
Carry out counting to get L movement counting value;Lifetime counter carries out plus 1 counts;
Step 3, read when time L movement counting value;
Step 4, detection is indicated one by one to judge whether the relay switch group of inspection state fails;By this quilt
The detection mark of relay switch group of being judged as failing is set to and stops inspection state, at the same using the count value of current age counter as
This time is judged as the life value of failure relay switch group;
Step 5, still have in the detection mark of L relay switch group in inspection state person, return to step 2, otherwise stops inspection
Survey.
Control L relay switch group break-make once, refer to controller unit sent by relay drive unit make after
The signal of electric switch group action once, for example, the relay drive signal C1 changes one that controller unit is sent in Fig. 6 (a)
A pulse period, or the relay drive signal C2 that controller unit is sent in Fig. 6 (b) change a pulse period.Longevity
A software counter of the counter in order to control in device unit is ordered, controller unit, which is sent, makes L relay switch group act one
Secondary signal, lifetime counter count value add 1.At the same time the break-make number of L relay is carried out counting to get L action respectively
Count value, is carried out respectively by L switching group movement counting unit outside controller unit.
To detection mark to judge whether the relay switch group of inspection state fails, method is relay to be judged
Device switching group is less than E by the error between the number of control break-make and its movement counting value, then the relay switch group does not fail,
Otherwise fail.Specific determination methods are, by the count value of current age counter to M modulus, to obtain remainder Q;If that reads works as
The movement counting value of secondary relay switch group to be judged is K, then works as satisfaction | K-Q |<E, either | K- (Q-M) |<E, either |
K-(Q+M)|<During E thrins, relay switch group to be judged is by the mistake between the number of control break-make and its movement counting value
Difference is less than E.Movement counting value reaches the maximum of ternary output counting circuit using circulation plus counting mode, movement counting value
Add 1 can overflow after value M again and be changed into 0;By taking 4 binary system movement counting values that ternary output counting circuit embodiment 2 exports as an example,
Its maximum count value M is 1111, and movement counting value is 0 next time;In above-mentioned judgment expression, by K compared with Q-M, it is
Offsetting K values adds counting smaller after overflowing and Q value large effects;It is to offset that K values are larger and Q values by K compared with Q+M
To minor impact after M modulus.Since E is the integer more than or equal to 1 and less than or equal to M/2, it is determined that after error E, action meter
The maximum count value of numerical value have to be larger than 2 times of E;For example, determining that E is 3, then the maximum count value of movement counting value have to be larger than
6, at this time, decimal system BCD counters, or the binary counter of more than 3 are satisfied by requiring.That reads moves when time L is a
Make in count value, for the movement counting value that detection mark is the relay for stopping inspection state, controller unit is no longer judged
With processing.
To detection mark to judge whether the relay switch group of inspection state fails, can also use with lower section
Method:Wait judge relay switch group when secondary movement counting value and previous movement counting value are not to increase 1 relation, then the relay
Switching group fails, and does not otherwise fail;Either, relay switch group to be judged it is S times continuous when time movement counting value with it is previous
Movement counting value is not that then the relay switch group fails, and does not otherwise fail when increasing 1 relation;The S is whole more than or equal to 2
Number.Since movement counting value is using circulation plus counting mode, movement counting value reaches the maximum of ternary output counting circuit
Add 1 can overflow after value again and be changed into 0;By taking 4 binary system break-make count values that ternary output counting circuit embodiment 2 exports as an example,
Its maximum is 1111, and it is 0 to meet the count value of break-make next time for increasing 1 relation.
To detection mark to judge whether the relay switch group of inspection state fails, can also use with lower section
Method:Work as time movement counting value and the previous movement counting value that relay switch group to be judged has reached W times are not to increase 1 relation
When, then the relay switch group fails, and does not otherwise fail;The W is the integer more than or equal to 2.
Controller unit, human and machine interface unit can realize that NO, NC duty cycle of relay switch group (are set as needed
Put pickup time and release time ratio) with showing, the selection of failure judgment mode and failure judge parameter setting and show for adjustment,
Action cycle setting and display of relay switch group etc..The relay life count measurement device can also increase temperature prison
Survey the temperature that unit carrys out monitoring and test process repeat circuit.
It is the routine techniques that those skilled in the art are grasped in addition to the technical characteristic described in specification.For example, selection
The controller of controller unit, designs relevant peripheral control circuits and programs and realize its function;Selection or design choosing
Logical control unit circuit, meets the requirement of decoding gating;Selection or the drive circuit of design relay drive unit, realization pair
The requirement that L relay switch group is controlled;The composition and circuit structure of human and machine interface unit are selected, with controller unit phase
Connection, realizes corresponding function;Etc., it is the routine techniques that those skilled in the art are grasped.