Factorio

Factorio

View Stats:
CrankySmurf Oct 30, 2024 @ 5:49am
Reading a Belt then disable/enable
I am trying to read a bet, if its not at 50% I want to disable a bet further down. I wired one belt to the other but I dont understand how to read the 1st one then based on the content count enable disable another belt.

Can anyone help or point me in the right direction?
< >
Showing 1-9 of 9 comments
Scipione Oct 30, 2024 @ 5:54am 
the "reading" belt needs to be put in "reading content" mode (you normally want "hold" mode for that), the "stopping" belt needs to have "enable" activated with a condition to choose when to "enable" the belt, if not enabled it will stop transporting
Fel Oct 30, 2024 @ 6:03am 
Check "read belt content" and set the mode to "hold".
It means sending a constant signal of what is on the belt, as opposed to "pulse" that sends a short signal when an item enters the belt.

If your belt carries iron plates for example, the signal will be the amount of iron plates that are on the belt, on the "iron plates" signal.
As for the 50%, a belt can have up to 4 items at once per lane, so 8 in total so using "iron plates >= 4" for the enable condition would mean "enable this belt when there are at least 4 iron plates in the signals", and since the signal is the content of the other belt, it would do what you want.
CrankySmurf Oct 30, 2024 @ 7:49am 
Awesome thank you for the information, Ill give this a try!
CrankySmurf Oct 30, 2024 @ 9:10am 
Ok not working. Just to make sure I understand.
Belt 1:
Check Read Belt Contents
Check Hold
Belt 2:
Check Enable/disable
Set product >= 4

Expectation is that belt 2 would stop producing if Belt 1 was low on product.

No matter the status of the belt, it still runs.
Fel Oct 30, 2024 @ 9:13am 
A screenshot could help (possibly with the second belt's UI open and moved to the side), because I tested it while writing and it did work.
Scipione Oct 30, 2024 @ 9:50am 
you wanted: ">="
well you set it to: "<=" so it will run until 4 or more
Fel Oct 30, 2024 @ 9:56am 
If you are not confident with logic stuff, you can "translate" it into an english phrase:
I want to enable it when there are at least 4 items on the other belt.
"at least" means that the number should be 4 or higher, so ">=4".
CrankySmurf Oct 30, 2024 @ 10:34am 
Originally posted by Scipione:
you wanted: ">="
well you set it to: "<=" so it will run until 4 or more
Great catch! Thank you, this worked. Yall rock!
< >
Showing 1-9 of 9 comments
Per page: 1530 50