en
Sign in
8

Running automatically

You run the layout with duties. A duty is a journey: where a train leaves, where it stops and how long it waits. If you give the duty to a train's agent, TRAX Control runs it for you, while you drive another train or watch.

That can be done in two ways. An agent makes a train run its duty by itself, as soon as you start it. The timetable plans: at times you choose it gives a train's agent a duty, once per run. The difference is explained at You want trains to run at set times.

Before a train can run by itself, TRAX Control must know the layout, turnouts and detectors must have their address and the train must be on the layout; see Your layout in TRAX Control, Connecting and Make up a train and put it on the layout.

The arrangement for this chapter

In the screen bar, under “Arrangement…”, choose the arrangement “Dispatcher”.

1ABC
  1. 1 “Arrangement…”: choose “Dispatcher”
  2. A Panel “Layout”: the diagram
  3. B Panel “Duties”: the duties
  4. C Panel “Trains”: the trains and their agents

Under these three panels the same arrangement also has “Throttle list” and “Groups and Rules”.

8.1 Make a duty

Where the arrangement “Dispatcher”; the panel “Duties”.

A duty (“duty”) is a journey: where the train stops, which way it runs and how long it waits.

1. Open the panel “Duties” and choose “A new duty…” (2).

123456
  1. 1 A duty: its stops and the trains given it
  2. 2 “A new duty…”: a new duty
  3. 3 “Change this duty”: open the duty
  4. 4 “Give it to a train’s agent…”: give the duty to a train
  5. 5 Take the duty away
  6. 6 The cog: how trains run by themselves

2. Every stop is a card. Its head holds the stop's number, where the train goes (1) and the buttons to move the stop earlier (from the second stop on) or to take it out (10). Below it are two columns, and at the level “Expert” a third:

  • “Departure” (3): when the train leaves again. Choose one: “after a wait” (after so many seconds), “when a train is here too” (when another train is there as well; which one you choose at 5) or “at a time” (from Pro, since it needs the model clock; 8; see below).
  • “Way”: which way the train runs (2) and what the locomotive does there (4). If the locomotive does nothing special, leave “— no action —”.
  • “Events” (9): at the level “Expert” only. With “+” you choose in one window a moment of the stop on the left and on the right a method from your scripts that is called then, or write a new one; see Objects, collections and events.

3. With “Add a stop” (6) you add a stop. At the bottom you choose what happens after the last stop (7): once (“Once”), round and round (“Round and round”) or there and back (“Shuttle: there and back”). Keep it with “Keep it”.

12345678910
  1. 1 “to”: where the stop goes
  2. 2 “Via”: which way
  3. 3 “Departure”: after a wait, when a train is here too, or at a time
  4. 4 “Locomotive”: what the locomotive does
  5. 5 “when a train is here too”: which train (at stop 2)
  6. 6 Add a stop
  7. 7 “After the last stop”: what happens then
  8. 8 “at a time”: here every hour at :15 and :45
  9. 9 “Events”: a moment and a method (Expert)
  10. 10 Take this stop out

At “to” and at “Via” you choose from a list (1, 2): every place with the icon of its kind, and its tracks under it. If you choose the place (3), for example a station with “any free track”, the train takes any free track, so that trains can pass each other. Or you choose one track (4).

1234
  1. 1 Where the stop goes: click to open the list
  2. 2 The destinations: places first, each with its tracks
  3. 3 A place: any free track there
  4. 4 One track of that place

You can also drag: while the duty's window is open, drag a block or a yard from the panel “Layout” onto “to” or “Via”, and a card from the panel “Trains” onto “when a train is here too”.

Leaving at a time

With “at a time” you choose how:

  • “every hour at”: at fixed minutes of every hour, :00 to :55; you may choose several.
  • “every so many minutes”: every 5, 10, 15, 20, 30 or 60 minutes, from a minute you choose.
  • “at these times”: fixed times; a field is added each time for one more.
  • “minutes after its service sets off”: so many minutes after a timetable's service set off.
  • “as a mask”: a mask of the model clock, a little like cron. “07:15” is at a quarter past seven, “:15” every hour at a quarter past, “:*/10” every ten minutes.

