A Problem about controlling logistic robot with circuits

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
SLB
Inserter
Inserter
Posts: 35
Joined: Mon Sep 25, 2017 10:47 am
Contact:

A Problem about controlling logistic robot with circuits

Post by SLB »

I designed a circuit like this:

The number of items required to set the blue box through the circuit does not exceed the number of items in the nearby red box

This makes it possible to use trains as a means of long-distance transportation in a huge logistics area
Loading and unloading goods from trains using logistics robots

My design used to look like this
0001.png
0001.png (1.37 MiB) Viewed 840 times
Iron ore enters the red box from the carriage, read the iron ore signal as A
Each line below represents a component
A = A / 32 (32 is the number of blue boxes)
A = A-4
____A> = 200: out A = 1
________A = A * 200
____A <200 out: A = A
________A = A + 0 (this component is used to offset the circuit time difference)
Output A and set demand quantity for all 32 blue boxes

This circuit works well when using shorter trains

But recently I tried using long trains and mixed unloading, such as 8 + 24 as shown below
0002.png
0002.png (2.68 MiB) Viewed 840 times
This circuit has a problem when there are a lot of blue boxes
I now have 576 blue boxes at this station.

If I use:
A = A / 576
A = A-4
This will bring up to 2303 of each mineral residue in the red box
In actual use, 1 or 2 red boxes will be full for a long time.
When a new train comes in, these two red box inserters won't work!
This will slow down the unloading of the train
I need to reduce the amount of cargo left in the red box
It's better to make the red box work like a purple box and empty it completely.

==============================================
Here are some of the attempts I have made
1.
If I change -4 to -3 or -2
Then when the train is unloaded, there is a chance to see the logistics robot move ore from a long distance

2.
I tested that when the demand is set to less than 4, the logistics robot will still carry at least four items in one transportation
So I tried to modify the circuit to
A = A / 576
A = A / 4
A = A * 4
But this still doesn't empty the red box
If I try to use the %operation to deal with those fractions
I still see robots moving minerals from far away

Here is my test archive
https://drive.google.com/file/d/1uP7QCf ... sp=sharing

Post Reply

Return to “Gameplay Help”