Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Locked
Re: Best Command Station to use with Decoder Pro
开云体育On Fri, 21 Mar 2025 03:55:12 EDT Mick Moignard wrote: Actually, the decoder is not asked 8 questions, one for each bit. In Direct Bit mode, it’s as 16 questions, because it asks whether each bit is 0 and then 1, to be sure of a positive answer for one of the questions. No assumptions here; the bit can’t be assumed to be 1 if it’s not zero, because something could have gone wrong with the 0 question.
|
Re: Startup/automation
Steve_G, I don't believe in anything "dumb luck". Genius.
?
AD, my "virtual" turnout occupancy block is not mired in Logix.
It looks complicated but really simple in either Logix or LogixNG:
Proper timing to satisfy Dispatcher is done in the debounce times of the blocks indicating occupancy:
The nice part of this is that there is no need for additional detection hardware and the block occupancy doesn't disappear.
And it's as simple as my old pea brain can keep track of.
?
The caveat is that all rolling stock is detected.
It's as close to prototype operating safety as I can achieve.
?
I have one other standard design feature that really doesn't affect any of this.?
I buffer each hardware detector sensor with a virtual sensor set by Logix(NG) - detect active makes virtual active, otherwise inactive.
I do that so I can simulate occupancy with a panel toggle for testing purposes.
?
--
Ken NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959) Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu Blog: ?
Youtube:
|
Locked
Re: Best Command Station to use with Decoder Pro
Yes the RailCommunity specs. are all in German but if you are a Merg member they are all available to you in English and all up to-date unlike the NMRA versions.
?
RailCom+ is known within the RailCommunity specs. as DCC - A (for automatic login).
?
Michael |
Re: Signal Mast Logic
#sml
Hi,
?
I have everything working now.
Many thanks for your help.
?
Regards
?
Dave |
Locked
Re: Best Command Station to use with Decoder Pro
Nigel
The NMRA is on the case now on RailCom, in partnership with RailCommunity. Mick ______________________________________ Mick Moignard mick@... p:+44 7774 652504 The week may start M, T, but it always ends WTF! |
Locked
Re: Best Command Station to use with Decoder Pro
Actually, the decoder is not asked 8 questions, one for each bit. In Direct
Bit mode, it’s as 16 questions, because it asks whether each bit is 0 and then 1, to be sure of a positive answer for one of the questions. No assumptions here; the bit can’t be assumed to be 1 if it’s not zero, because something could have gone wrong with the 0 question. In both Page and Direct Byte mode, it’s up to 256 questions, because it asks 0, 255, then 1,2,4 up to 254, stopping when it gets an acknowledgement. Remember the decoder can only say “yes” as a positive answer. It can’t say “No” and the command station should not take the lack of an answer to be the end of the question. It will (should!) only pass back an answer on positive receipt of “Yes” - ack pulse - responses. Mick ______________________________________ Mick Moignard mick@... p:+44 7774 652504 The week may start M, T, but it always ends WTF! |
Re: Startup/automation
toggle quoted message
Show quoted text
On Mar 20, 2025, at 9:18?AM, Steve_G via groups.io <RailRodder22@...> wrote:
|
Locked
Re: Best Command Station to use with Decoder Pro
Digitrax won't as it would wipe out the use of transponding, who would bother with such a clumsy system. Also there is the "Not made here" problem, they did not come up with it.
?
NCE probably won't as it would mess up all their old non NMRA compliant decoders, they don't play nice with the cutout used, it needs to be tweaked to let them run. Lenz has had settings in the command station even back years ago for that.
?
Tony |
Re: Anyone Have a Schedule Strategy to Put Long Train Into Multiple Staging Cassettes?
#operationspro
Building on Daniel’s suggestion…
?
Let’s say you would like three cassettes that hold 18 cars each (triple your current six).?
create three staging tracks each long enough to hold 18 cars. Call them RED, WHITE, BLUE for example. ?
Then build 9 cassettes and paint (or designate) three of each by color. ?You will have to break down your train onto the separate cassettes, but then at least it really doesn’t matter how they are blocked since the three cassettes will stay together as a group. ? |
Re: Changing signal Mast Aspect with jython
#jython
#signalheads
Sorry, but that is garbage. You cannot get an instance of an object by requesting the object from its class. ?It has to be done using the object's manager. ?The JMRI scripting environments includes aliases for the common managers, such as masts for signal masts. Signal mast aspects are NOT set by changing the signal head appearance. ?That assumes that the signal mast is build using signal heads which is not a valid assumption. ?Even if built using signal heads, there can be more than one head.
Dave Sand ----- Original message ----- From: "Canadian Locomotive Logistics via groups.io" <CanadianLocomotiveLogistics=[email protected]> Subject: Re: [jmriusers] Changing signal Mast Aspect with jython #jython #signalheads Date: Thursday, March 20, 2025 6:47 PM I have a new love now for ChatGPT.... ? # Import necessary JMRI classes from jmri import SignalHead from jmri import Reporter # Get the SignalHead object for the signal mast signal_mast = SignalHead.getSignalHead("Signal Mast, Table 12, Track 5, West Bound") # Check if the signal mast exists if signal_mast is not None: ? ? # To set the aspect, you'll need to use the setState method with one of the predefined aspects. ? ? # Here we set an example aspect. Adjust according to the available aspects. ? ?? ? ? # For example, setting the signal to red (stop signal): ? ? signal_mast.setState(SignalHead.RED) ? ?? ? ? # If you want to set to a different aspect, such as yellow or green, use: ? ? # signal_mast.setState(SignalHead.YELLOW) ?# for yellow ? ? # signal_mast.setState(SignalHead.GREEN) ? # for green ? ?? ? ? # Optionally, you can get the current state to confirm if it was set correctly ? ? current_state = signal_mast.getState() ? ? print("Signal Mast aspect set to: ", current_state) else: ? ? print("Signal Mast 'Signal Mast, Table 12, Track 5, West Bound' not found.") |
Re: Changing signal Mast Aspect with jython
#jython
#signalheads
then again chatGPT use code for signal head.... try again. lol
? |
Re: Changing signal Mast Aspect with jython
#jython
#signalheads
I have a new love now for ChatGPT....
?
# Import necessary JMRI classes
from jmri import SignalHead from jmri import Reporter # Get the SignalHead object for the signal mast
signal_mast = SignalHead.getSignalHead("Signal Mast, Table 12, Track 5, West Bound") # Check if the signal mast exists
if signal_mast is not None: ? ? # To set the aspect, you'll need to use the setState method with one of the predefined aspects. ? ? # Here we set an example aspect. Adjust according to the available aspects. ? ?? ? ? # For example, setting the signal to red (stop signal): ? ? signal_mast.setState(SignalHead.RED) ? ?? ? ? # If you want to set to a different aspect, such as yellow or green, use: ? ? # signal_mast.setState(SignalHead.YELLOW) ?# for yellow ? ? # signal_mast.setState(SignalHead.GREEN) ? # for green ? ?? ? ? # Optionally, you can get the current state to confirm if it was set correctly ? ? current_state = signal_mast.getState() ? ? print("Signal Mast aspect set to: ", current_state) else: ? ? print("Signal Mast 'Signal Mast, Table 12, Track 5, West Bound' not found.") |
Locked
Re: Best Command Station to use with Decoder Pro
开云体育Tom, ? The question is if the ESU command station will work with JMRI. If it does, then you have something. But I don’t recall what level of ESU command station support has been written for JMRI. But if you look at this page, it will help you once your hardware arrives. ? ? Fundamentally it looks like some degree of support has been around for a number of years. ? -Ken Cameron, Member JMRI Dev Team
? ? |
Nags, The test still occurs, but the issue is what happens after the test. ?A related factor is what causes a ConditionNG to execute. With the exception of ConditionalNGs configured to run after file loading, most of them are activated by a change to an item in an If-then-else action. ?The default is that items added to the "if" have the "listen" setting enabled. ?A change to one of these will start the ConditionalNG. ?Items that have "listen" disabled will not start the ConditionalNG but will be evaluated to determine the true/false state of the if-then-else. It can help to separate the trigger events from checks for item states. ?For example, think of a yard ladder with sensor buttons for each track and an occupancy sensor for the turnout ladder. ?The sensor button will trigger a ConditionalNG for the selected track. ?The sensor is defined as "listen" and the if-then-else is "on change". ?When that test is true, a second if-then-else checks for other items, such as ladder block occupancy, etc. ?These are defined as "no listen" which prevents unplanned running of the ConditionalNG. ?This if-then-else is also set to "always execute" since the occupancy might not have changed since the last run. ?When this is true, the turnouts can be set. For this example, a "sensor group" is used to make sure that only one track button is active. ?One ConditionalNG will run when its sensor becomes inactive resulting in the first test being false which does nothing. ?Another ConditionalNG will run when its sensor becomes active. ?This one will do more work. Dave Sand ----- Original message ----- From: "Nags via groups.io" <snowy999=[email protected]> Subject: Re: [jmriusers] LogixNG vs Jython performance #jython #logixng Date: Thursday, March 20, 2025 4:11 PM On Fri, Mar 21, 2025 at 02:02 AM, George Hofmann wrote: For example I am not understanding why legumes are involved. Pay that! I find myself using LogixNG more and more and I did wonder what the overhead was. What does catch me out occasionally is Execute on Change vs. Always Execute. The conditional doesn't execute even though I reckon it should have. Sometimes I give up trying to figure out why and just make it Always Execute. ? Therefore, what is the performance penalty of one over the other? I assume in either case it still has to test the conditions. -- H.O. Australia (Layout in Progress) Digikeijs DR5000 LocoNet JMRI v5.10 DecoderPro/Warrants/CPE/SML/LogixNG Java: OpenLogic jre-17.0.12.7 ? Windows 10 |
Locked
Re: Best Command Station to use with Decoder Pro
开云体育Mark, ? It takes a special circuit to get added to the booster to allow RailCom to work and then the circuit that would listen for the answers. So it takes a significant change in the booster circuit. That’s one part they (US mfgs) haven’t had to change for years. The hesitation of ‘don’t fix what isn’t broken’ comes to mind. Since Digitrax has its transponding, I wouldn’t expect them to change. NCE, hard to say, they have done a few things like the new PH5/CS03 but RailCom is only useful to those who also are doing some sort of computer interfacing. ? Only time will tell if the impact of TCS or MRC starts to show up on their radar. ? -Ken Cameron, Member JMRI Dev Team
? ? |
On Thu, Mar 20, 2025 at 10:33 AM, Cliff Anderson wrote:
Cliff
Well said! I am trying to get that point across to my club members. We have a complex Train Controller installation that nobody understands. LogixNG might replace part of it and allow for better understanding and maintenance.
?
George
|
On Fri, Mar 21, 2025 at 02:02 AM, George Hofmann wrote:
For example I am not understanding why legumes are involved. Pay that!
I find myself using LogixNG more and more and I did wonder what the overhead was.
What does catch me out occasionally is Execute on Change vs. Always Execute. The conditional doesn't execute even though I reckon it should have. Sometimes I give up trying to figure out why and just make it Always Execute.
?
Therefore, what is the performance penalty of one over the other? I assume in either case it still has to test the conditions.
--
H.O. Australia (Layout in Progress) Digikeijs DR5000 LocoNet JMRI v5.10 DecoderPro/Warrants/CPE/SML/LogixNG Java: OpenLogic jre-17.0.12.7 ? Windows 10 |
Locked
Re: Best Command Station to use with Decoder Pro
In addition to the decoders that Dick mentions, it should also be noted that over the last couple of years Trix have announced a number of locos fitted with decoders that have Railcom capability. I am not aware of Marklin supplying Railcom compatable decoders as seperate items yet, but there are suspicions that their newest decoders with the latest firmware can probably be manhandled into using Railcom. On Thu, 20 Mar 2025 at 18:43, dick bronson via <dick=[email protected]> wrote:
|