A forum member asked me the other day to explain how to program AI drivers to operate turntables, so I thought I would post a short illustrated tutorial:
First...download and install atilabarut's InputTable rule <kuid:131986:1012> and MoveTurntable script <kuid:131986:180156:1>. This is for TRS2006. The InputTable rule is the same as the WorkTable rule for TRS2004, however the MoveTurntable command is TRS2006 specific (see post below).
Then...
Willie is in the Dante yard on the Clinch when he receives orders to couple to an empty coal hopper consist and take it north to Moss Mine to be loaded. His problem is that his K5b steamer is facing south and low on coal and water. There are other ways to turn around...but let's have him use the turntable.
In Surveyor, place trackmarks at each of the ends of the turntable as shown below. I've named mine Dante Turntable 1 and Dante Turntable 2.
Then add the InputTable rule to the session and edit it.
I've entered the line as shown above. It shows the type of input, the name of the turntable, and the number of stops the turntable has...seperated by commas and no spaces. To find the number of stops on your turntable find the turntable kuid in CMP, select it, and click on Edit in Explorer. Open the config.txt file and look for a line that looks something like this:
angle 0,10,20,30,35,40,50,60,180,190,200,210,215,220,230,240
This lists all of the angles at which the turntable can stop. This one has 16 stops. They will be numbered from 0 (0 degrees, default position) to 15 (240 degrees in this case) in the MoveTurntable driver command. Notice that stop 8 corresponds to a 180 degree rotation.
Working The Turntable Part II to follow...
Zorronov
First...download and install atilabarut's InputTable rule <kuid:131986:1012> and MoveTurntable script <kuid:131986:180156:1>. This is for TRS2006. The InputTable rule is the same as the WorkTable rule for TRS2004, however the MoveTurntable command is TRS2006 specific (see post below).
Then...
Willie is in the Dante yard on the Clinch when he receives orders to couple to an empty coal hopper consist and take it north to Moss Mine to be loaded. His problem is that his K5b steamer is facing south and low on coal and water. There are other ways to turn around...but let's have him use the turntable.
In Surveyor, place trackmarks at each of the ends of the turntable as shown below. I've named mine Dante Turntable 1 and Dante Turntable 2.

Then add the InputTable rule to the session and edit it.


I've entered the line as shown above. It shows the type of input, the name of the turntable, and the number of stops the turntable has...seperated by commas and no spaces. To find the number of stops on your turntable find the turntable kuid in CMP, select it, and click on Edit in Explorer. Open the config.txt file and look for a line that looks something like this:
angle 0,10,20,30,35,40,50,60,180,190,200,210,215,220,230,240
This lists all of the angles at which the turntable can stop. This one has 16 stops. They will be numbered from 0 (0 degrees, default position) to 15 (240 degrees in this case) in the MoveTurntable driver command. Notice that stop 8 corresponds to a 180 degree rotation.
Working The Turntable Part II to follow...
Zorronov
Last edited: