Help with circuit network

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Atol
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue May 02, 2017 4:34 pm
Contact:

Help with circuit network

Post by Atol »

Hi All !
Task: we have 5 assembling machines. Lets say they produce iron plates. If for 10 seconds 1 or few or all of the machines didn't produced iron plate then red lamp should turn on and stay on until all of the machines produce plate and then again...
Thank you.
The Eriksonn
Fast Inserter
Fast Inserter
Posts: 230
Joined: Wed Jun 08, 2016 6:16 pm
Contact:

Re: Help with circuit network

Post by The Eriksonn »

So you want a red lamp to turn on if any machine was not producing for 10 seconds?

Should not be to hard... ;)
Atol
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue May 02, 2017 4:34 pm
Contact:

Re: Help with circuit network

Post by Atol »

yes but once all did it started to count again
Atol
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue May 02, 2017 4:34 pm
Contact:

Re: Help with circuit network

Post by Atol »

anyone pls help?
Shokubai
Filter Inserter
Filter Inserter
Posts: 470
Joined: Mon May 02, 2016 3:17 pm
Contact:

Re: Help with circuit network

Post by Shokubai »

hmmm...I am not sure how/if you can tie circuit network to units per time directly.

Some lower tech solutions would be to count units crossing a belt segment. If the units became lower than some number then do a light, or warning via speaker which Im a huge fan of since they give global alerts.

The condition on your light or speaker would be plates < [some number] If that segment of belt has less than [some number] your lamp fires.

TO be effective you would probably want to chain together a length of belt...maybe 10 lengths...connected to your alert. Then you could do a total number across all linked belts or put an arithmetic combinator between belt and alert to do some math like EACH / [number of belt segments] so you can look for an AVERAGE number rather than total.

I did a little proof of concept using a bit of belt carrying a sparse but stead supply of steel. I ran a red wire to each belt segment and to my lamp. I set the belt segments to Read Belt Contents - Hold and I set the lamp to steel >1. In other words...If there is one peice of steel on the length of belt...we light...if not were off.
1.png
1.png (179.45 KiB) Viewed 2703 times
2.png
2.png (162.78 KiB) Viewed 2703 times
In your case you want the item on belt less than some number. This should give you a warning when production drops below some level.

Spend some time over here viewtopic.php?f=8&t=29679&start=0
If you need to convert a BP string for .15 https://factoriolayouts.com/blueprint/convert
User avatar
Lav
Filter Inserter
Filter Inserter
Posts: 384
Joined: Mon Mar 27, 2017 10:12 am
Contact:

Re: Help with circuit network

Post by Lav »

I'd suggest the following setup:

I. A small looped belt with a single item on it, with one belt tile connected by wire: read belt contents, pulse mode. It's your signal generator, and it will generate 0 most of the time, but will periodically generate 1's when the item passes the wired belt. You can control frequency by using different belts of different lengths.

That belt is connected to the input of:

