Page 1 of 1

Logic Friday Design using combinators (Decision Tables/Karnaugh maps)

Posted: Wed Aug 26, 2015 5:23 am
by HeilTec
Experiment with Factorio and "Logic Friday"

When designing any kind of logic functionality one must always start with some sort of specification.
To get things rolling an example is needed. With the possibility to read Storage Tanks and control pumps by wire network -
let's make a fluid balancer (for petroleum gas) since that would be handy.
To be useful it should handle both situations of either plenty or scarcity.
intro
Using the opensource program "LogicFriday" a truth-table can be input.
truth
friday
Combinator build.


Now the inputs are ready, the State machine for the pump control can be designed.
big truth
min
manumap
Overview
All in one (10 = max attachments)
All in one (10 = max attachments)
Overview.png (827.6 KiB) Viewed 14856 times

logic
Complete RTF document

Re: Logic Friday Design using combinators

Posted: Wed Aug 26, 2015 8:25 am
by ssilk
Which shows again, that decision tables/Karnaugh maps are a good idea to design circuits, see https://forums.factorio.com/forum/vie ... sion+table

Would be cool to make a pdf out of it, cause I guess, that this rtf cannot be displayed by everybody.

Re: Logic Friday Design using combinators

Posted: Wed Aug 26, 2015 1:21 pm
by HeilTec
ssilk wrote:Which shows again, that decision tables/Karnaugh maps are a good idea to design circuits, see https://forums.factorio.com/forum/vie ... sion+table

Would be cool to make a pdf out of it, cause I guess, that this rtf cannot be displayed by everybody.
Right on both points:
1. Before I tried the LogicFriday tool I actually used Karnough maps to get to the boolean functions. How nice to find friendly free tools to remove the toil and many possibilities to fail. After this I tried another little tool called "LogiSim" - due to the poor circuit editing interface in LogicFriday. LogiSim was used to draw the manual map circuit that was built in-game using just the equations.

2. The .rtf is my working copy I prepared before posting. Unable to fit all the images I ended up just sharing the raw file. It would be nice if some better format could be used for both working on it and sharing. The Images in the .rtf are .jpg - they are also available in .png

Re: Logic Friday Design using combinators

Posted: Wed Aug 26, 2015 1:47 pm
by Lupoviridae
Seeing this, I think it would be a REALLY great addition if it were made so that in in the Alt info overlay for the game, red and green wires were thicker/highlighted, like what you have in the diagram. It would really help.

Re: Logic Friday Design using combinators

Posted: Wed Aug 26, 2015 9:33 pm
by HeilTec
Lupoviridae wrote:Seeing this, I think it would be a REALLY great addition if it were made so that in in the Alt info overlay for the game, red and green wires were thicker/highlighted, like what you have in the diagram. It would really help.
Why stop there - show signals on the poles (as extended option)

Re: Logic Friday Design using combinators (Decision Tables/Karnaugh maps)

Posted: Thu Nov 24, 2016 4:52 pm
by provet
Interesting will definitely take a look at this during the weekend!