Intended to try and consolidate people's logic solutions for problems in one area. Not everyone using blueprints so screenshots and descriptions can be useful. When posting a solution try to be clear on the logic elements and their values. A description will help of the overall operation and a brief walk through on how it operates.
#Logic Solutions
34 messages · Page 1 of 1 (latest)
Schmitt Trigger. Gives you a hysteresis triggering. Useful for like turning Turbines on/off when batteries get too low, and off near/at max charge.
Item < X, A=>1;
Item > Y, B=>1;
data has Input A, Output A, Reset on B.
It will output A when item < X, hold it until item > Y, then turn off A when item < X.
Power/Turbine use - Connect the input to a Battery outputting battery charge %. Output goes to Turbine enable. #game-help message
Belt item counter.
Counts items over known period and calculates /min rate. Initial update will always be inaccurate (timer is always running), so wait for 2nd update before trusting value. works with Belt4 without issue.
you can reduce the item count if you don't care about clean 'second' numbers. but for the small size increase it improves usability immensely.
Note period time is only acceptable (0-60s). If you want larger than 1minute periods, then change -
- White = # of minutes (1,2,3, etc.) - fractional minutes should work but >=1 and not tested for rounding accuracy.
- Last element 'White * 3600' -> 'Black'
- 2nd Last 'Black / 3600' -> 'B'
- Output 'A/B' -> 'B'
Done
. You could reduce the component count for minute periods, but keeping it consistent with the (s) periods is cleaner imo.
Sushi Loader A v1b
Used to send multiple types of items out of one filter loader. Useful for assembly or other production builds. Set the Data source to the production rate, or desired items per cycle and it will output items. It does NOT output one item at a time, but all items mixed together. Total per cycle is maintained so as a sushi it works well.
Not useful if you want all of one item first, then 2nd, etc. Datasources can be merged, but if production periods are different times you may need to adjust quantities for maximum throughput. Belt4 will work, but item count over period may be one or two off.
#general message
Data Storage, consecutive data memory. Useful for various uses, such as belt counting holding multiple results.
I am a little confused on this, instead of having you explain it to me, could you screenshot the processors configurations here for me? Trying to replicate this
nevermind I might have it! they arent processors, but if you could add screenshots anyway would be much appreciated
Multi Item elevator.
One possible solution. Will try to maintain an inventory at the output level of the freight elevator, up to elevator4. Set the desired stored amount and as stored items deplete (output for other things) it'll send more items to keep up. It prioritizes the most missing item exclusively, and will not continue to next item until has sent close to equal amounts of each item, then it will cycle between each missing item equally until met target quantities. So not ideal for very different container quantities. Will output ~100% throughput at one item, and +~90% throughput and higher with multi items.
maybe this helps people work out logic on their own. this is the same as above just spread out and organized to be a little clearer on each items purpose.
Container splitter. useful for rearranging belts, splitting multiple belts, and generally reducing belt spaghetti.
Each input, needs an enable condition that only enables it if the items it feeds is is under a limit. Minimum needs to ensure the container won't fill up. Keeping this under 10 ensures not an excessive buildup is wasted.
Each output, needs to be a filter output. Set to choose the desired item to output.
Simple Schmitt Trigger to turn on Turbines when batteries get too low. Output signal when Battery is below low threshold (15%) and keep active until Batteries reach high threshold (95%), then disable until Battery goes below low threshold.
Can use the schmitt trigger to turn on turbines at nighttime. Solar panels will output angle (0-359). So enable outside solar range 15-165 (small 15-165deg with max output between 60-120deg or large 15-165).
Flip the first from A<15 to S > 165 (S for Solar Angle), and Flip the 2nd from A>95 to S < 15.
That way it'll turn the turbines on when solars turn off, and turn them back off when solars turn on.
You can adjust these to match any other use or need.
Turn pump on to empty a tank when it is filled, turn off a loader and allow it to empty a container, etc.
Balancer, adjustable, works for multiple items too.
Link the container to the output loader. Set the output loader to enable when container reaches the number of loaders you want to split. 3 outputs '>=3', 4 outputs '>=4', etc. This way the first output loader will be disabled until the container has enough to feed all output loaders at once.
Combine with Filter Loaders with Container Splitter to use one container to balance its outputs and still rearrange with just 1 container.
Balancer. basic styles.
Set the output loader to enable when item is > the number of loaders (or >=). As long as your threshold is equal or above the number of loaders it will balance the outputs regardless the input configuration/speed/number of belts. Biggest annoyance to me, is you need to set the loaders to the correct item type anytime this solution is used.
OR
Generic Balancer.
Use a processor to convert the container to some generic variable (i use slag, but anything works). the loaders then use the variable to balance off of. Now any item can be fed in and the loaders will keep balancing. Even mixed items work.
HOWEVER. The loader enable condition, needs to be 2* number of loaders. Setting to >24 ensures it'll work consistently under the most uses (4 ports on 3 sides = 12 * 2 = 24). The reason for this is the loader operates faster than the belts, and the processor adds a tick delay, so the loader will output 2 items when it's threshold is reached. Side aspect of introduction of a tick delay in the calculation. Just remember 2 x Number of Loaders.
Is this supposed to be signal 0 or constant 0? Also, sad for no BP 
And I assume the data source broadcast is set to on?
The 0 is constant 0. Youre using them as an isolator and/or a memory. So each x 1 or each +0 do the same job.
Correct
Uh, where's the number it's supposed to output? The data memory cell? If so, I must've done it wrong
It'll take a cycle before it reads anything. Light will go on.
You can watch the counter increase. It'll roll over and then output the calculated number to the memory cell.
Yeah, without BP mod a alot of the logic just is hard to justify. Glad you got it working.
I did a multiminute one but i didnt put it in here. its on erkles site though but both mod only. If wanted I can add a description here. Its basically the same just made simpler for ore than 1 minute times. Some processes take a while so its handy. Most things though <60 is more than enough.
If anyone else wants a BP
Should be the same as these ones. https://foundry.erkle64.com/
Should probably remove the new discontinued stuff, but .. just more to do.
I mean, I had no idea what you meant by 'erkle's website', so...
