How to Control Signals in Sessions

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(Created page with "The screenshots shown below give examples of how signals can be controlled in sessions. ==='''Application 1: Fixed Signals'''=== '''1. The Scenario:''' It is after hours an...")
 
m
 
(60 intermediate revisions by one user not shown)
Line 1: Line 1:
The screenshots shown below give examples of how signals can be controlled in sessions.
+
The information in this Wiki Page applies to '''TANE''', '''TRS19''', '''Trainz Plus''' and '''TRS22'''. It gives examples of how signals can be controlled using Session Rules.
 +
<table>
 +
<tr valign="top">
 +
<td width=250>
 +
__TOC__
 +
</td>
 +
<td>
 +
<table bgcolor="lightcyan" cellpadding=2>
 +
<tr valign="top">
 +
<td width=10>[[image:BlueDot10x10.png|link=]]</td>
 +
<td>Signals can be controlled by Session Rules during the running of a Session</td>
 +
</tr>
 +
<tr valign="top">
 +
<td>[[image:BlueDot10x10.png|link=]]</td>
 +
<td>The level of control includes:-
 +
<table>
 +
<tr valign="top">
 +
<td with=10>[[image:BlackDot10x10.png|link=]]</td>
 +
<td>locking selected signals in a set state</td>
 +
</tr>
 +
<tr valign="top">
 +
<td>[[image:BlackDot10x10.png|link=]]</td>
 +
<td>setting signals according to the actions of users</td>
 +
</tr>
 +
</table>
 +
</td>
 +
</tr>
 +
</table>
 +
</td>
 +
</tr>
 +
</table>
 +
<br>
 +
The following applications give examples of using Session Rules to control signals.
 +
<br>
 +
<table width=1000> <!-- BEGIN Nav Buttons Table NO SKIPS -->
 +
<tr valign="top">
 +
<td width=629><span id="stepApp1"></span>
 +
='''Application 1: Fixed Signals'''=
 +
</td>
 +
<td width=50>&#160;</td> <!-- Skip Down -->
 +
<td width=50>&#160;</td> <!-- Skip Up -->
 +
