mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 13:21:23 +01:00
correct example sensors
This commit is contained in:
parent
5932b4d101
commit
329df3a3ee
@ -33,8 +33,8 @@ EXRAIL // myAutomation must start with the EXRAIL instruction
|
|||||||
DONE // This just ends the startup thread, leaving 2 others running.
|
DONE // This just ends the startup thread, leaving 2 others running.
|
||||||
|
|
||||||
/* SEQUENCE(1) is a simple shuttle between 2 sensors
|
/* SEQUENCE(1) is a simple shuttle between 2 sensors
|
||||||
* S10 and S11 are sensors pre-defined with the <S> command
|
* S20 and S21 are sensors on arduino pins 20 and 21
|
||||||
* S10 S11
|
* S20 S21
|
||||||
* === START->================
|
* === START->================
|
||||||
*/
|
*/
|
||||||
SEQUENCE(1)
|
SEQUENCE(1)
|
||||||
@ -43,41 +43,41 @@ EXRAIL // myAutomation must start with the EXRAIL instruction
|
|||||||
DELAY(1000) // wait 1 second
|
DELAY(1000) // wait 1 second
|
||||||
FOFF(3) // Horn off
|
FOFF(3) // Horn off
|
||||||
FWD(80) // Move forward at speed 80
|
FWD(80) // Move forward at speed 80
|
||||||
AT(11) // until we hit sensor id 11
|
AT(21) // until we hit sensor id 21
|
||||||
STOP // then stop
|
STOP // then stop
|
||||||
DELAY(5000) // Wait 5 seconds
|
DELAY(5000) // Wait 5 seconds
|
||||||
FON(2) // ring bell
|
FON(2) // ring bell
|
||||||
REV(60) // reverse at speed 60
|
REV(60) // reverse at speed 60
|
||||||
AT(10) // until we get to S10
|
AT(20) // until we get to S20
|
||||||
STOP // then stop
|
STOP // then stop
|
||||||
FOFF(2) // Bell off
|
FOFF(2) // Bell off
|
||||||
FOLLOW(1) // and follow sequence 1 again
|
FOLLOW(1) // and follow sequence 1 again
|
||||||
|
|
||||||
/* SEQUENCE(2) is an automation example for a single loco Y shaped journey
|
/* SEQUENCE(2) is an automation example for a single loco Y shaped journey
|
||||||
* S1,S2,S3 are sensors, T4 is a turnout
|
* S31,S32,S33 are sensors, T4 is a turnout
|
||||||
*
|
*
|
||||||
* S3 T4 S1
|
* S33 T4 S31
|
||||||
* ===-START->=============================================
|
* ===-START->=============================================
|
||||||
* //
|
* //
|
||||||
* S2 //
|
* S32 //
|
||||||
* ======================//
|
* ======================//
|
||||||
*
|
*
|
||||||
* Train runs from START to S1, back to S2, again to S1, Back to start.
|
* Train runs from START to S31, back to S32, again to S31, Back to start.
|
||||||
*/
|
*/
|
||||||
SEQUENCE(2)
|
SEQUENCE(2)
|
||||||
FWD(60) // go forward at DCC speed 60
|
FWD(60) // go forward at DCC speed 60
|
||||||
AT(1) STOP // when we get to sensor 1
|
AT(31) STOP // when we get to sensor 31
|
||||||
DELAY(10000) // wait 10 seconds
|
DELAY(10000) // wait 10 seconds
|
||||||
THROW(4) // throw turnout for route to S2
|
THROW(4) // throw turnout for route to S32
|
||||||
REV(45) // go backwards at speed 45
|
REV(45) // go backwards at speed 45
|
||||||
AT(2) STOP // until we arrive at sensor 2
|
AT(32) STOP // until we arrive at sensor 32
|
||||||
DELAY(5000) // wait 5 seconds
|
DELAY(5000) // wait 5 seconds
|
||||||
FWD(50) // go forwards at speed 50
|
FWD(50) // go forwards at speed 50
|
||||||
AT(1) STOP // and stop at sensor 1
|
AT(31) STOP // and stop at sensor 31
|
||||||
DELAY(5000) // wait 5 seconds
|
DELAY(5000) // wait 5 seconds
|
||||||
CLOSE(4) // set turnout closed
|
CLOSE(4) // set turnout closed
|
||||||
REV(50) // reverse back to S3
|
REV(50) // reverse back to S3
|
||||||
AT(3) STOP
|
AT(33) STOP
|
||||||
DELAY(20000) // wait 20 seconds
|
DELAY(20000) // wait 20 seconds
|
||||||
FOLLOW(2) // follow sequence 2... ie repeat the process
|
FOLLOW(2) // follow sequence 2... ie repeat the process
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user