开云体育

Re: Chaining transits with a different locomotive #dispatcher


 

Many thanks Ken.?

I'll try that today.

JeanLouisDelestre@...


De: "Ken Heywood via groups.io" <kheywood@...>
?: [email protected]
贰苍惫辞测é: Mardi 25 Mars 2025 20:45:04
Objet: Re: [jmriusers] Chaining transits with a different locomotive #dispatcher

In the last step of your transit, there are actions.
One action is the "load traininfo", another of significance is "terminate".
Here's what I do on a reverse move.
?
When I want train A to stop and reverse, In the last transit step (where the train stops), add action "load traininfo file".
The new traininfo file references the opposite direction and a unique transit to run in that direction.
(I've never had success to my satisfaction using a reverse move in a single transit)
After the "load traininfo", do a "terminate" action with a 1.5second delay.
That gives Transit A a chance to initiate the new transit and avoids the "block already occupied" error.
?
Now, that's the reverse move.
Simply add another "load traininfo" for Locomotive B either before of after the first "load traininfo" action.
That will kickoff both Train A in reverse and Train B.
?
Just remember to do all that loading and terminating in transit actions, not in the traininfo file (no reverse, no terminate, no load).
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.4 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


--
---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
?

Join [email protected] to automatically receive all group messages.