<td width=46>[[image:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>&#160;</td>
 +
<td width=75>[[image:NextDown.png|link=#stepApp2|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[image:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
  
==='''Application 1: Fixed Signals'''===
+
<table width=1000 cellpadding=2 bgcolor=#ffffff>
 
+
<tr valign="top">
'''1. The Scenario:'''
+
<td width=60 rowspan=2>[[image:magnifier.png|link=]]</td>
 
+
<td><span style="font-weight: 700; font-size: 17px;">The Scenario:</span></td>
It is after hours and all the signal staff on a single track branch line have clocked off for the night. All approach and depart signals on the line are locked at '''PROCEED''' and safe working is now the responsibility of the train crew.
+
</tr>
 +
<tr valign="top">
 +
<!-- <td>&#160;</td> -->
 +
<td>It is after hours and all the signal staff on a single track branch line have clocked off for the night. All approach and depart signals on the line are locked at '''PROCEED''' and safe working is now the responsibility of the train crew. The signals will not reset to '''STOP''' when passed by a train.</td>
 +
</tr>
 +
</table>
  
'''2. Rules Used:'''
+
<table width=1000 cellpadding=2 bgcolor=#ffffff>
 
+
<tr valign="top">
*'''[[Session_Rule_List_with_Parameters#Ordered_List_Rule|Ordered List Rule]]''' creates a "container" for all the '''Set Signal Extended''' rules.
+
<td width=60 rowspan=2>[[image:RulesWiki.PNG|link=]]</td>
*'''[[Session_Rule_List_with_Parameters#Set_Signal_Extended_Rule|Set Signal Extended Rule]]''' to set signals to the required state. This rule can only set a single signal at a time.
+
<td><span style="font-size: 17px;">'''Rules Used:'''</span></td>
 
+
</tr>
'''3. Session Rules Screenshot:'''
+
<tr valign="top">
 +
<!-- <td>&#160;</td> -->
 +
<td>
 
<table>
 
<table>
<tr>
+
<tr valign="top">
<td>[[file:SetFixedSignals.JPG]]</td>
+
<td width=25>[[image:DotPoint.JPG|10px|link=]]</td>
 +
<td>'''[[Session_Rule_List_with_Parameters#Ordered_List_Rule|Ordered List Rule]]''' creates a "container" for all the '''Set Signal Extended''' rules</td>
 +
</tr>
 +
<tr valign="top">
 +
<td>[[image:DotPoint.JPG|10px|link=]]</td>
 +
<td>'''[[Session_Rule_List_with_Parameters#Set_Signal_Extended_Rule|Set Signal Extended Rule]]''' to set signals to the required state. This rule can only set a single signal at a time so multiple copies of the rule are needed to set multiple signals</td>
 +
</tr>
 +
</table>
 +
</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
  
'''4. Example Explanation:'''
+
<table width=1000 cellpadding=2 bgcolor=#ffffff>
 
+
<tr valign="top">
*'''Line 1: Ordered List''' Not absolutely necessary but it places all the '''Set Signal Extended''' rules in a single container
+
<td width=60 rowspan=2>[[image:screenshot.PNG|link=]]</td>
**'''Line 2: Set Signal Extended''' The first signal along the route is fixed at '''PROCEED'''  
+
<td><span style="font-size: 17px;">'''Session Editor Screenshot:'''</span></td>
**'''Line 3: Set Signal Extended''' The next signal along the route is fixed at '''PROCEED'''.
+
</tr>
...and this is repeated for all the signals along the route.
+
<tr valign="top">
 +
<!-- <td>&#160;</td> -->
 +
<td>[[image:SetFixedSignals.JPG|link=]]</td>
 +
</tr>
 +
</table>
  
 +
<table width=1000 cellpadding=2 bgcolor=#ffffff>
 +
<tr valign="top">
 +
<td width=60 rowspan=2>[[image:explanation.PNG|link=]]</td>
 +
<td><span style="font-size: 17px;">'''Description:'''</span></td>
 +
</tr>
 +
<tr valign="top">
 +
<!-- <td>&#160;</td> -->
 +
<td>'''Line''' <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;1&#160;</span>''': Ordered List''' Not absolutely necessary but it places all the '''Set Signal Extended''' rules in a single container which makes them easier to manage
 
<table>
 
<table>
<tr>
+
<tr valign="top">
<td valign="top">[[file:SetSignalProceed.JPG]]</td>
+
<td>
<td valign="top"><br>
+
:'''Line''' <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;2&#160;</span>''': Set Signal Extended''' The first signal along the route is fixed at '''PROCEED''' </td>
 +
</tr>
 +
<tr valign="top">
 +
<td>
 +
:'''Line''' <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;3&#160;</span>''': Set Signal Extended''' The next signal along the route is fixed at '''PROCEED'''</td>
 +
</tr>
 +
<tr valign="top">
 +
<td colspan=2>...and this is repeated for all the signals along the route.</td>
 +
</tr>
 +
<tr valign="top">
 +
<td width=600 colspan=2>[[image:SetSignalProceed.JPG|600px|link=]]</td>
 +
<td><br>
 
When the '''Set Signal Extended Rule''' is opened for editing (shown left):-
 
When the '''Set Signal Extended Rule''' is opened for editing (shown left):-
*Select the signal name from the session list
+
<table bgcolor=#000000 cellpadding=2>
*Select the signal state from the list of available states
+
<tr valign="top">
 +
<td>
 +
<table bgcolor=#ffffff cellpadding=2>
 +
<tr valign="top">
 +
<td colspan=2><span style="font-weight: 700; font-size: 15px;">Steps:</span> To set a signal state:-</td>
 +
</tr>
 +
<tr valign="top">
 +
<td width=25>[[image:DotPoint1.JPG|link=]]</td>
 +
<td>select the '''signal name''' from the session list</td>
 +
</tr>
 +
<tr valign="top">
 +
<td>[[image:DotPoint2.JPG|link=]]</td>
 +
<td>select the '''signal state''' from the list of available states</td>
 +
</tr>
 +
<tr valign="top">
 +
<td>[[image:DotPoint3.JPG|link=]]</td>
 +
<td><span style="font-weight: 700; font-size: 15px; background-color: lightcyan;">Left Click</span> the [[image:Tick.PNG|link=]] icon</td>
 +
</tr>
 +
<tr valign="top">
 +
<td colspan=2>
 +
<table bgcolor=#fcbcbc>
 +
<tr valign="top">
 +
<td>[[image:Stop.PNG|link=]]</td>
 +
<td>The state selected for the signal must be supported on that particular signal otherwise no change will occur.
 +
</td>
 +
</tr>
 +
</table>
 +
</td>
 +
</tr>
 +
</table>
 +
</td>
 +
</tr>
 +
</table>
 +
</td>
 +
</tr>
 +
</table>
 +
</td>
 +
</tr>
 +
</table>
 
<br>
 
<br>
'''Note:'''<br>
+
<table> <!-- BEGIN Nav Buttons Table -->
The state selected for the signal must be supported on that particular signal otherwise no change will occur.
+
<tr valign="top">
 +
<td width=629><span id="step"></span>
 +
='''Application 2: Halt Before Clear'''=
 
</td>
 
</td>
 +
<td width=46>[[image:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[image:NextUp.png|link=#stepApp1|alt=Next Up|Top]]</td>
 +
<td width=75>&#160;</td>
 +
<td width=75>[[image:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
 +
<table width=1000 cellpadding=2 bgcolor=#ffffff>
 +
<tr valign="top">
 +
<td width=60 rowspan=2>[[image:magnifier.png|link=]]</td>
 +
<td><span style="font-size: 17px;">'''The Scenario:'''</span></td>
 +
</tr>
 +
<tr valign="top">
 +
<!-- <td>&#160;</td> -->
 +
<td>A train approaching a signal must come to a complete stop before the signal is changed from '''STOP''' to '''PROCEED'''</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
  
==='''Application 2: '''===
+
<table width=1000 cellpadding=2 bgcolor=#ffffff>
 +
<tr valign="top">
 +
<td width=60 rowspan=3>[[image:conditions.PNG|link=]]</td>
 +
<td colspan=2><span style="font-size: 17px;">'''Preconditions:'''</span></td>
 +
</tr>
 +
<tr valign="top">
 +
<!-- <td>&#160;</td> -->
 +
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
 +
<td>Use the '''[[Session_Rule_List_with_Parameters#Set_Signal_Extended_Rule|Set Signal Extended Rule]]''' to initially set the signal to '''STOP'''</td>
 +
</tr>
 +
<tr valign="top">
 +
<!-- <td>&#160;</td> -->
 +
<td>[[image:DotPoint.JPG|10px|link=]]</td>
 +
<td>This scenario uses the '''Directional Trigger''' from the DLS ('''&lt;kuid:76656:70010&gt;''' shown below) to make sure that only trains approaching the facing signal will trigger the rule. Trains travelling in the opposite direction will not trigger the rule.<br>
 +
[[image:DirectionalTriggerObject.JPG|link=]]</td>
 +
</tr>
 +
</table>
 +
<br>
 +
<table width=1000 cellpadding=2 bgcolor=#ffffff>
 +
<tr valign="top">
 +
<td width=60 rowspan=2>[[image:RulesWiki.PNG|link=]]</td>
 +
<td><span style="font-size: 17px;">'''Rules Used:'''</span></td>
 +
</tr>
 +
<tr valign="top">
 +
<!-- <td>&#160;</td> -->
 +
<td>
 +
<table>
 +
<tr valign="top">
 +
<td width=10>[[image:DotPoint.JPG|10px|link=]]</td>
 +
<td>'''[[Session_Rule_List_with_Parameters#Set_Signal_Extended_Rule|Set Signal Extended Rule]]''' to initially set the signal to '''STOP''' (in '''Preconditions''' above) and to clear the signal after the train has stopped</td>
 +
</tr>
 +
<tr valign="top">
 +
<td>[[image:DotPoint.JPG|10px|link=]]</td>
 +
<td>'''[[Session_Rule_List_with_Parameters#Directional_Trigger_Check_Rule|Directional Trigger Check Rule]]''' to trigger the event for trains approaching the signal</td>
 +
</tr>
 +
<tr valign="top">
 +
<td>[[image:DotPoint.JPG|10px|link=]]</td>
 +
<td>'''[[Session_Rule_List_with_Parameters#Wait_on_Train_Stop/Start_Rule|Wait on Train Stop/Start Rule]]''' to trigger an event when the consist stops moving</td>
 +
</tr>
 +
<tr valign="top">
 +
<td>[[image:DotPoint.JPG|10px|link=]]</td>
 +
<td>'''[[Session_Rule_List_with_Parameters#Wait_Rule|Wait Rule]]''' to wait a set time interval</td>
 +
</tr>
 +
</table>
 +
</td>
 +
</tr>
 +
</table>
  
'''1. The Scenario:'''
+
<table width=1000 cellpadding=2 bgcolor=#ffffff>
 
+
<tr valign="top">
A train approaching the home signal before a yard must come to a complete stop before the signal is changed from '''STOP''' to '''PROCEED'''.
+
<td width=60 rowspan=2>[[image:screenshot.PNG|link=]]</td>
 +
<td><span style="font-size: 17px;">'''Session Editor Screenshot:'''</span></td>
 +
</tr>
 +
<tr valign="top">
 +
<!-- <td>&#160;</td> -->
 +
<td>[[image:DirectionalTriggerSession.JPG|link=]]</td>
 +
</tr>
 +
</table>
  
'''2. Preconditions:'''
+
<table width=1000 cellpadding=2 bgcolor=#ffffff>
 
+
<tr valign="top">
*'''[[Session_Rule_List_with_Parameters#Set_Signal_Extended_Rule|Set Signal Extended Rule]]''' to clear the signal after the train has stopped moving.
+
<td width=60 rowspan=2>[[image:explanation.PNG|link=]]</td>
 
+
<td><span style="font-size: 17px;">'''Description:'''</span></td>
'''3. Rules Used:'''
+
</tr>
 
+
<tr valign="top">
*'''[[Session_Rule_List_with_Parameters#Trigger_Check_Rule|Trigger Check Rule]]''' to trigger the event.
+
<!-- <td>&#160;</td> -->
*'''[[Session_Rule_List_with_Parameters#Wait_on_Train_Stop/Start_Rule|Wait on Train Stop/Start Rule]]''' to trigger an event when the consist stops moving.
+
<td>'''Line''' <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;1&#160;</span>''': Directional Trigger Check''' set to trigger when a train approaches the signal from the facing direction
*'''[[Session_Rule_List_with_Parameters#Wait_Rule|Wait Rule]]''' to wait a set time interval.
+
<table>
*'''[[Session_Rule_List_with_Parameters#Set_Signal_Extended_Rule|Set Signal Extended Rule]]''' to set signals to the required state.
+
<tr valign="top">
 
+
<td>
'''4. Session Rules Screenshot:'''
+
:'''Line''' <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;2&#160;</span>'''Wait on Train Stop/Start''' set to trigger when the train stops moving
 
+
<table>
'''5. Example Explanation:'''
+
<tr valign="top">
 
+
<td>
 
+
::'''Line''' <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;3&#160;</span>''' Wait''' for 10 seconds
==='''Related Trainz Wiki Link Tutorials:'''===
+
<table>
<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
+
<tr valign="top">
*'''[[Controlling Junctions in Sessions]]'''
+
<td>
*'''[[Message Popup Example|Message Popup Examples]]'''
+
:::'''Line''' <span style="font-weight: 700; font-size: 15px; color: white; background-color: black;">&#160;4&#160;</span>''' Set Signal Extended''' sets the signal to '''AUTOMATIC''' or '''PROCEED'''</td>
*'''[[Message Popup Rule Applications]]'''
+
</tr>
*'''[[Navigation Point Applications]]'''
+
</table>
*'''[[Navigation Point Rules Examples]]'''
+
</td>
*'''[[Parent and Child Rules]]'''
+
</tr>
**'''[[Parent Rule List]]'''
+
</table>
*'''[[Trigger Basics]]'''
+
</td>
*'''[[Using Variables in Sessions - Examples]]'''
+
</tr>
</div>
+
</table>
 +
If the train passes the signal without stopping then the [[image:WikiLink.PNG|link=]] '''[[#Signal Passed at Danger Rule|Signal Passed at Danger Rule]]''' can be used to deal with the situation.</td>
 +
</tr>
 +
</table>
 +
<br>
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=729><span id="bottom"></span>&#160;</td>
 +
<td width=46>[[image:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[image:NextUp.png|link=#stepApp2|alt=Next Up|Top]]</td>
 +
<td width=75>&#160;</td>
 +
<td width=75>&#160;</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
----
 +
----
 +
='''Trainz Wiki'''=
 +
<table width=1000>
 +
<tr valign="top">
 +
<td>
 +
<table width=500 cellpadding=2 bgcolor=#ffffff>
 +
<tr valign="top">
 +
<td width=80>[[image:TrainzWiki.png|link=]]</td>
 +
<td>
 +
<span style="font-size: 17px;">'''More Tutorials and Guides to Using Trainz'''</span><br>
 +
*'''<span class="plainlinks">[http://online.ts2009.com/mediaWiki/index.php/HowTo How to Guides]</span>'''
 +
*'''[[Driver Commands List]]'''
 +
*'''[[Session Rule List with Parameters|Session Rules List (Alphabetical) with Parameters]]'''
 +
*'''[[Session Rules By Categories With Properties|Session Rules List (Categories) With Parameters]]'''
 +
</td>
 +
</tr>
 +
</table>
 +
</td>
 +
<td>
 +
<table width=500 cellpadding=4 bgcolor="aquamarine">
 +
<tr valign="top">
 +
<td width=50>[[image:LinkWiki.PNG|link=]]</td>
 +
<td>
 +
<span style="font-size: 17px;">'''Related Links'''</span><br>
 +
*'''[[How to Control Junctions in Sessions|How to Control Junctions in Sessions]]'''
 +
</td>
 +
</tr>
 +
</table>
 +
</td>
 +
</tr>
 +
</table>
 +
----
 +
This page was created by Trainz user '''<span class="plainlinks">[http://online.ts2009.com/mediaWiki/index.php/User:Pware pware]</span>''' in May 2018 and was last updated as shown below.
 +
----
 +
[[Category:How-to guides]]

Latest revision as of 22:00, 23 November 2023

The information in this Wiki Page applies to TANE, TRS19, Trainz Plus and TRS22. It gives examples of how signals can be controlled using Session Rules.

Contents

BlueDot10x10.png Signals can be controlled by Session Rules during the running of a Session
BlueDot10x10.png The level of control includes:-
BlackDot10x10.png locking selected signals in a set state
BlackDot10x10.png setting signals according to the actions of users


The following applications give examples of using Session Rules to control signals.

[edit] Application 1: Fixed Signals

    Top   Next Down Bottom
Magnifier.png The Scenario:
It is after hours and all the signal staff on a single track branch line have clocked off for the night. All approach and depart signals on the line are locked at PROCEED and safe working is now the responsibility of the train crew. The signals will not reset to STOP when passed by a train.
RulesWiki.PNG Rules Used:
DotPoint.JPG Ordered List Rule creates a "container" for all the Set Signal Extended rules
DotPoint.JPG Set Signal Extended Rule to set signals to the required state. This rule can only set a single signal at a time so multiple copies of the rule are needed to set multiple signals
Screenshot.PNG Session Editor Screenshot:
SetFixedSignals.JPG
Explanation.PNG Description:
Line  1 : Ordered List Not absolutely necessary but it places all the Set Signal Extended rules in a single container which makes them easier to manage
Line  2 : Set Signal Extended The first signal along the route is fixed at PROCEED
Line  3 : Set Signal Extended The next signal along the route is fixed at PROCEED
...and this is repeated for all the signals along the route.
SetSignalProceed.JPG

When the Set Signal Extended Rule is opened for editing (shown left):-

Steps: To set a signal state:-
DotPoint1.JPG select the signal name from the session list
DotPoint2.JPG select the signal state from the list of available states
DotPoint3.JPG Left Click the Tick.PNG icon
Stop.PNG The state selected for the signal must be supported on that particular signal otherwise no change will occur.


[edit] Application 2: Halt Before Clear

Top Next Up   Bottom
Magnifier.png The Scenario:
A train approaching a signal must come to a complete stop before the signal is changed from STOP to PROCEED
Conditions.PNG Preconditions:
DotPoint.JPG Use the Set Signal Extended Rule to initially set the signal to STOP
DotPoint.JPG This scenario uses the Directional Trigger from the DLS (<kuid:76656:70010> shown below) to make sure that only trains approaching the facing signal will trigger the rule. Trains travelling in the opposite direction will not trigger the rule.
DirectionalTriggerObject.JPG


RulesWiki.PNG Rules Used:
DotPoint.JPG Set Signal Extended Rule to initially set the signal to STOP (in Preconditions above) and to clear the signal after the train has stopped
DotPoint.JPG Directional Trigger Check Rule to trigger the event for trains approaching the signal
DotPoint.JPG Wait on Train Stop/Start Rule to trigger an event when the consist stops moving
DotPoint.JPG Wait Rule to wait a set time interval
Screenshot.PNG Session Editor Screenshot:
DirectionalTriggerSession.JPG
Explanation.PNG Description:
Line  1 : Directional Trigger Check set to trigger when a train approaches the signal from the facing direction
Line  2 Wait on Train Stop/Start set to trigger when the train stops moving
Line  3  Wait for 10 seconds
Line  4  Set Signal Extended sets the signal to AUTOMATIC or PROCEED
If the train passes the signal without stopping then the WikiLink.PNG Signal Passed at Danger Rule can be used to deal with the situation.


  Top Next Up    


[edit] Trainz Wiki

TrainzWiki.png

More Tutorials and Guides to Using Trainz

LinkWiki.PNG

Related Links


This page was created by Trainz user pware in May 2018 and was last updated as shown below.


Personal tools