Method and apparatus for controlling a relay
11367579 · 2022-06-21
Assignee
Inventors
Cpc classification
H01H9/56
ELECTRICITY
International classification
Abstract
In a method for controlling a relay with a relay contact, switching as an opening operation or a closing operation at the relay is temporally captured with respect to accurate opening or closing of the relay contact in comparison with a switching voltage zero crossing of a switching voltage to be switched. An actual switching time is determined and is corrected by means of further capturing of switching operations. A microcontroller is used for this purpose, and the signals can be digitally captured, that is to say at an A/D input.
Claims
1. A method for controlling a relay, said relay having a relay contact, the method comprising the steps of: switching as an opening operation or as a closing operation at said relay is temporally captured with respect to an accurate opening or an accurate closing of said relay contact in comparison with a switching voltage zero crossing of a switching voltage to be switched, determining a period between control of said relay using a switching trigger signal and an actual opening or an actual closing of said relay contact with stopping or starting of a switching current flow as a switching delay, monitoring said switching voltage to be switched by said relay, after enabling a command to switch, controlling said relay to switch using said switching trigger signal in a manner moved forward in terms of time by said switching delay before a subsequent switching voltage zero crossing, capturing an actual switching time carried out in addition to said switching voltage zero crossing, conducting a check to determine whether said actual switching time was too late or too early by a switching difference relative to said switching voltage zero crossing, wherein said switching delay is corrected with said switching difference for subsequent identical switching: by adding said switching difference to said switching delay if said actual switching time was too late by said switching difference relative to said switching voltage zero crossing, or by subtracting said switching difference from said switching delay if said actual switching time was too early by said switching difference relative to said switching voltage zero crossing, wherein: a microcontroller is used to capture said switching or said opening operation and said closing operation and said switching voltage zero crossing; and said opening operation and said closing operation are each alternatively conducted at an end of a positive half-cycle and at an end of a negative half-cycle of said switching voltage, such that the opening operation is carried out alternatively and continuously after the end of the positive half-cycle, then after the end of the negative half-cycle, and then again after an end of another positive half-cycle in a repetitive manner, and such that the closing operation is carried out alternately and continuously after the end of the positive half-cycle, and then after the end of the negative half-cycle, and then after the end of the another positive half-cycle in a repetitive manner.
2. The method as claimed in claim 1, wherein said switching is carried out in a temporal range of +/−0.4 ms around said switching voltage zero crossing.
3. The method as claimed in claim 1, wherein resistive loads are switched during said switching.
4. The method as claimed in claim 3, wherein solely resistive loads are switched during said switching.
5. The method as claimed in claim 1, wherein a closing switching delay and an opening switching delay are determined separately for said closing operation and said opening operation, respectively.
6. The method as claimed in claim 1, wherein, after enabling a command to switch, said relay is controlled to switch, in a manner moved forward in terms of time by said switching delay before a subsequent switching voltage zero crossing, within a duration of a half-cycle of said switching voltage and after a last captured switching voltage zero crossing.
7. The method as claimed in claim 1, wherein, after a first operation of switching on an electrical appliance with said relay therein, said relay is switched once in any desired manner at any desired time in order to roughly capture a duration of said switching delay as an initial switching delay, wherein, when first switching said relay, said initial switching delay is then used as period for controlling said relay with said switching trigger signal before a switching voltage zero crossing, wherein said switching delay is then captured and is further used instead of said initial switching delay for further operation of said electrical appliance with switching of said relay.
8. The method as claimed in claim 1, wherein said switching delay is corrected for each subsequent switching operation or each subsequent opening operation and closing operation.
9. The method as claimed in claim 1, wherein a switching delay of an earlier switching is stored, and, if currently captured values for said switching delay differ by more than 20% from said switching delay of an earlier switching, a fault in said relay or in control for said relay is detected and is signaled to an operator.
10. The method as claimed in claim 9, wherein said switching delay of said earlier switching is stored both for an opening operation and for a closing operation.
11. The method as claimed in claim 9, wherein said closing operation of said relay as a switching-on operation is prevented and is not carried out.
12. The method as claimed in claim 1, wherein between 1000 and 20,000 measurement points per second are used as a sampling frequency for said microcontroller.
13. An apparatus configured to implement the method of claim 1, said apparatus comprising: a relay with a relay contact, a load to be connected to a switching voltage by said relay, connections to a controller for controlling said relay, a microcontroller which is connected to signal inputs having a signal corresponding to said switching voltage and a signal corresponding to said actual opening or said actual closing of said relay contact, wherein the microcontroller is configured to control said opening operation and said closing operation in said repetitive, continuous, and alternative manner.
14. The apparatus as claimed in claim 13, wherein said apparatus is integrated in an electrical household appliance or in a cooking appliance.
15. The apparatus as claimed in claim 14, wherein said apparatus is integrated in a controller for said electrical household appliance or said cooking appliance.
16. The apparatus as claimed in claim 14, wherein said load is a resistive load.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Exemplary embodiments of the invention are schematically illustrated in the drawings and are explained in more detail below. In the drawings:
(2)
(3)
(4)
(5)
(6)
(7)
DETAILED DESCRIPTION OF THE EXEMPLARY EMBODIMENTS
(8)
(9) The hob 11 has a controller 16 in order to be operated thereby, in particular in order to supply the heating devices 13a and 13b with power during operation. The controller 16 has, on the underside of the hob plate 12, an operating device 18, advantageously designed with operating elements in the form of contact switches and displays in the form of LEDs or illuminated displays. The controller 16 also has a microcontroller 20 as so-called intelligence. The microcontroller 20 controls clock relays 22a and 22b which each switch the switching voltage for the heating devices 13a and 13b and therefore supply the power. An isolating relay 23 and a switching power supply 28, possibly in the form of a switched-mode power supply, are also provided. For power supply, the controller 16 has a connection cable 25 having a connector 26 at the free end as a mains connection to 230 V/50 Hz. This is representative of the electrical connection of the hob 11, which is normally effected in a connection socket.
(10)
(11) The clock relay 22 is arranged in the lower branch of the neutral conductor N. A resistor R3 and again diode circuitry are also provided in the lower branch in a similar manner to that in the upper branch. Furthermore, the lower branch is connected to ground by way of a capacitance C2 and is connected to the neutral conductor N or its potential by way of a resistor R4. A signal S_Takt can be tapped off here.
(12) In particular, however, a heating device 13 is connected as a resistive load between the two branches downstream of the clock relay 22 and the isolating relay 23. If both relays 22 and 23 are closed, the heating device 13 is connected to the switching voltage and is operated or heats up thereby. In order to set a particular power in the clock method, as is conventional for radiant heating devices in a hob, the controller 20 controls the clock relay 22 to open and close its relay contact on the basis of a power specification from an operator on the operating device 18 or on the basis of a cooking program. The clock relay 22 therefore switches the switching voltage between L and N. In this case, the isolating relay 23 is always closed. It is opened by the microcontroller 20 only in an above-mentioned serious incident.
(13)
(14) The two signals S_DLB and S_Takt are likewise fed into the microcontroller 20, specifically the signal S_Takt on a digital sense line. The signal S_DLB is also absolutely necessary since it is needed to detect a zero crossing. As is clear from
(15)
(16) This switching delay SV.sub.on is captured by the microcontroller 20 and is stored for use during the next closing operation at the clock relay 22.
(17) At a time which is planned anyway for opening the clock relay 22, for example because this is desired on account of a power level of the power supply for the heating device 13, here time 3, the microcontroller 20 generates a switching trigger signal for opening the clock relay as an opening operation at the relay contact. This is carried out, by way of example, at the zero crossing of the switching voltage, but need not be so. At the time 4, after an opening switching delay SV.sub.off, the relay contact is then actually open or the switching voltage has been switched and the switching current flow has stopped. This switching delay SV.sub.off is approximately 5 msec here and is therefore somewhat shorter than the switching delay during switching-on SV.sub.on. The microcontroller 20 captures the switching delay SV.sub.off of the opening operation. On the one hand, the heating device 13 is now switched off. On the other hand, this can again be detected from the signal S_Takt. This switching delay is stored for next use.
(18) The jump in the signal S_Takt during the actual closing of the clock relay results from the colliding of the relay contact during the closing operation. This is not taken into account.
(19)
(20) After a certain time, the microcontroller 20 is intended to open the clock relay 22 again within the scope of the power supply. A switching trigger signal for the opening operation is therefore intended to be generated before a voltage zero crossing, here from negative to positive, by the switching delay SV.sub.off and is intended to be passed to the clock relay 22. For this purpose, the microcontroller 20 subtracts the switching delay SV.sub.off from the duration of a half-cycle of the switching voltage and obtains the switch-off time t.sub.off. After the oppositely polarized switching voltage zero crossing from positive to negative, the process therefore waits for the switch-off time t.sub.off and then generates the switching trigger signal for opening the relay contact at the time 3.
(21) After expiry of the switching delay SV.sub.off at the time 4, the relay contact is opened or is actually open and the switching current flow stops. This switching can also be detected in the signal S_Takt and it is likewise within the desired switching range SB. However, the actual switching time is somewhat before the switching voltage zero crossing, thus resulting in a switching difference again. This switching difference is subtracted from the switching delay SV.sub.off which therefore becomes shorter, with the result that the switching trigger signal is generated somewhat later in the next opening operation or is a shorter length of time before the switching voltage zero crossing and the switch-off time t.sub.off becomes somewhat longer as a result. If the actual switching time were somewhat after the switching voltage zero crossing, the resulting switching difference would be added to the switching delay and the switching trigger signal would be generated somewhat earlier in the next opening operation.
(22) The switching delays SV.sub.on and SV.sub.off corrected in this manner are used during the next closing operation and during the next opening operation. The respective switching difference can then also be captured again and the switching delays SV.sub.on and SV.sub.off can therefore be corrected again. Furthermore, the microcontroller 20 can take into account the fact that the next closing operation and also the next opening operation are carried out at the oppositely polarized switching voltage zero crossing, that is to say from positive to negative in each case. Switching is then possibly carried out one half-cycle later, but this does not constitute any significant difference or a problem for the power supply.
(23)
(24) The special features of the invention with the simple circuitry according to
(25) Furthermore, provision may be made for not only the previous and the new or corrected switching delay but also earlier switching delays to be stored in the microcontroller 20. These switching delays are advantageously stored from the initial activation of the hob 11, with the result that a history of the duration of these switching delays can be captured as it were over a very long period. For this purpose, it may suffice if not every value for switching delays is stored, but rather only every tenth, every fiftieth or every hundredth switching delay, for example. It is then possible to monitor, over a period of several months or even several years of operation of the hob 11, how the switching delay behaves in the long term. It will generally probably increase somewhat. If this increase becomes too great or the speed of the increase increases too greatly, however, for example exceeds certain predefined limit values, the controller 16 or the microcontroller 20 can generate a type of warning or a request to replace a particular clock relay.