“at a time” is there from TRAX Control Pro. It works for any agent, with a timetable or without: the train leaves at the next time you chose. The times are the model clock's.

8.2 Let a train run a duty by itself

Where the arrangement “Dispatcher”; the panel “Duties” and the panel “Trains”.

An agent is an autonomous piece of software in TRAX Control that takes over the running of a train. Every train that runs without a person driving it has an agent of its own; it carries out the duty the train was given and keeps the journey safe. The train must be on the layout; see Make up a train and put it on the layout.

1. Give the duty to the train. That can be done in two ways: in the panel “Duties” with “Give it to a train’s agent…”, or in the panel “Trains” with the robot on the train's card (1).

1234567
  1. 1 The robot: the agent's duty and priority
  2. 2 Start or pause the agent
  3. 3 Who drives the train and which duty; “paused” when the agent is not running
  4. 4 “Take it”: drive the train yourself
  5. 5 Stop the train
  6. 6 “A new train”: a new train
  7. 7 Uncouple: run round, another locomotive, or leave wagons

2. The agent's window opens; its head shows the robot and the train's name. Choose the train (“Train”, 1), the duty (“Duty”, 2) and the priority (“Priority”, 3: “Low”, “Normal” or “High”). Beside the train and the duty is a button: to the train, or to open the duty and edit it. If you choose another train, that train's agent window opens.

From the level “Advanced” up you also choose the route planning (“Route planning”, 4). With “Set before departure” the track in a station or yard is fixed before the train leaves. With “Dynamic” TRAX Control chooses that track on the way, as the train enters the block before it. At the level “Expert” the duty's events are below that (5): stop, moment and method. You can also choose them here, move them to another stop, delete them or add one; they are kept with the duty. The “+” opens the same window as at a stop of the duty; see A method at a duty's stop.

You can also choose a train by dragging its card from the panel “Trains” onto “Train”.

It can be quicker still: drag a duty from the panel “Duties” onto a train's card, or a train's card onto a duty. That train's agent then gets the duty. While you drag, a small card with an icon and the name hangs from your mouse.

12345
  1. 1 “Train”, and the button to the train
  2. 2 “Duty”, and the button to open the duty
  3. 3 “Priority”: the priority
  4. 4 “Route planning”: set before departure or chosen on the way (Advanced)
  5. 5 The duty's events: stop, moment, method (Expert)

3. Choose “Keep the duty and start its agent”.

4. On the card you start and pause the agent with (2). On pausing, the train brakes and you get it back; starting carries on where it was, to the stop it was heading for. The card (3) says who drives the train and which duty, with “paused” when the agent is not running.

5. “Stop this train” (5) and the hand, “Take it” (4), also end the agent's work.

What an agent does

  • It sets a route for every run. The turnouts in it are locked, and no other train gets the same track.
  • It only stops where the whole train fits. So the train's length matters; see Add a locomotive, coach or wagon.
  • A train at a stop sets its route a few seconds before leaving.
  • Give every turnout an address before trains run by themselves. An ordinary turnout without an address does not stop an agent: the route then says you must set that turnout by hand. A three-way turnout or a slip with two drives that lacks an address it does avoid.
  • A locomotive with an address another locomotive has as well is not run by TRAX Control by itself.

What the priority does

  • If two trains wait for the same track, the train with the highest priority goes first.
  • A train with a lower priority does not leave over track a higher one is waiting for.
  • If a train at a stop holds track a waiting train with a higher priority is waiting for, that one takes it back. The lower one then waits at its stop and tries again.

How many at once

