Skip to content

Commit a9e2571

Browse files
committed
DCD improved
1 parent f6ab46a commit a9e2571

2 files changed

Lines changed: 36 additions & 48 deletions

File tree

docs/products/ex-commandstation/dc-running.md

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,54 @@
33
Using a DCC-EX Command Station to run a DC layout provides a number of advantages over conventional DC systems.
44

55
- All Wifi and connected throttles will operate the same for DC and DCC
6-
- Momentum can be defined for acceleration and braking.
7-
- Multiple DC blocks can be independently controlled and reconfigured to allow crossing between blocks and polarity reversal.
8-
- EXRAIL automation can be used to run trains, create routes, switch block relays, control signals, manage reversing loops etcetera.
9-
- PWM Frequency can be adjusted to suit your locos and/or reduce noise.
6+
- Momentum can be defined for acceleration and braking
7+
- Multiple DC blocks can be independently controlled and reconfigured to allow crossing between blocks and polarity reversal
8+
- EXRAIL automation can be used to run trains, create routes, switch block relays, control signals, manage reversing loops etcetera
9+
- PWM Frequency can be adjusted to suit your locos and/or reduce noise with a touch of the F29-F31 keys
10+
- It is possible to run parts of the layout with DC and other parts with DCC at the same time (But do not leave a DC loco on a track configured for DCC)
1011

1112
## Basic funtionality
1213

13-
The command station has Track Manager commands that can change each track output to DC with appropriate polarity. By associating a numeric locoid with each track output the command station accepts incoming DCC throttle commands (Or EXRAIL automation commands) for that locoid and converts it to a DC output on every track output with the same locoid.
14+
The command station has Track Manager commands that can change each track output to DC with appropriate polarity. By associating a numeric locoid (1..10239 the same range as DCC) with each track output the command station accepts incoming DCC throttle commands (Or EXRAIL automation commands) for that locoid and converts it to a DC output on every track output with the same locoid.
1415

15-
The throttles or EXRAIL are unaware that they are driving a DC track and so any DCC Throttle such as Engine Driver that can talk to DCC-EX will work for DC.
16+
The throttles or EXRAIL are unaware that they are driving a DC track and so any DCC Throttle such as Engine Driver that can talk to DCC-EX will work for DC. In effect, in DC mode, the throttle drives the track compared with DCC mode where the throttle drives the loco.
1617

1718
Although the CSB-1 can be switched to DC operation by commands from the throttle (Engine Driver has a Track Manager panel to help do this) it is generally easier, for a fully DC layout, to configure it so that it starts up in the desired mode.
1819

20+
Warning: The sometimes-suggested technique of using a DCC decoder to output to a DC track instead of a motor is NOT RECOMMENDED as most decoders are not tolerant of a short between the motor outputs. This means a common track short could destroy an expensive decoder.
21+
1922
## Configuring Default Outputs
2023

21-
The same configuration method for DCC-EX Command Station is to use EXRAIL to define things like:
24+
The normal configuration method for DCC-EX Command Station is to use EXRAIL to define things like:
2225

2326
- What turnouts or signals you have and how they are electronically driven
2427
- What happens at startup
2528
- What routes can a throttle set
2629
- What automations can a throttle send a loco along
2730
- Buttons and lights on a mimic panel
2831

29-
all of which apply equally to DC operation, plus:
32+
all of which apply equally to DC operation, plus:
3033

3134
- How track blocks are set for DC and which locoid thay are mapped to
3235

33-
To start this you need to follow the [Installer process described here](/docs/installer/overview.md) and create an AUTOSTART section in your myAutomation.h file to set the track manager options suitable for your layout:
36+
To start this you need to follow the [Installer process described here](/installer/overview.md) and create an AUTOSTART section in your myAutomation.h file to set the track manager options suitable for your layout:
3437

