开云体育

Date

Locked Locomotives unable to change direction. #sprog #pr4

 

Hi,

I'll apologise now for not being very computer / DCC savvy.

I recently installed a Digitrax DN163K1B in a Kato SD70ACe and it would only travel in one direction after programming. I thought there was a fault in the decoder and was trying to figure out what to do with it. ?Then my dad bought 3 used Kato locos with MRC sound decoders and asked me to change the loco numbers. ?Now all 4 locos will only travel one direction. 2 will only travel backwards and 2 will only travel forwards.

I think it's too much of a coincidence to have 4 locos with the same errors.

Additional to this the locos can be programmed when following the "New Loco" route but afterwards cannot be identified by Decoderpro. "Identify" results in Error 301 , no locomotive found.

I've tried "Reset" but all that does is set the loco number to 3 and switch analog control to on.

Any help would be appreciated please.


Locked Re: How to activate the same output of turnout

 

Gopal,

Please be aware that I have not actually tried to use the method that is proposed here on a real layout.

Both the Logix and the LogixNG features allow one to trigger an action based on some defined action and to delay the trigger process by one's own choice of the number of seconds.

If your turnout were to have the userName of "x" for example, then the Logix version might something look like:

IX:AUTO:0002C1 ?xx ??
? ? [x] ?R1 ?IF ?Turnout "x" state is "Turnout Thrown" ??
? ? ? ? ? ? ?THEN ??
? ? ? ? ? ? ? ?On Change To True, Delayed Set Turnout, "x" to Closed, after 3 seconds. ??

Of course the editing process will try to tell you not to use the same turnout for both actions.

Cliff in Baja SoCal


Locked How to activate the same output of turnout

 

I would like to activate the same output of a turnout decoder repeatedly. ?I have two remote uncouplers that are connected to a turnout decoder with each wired to one output of the turnout decoder. My command station has two buttons each per turnout so I can activate a specific uncoupler by pressing the corresponding button. I can activate the same uncoupler by pressing the same button repeatedly. The uncoupler is activated for as long as I hold the button down.

I am trying to use the turnout table in JMRI for this. I can only alternate between the two uncouplers as the the state of the turnout alternates between "closed" and "thrown". ?How do I create a doorbell-like entry that will always activate the same leg of the turnout? The uncoupler has to be on only for a very short period of time. This appears to preclude using the Lights table. Perhaps I be using Routes for this?

I'm sorry if I'm not making myself clear; it is hard to describe properly. Thanks for your assistance.
Gopal


Locked Re: no track power in operation mode when power is turned on #sprog

 

Hi Bill,
Thanks for your reply.
The flashing is about 2x per second.
I check the power output with a Multimeter, directly from the Sprog track output,? and to be sure, I alo connect a piece of track where I put a car with an the end light which should be on when AC feeds the track.


Locked Re: RPi update killing JMRI on Steve Todd's image #rpi

 

Hi Bob,
I can confirm that a very recent update does indeed break the RPi-JMRI access point (hotspot) feature.
The network still shows, but starting it only works momentarily then it stops again.
I'm going to forego OS updates for the 5.7.7 version, as I have some improvements to the DCC-EX config that I'd like to publish.
I've also removed the updater plugin from the taskbar to (hopefully) lower the temptation to update, at least until I figure out the RPi-JMRI network issue.
--SteveT


Locked Re: Managing OperationsPro from multiple computers #operationspro

 

Oh, and to go back to the original post: is there potentially a server/client arrangement that works in this scenario?? I tried running the JMRIClient with the Simple Server on the Mini, but if I understand correctly, the Simple Server does not "speak" Operations.? But perhaps I am mistaken and/or there is another server/client arrangement that could work?

I appreciate the help so far.


Locked Re: Managing OperationsPro from multiple computers #operationspro

 

Dave, I was able to see the shared MacBook folder under /Volumes on the Mini, but as Dan points out, this solution does not achieve what I ultimately want.? I might be better off just running Operations standalone on the Mini and syncing the files to/from the MacBook before and after a session.? I know that CATS on the macBook can communicate with Operations on the Mini in real time, so that should work.? The only downside is that I like to develop the session (train lists and such) on the MacBook, so there is a required syncing step.? I think I can live with that though.? (But the web solution is still interesting.)


Locked Re: Managing OperationsPro from multiple computers #operationspro

 