How many agents run at once depends on your edition: 3 in Free, 10 in Run, 25 in Pro and 100 in Club; see The editions. If you start one more, TRAX Control refuses and names the trains that are running.

8.3 You want trains to run at set times

Where the panel “Timetable” and the panel “Model clock”. If they are not in your arrangement, add them with “+ Add a panel…”. The timetable and the model clock come with TRAX Control Pro and up.

Two kinds of automatic running

TRAX Control can run trains for you in two ways, and it helps to keep them apart.

  • An agent makes a train run by itself. Give a train's agent a duty and it runs that duty: once, round and round, or back and forth, as you chose under the duty's last stop. It begins as soon as you start it; see You want a train to run a duty by itself.
  • The timetable plans. A service (“service”) in the timetable says which train runs which duty, and when. Each time that happens is a run: one going-through of that service's duty, from start to end. At the planned moment the timetable gives the train's agent that duty, once. If the service repeats, the timetable does so again at each of its times.

So the timetable makes agents run, but at times you plan. From TRAX Control Club it plans other things too: sounds, announcements, and what moves on the layout.

You want to set the model clock

Where the panel “Model clock”.

The model clock is the time on your layout. Everything in the timetable runs on that clock, not on your computer's clock.

123456
  1. 1 The clock face
  2. 2 The time in digits
  3. 3 How fast it runs
  4. 4 Run or pause
  5. 5 A time, and set the model clock to it
  6. 6 The speed
  • The clock is shown twice: with hands (1) and in digits (2), with how fast it runs below (3).
  • With (4) you let it run or pause it.
  • At (5) you set the time by hand, for instance to the start of your operating day.
  • At (6) you choose how fast it runs. At ten times as fast, a model hour takes six minutes.

The bar at the top shows the time with the rate between brackets, for instance “07:15 (×10)”.

You want to put a service in the timetable

Where the panel “Timetable”.

The panel shows the day on the model clock. Every run (4) stands at its own time under the heading of its hour (3), the way a calendar shows a recurring appointment: a service that runs every hour therefore stands under every hour. A run of a repeating service carries the repeat mark on the right (8), a run you changed a pencil (6), a run taken out stands struck through (5), and a planned event has a bell (7).

Below the runs are the circulations (“Circulations”): which train runs which run of the day. A run in no circulation runs on its own service's train.

12345678
  1. 1 “+”: a new service
  2. 2 The bell: a new planned event (Club)
  3. 3 An hour heading
  4. 4 A run
  5. 5 A run taken out: struck through
  6. 6 A run changed from its series (the pencil)
  7. 7 A planned event (the bell)
  8. 8 A run of a repeating service (the repeat mark)

1. Choose “+” (1) at the top of the panel for a new service. The window has a head (1 in the picture below) to move it by, and it does not block the rest of the screen.

12345678910
  1. 1 The head: drag it to move the window
  2. 2 “Number or name”: its number or name
  3. 3 “Duty”: the duty; drag a duty in
  4. 4 “Train”: the train; drag a card in
  5. 5 “Sets off at”: the time of the first run
  6. 6 “Repeats”: every so many minutes, until a time
  7. 7 “Its number goes up by”: how much the number goes up each run
  8. 8 “Priority”: the agent's priority
  9. 9 “In the timetable”: whether the service takes part
  10. 10 “Keep it”: keep it

2. Give the service a number or a name (2). Choose the duty (3) and the train (4). You can also drag: a duty from the panel “Duties” onto the duty's field, a card from the panel “Trains” onto the train's field.

3. Choose at “Sets off at” (5) the time of the first run.

4. As it is, the service runs once every model day, at its time. If it is to run more often, tick “Repeats” (6) and fill in: every so many minutes (1 to 1440; 60 is filled in at first), until a time. Leave “until” empty and it repeats till the end of the day. While “Repeats” is off, those two fields are greyed out.

The timetable is one model day that starts again every day. There are no weekdays or dates.

At “Its number goes up by” (7) you choose how much the number goes up each run, for instance 2341, 2343, 2345. At (8) you choose the agent's priority, and with “In the timetable” (9) whether the service takes part.

5. Keep it with “Keep it” (10). The runs appear in the panel at their times.

You want one run to go differently

Where the panel “Timetable”.

Click a run. You then choose whether you change that one run or the whole service:

12345
  1. 1 “This run only…”: just this run
  2. 2 “Take this run out”: this run is dropped
  3. 3 “This run as the series has it”: back as the series has it
  4. 4 “The whole series…”: the whole service
  5. 5 “Delete the whole series”: remove it all
  • “This run only…” (1): just this run, for instance at another time or with another train.
  • “Take this run out” (2): this run is dropped. It stays in the list struck through, with “Put this run back” to restore it.
  • “This run as the series has it” (3): a run you had changed goes back to how the service runs it.
  • “The whole series…” (4): change the service itself, for all its runs.
  • “Delete the whole series” (5): remove the service with all its runs.

You want something else to happen at a time

Where the panel “Timetable”, the bell at the top. From TRAX Control Club.

A planned event is not a run but something else that has to happen at a time: an announcement, a sound, a signal or turnout that changes.

1. Choose the bell at the top of the panel.

123456
  1. 1 “Name”: its name
  2. 2 “Sets off at”: the time
  3. 3 “Repeats”: every so many minutes, until a time
  4. 4 “What happens”: what happens
  5. 5 The action's fields, here the text to announce
  6. 6 “Keep it”: keep it

2. Give the event a name (1) and a time (2). With “Repeats” (3) it comes back, the same way as a service: every so many minutes, until a time.

3. Choose under “What happens” (4) what happens, and fill in the action's fields below it (5), for instance the text to announce. Keep it with “Keep it” (6). The actions are the same as in a rule: announce or say something, switch an output, set a turnout, set a route, start or stop an agent, set a flag, the track power, or stop everything.

Which edition

The model clock, the timetable, circulations and the departure board come with TRAX Control Pro and up. Other planned events in the timetable come with Club and up. In an edition without these you do not see them; see The editions.

8.4 Take over a train that runs by itself

Where the panel “Trains”.

Choose the hand on the train's card, “Take it”. You then drive it in the panel “Throttle”, or on your phone by tapping the train; see Drive on the screen and Drive with your phone.

8.5 Let the locomotive run round at a stop

Where the arrangement “Dispatcher”; the panel “Duties”, “Change this duty” (the pencil).

12345
  1. 1 The train arrives, the locomotive in front
  2. 2 The locomotive is uncoupled
  3. 3 The locomotive runs over the track beside it to the other end
  4. 4 It couples on, and the train leaves the other way
  5. 5 An uncoupling rail, in the block at the locomotive's end

Running round takes four steps: the train arrives with the locomotive in front (1), the locomotive is uncoupled (2), runs over the track beside it to the other end (3), couples on and the train leaves the other way (4).

1234567
  1. 1 The duty's name
  2. 2 “to”: where to; a place (any free track) or one track
  3. 3 “Via”: which way
  4. 4 “Departure”, “after a wait”: how long the train waits
  5. 5 What the locomotive does there: nothing, run round, or be changed (where there is a depot)
  6. 6 Whether running round can be done there, and over which tracks
  7. 7 “when a train is here too”: wait until another train is there too

1. Open the duty and, at the stop, choose “runs round” in the locomotive's list (5). The other choices are “— no action —” and, where there is a depot, “is changed, from”.

2. A line says beforehand whether it can be done there (6). In green: “It can run round”, with the tracks. In orange: “No track there has a way round: its agent would stop there”.

What the agent does on arrival

  • It uncouples: above an uncoupling rail (5 in the drawing) in the block at the locomotive's end, if there is one. If there is none, it asks for it with an alert, with a button with which you say it has been done.
  • It runs the locomotive out, clear of the train and of every other train, to the other end.
  • It couples: by itself if “Couple by itself…” is on, otherwise with the button in the alert or the couple button on the card.
  • Then the waiting time of the stop follows.

Without a real command station, uncoupling and coupling count as done.

What it needs

Track with a way out at both ends that meet again. The locomotive must be at one end of the train.

8.6 Change the locomotive at a stop

Where the arrangement “Dispatcher”; the panel “Duties”, “Change this duty” (the pencil).

1. Open the duty and, at the stop, choose “is changed, from” and a place in the locomotive's list. Depots are at the top.

2. The agent uncouples the old locomotive and fetches a free locomotive from that place: one that can run by itself, stands still, belongs to no train and has no agent of its own. It runs it to one end of the train and couples.

3. If no locomotive is free, or there is no way, it waits.

The old locomotive stays where it was uncoupled, or goes to the depot by itself, with an agent of its own; that one counts towards the number of agents of your edition. You choose that in the window “Uncouple”, at “A locomotive let go of”; see Uncouple by hand.

8.7 Uncouple by hand

Where the arrangement “Dispatcher”; the panel “Trains”, the train's card.

7
  1. 7 Uncouple: run round, another locomotive, or leave wagons

1. On the train's card, choose the button to uncouple (7).

1234
  1. 1 Uncouple the locomotive, to run round or to change it
  2. 2 Or uncouple between two vehicles
  3. 3 Couple again by itself when the part stands against its train
  4. 4 What a locomotive let go of does: stay or go to the depot

2. Uncouple the locomotive (1), to run round or to change it. Or click between two vehicles (2), to leave wagons behind.

3. The side with the locomotive becomes a part: a train of its own, which you drive with a throttle. The train keeps its name, its colour and its duty.

4. Coupling again: with “Couple to …” on the card when the two stand against each other. Or by itself, if you tick (3): as soon as the part stands still against its train again. That only happens once the part has been away, not when it has only been pulled loose for a moment.

At (4) you choose what a locomotive let go of does: stay where it was uncoupled, or go to the depot by itself.

The part's card also has “Put it back on …, where it was uncoupled” and “Let it go: a train of its own”.

Uncoupling is not possible while an agent drives either of the two.

8.8 Change how trains run by themselves

Where the arrangement “Dispatcher”; the panel “Duties”, the cog (“How trains run by themselves”).

123456789
  1. 1 How long before leaving a train sets its route
  2. 2 How much longer a waiting time may turn out, so that trains get out of step
  3. 3 After how long waiting for a route you get an alert
  4. 4 How long a stopped train may still roll into a block
  5. 5 How long an alert stays on the screen
  6. 6 What happens at a turnout set wrong for a train driven by hand
  7. 7 The turnouts of this layout may be run through from the wrong side
  8. 8 Save
  9. 9 A timetable's trains running late: say a delay, announce it, the later goes first

The settings are kept with the layout. The default is between brackets.

  • (1) How long before leaving a train at a stop sets its route (3 seconds).
  • (2) How much longer a waiting time may turn out, so that trains get out of step (20 percent). The waiting time you give is the shortest; up to a fifth is added, at random.
  • (3) After how long waiting for a route you get an alert (2 minutes).
  • (4) How long a train that has stopped may still roll into a block (3 seconds). In that time a train standing still beside it does not take that block.
  • (5) How long an alert stays on the screen (10 seconds).
  • (6) What happens at a turnout set wrong for a train driven by hand: “Say so” (the default), “Say so and brake the train” or “Do nothing”; see the turnout guard.
  • (7) The turnouts of this layout may be run through from the wrong side, as with some makes: then nothing happens (off).
  • (9) A timetable's trains running late: from how many minutes late TRAX Control says so (3 minutes, and again every as many more), whether it also announces it, and whether of two trains of the same priority the later goes first once it is at least that much later (1 minute).

Keep it with (8).