3.3.4 Supporting Latching Relays
The relay used in this example is a non-latching relay. However, some relays are latching, where the relay maintains the same state until reset. The coils cannot be driven continuously with this type of relay unless some changes are made to the program behavior. The simplest way to implement this is to disable the coils after the initial switching time is complete but before the max time has elapsed.