¿ªÔÆÌåÓý

Help PanelPro turn on a signal mast with logix


 

Hello,
?
I currently have my entire layout programmed for CTC or ABS using all my own logix. I have one signal on a branchline, which protects the mainline, that does not have any sensors near it, so the signal is thrown only by the dispatcher and all the corresponding signals on the mainline will react to it - so if dispatcher gives green for branchline to cross mainline, all mainline signals go red.?
?
The trouble I'm having is every time I start a session, the branchline signal is "unknown" until the dispatcher clicks it and sets it to an aspect. I tried to build a logix for it to become known automatically, possibly using my Route that I built, but logix cant look at routes. (My thought process was "if route is set, set signal to red")
?
Is there a way to set all unknown masts to a known value?
?
Lou
--
Modeling Conrail¡¯s Boston Line in HO


 

Lou,

The easiest solution is to have an initialization Logix that sets the branchline signal to Stop.

Dave Sand


----- Original message -----
From: "louis.dirosso via groups.io" <louis.dirosso=[email protected]>
Subject: [jmriusers] Help PanelPro turn on a signal mast with logix
Date: Friday, January 24, 2025 11:59 AM

Hello,
?
I currently have my entire layout programmed for CTC or ABS using all my own logix. I have one signal on a branchline, which protects the mainline, that does not have any sensors near it, so the signal is thrown only by the dispatcher and all the corresponding signals on the mainline will react to it - so if dispatcher gives green for branchline to cross mainline, all mainline signals go red.?
?
The trouble I'm having is every time I start a session, the branchline signal is "unknown" until the dispatcher clicks it and sets it to an aspect. I tried to build a logix for it to become known automatically, possibly using my Route that I built, but logix cant look at routes. (My thought process was "if route is set, set signal to red")
?
Is there a way to set all unknown masts to a known value?
?
Lou
--
Modeling Conrail¡¯s Boston Line in HO




 

On 1/24/2025 1:09 PM, Dave Sand wrote:
The trouble I'm having is every time I start a session, the branchline signal is "unknown" until the dispatcher clicks it and sets it to an aspect. I tried to build a logix for it to become known automatically, possibly using my Route that I built, but logix cant look at routes. (My thought process was "if route is set, set signal to red")
Is there a way to set all unknown masts to a known value?
I think we need more info. (Unless you just need a few ideas and can figure out what to do with a simple hint.)

"All your own signal logic"? Is that logic that is implemented as Logix which directly controls the signal heads? Or is it logic that is implemented as Logix which directly controls the signal masts, and do you rely on AML Logic?

If using LogixNG, and SML, Dave's suggestion is a good one. Dave's idea is a good one if you use a recent-enough JMRI version. If you can deal with the vagaries of LogixNG changes. (Which happen all-too frequently in my opinion.)

If not, you will have to decide what to do. If you choose to go with Logix (not LogixNG), or Jython, you need to figure out how to "trigger" something at, more-or-less, JMRI start-up, but _after_ your Logix is running.

There are _lots_ of ways to get something to run at JMRI start-up. One could get tricky with the Memory object "IMCURRENTTIME" and another internal Sensor to track uninitialized/initialized state; although this would have a delay of a minute or two. I would write a simple Jython script that makes an internal Sensor go from (whatever JMRI starts with) to "Active" then to "Inactive", within a few seconds of JMRI "running".

