¿ªÔÆÌåÓý

Locked Re: Automation #automation


 

On Sun, Apr 5, 2020 at 01:14 PM, Dave Sand wrote:
One addition might be a sensor to pause the handle cycle to facilitate analysis. ?It could also be used to pause the script in order to terminate and restart trains.
That change sounds useful, but I haven't found it necessary for my debugging as I just pause the autotrains using the Dispatcher windows. I also have a button on the PanelPro main window to (re)start the script.?
The script simply checks for active autotrains with speed > 0, then activates the occupancy sensor for the first allocated block. If the train is occupying more than one block, it inactivates the last occupancy sensor.
Another enhancement would be to smarten that logic to compare train length to total occupied length, and inactivate based on that instead.
The script ends itself when no autotrains exist.
--SteveT

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