Single run timer

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
synyster31
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon Mar 21, 2016 4:24 pm
Contact:

Single run timer

Post by synyster31 »

I've been trying to create a timer that runs through once when a signal is received from an inserter holding an item, once the timer cycle is completed I want it to wait until the next time the inserter picks up an item. I'm stuck on getting the timer to start when i want it to and then to stop after one cycle.

Basically i want to make a launch sequence with lights that count down, then flash when i insert a satellite into a silo & launch a rocket, then wait until the next launch before starting the sequence again. I've managed to get a nice sequence i like, i'm just struggling with the stopping & starting of the timer, i couldn't find just the basic set-up of a one-run timer that I could understand, could somebody explain or point me in the direction of how to set one of these up please?

mmmPI
Smart Inserter
Smart Inserter
Posts: 2733
Joined: Mon Jun 20, 2016 6:10 pm
Contact:

Re: Single run timer

Post by mmmPI »

timer.jpg
timer.jpg (40.21 KiB) Viewed 2457 times
That is my attempt.

Place the blueprint power it , and put a satelite in the chest.

The belt loop is sized to fit the 10 sec timer and is just there for demonstration purposes, one lap simulate one launch as if the chest was the rocket silo.


Horizontal red arrow => receive the pulse from the inserter, act as memory, allow the timer to function.
Vertical white arrow => timer
vertical black arrow => reset the memory, ( which stop/reset the timer.)

constant combinator is set to 600 ticks, so 10 second timer, could be deleted and instead write the value in place where signal T is used, that is one option included for free without anyone asking for it.

I added some lamps just to show where to plug them with a simple hardcoded condition.



10 sec timer self reset.zip
(2.74 MiB) Downloaded 224 times



Is that what you are looking for ?
does that helps you ?

synyster31
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon Mar 21, 2016 4:24 pm
Contact:

Re: Single run timer

Post by synyster31 »

I've had a quick look and that looks great! Thanks a lot!

Zanthra
Fast Inserter
Fast Inserter
Posts: 207
Joined: Fri Mar 25, 2016 8:18 am
Contact:

Re: Single run timer

Post by Zanthra »

You can use a decider combinator with Each < Max output Each. This works on 2 conditions due to how the Each signal is handled, X != 0 and X < Max. Used alongside a decider with Each < Max output 1 Each you can build a counter with 2 deciders that is triggered by a pulse, (a value going above 0) and resets to 0 when the counter ends.

Post Reply

Return to “Gameplay Help”