3538
```cpp
3639
AUTOSTART
3740
SETLOCO(1)
3841
SET_TRACK(A,DC)
42+
SET_POWER(A,ON)
3943
SETLOCO(2)
4044
SET_TRACK(B,DC)
41-
POWERON
45+
SET_POWER(C,ON)
4246
DONE
4347
```
4448
45-
This sequence will run as the command station starts up it will
49+
This sequence will run as the command station starts up it will
4650
4751
- associate locoid 1 with track A and switch it to DC.
4852
- associate locoid 2 with track B and switch it to DC.
49-
- turn track power on. No power will be seen on the track until a throttle is used, but unless you POWERON the track will never receive power.
53+
- turn track power on. No power will be seen on the track until a throttle is used, but unless you SET_POWER ON the track will never receive power.
5054
5155
Where the command station has 4 or more track outputs, you can also setup tracks C to H as appropriate.
5256
@@ -62,24 +66,41 @@ EXRAIL ROUTEs (they go in the same file as the configuration setup above) are id
6266
ROUTE(12,"Drive from outer to inner loop")
6367
SETLOCO(1)
6468
SET_TRACK(B,DCX) // reverse polarity on track B and treat as loco 1
69+
SET_POWER(B,ON)
6570
THROW(100) THROW(101) // throw the turnouts that join the tracks
6671
DONE
6772
6873
ROUTE(21,"Drive from inner to outer loop")
6974
SETLOCO(2)
7075
SET_TRACK(A,DCX) // reverse polarity on track B and treat as loco 1
76+
SET_POWER(A,ON)
7177
THROW(100) THROW(101) // throw the turnouts that join the tracks
7278
DONE
7379
7480
ROUTE(99,"Restore tracks to normal")
7581
CLOSE(100) CLOSE(101) // close the turnouts
7682
SETLOCO(1)
77-
SET_TRACK(A,DC)
83+
SET_TRACK(A,DC)
84+
SET_POWER(A,ON)
85+
7886
SETLOCO(2)
7987
SET_TRACK(B,DC)
88+
SET_POWER(B,ON)
8089
DONE
8190
```
8291

8392
Notice that when you apply ROUTE(12), you are now driving on both tracks with the same loco id 1. Throttles attempting to drive loco id 2 will be ignored.
8493

8594
As you get more advanced, the routes can be programmed to happen automatically or contain additional items such as signals, sounds, mimic panel control and so on.
95+
96+
## Reversing Loops
97+
98+
In contrast to DCC, a DC reversing loop must have the polarity to correctly represent the direction of the loco. Thus the loop part will require the polarity to control the direction of the train around the loop.
99+
while the train is in the loop, the main track leading into the loop must be switched to allow the train to exit the loop and continue back along the track without reversing the locomotive.
100+
There is no automatic polarity reversing for DC layouts, this must be programmed using EXRAIL to suit the topology of your layout.
101+
102+
## More blocks
103+
104+
The separate track outouts supplied by the Command Station represent the number of separate throttle ids that may be operating. Like any large DC layout, the switching of throttle outputs to multiple other blocks can still take place using mechanical switches or relays which can be controlled by suitable EXRAIL sequences. Power routing turnouts operate as normal but may be awkward if you are building a new layout with tyhe intention of running DCC later.
105+
106+
If you have several throttles operating the same locoid, they will automatically synchronise with each other.
Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,3 @@
1-
# Set a track to DC
1+
# DC Track Control
22

3-
The command
4-
5-
- ``SET_TRACK(t,mode)`` is used to change the way a track is used.
6-
``SET_POWER(t, ON)`` - track is OFF following mode change.
7-
8-
Using a ROUTE or other sequence, you can set a track to the correct DC polarity and specify the loco address that the throttle will use to drive the loco on that track.
9-
10-
(The throttle doesn't need to know that you are using DC.)
11-
12-
```cpp
13-
ROUTE(77,"Set track A to DC for loco 123")
14-
SETLOCO(123)
15-
SET_TRACK(A,DC)
16-
SET_POWER(A,ON)
17-
DONE
18-
```
19-
20-
Modes DC or DCX are only different in that the polarity is reversed. This will be important if you have, for example, a double track mainline which is normally wired in opposite polarity so that 'forward' is clockwise on one track and anticlockwise on the other.
21-
To drive over a junction between the two, the 'to' track must be switched in polarity to match the 'from' track.
22-
23-
For example:
24-
25-
```cpp
26-
ROUTE(78,"Cross from outer to inner")
27-
SETLOCO(123)
28-
SET_TRACK(A,DC)
29-
SET_TRACK(B,DCX)
30-
SET_POWER(A,ON)
31-
SET_POWER(B,ON)
32-
THROW(6) // throw the crossover turnout(s)
33-
DONE
34-
```
35-
36-
See also the [facing turnouts](/products/ex-commandstation/exrail/cookbooks/turnouts/facing-turnouts.md) cookbook.
3+
Refer to [Running a DC layout](/products/ex-commandstation/dc-running.md)

0 commit comments

Comments
 (0)