Help with circuit networks.

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
PlatypusFighter
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon May 30, 2016 6:11 pm
Contact:

Help with circuit networks.

Post by PlatypusFighter »

I have been trying to learn circuit networks, but there is one thing that I just can't seem to figure out.
What I'm trying to do: Create a timer that goes from 1 to 100, then in reverse back down to 1, repeating indefinitely.
How I'm trying to do it:
CC: A = -100 --> AC: A += 1 --> DC: A < 0 (Input Count)
I would think that this makes the value of A start at -100, then go up until it hits 0, then reset, but for some reason instead of doing that, it just infinitely goes into the negatives, completely ignoring the fact that the AC is ADDING 1, rather than subtracting.

I'm not even sure if a timer like I described is possible, but if it is, can someone please tell me what I'm doing wrong.
Engimage
Smart Inserter
Smart Inserter
Posts: 1069
Joined: Wed Jun 29, 2016 10:02 am
Contact:

Re: Help with circuit networks.

Post by Engimage »

Generally you need S/R latch which will output (1[set]) or (-1[reset]) which will have Set trigger at A=1 and reset at A=100. Then AC counter which will add the output of S/R latch to A.
mrvn
Smart Inserter
Smart Inserter
Posts: 5969
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Help with circuit networks.

Post by mrvn »

Careful when you loop outputs back to inputs. You are probably adding -100 to your +=1 loop every tick.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3733
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Help with circuit networks.

Post by DaveMcW »

Blueprint
Post Reply

Return to “Gameplay Help”