-The train would only load oil at the pumpjack station when there is enough in reserve to fill the train
-The train would only unload oil at the refinery station when there is enough space in storage tanks to empty the train
(these two are simple to implement at the moment since storage tanks can connect to the circuit network)
-The train would wait at the pumpjack station (or a holding station) until there is space in storage tanks at the refinery to empty the train. Extra buffer tanks would make sure I don't run out of oil by the time the train gets there.
-The train would wait at the refinery station (or a holding station) until there is enough oil in storage tanks at the pumpjacks to fill the train
I have noticed that inserters will remove fuel from a locomotive (this caused problems with non-standard sized trains at my refuelling yards) so my idea to implement this is to keep the trains starved of fuel. When the train arrives at a holding station, all the fuel will be removed. Only when the inserters recieve the appropriate signal, they will allow the train a limited amount of fuel so it can get to its next destination.
my questions are: Is there anything I have overlooked that will cause problems? Has anyone else tried to do this, or has set up a different system to control trains? How can I use the combinators to emit a pulse signal instead of a constant signal, to only let the trains have a small amount of fuel each time?
P.S I am using double-headed trains with four cargo wagons mainly for aesthetic reasons
