The .Rot files.



Description on how to use the .Rot files


From TMWDCC ver 1.28, it is possible to let TMWDCC throw a gang of turnouts, to form a train route. This is possible by the use of .rot files.
To inoke a route, you type a "R" and you will be prompted to enter a route name. The route name is the file name less the extension. E.g. the file test.rot is a route named "test".
Hereunder is an example of a .rot file. The .rot file is created in your favorite editor, EDIT or NotePad or whatever you use. The name of the files should be the route name dot rot, e.g. test.rot for a route with the name "test" The file, or script if you like, can use four different commands.

*=print this line on the screen.
s=switch (turnout) throw.
a=Acessory
w=wait


Example of a Route File.


*Johns test route.
s1+
w1000
s2-
w1500
a1 0+
a4 1-
*Did it work, John?.

The meaning of the lines is explained here.

*Johns test route..........will print "Johns tes route." on the screen.
s1+...............................means throw turnout number 1.
w1000.........................means wait for 1000 ms (1sec).
s2-...............................means clear turnout number 2.
w1500.........................means wait for 1500 ms (1.5 sec)
a1 0+...........................means turn on accessory number 0 on accessory decoder number 1
a4 1-............................means turn off accessory number 1 on accessory decoder number 4
*Did it work, John?.....Will print "Did it work, John?" on the screen




© 1996 - 2006 Lars Lundgren