This application claims priority to German Application No. 10 2020 200 944.9 filed Jan. 27, 2020, the contents of which are hereby incorporated herein in its entirety by reference.
The invention relates to a method for controlling a relay with a relay contact, preferably a conventional relay. The invention also relates to an apparatus which is designed to carry out this method and has the relay and preferably a load to be connected to a switching voltage by the relay as well as connections to a controller for controlling the relay, which controller preferably has a microcontroller.
DE 19916778 A1 discloses a method for controlling the switching operations of load switches, for example of a contactor. The current flow is monitored in this case.
A further method for establishing a switching connection in an improved manner is known from DE 102005051762 A1. In this case, a switch-on delay and a switch-off delay can be captured.
It is difficult to improve such control of a relay during practical operation with little effort and a high degree of safety during operation.
The invention is based on the object of providing a method mentioned at the outset and an apparatus mentioned at the outset and designed to carry out the method, with which problems in the prior art can be solved and it is possible, in particular, to be able to control a relay safely and reliably and to open or close the relay contact as far as possible at the switching voltage zero crossing, in which case the design effort should preferably remain low.
This object is achieved by means of a method having the features of claim 1 and by means of an apparatus having the features of claim 14. Advantageous and preferred configurations of the invention are the subject matter of the further claims and are explained in more detail below. In this case, some of the features are described only for the method or only for the apparatus. However, irrespective of this, they are intended to be able to apply both to a method and to an apparatus autonomously and independently of one another. The wording of the claims is incorporated in the description by express reference.
For the method, provision is made for the following steps to be carried out. Switching as an opening operation or as a closing operation at the relay is generally temporally captured with respect to accurate opening and accurate closing of the relay contact in comparison with a switching voltage zero crossing of a switching voltage to be switched. The switching voltage to be switched is therefore advantageously monitored and it is likewise monitored whether the relay contact is open or closed. This is determined as stopping or starting of a switching current flow, which is therefore also indirectly captured or monitored by monitoring the voltage change. The period between control of the relay using a switching trigger signal and actual opening or closing of the relay contact is referred to as a switching delay and is captured or determined. It may be a few milliseconds in practice. At a frequency of the switching voltage to be switched of 230 V at 50 Hz as the normal mains frequency, a half-cycle lasts for 10 msec. The switching delay is therefore preferably less than the duration of a half-cycle.
The switching voltage to be switched by the relay is therefore monitored or captured, preferably permanently. After enabling a command to switch, the relay is controlled to switch or to open or close the relay contact using a switching trigger signal. However, the relay is controlled using the switching trigger signal before the or a switching voltage zero crossing, to be precise in a manner moved forward in terms of time by said switching delay or such that it happens earlier than a switching voltage zero crossing in terms of time or follows as the next or subsequent switching voltage zero crossing. If the duration of the switching delay is longer than the duration of a half-cycle, the opening operation or the closing operation is only carried out at the switching voltage zero crossing after next, after the relay has been controlled, with actual opening or closing of the relay contact.
The switching time actually carried out, that is to say when the relay contact is open or closed and the switching current flow is stopped or started, is then captured. The switching voltage zero crossing is additionally captured. The switching time actually carried out and the switching voltage zero crossing are then related to one another and a check is carried out in order to determine whether the actual switching time was effected before or after the switching voltage zero crossing. In this case, a so-called switching difference is determined as the period, wherein the actual switching time was before or after the switching voltage zero crossing by precisely this switching difference or was effected too late or too early. Only if the switching difference were zero and the actual switching time were effected at the same time as the switching voltage zero crossing, would the desired optimum switching be carried out. The switching delay is corrected with this switching difference for subsequent identical switching. Identical switching here means switching-off or switching-on or an opening operation or a closing operation. During the correction, the switching difference is added to the switching delay if the actual switching time was too late by precisely the switching difference or was effected with this duration only after the switching voltage zero crossing. If the actual switching time was before the switching voltage zero crossing or was too early by this duration of the switching difference, the switching difference is subtracted from the switching delay. For the subsequent identical switching, a considerably smaller switching difference or a considerably smaller difference between the actual switching time and the switching voltage zero crossing can then be assumed and are ideally right beside one another.
In the invention, a microcontroller is used to capture the switching or the opening operation and the closing operation and the switching voltage zero crossing. Different values mentioned above can also be stored therein. The signals are advantageously digitally captured at the microcontroller, that is to say at an A/D input, and are converted and/or processed therein.
The invention therefore makes it possible for switching to be carried out as accurately as possible at the switching voltage zero crossing. It is therefore easily possible to adapt to different relays and to a possibly different switching behavior during the opening operation and the closing operation.
In order to protect a relay during switching or its relay contact as far as possible, provision may be advantageously made for the switching difference to be corrected so accurately that switching is carried out in a temporal range of +/−0.4 msec around the switching voltage zero crossing. This is considered to be sufficient to avoid an arc during switching, with the result that a relay contact lasts or can be used for a considerably longer time. This is ensured in said switching range of +/−0.4 msec around the switching voltage zero crossing.
In one advantageous configuration of the invention, resistive loads are switched during switching or in the method. Solely resistive loads are preferably switched since the current and voltage are precisely in phase here. This considerably simplifies the method.
In one configuration of the invention, provision may be made for the possible switching delays to be captured separately. A closing switching delay and an opening switching delay may therefore be determined separately for the closing operation and the opening operation, respectively. These two delays need not necessarily be the same and may differ from one another by up to 50% or up to 70%. The opening operation is generally faster than the closing operation. This is one of the reasons why the two switching delays are captured and used separately.
In the method, after enabling a command to switch or after control using the switching trigger signal, provision may be made for the relay to be controlled in a manner moved forward in terms of time by the switching delay or earlier than a subsequent switching voltage zero crossing by the duration of the switching delay. Switching is therefore carried out within a duration of a half-cycle of the switching voltage and after a last captured switching voltage zero crossing. An alternative calculation may provide for the duration of the switching delay to be subtracted from the duration of a half-cycle and for the relay to be controlled using the switching trigger signal after the switching voltage zero crossing by this difference or switching time, with the result that switching is actually carried out as far as possible at the subsequent switching voltage zero crossing. Ultimately, this is the same.
In one development of the invention, it is advantageously possible for a closing operation and an opening operation to each be carried out alternately at the end of a positive half-cycle and at the end of a negative half-cycle of the switching voltage. This means that the closing operation is respectively carried out alternately after the end of a positive half-cycle and then of a negative half-cycle and then of a positive half-cycle again. The opening operation is likewise respectively carried out alternately after the end of a positive half-cycle and then of a negative half-cycle. This makes it possible to reduce so-called material migration at the relay contact which would permanently damage the relay contact. Each identical closing operation and each identical opening operation are therefore carried out with a directly alternating current direction in each case, thus reducing or avoiding precisely said material migration.
In practice, for a method, after a first operation of switching on an electrical appliance containing the relay, provision may be made for this relay to be switched once in any desired manner at any desired time, in particular precisely once at any desired time. A duration of the switching delay of this relay can therefore be roughly captured as the initial switching delay. During the next operation of switching the relay, generally a closing operation, this initial switching delay is then used as the period for triggering the switching trigger signal at the relay before a switching voltage zero crossing. As explained above, the switching difference is then captured as the temporal difference between the actual switching time and the switching voltage zero crossing. The initial switching delay is therefore corrected, as described above, and a switching delay is obtained and is used instead of the initial switching delay for further operation of the electrical appliance with switching-on of the relay. This corrected switching delay of the relay is then used for a subsequent opening operation of the relay. Since, as has been explained above, the relay contact can be opened and closed at different speeds, a noticeable switching difference between the actual switching time and the switching voltage zero crossing will occur again here. The above-mentioned switching delay is corrected with this switching difference in order to obtain an opening switching delay. During the next operation of switching the relay as a closing operation, that is to say when the relay is intended to be closed, the switching difference is then captured again and the switching delay is corrected with the latter in order to obtain a closing switching delay. The relay can then be controlled further using these two switching delays.
Provision may be made for the switching delay to be corrected only at particular intervals by means of a captured switching difference, for example during every fifth, every tenth or every fiftieth switching operation and not during every switching operation. Alternatively and advantageously, however, the switching delay is corrected for every switching operation or every subsequent opening operation and closing operation of the relay. After being corrected twice or three times, no switching difference or no significant switching difference should actually arise any longer, at least no switching difference above the above-mentioned 0.4 msec. Nevertheless, it is possible under certain circumstances for a switching delay to change somewhat as a result of heating of the relay.
In a possible further configuration of the invention, a switching delay of earlier switching, in particular in the first operating hours of the electrical appliance with the relay therein, can be stored. This is advantageously carried out both for an opening operation and for a closing operation. If currently captured values for the switching delay differ by more than 20%, alternatively by more than 30% or 40%, therefrom, a fault in the relay or in control for the relay is detected. Such a fault can be optically and/or acoustically signaled to an operator. Under certain circumstances, provision may even be made for a closing operation of the relay to be prevented, with the result that it is not switched on at all on the electrical appliance. Such deviation of currently captured values for the switching delay by more than the above-mentioned amount, in particular if the currently captured switching delay accordingly lasts for a longer time, is a strong indication of a fault in the relay with the possible risk of sudden failure, with the result that the relay can no longer open, for example. Therefore, the relay should not be switched on at all.
It is possible for between 1000 and 20,000 measurement points per second to be used as the sampling frequency in the microcontroller. This is preferably between 5000 and 8000 measurement points. This results in measurements being carried out approximately every 150 μsec or every 160 μsec or this interval of time being present between two measurement points. This is well below the above-mentioned 0.4 msec strived for as the desired upper limit for an interval of time to the switching voltage zero crossing. When using the microcontroller, it is possible to carry out digital capture on the sense line of the microcontroller. The microcontroller then controls the relay using the switching trigger signal.
An electrical appliance which is designed to carry out the method is advantageously an electrical household appliance or a cooking appliance. The method is therefore integrated in its controller with a microcontroller, for example in a hob. The method can be advantageously used to switch any type of resistive load, even in a baking oven or for use in industry.
These and further features are clear not only from the claims but also from the description and the drawings, in which case the individual features can each be implemented alone or jointly in the form of a subcombination in one embodiment of the invention and in other fields and may constitute advantageous and inherently protectable embodiments for which protection is claimed here. The subdivision of the application into individual sections and subheadings does not restrict the generality of the statements made under said subheadings.
Exemplary embodiments of the invention are schematically illustrated in the drawings and are explained in more detail below. In the drawings:
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.
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.
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.
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
This switching delay SVon is captured by the microcontroller 20 and is stored for use during the next closing operation at the clock relay 22.
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 SVoff, the relay contact is then actually open or the switching voltage has been switched and the switching current flow has stopped. This switching delay SVoff is approximately 5 msec here and is therefore somewhat shorter than the switching delay during switching-on SVon. The microcontroller 20 captures the switching delay SVoff 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.
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.
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 SVoff and is intended to be passed to the clock relay 22. For this purpose, the microcontroller 20 subtracts the switching delay SVoff from the duration of a half-cycle of the switching voltage and obtains the switch-off time toff. After the oppositely polarized switching voltage zero crossing from positive to negative, the process therefore waits for the switch-off time toff and then generates the switching trigger signal for opening the relay contact at the time 3.
After expiry of the switching delay SVoff 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 SVoff 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 toff 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.
The switching delays SVon and SVoff 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 SVon and SVoff 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.
The special features of the invention with the simple circuitry according to
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.
Number | Date | Country | Kind |
---|---|---|---|
10 2020 200 944.9 | Jan 2020 | DE | national |
Number | Name | Date | Kind |
---|---|---|---|
20030235017 | Liu | Dec 2003 | A1 |
20050012505 | Wilson et al. | Jan 2005 | A1 |
20130286528 | Murfett | Oct 2013 | A1 |
20150098164 | Lenig | Apr 2015 | A1 |
20170229269 | Smith et al. | Aug 2017 | A1 |
Number | Date | Country |
---|---|---|
19916778 | Nov 2000 | DE |
102005051762 | May 2007 | DE |
WO 2005074321 | Aug 2005 | WO |
Entry |
---|
European Patent Office, Extended European Search Report received for Application No. 21152556.3, dated May 31, 2021, 10 pages, Germany. |
Number | Date | Country | |
---|---|---|---|
20210233722 A1 | Jul 2021 | US |