Thanks Andrew, remember the sub 1 second is not for an actual switching of the relay it's a fail safe so that if a poll update to keep the relay activated it will deactivate as a fail safe as per my above convocations with you. (Sorry, I'm just thinking of walk-arounds without changing the base system)
Yep, I reviewed our previous messages, and I believe I understand what you need. While I can't promise I can implement these features without looking at the code, here’s the functionality I have in mind for the timer mode:
- Relay Triggering: Activating the relay (via a pin or software) will energize it, and it will automatically de-energize after the set "on time" elapses.
- Re-triggering: If the relay is re-triggered (via pin or software) while the timer is active, the timer will restart. For example, with a 1-second "on time," re-triggering every 0.5 seconds will keep the relay energized indefinitely. If re-triggering stops, the relay will stay energized for 1 second before de-energizing.
- Cancelling the timer: If the relay is turned off via software while active, the timer will cancel, and the relay will de-energize immediately.
- Timer Resolution: An additional register will allow the timer resolution to be set to either 1-second increments (default) or 100ms increments. This provides a timer range of 1–65,535 seconds or 0.1–6,553.5 seconds, respectively.