II. An arithmetic combinator with '+' operation. This is your timer. First input comes from the looping belt. Second input comes from timer's own output. Most of the time, it will be adding it's own value to zero (from the belt), but during signal generator pulses it will be adding 1, and then retain that value until next pulse (or reset - but that's for later).

Another connection goes from timer's output to:

III. A lamp with a condition to activate is the value exceeds some threshold.

Now, this is a setup which will activate the lamp after some time passes. What you still need is a way to reset the timer.

IV. Let's add another arithmetic combinator. It will receive it's input from timer's output and multiply it by -1 (negative one). Now we can use this value to reset the timer to zero by feeding it into timer's input - but only when your factory is outputting something. So, without further ado:

V. Another arithmetic combinator, again for multiplication. It will multiply your resetter output value by a signal coming from your factory, which should be either 0 (when factory isn't producing) or 1 (when it does). It's output you connect to timer's input.

Now, the setup is almost complete: timer counts time and starts the lamp, factory generates 0 so resetter isn't activated, and when the factory will send 1, resetter will reset the timer, turning off the lamp. The only thing remaining is to generate those 1's when your factory is producing something, and if you paid attention at step I, you know exactly how to generate them:

VI. Connect a wire to your factory's output inserter, or to a belt that you use to move your factory output (this is better if there are several factories). Set it to read contents and generate pulse 1's. Connect it to the final combinator. Voila, setup complete. As soon as the factory produces something, 1 is sent to reset combinators, timer combinator is reset to zero, and lamp turns off. If no further signals come from the factory for the specified time, timer will exceed lamp's activation threshold again and the lamp will turn on.

Now, your original request is to turn the lamp off when the factory is producing enough, not just one item. This means you'll need a more complicated setup at your factory's side, which will send 1's only when production is sufficient. This should be easy enough to do by measuring a length of belt, with a decider combinator only sending 1 when there's enough items on the belt. But whatever your setup at the factory's side, the remaining system is unchanged.
The Eriksonn
Fast Inserter
Fast Inserter
Posts: 230
Joined: Wed Jun 08, 2016 6:16 pm
Contact:

Re: Help with circuit network

Post by The Eriksonn »

I have made a system that works like you want it to work:

Blueprint:

Code: Select all

0eNrtWltvqzgQ/i9+hhX4AkmkPb9i31ZHiIDTWuImY7pbVfnva4fTNAEDHm+O1Ie8tCLGn2c8l288+AMdq4F3UjQKHT6QKNqmR4e/P1AvXpq8Mr+p946jAxKK1yhATV6bp7zveX2sRPMS1nnxKhoeYnQOkGhK/i86xOdgE0LJvOm7VqrwyCt1Mxk7TC55IUouw6Ktj6LJVStvAMj5Z4B4o4QSfNTm8vCeNUN95FKLd8WpeSmGOuQVL5QURdi1FderdG2vJ7eNWV8DhiRA7/rf/mxEm4BhIFi8gkWWdmcuEh1hUhsMvcKc8l6Foum5VHpgUbFEb14ppJb7MpZYMBlYtMQmWrLuQnOw+EtCLZ8YfUG2TfjCcxn+88p5hSzrpK5bENt3IEA6FJRsq+zIX/M3oR1Mv18IWQxCZXVb8qw9ZW3HZT7O0Dv5OSp5XmaveVNmBkMLpp1QyYGfL6DNuEZv8GLzR/Ly1kmFftp/gZnH+PzzbNvM3Vo8zDQlf7BPn7nTFdt1/QVpdCjFVeKTkL3KZtH5JqQa9C9XgcY3QqObXq3nBsV92l/osld1l8uLLgf0Q7/TDqob4IsXbfeutRgalZ1kW2ei0SjocMqrnp//j00C9CI5b6YvYqzNFSC8gHMZtllz72fN5PHWvM+182gzK/QqN5wRTez058PtdIkcdzOlNztrMRueDO8eZFXHiI0j5zSKrealNtAYCpo6gGJwwmdWjeGcRq041JM5CJA5YuYXh/SZVT2yKqa/O63GCTQ6mEN0pFBQ6gC686xLsVXvPTjwiLW+jaDVJNmuJnEMFs6qJPasvrG7h5p8AGCQ6TDB6+M0XfT46crxOrXFW9QWbETeuuCzcbI+bhSzBiQmwNqcfKva3JKx7GpSPx4hz3rubrvJht9OA2oeNb6M4mpoBuUCss0FGMxa2AE0BWfd2KrxDooTWWH2QGaJtomFRH5lYgSsEkkMS2LRt8ph89xtd22C/XJY/KyFPWphi1UeXAsT4mXP6ElJd3baKoXwZinlaVjnuKVQ9oi32YNAeS5ywEygTGIlJAImNutpguz8yAPaYiB+rT78zKoeWZU6t/guJ5bl4Fs80FBoU88h2Ci0p+dQ/lHs11+w9uMoARZvDl0BSqFhbO1YUPC3KruGCazE+17HVIvb25039eqgUABdbrTg8fQHlq5PSNhiCJONnshsLbrRJZnKMhvfmJ8slWLU7+Pdszuwar6ZeZNpKbZ/FBu4xtcemMgdmgMMSjgOzWcG7shaP/cw8Gcj6zUBBmUXlxsMnl+QoFcPGIPxxve6esAc/ZpBG1QOX1VY6pUT2bMu9qiL2W+vi5kfxT0vNNzbiW2UHHizZPE0rHMqgFKcw52GJILyyM563QzMatYLdckXq316yqorx78ksrvuSVSaDhbuWW761GC8NN64armRiEaMKIpuLl1qJxF9ZlQYM4ndQZf9yLpvBOgZOwfPgPa2HC67JF+U3dd5VYVVXndzPHrFW2Poa0by55fldPTDDA8916tUrYSfCkdLGVublHi4uf4boDftlGMJQilm0X6PE30w/g/KoAkb
The T variable in the constant is the time in ticks before the lamp turns on

It is very easy to expand ;)
Post Reply

Return to “Gameplay Help”