Fred,
I have two separate scripts running to control two locos on the same single track mainline with a passing siding for them to meet. An internal sensor set by Logix when they meet permits each script to contineu.
Bob Bucklew
toggle quoted message
Show quoted text
----- Original Message -----
From: "i50fwe via Groups.Io" <i50fwe@...>
To: "jmriusers" <
[email protected]>
Sent: Saturday, December 28, 2019 10:30:03 PM
Subject: [jmriusers] How to run multiple locomotives with one script?
I started with the back and forth timed script and have been able to get it running just once. I¡¯ve added turnout control and run function keys for light, horn, bell. All under timer control. It works great.
But I¡¯ve not been able to run two locomotives in same script by switching the throttle to different number and sending new commands. I get inconsistency. I tried creating a second def and starting both but not consistently working.
Anyone have simple example of how to do this? I don¡¯t have any sensors or complex stuff.
Thanks
Fred