You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/products/ex-commandstation/dc-running.md
+34-13Lines changed: 34 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,50 +3,54 @@
3
3
Using a DCC-EX Command Station to run a DC layout provides a number of advantages over conventional DC systems.
4
4
5
5
- 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)
10
11
11
12
## Basic funtionality
12
13
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.
14
15
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.
16
17
17
18
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.
18
19
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
+
19
22
## Configuring Default Outputs
20
23
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:
22
25
23
26
- What turnouts or signals you have and how they are electronically driven
24
27
- What happens at startup
25
28
- What routes can a throttle set
26
29
- What automations can a throttle send a loco along
27
30
- Buttons and lights on a mimic panel
28
31
29
-
all of which apply equally to DC operation, plus:
32
+
all of which apply equally to DC operation, plus:
30
33
31
34
- How track blocks are set for DC and which locoid thay are mapped to
32
35
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:
34
37
35
38
```cpp
36
39
AUTOSTART
37
40
SETLOCO(1)
38
41
SET_TRACK(A,DC)
42
+
SET_POWER(A,ON)
39
43
SETLOCO(2)
40
44
SET_TRACK(B,DC)
41
-
POWERON
45
+
SET_POWER(C,ON)
42
46
DONE
43
47
```
44
48
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
46
50
47
51
- associate locoid 1 with track A and switch it to DC.
48
52
- 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.
50
54
51
55
Where the command station has 4 or more track outputs, you can also setup tracks C to H as appropriate.
52
56
@@ -62,24 +66,41 @@ EXRAIL ROUTEs (they go in the same file as the configuration setup above) are id
62
66
ROUTE(12,"Drive from outer to inner loop")
63
67
SETLOCO(1)
64
68
SET_TRACK(B,DCX) // reverse polarity on track B and treat as loco 1
69
+
SET_POWER(B,ON)
65
70
THROW(100) THROW(101) // throw the turnouts that join the tracks
66
71
DONE
67
72
68
73
ROUTE(21,"Drive from inner to outer loop")
69
74
SETLOCO(2)
70
75
SET_TRACK(A,DCX) // reverse polarity on track B and treat as loco 1
76
+
SET_POWER(A,ON)
71
77
THROW(100) THROW(101) // throw the turnouts that join the tracks
72
78
DONE
73
79
74
80
ROUTE(99,"Restore tracks to normal")
75
81
CLOSE(100) CLOSE(101) // close the turnouts
76
82
SETLOCO(1)
77
-
SET_TRACK(A,DC)
83
+
SET_TRACK(A,DC)
84
+
SET_POWER(A,ON)
85
+
78
86
SETLOCO(2)
79
87
SET_TRACK(B,DC)
88
+
SET_POWER(B,ON)
80
89
DONE
81
90
```
82
91
83
92
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.
84
93
85
94
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.
-``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