And then I would write a Logix conditional, which is triggered by the start-up event and qualified by the internal sensor saying force the "field" logic for absolute signals to be "normal" ("Stop"). (Or if your CTC is not so featuresome", simply force the ABS signal masts to "Stop" or set the masts to "held" or force the signal heads to "Red" or ..., as appropriate. And, specifically, for the "diamond", fiddle the signals to force the "cross-traffic" to "stop".

The last action would be to fiddle the internal sensor to a value saying that the code has been "initialized".

There are plenty of things that can perhaps be workable for _your_ solution. You just need to figure it out. Hopefully Dave and I have given you some ideas.


 

For Logix based initialization, I use the LRoute RTXINITIALIZER. This creates an IX:RTXINITIALIZER Logix that can be modified to perform any number of initialization actions, including things that a LRoute cannot do itself.

Dave Sand

----- Original message -----
From: "billybob experimenter via groups.io" <jawhugrps@...>
To: [email protected]
Subject: Re: [jmriusers] Help PanelPro turn on a signal mast with logix
Date: Friday, January 24, 2025 1:33 PM

On 1/24/2025 1:09 PM, Dave Sand wrote:
The trouble I'm having is every time I start a session, the branchline
signal is "unknown" until the dispatcher clicks it and sets it to an
aspect. I tried to build a logix for it to become known automatically,
possibly using my Route that I built, but logix cant look at routes. (My
thought process was "if route is set, set signal to red")

Is there a way to set all unknown masts to a known value?
I think we need more info. (Unless you just need a few ideas and can
figure out what to do with a simple hint.)

"All your own signal logic"? Is that logic that is implemented as Logix
which directly controls the signal heads? Or is it logic that is
implemented as Logix which directly controls the signal masts, and do
you rely on AML Logic?

If using LogixNG, and SML, Dave's suggestion is a good one. Dave's idea
is a good one if you use a recent-enough JMRI version. If you can deal
with the vagaries of LogixNG changes. (Which happen all-too frequently
in my opinion.)

If not, you will have to decide what to do. If you choose to go with
Logix (not LogixNG), or Jython, you need to figure out how to "trigger"
something at, more-or-less, JMRI start-up, but _after_ your Logix is
running.

There are _lots_ of ways to get something to run at JMRI start-up. One
could get tricky with the Memory object "IMCURRENTTIME" and another
internal Sensor to track uninitialized/initialized state; although this
would have a delay of a minute or two. I would write a simple Jython
script that makes an internal Sensor go from (whatever JMRI starts with)
to "Active" then to "Inactive", within a few seconds of JMRI "running".

And then I would write a Logix conditional, which is triggered by the
start-up event and qualified by the internal sensor saying force the
"field" logic for absolute signals to be "normal" ("Stop"). (Or if your
CTC is not so featuresome", simply force the ABS signal masts to "Stop"
or set the masts to "held" or force the signal heads to "Red" or ..., as
appropriate. And, specifically, for the "diamond", fiddle the signals
to force the "cross-traffic" to "stop".

The last action would be to fiddle the internal sensor to a value saying
that the code has been "initialized".

There are plenty of things that can perhaps be workable for _your_
solution. You just need to figure it out. Hopefully Dave and I have
given you some ideas.


 

On 1/24/2025 2:33 PM, Dave Sand wrote:
For Logix based initialization, I use the LRoute RTXINITIALIZER. This creates an IX:RTXINITIALIZER Logix that can be modified to perform any number of initialization actions, including things that a LRoute cannot do itself.
(Leasned something new!)


 

Dave, how do I set up the logix initializer? That sounds like exactly what I need - I just need something to set the signal to a known aspect when I start up panelpro.?

Thanks
?
Lou
--
Modeling Conrail¡¯s Boston Line in HO


 

Lou,

Create a LRoute
  1. Go to "Tools -> Tables -> LRoutes".
  2. Click on "Add".
  3. Select the "Actions (output)" tab.
  4. Check the "Include" checkbox for any item. ?One is needed to create the Logix.
  5. Select the "LRoute Basics" tab.
  6. Provide a user name.
  7. Click on the "Initializer" button.
  8. Click on "Create".
Update the IX:RTXINITIALIZER Logix
  1. Go to "Toosl -> Tables -> Logix"
  2. Click on the "Select" for IX:RTXINITIALIZER and select "Edit".
  3. Click on "Edit" for the conditional.
  4. Delete the Action for the included item from the LRoute.
  5. Add an Action to set a signal mast aspect.

Dave Sand




----- Original message -----
From: "louis.dirosso via groups.io" <louis.dirosso=[email protected]>
Subject: Re: [jmriusers] Help PanelPro turn on a signal mast with logix
Date: Saturday, January 25, 2025 8:28 AM

Dave, how do I set up the logix initializer? That sounds like exactly what I need - I just need something to set the signal to a known aspect when I start up panelpro.?
Thanks
?
Lou
--
Modeling Conrail¡¯s Boston Line in HO




 

Thanks Dave. I¡¯ll attempt this tonight, probably screw it up, and come crying back for more help. This seems helpful because the signal mast has nothing to trigger it. No blocks, no other masts, no switches (all hand throws on the branch line). Thanks?

Lou
--
Modeling Conrail¡¯s Boston Line in HO


 

Lou,

Actually, the signal mast can have signal mast logic (SML). ?
The dashed line is a virtual block with no detection. ?It provides a block boundary at the diverging leg of the turnout. ?The signal mast is attached to the leg and has SML to the next signal mast in the direction of travel.

Dave Sand


----- Original message -----
From: "louis.dirosso via groups.io" <louis.dirosso=[email protected]>
Subject: Re: [jmriusers] Help PanelPro turn on a signal mast with logix
Date: Sunday, January 26, 2025 6:27 AM

Thanks Dave. I¡¯ll attempt this tonight, probably screw it up, and come crying back for more help. This seems helpful because the signal mast has nothing to trigger it. No blocks, no other masts, no switches (all hand throws on the branch line). Thanks?
Lou
--
Modeling Conrail¡¯s Boston Line in HO




 

Dave, I dont see a way to use SSL for the mast, as the branch line is entirely dark and the one switch that could trigger it has no regard to the signal itself. Here is a picture on the panel to give a sense. My RR is completely programmed with my own Logix. When the dispatcher sets the branchline signal to clear (to cross the mainline) the mainline signals all go to Red. For context, when my panel first loads up, the signal under discussion is a red X until the dispatcher clicks it and sets it to an aspect. Id like the panel to load the signal red. I load my panel and set a route automatically, setting the mainline to all clear. I dont see a way to set mast aspects with the route.
?
Thanks. Lou
?
--
Modeling Conrail¡¯s Boston Line in HO


 

Lou,

Based on the actual requirements, you can ignore my rambling about SML. ?

The RTXINITIALIZER approach is the easiest way to get the signal mast to show the Stop aspect (red) after loading.

Dave Sand



----- Original message -----
From: "louis.dirosso via groups.io" <louis.dirosso=[email protected]>
Subject: Re: [jmriusers] Help PanelPro turn on a signal mast with logix
Date: Sunday, January 26, 2025 10:07 AM

Dave, I dont see a way to use SSL for the mast, as the branch line is entirely dark and the one switch that could trigger it has no regard to the signal itself. Here is a picture on the panel to give a sense. My RR is completely programmed with my own Logix. When the dispatcher sets the branchline signal to clear (to cross the mainline) the mainline signals all go to Red. For context, when my panel first loads up, the signal under discussion is a red X until the dispatcher clicks it and sets it to an aspect. Id like the panel to load the signal red. I load my panel and set a route automatically, setting the mainline to all clear. I dont see a way to set mast aspects with the route.
?
Thanks. Lou
?

--
Modeling Conrail¡¯s Boston Line in HO