LTN - locked slot not working?

Adds new train stops forming a highly configurable logistic network.

Moderator: Optera

Post Reply
zaratoostra
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Feb 25, 2024 9:35 pm
Contact:

LTN - locked slot not working?

Post by zaratoostra »

Hi

why is the lot slot signal not working?
(its set to three to test if i need to adjust the number to the number of inserters)
Attachments
factorio problem 26.02.2024 lock slot issue.png
factorio problem 26.02.2024 lock slot issue.png (13.19 MiB) Viewed 269 times

User avatar
Nosferatu
Fast Inserter
Fast Inserter
Posts: 228
Joined: Fri Jan 20, 2017 4:48 pm
Contact:

Re: LTN - locked slot not working?

Post by Nosferatu »

My guess:
LTN thinks it can use both wagons.
You locked 3 slots per wagon so it thinks it can load 74 slots of processing units.

zaratoostra
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Feb 25, 2024 9:35 pm
Contact:

Re: LTN - locked slot not working?

Post by zaratoostra »

Ok,i changed it to only one wagon and still the same issue
Attachments
factorio problem 26.02.2024 lock slot issue 2.png
factorio problem 26.02.2024 lock slot issue 2.png (9.94 MiB) Viewed 192 times

User avatar
Nosferatu
Fast Inserter
Fast Inserter
Posts: 228
Joined: Fri Jan 20, 2017 4:48 pm
Contact:

Re: LTN - locked slot not working?

Post by Nosferatu »

It's hard to debug the setup with only one picture but I think I spotted something else:

Your inserters are controlled by the green wire witch connects them directly to the LTN constant combinator.

According to the manual the signal output there is:
Constant Combinator: (signal output)
train composition: position of wagons & locomotives in parked train (all stops)
binary encoded signal of train composition up to 31 carriages with lsb at the train stop. More information about binary encoding here
Expected train inventory after un-/loading is complete. (only Requester & Provider)
Your screenshot shows that this signal is 2600 Processing Units - thats what LTN ordered for this train.
To make your inserters stop when loading is done you need to subtract what is already loaded into the train from that number.

You need to connect the train station itself to an arithmetic combinator.
Set the train station to "Read train contents" and the combinator to *-1
Then connect the combinators output to your inserters

Optera has posted a reference provider Station here with all the settings an wirings screenshotted: viewtopic.php?p=297643#p297643
I hope that helps

Post Reply

Return to “Logistic Train Network”