Keyboard Shortcuts
Likes
Search
Martin, I have confirmed the behavior that you are seeing. ?I was also able to confirm with a set of Logixs that have worked for years. This statement has always been a part of the Logix help file:
Until 4.21.5, this statement was not really true. ?They did tend to run in sequence. BTW: ?You script statements were bad. ?They needed to be print 'something', not just text. Dave Sand ----- Original message ----- From: "Martin via groups.io" <Mfargher=[email protected]> Subject: Re: [jmriusers] JMRI 4.22 Logix controlling signalling fails Date: Sunday, March 14, 2021 3:29 PM Dave, I have uploaded a file that should match the Signal 4 Logix and Outputs text below in this email chain. File is <Graub¨¹nden-21-0313 Debug prep S4 simplified-2.xml?>. ? The original upload is a cleaner file without the changes to simplify the Logix for Signal 4. I made these Logix changes in order to focus on the area for a sample Signal of where the differences seemed to be appearing. Any questions just come back to me. ? Many thanks, Martin ? ? From: [email protected] <[email protected]> On Behalf Of Dave Sand ? Martin, ? The xml file that you uploaded does not have the Logix changes shown in your posting. ? ? Dave Sand ? ? ----- Original message ----- From: "Martin via groups.io" <Mfargher=[email protected]> Subject: Re: [jmriusers] JMRI 4.22 Logix controlling signalling fails Date: Sunday, March 14, 2021 4:28 AM ? Dave I have added a 7z folder with the Icons zipped. There are also three files associated with Train Protection that I have added. The .py files detect a train passing a red signal at Block 1 and Block 2 and call up a list of motive power dcc addresses in locoid.txt. These are good for completeness, but I don¡¯t think that they are impacting on my Logix challenges of changing Signal aspects. Many thanks for all you extensive work on JMRI. Regards, Martin ? ? From: [email protected] <[email protected]> On Behalf Of Dave Sand ? Martin, ? Your panel is using custom icons. ?I don't know if they are important for testing purposes. ?It would be helpful if you could upload a zip file with the custom icons. ? Dave Sand ? ? ----- Original message ----- From: "Martin via groups.io" <Mfargher=[email protected]> Subject: Re: [jmriusers] JMRI 4.22 Logix controlling signalling fails Date: Saturday, March 13, 2021 6:48 PM ? Thanks for the suggestions as to how I can look further into my Logix failure between JMRI 4.21.4 and 4.21.5. I have uploaded the full Panel File <Graub¨¹nden-21-0313 Debug prep.xml> to the Problems Being worked On area under a folder of my name Martin Fargher. ? The problem I have encountered is that it is not possible to set a Signal to Green in 4.21.5 and subsequent versions. Signalling does work on 4.21.4 and previous for the same Panel. ? I have also looked further into this myself and tried a cut down Panel and Logix for one of my signals, Signal 4. What follows below is based on this cut down Panel so hopefully more clearly demonstrates that there is a difference between 4.21.4 and 4.21.5. Unfortunately I myself can't see how any of the particular Logix outputs are derived! ? Guidance on why Logix is determining a different output for exactly the same panel would be appreciated! ? Many thanks, Martin Fargher ? ? Signal S4, with *cut down Conditionals* ? Signal S4 protects a converging route to a Turnout. All Conditionals relating to track occupancy, train protection and points locking have been deleted for this demonstration below. These appear to work correctly so have been left out for brevity. ? JMRI internal sensor "Signal S4 Indicator" is used to set the Signal S4 to clear or danger. This sensor appears on the panel and can be 'pressed'. It can also be selected in the Sensor Table with the same effect. ? * Conditionals, in order, are called: Report Signal S4 Indicator triggered sensor Active [added for Indicator action determination] Report Signal S4 Indicator triggered sensor Inactive [added for Indicator action determination] Signal S4 aspect selector Hold indicator at Red Prevent indicator clearing if track not clear ? ? Logix: IX:RTXS4 clear??? Signal S4 control??? (Enabled) ? ? IX:RTXS4 clearC4? Report Signal S4 Indicator triggered sensor Active?? ????[x]? R1? IF? Sensor "Signal S4 indicator" state is "Sensor Active"?? ?????????????THEN?? ???????????????When Triggered True, Execute Jython Command Jython Command Conditional Report Signal S4 Indicator triggered Sensor Active = True.?? ???????????????When Triggered False, Execute Jython Command Jython Command Conditional Report Signal S4 Indicator triggered Sensor Active = False.?? ? ? IX:RTXS4 clearC5? Report Signal S4 Indicator triggered sensor Inactive?? ????[x]? R1? IF? Sensor "Signal S4 indicator" state is "Sensor Inactive"?? ?????????????THEN?? ???????????????When Triggered True, Execute Jython Command Jython Command Conditional Report Signal S4 Indicator triggered sensor Inactive = True.?? ???????????????When Triggered False, Execute Jython Command Jython Command Conditional Report Signal S4 Indicator triggered sensor Inactive = False.?? ? ? IX:RTXS4 clearC1? Signal S4 aspect selector?? ????[x]? R1? IF? Sensor "Signal S4 indicator" state is "Sensor Active"?? ????[x]? R2??? AND Sensor "Turnout T07R sensor" state is "Sensor Active"?? ????[x]? R3??? AND Signal Head "Signal 6" Appearance is "Red"?? ?????????????THEN?? ???????????????On Change To True, Set Signal Head Appearance, "Signal 4" to Green?? ???????????????On Change To False, Set Signal Head Appearance, "Signal 4" to Red?? ???????????????On Change To True, Execute Jython Command Jython Command Conditional Signal S4 aspect selector = True.?? ???????????????On Change To False, Execute Jython Command Jython Command Conditional Signal S4 aspect selector = False.?? ? ? IX:RTXS4 clearC2? Hold indicator at Red?? ????[x]? R1? IF? Signal Head "Signal 4" Appearance is "Red"?? ????[x]? R2??? AND Sensor "Signal S4 indicator" state is "Sensor Active"?? ?????????????THEN?? ???????????????When Triggered True, Set Sensor, "Signal S4 indicator" to Inactive?? ???????????????When Triggered True, Execute Jython Command Jython Command Conditional Hold indicator at Red = True.?? ???????????????When Triggered False, Execute Jython Command Jython Command Conditional Hold indicator at Red = False.?? ? ? IX:RTXS4 clearC3? Prevent indicator clearing if track not clear?? ????[ ]? R1? IF OR NOT Sensor "Turnout T07R sensor" state is "Sensor Active"?? ????[x]? R2??? OR Signal Head "Signal 4" Appearance is "Red"?? ?????????????THEN?? ???????????????When Triggered True, Set Sensor, "Signal S4 indicator" to Inactive?? ???????????????When Triggered True, Execute Jython Command Jython Command Conditional Prevent indicator clearing if track not clear = True.?? ???????????????When Triggered False, Execute Jython Command Jython Command Conditional Prevent indicator clearing if track not clear = False.?? ? ? OUTPUTS, with identical JMRI Panel file including Logix ? * Script Output for JMRI version 4.21.4 ? * On selecting indicator [internal sensor] to set signal to Green, route already set. Result is Signal S4 correctly goes Green >>> Conditional Report Signal S4 Indicator triggered Sensor Active = True >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = False >>> Conditional Hold indicator at Red = False >>> Conditional Prevent indicator clearing if track not clear = False >>> Conditional Signal S4 aspect selector = True >>> Conditional Hold indicator at Red = False ? * On trying to select indicator [internal sensor] to set signal Green but other route is set, with other Signal Red or Green. Result is Signal S4 correctly stays Red. >>> Conditional Report Signal S4 Indicator triggered Sensor Active = True >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = False >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Hold indicator at Red = False >>> Conditional Hold indicator at Red = True ? * Script Output for JMRI version 4.21.5 ? * On [trying to] select indicator [internal sensor] to set signal to Green, route already set. Result is Signal S4 'incorrectly' stays Red >>> Conditional Hold indicator at Red = False >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False >>> Conditional Hold indicator at Red = True >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False ? * On trying to select indicator [internal sensor] to set signal Green but other route is set, other Signal Red (can't be cleared in any case). Signal S4 'correctly' stays Red >>> Conditional Hold indicator at Red = False >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False >>> Conditional Hold indicator at Red = True >>> Conditional Report Signal S4 Indicator triggered sensor Inactive = True >>> Conditional Report Signal S4 Indicator triggered Sensor Active = False ? ? ENDS ? ? ? |