On Sun, May 26, 2024 at 06:22 PM, Gary Hinshaw wrote:
I have file sharing enabled between the MacBook and the Mini
When OperationsPro is running, the database is kept in system memory.? So sharing files only works after the program has completed a save.? If two running machines shared the same files, then each could be out of synch when making changes to the OperationsPro program.? The only way this works is if one machine is running and modifying the files.? Two machines or more running at the same time will not work.? Also the program only reads the files once at startup.? From then on it uses the database in memory, and only performs file writes when saving the database.

Dan


Locked Re: Managing OperationsPro from multiple computers #operationspro

 

Gary,

I don't share files on my Mac so I don't know what the linkage looks like. ?One thing to look for is whether it is a link based on a volume being mounted (unix speak). ?If so, you might be able to create the path starting at /Volumes. ?

Open a terminal window and do the following:

cd /Volumes
ls -l?

Note: ?the above is: el es space dash el

Here I have an external disk drive mounted.

drwxr-xr-x ? 5 root? wheel? 160 May 26 17:49 ./

drwxr-xr-x? 20 root? wheel? 640 May? 7 02:01 ../

drwxr-xr-x ? 4 root? wheel? 128 May? 4 11:37 .timemachine/

drwxr-xr-x@ 17 das ? staff? 544 Mar 31 21:33 Images/

lrwxr-xr-x ? 1 root? wheel? ? 1 May 16 15:09 Macintosh HD@ -> /


Dave Sand


----- Original message -----
From: Gary Hinshaw <gary.f.hinshaw@...>
Subject: Re: [jmriusers] Managing OperationsPro from multiple computers #operationspro
Date: Sunday, May 26, 2024 5:22 PM

Thanks Dan.? So maybe not the perfect solution, but it did point me to the frame server, which opens up a few more web-based options for me.

Back to running JMRI on the Mini: I have file sharing enabled between the MacBook and the Mini and I can see MacBook files on the Mini, so I feel like I should just be able to make a JMRI Config Profile on the Mini that points to the MacBook files.? But when I try to set File Locations to point to the MacBook, the PanelPro navigation pane does not show the shared folders.? Am I missing something, or is that not possible?


Locked Re: Managing OperationsPro from multiple computers #operationspro

 

Thanks Dan.? So maybe not the perfect solution, but it did point me to the frame server, which opens up a few more web-based options for me.

Back to running JMRI on the Mini: I have file sharing enabled between the MacBook and the Mini and I can see MacBook files on the Mini, so I feel like I should just be able to make a JMRI Config Profile on the Mini that points to the MacBook files.? But when I try to set File Locations to point to the MacBook, the PanelPro navigation pane does not show the shared folders.? Am I missing something, or is that not possible?


Locked Re: Managing OperationsPro from multiple computers #operationspro

 

On Sun, May 26, 2024 at 05:25 PM, Gary Hinshaw wrote:
1) if I click a build button on the web frame, it opens a window on the server to request departure and arrival track info and the web user does not see that.?
Yes, that could be an issue if there are build warnings or other dialogue window popups.? So not a perfect solution.

Dan


Locked Re: Managing OperationsPro from multiple computers #operationspro

 

On Sun, May 26, 2024 at 05:25 PM, Gary Hinshaw wrote:
2) When I click on a Build button in the web frame, it seems to trigger the button one row below it.? Perhaps this is what you meant by tricky.? :)
I don't know why you need to click on the button above in the table for it to work.? I'll look into this.? Other checkboxes and radio buttons seem to work correctly.


Locked Re: Managing OperationsPro from multiple computers #operationspro

 

Nice.? This is almost the perfect solution for me with two small issues: 1) if I click a build button on the web frame, it opens a window on the server to request departure and arrival track info and the web user does not see that.? ?I can look into prescribing these choices ahead of time to circumvent this.? 2) When I click on a Build button in the web frame, it seems to trigger the button one row below it.? Perhaps this is what you meant by tricky.? :)


Locked Re: Managing OperationsPro from multiple computers #operationspro

 

You have to "enable frames".


Locked Re: Managing OperationsPro from multiple computers #operationspro

 

On Sun, May 26, 2024 at 03:33 PM, Gary Hinshaw wrote:
I don't believe I can build trains via the web interface, correct?? If I can, that would be a good solution for me.?
Yes you can.? A bit trickly to hit the build button but it works.




Locked Re: Managing OperationsPro from multiple computers #operationspro

 

