
Automation circuit for one time long duration event
I use this to kick off a 20s on duration for the liquid pump so I can get 200kg of crude
3k+ hours in the game and I've been wanting this kind of circuit forever so I thought I'd share in case others also find it valuable.
This function is very useful to allow me to kick start something that will take a long time without needing to check back in time to stop it. Unlike using a series of buffer gates, this can work for tasks you want to run for up to 10cycles without reconstructing the circuitry.
Circuit logic explained:
Timer is set up to use "red duration" to define how long the event should be. "green duration" as a quick reset. I use 2s here to ensure long enough for signal to propagate to avoid race conditions.
The buffer gate after the AND gate is set to 3s (1s longer than the timer quick reset period).
Player can kick start the long duration process by flipping the toggle switch ON, then OFF. The memory toggle will hold that green signal and when the timer comes to the "green duration" reset period, AND gate and buffer gate will propagate the ON condition to the last memory toggle as well as the machine you want to enable.
When the timer cycles back to the "green duration" quick reset, the last memory toggle will stop the machine as well as reset the first memory toggle. Making this action a single time event until the user flips the toggle switch again.