Page 1 of 1

Stucked inserter activates when no wire signal

Posted: Wed Feb 14, 2018 4:48 pm
by wvlad
I assume steps are something like:
1. Put an inserter that activates on wire condition and a chest with items behind
2. Place a cargo wagon at the front
3. Turn on the wire signal to activate the inserter
4. Turn off wire signal, remove cargo wagon - try this or an opposite order to make some of inserters stuck with item in hand - that's ok
5. Place another cargo wagon - stucked inserters finish their swing placing an item when circuit expects them to stay turned off.

Same for filter inserters - they finish their swing when cargo wagon is available even if their filters are set to a different item (not which they have in hand).

On this screenshot these stucked inserters will finish their swing as soon a cargo wagon is placed at their front regardless of circuit signals:
Image

Re: Stucked inserter activates when no wire signal

Posted: Wed Feb 14, 2018 5:05 pm
by Twinsen
This is working as intended. An inserter will always finish it's swing if it started..

Re: Stucked inserter activates when no wire signal

Posted: Wed Feb 14, 2018 6:18 pm
by wvlad
I thought "off" means "off", not "off + last swing".

Re: Stucked inserter activates when no wire signal

Posted: Wed Feb 14, 2018 6:50 pm
by Nexarius
wvlad wrote:I thought "off" means "off", not "off + last swing".
It makes sense because right now you can pulse a signal to an inserter and it will swing exactly once.
If this didn't work you would have to get the pulse length to match for every inserter speed to get exactly 1 swing.

Re: Stucked inserter activates when no wire signal

Posted: Wed Feb 14, 2018 7:08 pm
by wvlad
Then it can be implemented like this: when turning off an inserter attempts to finish its swing right now and if it's not possible to do (no space or no container) then it becomes disabled (no waiting for container). With this you can still use pulse signals to activate inserters but it doesn't lead to inserting items into a wrong train.

Re: Stucked inserter activates when no wire signal

Posted: Wed Feb 14, 2018 7:17 pm
by pleegwat
In that case after an aborted swing the inserter would still be holding an item, which would cause problems in set filters mode.