Thanks Dan.? Yes, I am familiar with the content of Steve's (excellent) presentation, and I have been using switch lists on tablets as described therein.? What I am looking to do now is a bit different: I want to build some trains in real time during a session and I'd like for the person doing that to be sitting at computer 2 while the Operations data is stored on computer 1 in a different room.? ?Computer 1 is where I do all my offline work and I have CATS and Operations sharing info on it during a session.? But I don't want to burden the d/s with building trains, and I'd prefer to avoid duplicating files.

I don't believe I can build trains via the web interface, correct?? If I can, that would be a good solution for me.? Alternatively, I just need to understand better how to use computer 2 as a JMRI client so it can access Operations files on computer 1.? I'll keep monkeying around with it.

Thanks for the excellent program.


Locked Re: Why Listen to Turnout in LogixNG Doesn't Trigger #logixng

 

Thanks Dave,
This makes a lot more sense.
I'm working on a single crossover with four blocks (for signal block boundaries).
Control is a bit of work.
I use four conditionals, one for each "port".
I determine direction by the first sensor active on one or more of six possible paths.
A fifth conditional clears the direction indicators.
Each path has two "turnout" blocks with virtual sensors.
These virtual sensors need to be sequenced, depending upon direction, similar to your example B3A/B13A sequencing.?
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.7.7 * OSX,Win10,Ubuntu
Blog: ?


Locked Re: LOGIXNG

 

开云体育

Thank you

I have upgraded to 5.6

I will have to spend time looking at what you wrote to understand it.
I will have to read about block looking.

I had planed to go from loop 1 to loop 3, as they both travel ccw and place no delay on sw2, a 200 delay on sw4 ,a 400 delay on sw 6 and a 600ms delay on the 2 blocks on the loop of sw6. I have a sensor in lower right corner of panel for travel direction which I use in ‘for’ portion of conditional. ?So I wanted to put the delay in the then for a simple conditional not worrying for now about the other trains crossing the path. As long as no train is crossing the instant the loop 1 train reaches b2 to go to b33 and gets to b33 it’s safe as all the blocks would be active and so the crossing trains will all stop. The train in loop one would have that section which has all the switch blocks in it allocated when the train is 2 blocks away and I assume if any block in the loop1 section gets allocated or occupied by a crossing train the train in loop1 would not get the section allocated and so stop in b2.

I had no plans to change to logix on the switches which are in single blocks and transits don’t include connected switches but just the ladder switches and if I use logixNG for them I assume I would not need the shadow blocks at all.

Tony


On May 26, 2024, at 12:21 PM, Dave Sand <ds@...> wrote:

?
Tony,

There is a tool to migrate Logixs to LogixNG. ?It does not convert the Logix to native LogixNG. ?I don't recommend it.

To delay an action use "Add => Common => Execute delay". ?The delay can be applied to anything, including a group of actions.

Here are some LogixNGs for your layout.

Real to Virtual Mapping

The mapping Logixes are replaced by a single LogixNG.
<Screenshot 2024-05-26 at 10.15.04?AM.png>
The "Listen on beans" contains a list of real sensors.
<Screenshot 2024-05-26 at 10.21.16?AM.png>
When a sensor changes, a formula prepends "V" to the real sensor name to create the virtual sensor name. It then set the virtual sensor state to the state of the real sensor.

Simple virtual turnout block

Setting a single virtual turnout sensor is fairly simple.
<Screenshot 2024-05-26 at 11.12.25?AM.png>
The first IF checks to see if the turnout is closed. ?If it is thrown, a different set of real sensors is involved.


Multiple turnout blocks

Multiple turnout blocks, such as crossovers and slip ladders are complicated and need to take into consideration traffic direction.

This one handles traffic between B2 and B13. ?The direction is based on SML based sections.
<Screenshot 2024-05-26 at 10.14.35?AM.png>
SW2 has five potential routes. ?The simple example covered the route to B3. ?

The other routes have multiple virtual turnout blocks. ?

Since there need to be 4 LogixNG conditionals for the complex routes, the first IF statement is used to determine if the route is active. ?If not, do nothing. ?Notice the "No Listen". ? These expressions do not trigger the execution of the conditional. ?The "section" checks also do not listen for changes.

The second IF knows that the turnouts are aligned. ?If both sensors are not active, then it sets the virtual turnout sensors inactive.

