PART2 6 Action controls which trigger the actionsThis section describes how to implement the action controls.
Please note these action controls are NOT defined inside the « actions » sub-menu. They are defined in the source objects (which generate the triggering events) i.e. the blocks, routes and signals.
6.1 Requirements for traffic described in section 4.1.1- Req 1-1: When a loco leaves BFront1 towards BFront2, Gates 61 & 62 must be closed and StAndrew137 must be active (blinking red lights) (easy
)
- Req 1-2: When the block BFront2 is freed, Gates 61 & 62 must be opened and StAndrew137 must be inactive (no more blinking red lights) (less easy
)
6.2 Implementation 6.2.1 Req 1-1 Action control on block
BFront1 :
Click on the « Actions... » button of Block BFront1
State « occupied » of BFront1 driving action « closeGate61 »
State « occupied » of BFront1 driving action « closeGate62 »
State « occupied » of BFront1 driving action «StAndrew137Active»
6.2.2 Req 1-2Action control on Block
BFront2 :
Click on the « Actions... » button of Block BFront2
State «free» of BFront2 driving action «openGate61»
State «free» of BFront2 driving action «openGate61»
State «free» of BFront2 driving action «StAndrew137Inactive»
Problem : If blocks
BFront1 and
BFront2 are both occupied and trains are stopped because of each waiting for a free destination, Req 1-1 implies Gate61 & 62 are closed.
Now, if a train leaves
BFront2 and frees that block, Req 1-2 implies Gate61 & 62 are opened ;
BUT if the train in
BFront1 has not entered yet
BFront2, then the gates won't be closed !
-> some supplementary requirement is needed (see Req 1-3)
6.3 Supplementary requirement- Req 1-3: When the block BFront2 is entered, Gates 61 & 62 must be closed and StAndrew137 must be active (blinking red lights)
6.4 Implementation of Req 1-3Action control on Block
BFront2 :
State «enter» of BFront2 driving action « closeGate61 »
State «enter» of BFront2 driving action « closeGate62 »
State «enter» of BFront2 driving action «StAndrew137Active»
Question: « Why not only use Req 1-3 instead of Req 1-1 ? »
Answer: « Because if a train doesn't stop in
BFront1, the trigger on "entering"
BFront2 is a bit late compared to the time necessary for the loco speed to decrease/time necessary for the barriers to go down. When the loco is starting from
BFront1, the delay is more acceptable ».
In summary, the primary event for closing the barriers is «
BFront1 occupied » and the secondary/security event is «
BFront2 entered ».
6.5 Requirements for traffic described in section 4.1.2- Req 1-4: When the block BFront3 is entered from right to left, Gates 61 & 62 must be closed and StAndrew137 must be active (blinking red lights) ...easy
!
- Req 1-5: When the block BFront3 is freed (from any direction), Gates 61 & 62 must be opened and StAndrew137 must be inactive (no more blinking red lights) ...easy
!
6.6 Implementation of Req 1-4 and 1-5Action control on Block
BFront3 :
Click on the « Actions... » button of Block BFront3
State «enter» of BFront3 driving action «closeGate61»
State «enter» of BFront3 driving action «closeGate62»
State «enter» of BFront3 driving action «StAndrew137Active»
State «free» of BFront3 driving action «openGate61»
State «free» of BFront3 driving action «openGate62»
State «free» of BFront3 driving action «StAndrew137Inactive»
6.7 Requirements for traffic described in section 4.1.2 (cont.)- Req 1-6: The sensor r1-11 is too close to barriers, so the event related to this sensor can't be used when a loco enters the block BFront3 from left to right (less easy
). This requirement can be translated in the following two requirements :
- Req 1-6-1: When the route BRear1->BFront3 is set, Gates 61 & 62 must be closed and StAndrew137 must be active (blinking red lights)
- Req 1-6-2: When the route BRear2->BFront3 is set, Gates 61 & 62 must be closed and StAndrew137 must be active (blinking red lights)
6.8 Implementation of Req 1-6-1 and 1-6-2Action control on Routes :
6.8.1 Route BRear1->BFront3Click on the « Actions... » button of Route
State «lock» of Route driving action «closeGate61»
State «lock» of Route driving action «closeGate62»
State «lock» of Route driving action «StAndrew137Active»
6.8.2 Route BRear2->BFront3Click on the « Actions... » button of Route
State «lock» of Route driving action «closeGate61»
State «lock» of Route driving action «closeGate62»
State «lock» of Route driving action «StAndrew137Active»
This ends the implementation of the Railroad crossing #1 (medium complexity).
END OF PART2...Part3 is coming...Hold on
Cheers
fabrice
Edited by user 18 June 2014 18:03:04(UTC)
| Reason: re-uploaded pictures