Page 1 of 1

Set Filter AND Enable/Disable?

Posted: Wed Apr 26, 2017 7:36 pm
by SphynxLoL
Possible or not? Through mods or any means. Working with Logistics Train Network and the new "Read Train Contents" I have a design that requires a filter inserter to be both Enabled/disabled and have it's filter set when a train comes to pick up items.

Image
Lager Image: http://i.imgur.com/DDC3LP6.png

Re: Set Filter AND Enable/Disable?

Posted: Wed Apr 26, 2017 7:43 pm
by torne
Just have your circuit set the filter to nothing when you want it to be disabled.

Re: Set Filter AND Enable/Disable?

Posted: Wed Apr 26, 2017 8:32 pm
by SphynxLoL
torne wrote:Just have your circuit set the filter to nothing when you want it to be disabled.
Thank you sir, your tip put me in the right direction!

Re: Set Filter AND Enable/Disable?

Posted: Wed Apr 26, 2017 10:58 pm
by quyxkh
The clear-the-filter method would if you're also trying to read hand contents for some reason, I isolate the aggregate output signal (since they're not going to have anything in hand that doesn't match the filter it's okay to bus that) but virtual signals don't interfere so you can do the calc externally and pipe enable/disable results in on that. This is a pretty familiar look for me:
Counted filtered inserters
Counted filtered inserters
Screenshot from 2017-04-26 15-43-38.jpg (14.52 KiB) Viewed 3917 times
with the decider passing "have > want" to my filters offloading the sushi-belt supply loop, and other conditions as virtuals, the inserters set to read/pulse. You could do enable-if red < 1 without interfering with that at all. I use `-` arithmetics exclusively as isolators, each-to-each - 0 so the (here) item-take-accounting bus doesn't flood the filters.