The final IF statement is a IF-THEN-ELSE IF-THEN ELSE format. ?This makes it possible to create a series of checks. ?If none of them are true, the final ELSE is used.

If the real sensors are both active, the final IF statement first checks to see if Dispatcher has routed a train from left to right. ?If so, it sets the virtual turnout sensors in the proper sequence. ?If not, it then checks for a right to left train. ?If so, it sets the virtual turnout sensors in the reverse sequence. ?If there is no train, it sets the virtual turnout sensors inactive.

Note: ?You might need to upgrade to 5.6 to support the displayed LogixNG conditionals.

Dave Sand



----- Original message -----
Subject: Re: [jmriusers] LOGIXNG
Date: Sunday, May 26, 2024 9:37 AM

Ps: ?if I have a logix conditional is there some button I press that converts it to a logixNG logic conditional

Tony



On May 26, 2024, at 10:34 AM, AD <BKLYNS_BASEBALL_CLUB@...> wrote:
?I create an if then else statement using logixNG?
the conditional if and asks if 2 sensors are active and a switch is thrown then set a third sensor active.
I want to add a delay of 200 ms to the activation of the third sensor in that conditional.

how do I do that

tony


Locked Re: LOGIXNG

 

Tony,

There is a tool to migrate Logixs to LogixNG. ?It does not convert the Logix to native LogixNG. ?I don't recommend it.

To delay an action use "Add => Common => Execute delay". ?The delay can be applied to anything, including a group of actions.

Here are some LogixNGs for your layout.

Real to Virtual Mapping

The mapping Logixes are replaced by a single LogixNG.
The "Listen on beans" contains a list of real sensors.
When a sensor changes, a formula prepends "V" to the real sensor name to create the virtual sensor name. It then set the virtual sensor state to the state of the real sensor.

Simple virtual turnout block

Setting a single virtual turnout sensor is fairly simple.
The first IF checks to see if the turnout is closed. ?If it is thrown, a different set of real sensors is involved.


Multiple turnout blocks

Multiple turnout blocks, such as crossovers and slip ladders are complicated and need to take into consideration traffic direction.

This one handles traffic between B2 and B13. ?The direction is based on SML based sections.
SW2 has five potential routes. ?The simple example covered the route to B3. ?

The other routes have multiple virtual turnout blocks. ?

Since there need to be 4 LogixNG conditionals for the complex routes, the first IF statement is used to determine if the route is active. ?If not, do nothing. ?Notice the "No Listen". ? These expressions do not trigger the execution of the conditional. ?The "section" checks also do not listen for changes.

The second IF knows that the turnouts are aligned. ?If both sensors are not active, then it sets the virtual turnout sensors inactive.

The final IF statement is a IF-THEN-ELSE IF-THEN ELSE format. ?This makes it possible to create a series of checks. ?If none of them are true, the final ELSE is used.

If the real sensors are both active, the final IF statement first checks to see if Dispatcher has routed a train from left to right. ?If so, it sets the virtual turnout sensors in the proper sequence. ?If not, it then checks for a right to left train. ?If so, it sets the virtual turnout sensors in the reverse sequence. ?If there is no train, it sets the virtual turnout sensors inactive.

Note: ?You might need to upgrade to 5.6 to support the displayed LogixNG conditionals.

Dave Sand



----- Original message -----
Subject: Re: [jmriusers] LOGIXNG
Date: Sunday, May 26, 2024 9:37 AM

Ps: ?if I have a logix conditional is there some button I press that converts it to a logixNG logic conditional

Tony



On May 26, 2024, at 10:34 AM, AD <BKLYNS_BASEBALL_CLUB@...> wrote:
?I create an if then else statement using logixNG?
the conditional if and asks if 2 sensors are active and a switch is thrown then set a third sensor active.
I want to add a delay of 200 ms to the activation of the third sensor in that conditional.

how do I do that

tony


Locked Re: LOGIXNG

 

开云体育

Ps: ?if I have a logix conditional is there some button I press that converts it to a logixNG logic conditional

Tony


On May 26, 2024, at 10:34 AM, AD <BKLYNS_BASEBALL_CLUB@...> wrote:

?I create an if then else statement using logixNG?
the conditional if and asks if 2 sensors are active and a switch is thrown then set a third sensor active.
I want to add a delay of 200 ms to the activation of the third sensor in that conditional.

how do I do that

tony