Method and apparatus for controlling a relay

11367579 · 2022-06-21

Assignee

Inventors

Cpc classification

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) FIG. 1 shows a schematic simplified illustration of a hob for carrying out the method according to the invention with a controller as an apparatus according to the invention,

(3) FIG. 2 shows an illustration of circuitry in the controller with a clock relay and an isolating relay,

(4) FIG. 3 shows a further part of the circuitry with a connection of the circuit from FIG. 2 to a microcontroller of the controller,

(5) FIG. 4 shows a temporal profile of the switching voltage, of a control signal for one of the relays and of a controlling signal for first determining the switching delays,

(6) FIG. 5 shows the temporal profile of the switching voltage with use of the determined switching delays in order to carry out switching as far as possible at the switching voltage zero crossing, and

(7) FIG. 6 shows an enlarged illustration of the switching range and the switching difference.

DETAILED DESCRIPTION OF THE EXEMPLARY EMBODIMENTS

(8) FIG. 1 illustrates, in a schematic and simplified manner, a hob 11 having a hob plate 12. Two heating devices 13a and 13b, which here are in the form of known and conventional radiant heating devices, are arranged, by way of example, under the hob plate 12. They are therefore resistance heaters and therefore constitute a solely resistive load. A pot 14 has been placed onto the hob plate 12 above the right-hand heating device 13a in order to be heated.

(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) FIG. 2 illustrates a circuit diagram having a conductor L and a neutral conductor of the switching voltage U, which correspond virtually to the connection cable 25. The conductor L runs to an isolating relay 26 which is substantially used to be opened in emergencies and to switch off the hob 11, for example because a serious fault has been detected. Such a switching operation is very rare. Otherwise, the isolating relay 23 switches only in the current-free state, with the result that its control or switching behavior is not critical for the topic of the present application. In the upper branch, a resistor R1 of upper circuitry is connected to the isolating relay 23. By means of two diodes, the signal downstream of the resistor R1 is between ground and the potential of the neutral conductor N. A further resistor R2 and a capacitance C1 are then connected in parallel with respect to ground. The applied signal S_DLB is needed, in particular for dynamic load balancing.

(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) FIG. 3 now illustrates how the switching power supply 28 is likewise connected to the neutral conductor and to the conductor L in accordance with the switching voltage. The switching power supply 28 supplies the microcontroller 20 with a supply voltage in a conventional manner. This voltage can be selected differently, for example may be 3.3 V or 5 V, depending on how the microcontroller 20 is designed. Downstream of the switching power supply, it can be seen that the upper branch is at the potential of the neutral conductor N, while ground with respect to this potential of N is then at −3.3 V or −5 V. Precisely the above-mentioned supply voltage therefore results at the microcontroller 20. This as it were negative ground naturally also applies to the circuitry in FIG. 2. The microcontroller 20 is again connected to the one isolating relay 23 and to the clock relays 22a and 22b and also to further clock relays if present.

(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 FIG. 2, the signals are used such that the microcontroller 20 for carrying out the method according to the invention can monitor the switching voltage U, on the one hand, and, on the other hand, sees or captures when the clock relay 22 switches and when its actually performed switching time is effected.

(15) FIG. 4 now illustrates, against the time t, the profile for the switching voltage U, the profile for a switching trigger signal underneath and the profile for the signal S_Takt underneath the latter. In this case, the switching voltage U is 230 V at 50 Hz. At the beginning of the method, the microcontroller 20 switches the clock relay 22 at any desired time 1 using a switching trigger signal, with the result that the clock relay closes and a closing operation takes place at its relay contact. After a particular closing switching delay SV.sub.on, which here may last for 7 msec for example, the clock relay or its relay contact is actually closed and the switching current flow is started. This is then shown in the signal S_Takt if this is specifically at 1 again. It is at zero during the closing operation.

(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) FIG. 5 now illustrates how these switching delays are actually used, for example already precisely during the next switching operation at the clock relay. If the heating device is intended to be switched on again for supplying power to said heating device, a switching trigger signal is generated at the clock relay before a zero crossing of the switching voltage, here from negative to positive, in a manner moved forward by the switching delay SV.sub.on. This can also be easily achieved in practice by virtue of the fact that the microcontroller 20 subtracts this switching delay SV.sub.on from the duration of a half-cycle, thus resulting in a switch-on time t.sub.on. At the oppositely polarized zero crossing of the switching voltage U, the microcontroller 20 therefore waits for this switch-on time t.sub.on after the zero crossing from positive to negative in order to then pass the switching trigger signal to the clock relay, that is to say to cause the switching of the latter. This is again the time 1. The clock relay therefore begins the closing operation at the relay contact, which is completed after a particular period which is approximately the above-mentioned switching delay SV.sub.on. The actual switching time is now detected in the signal S_Takt, specifically if the latter rises again. This is somewhat before the zero crossing illustrated using dashed lines, but is still within the desired switching window SB which may be approximately 800 μsec. The microcontroller 20 here detects this switching difference between the actual switching time and the switching voltage zero crossing, which switching difference may here be 200 μsec, for example. Therefore, although the clock relay has switched in the switching range SB, this is somewhat before the actual switching voltage zero crossing, with the result that the switching delay is corrected. Said switching difference is subtracted from the switching delay SV.sub.on and the switching trigger signal for the closing operation is therefore triggered somewhat later the next time or the switch-on time t.sub.on becomes accordingly somewhat longer before the switching trigger signal is passed to the clock relay.

(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) FIG. 6 illustrates, in a greatly enlarged manner according to FIG. 5, how switching is actually carried out after expiry of the switching delay SV.sub.on at the time 2. This is carried out somewhat earlier than the switching voltage zero crossing which is illustrated using dashed lines. The switching difference SD may be approximately 100 μec here and is still well within the switching range SB or the actual switching time is within this switching range SB around the switching voltage zero crossing. On account of the actual closing operation which is actually carried out somewhat too early at the relay 22, the illustrated switching difference SD is added to the switching delay SV.sub.on as the above-mentioned correction.

(24) The special features of the invention with the simple circuitry according to FIGS. 2 and 3 and the simple control or connection of the microcontroller 20 show how the invention can be advantageously implemented. The connection complexity according to FIG. 2 is low. The above-described continuous correction of the switching delays SV.sub.on and SV.sub.off ensures an actually performed switching time which is as close as possible to the switching voltage zero crossing, that is to say with a low switching current, at least in the above-mentioned switching range SB of less than 1 msec or less than 0.8 msec.

(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.