DCC-EX Consolidated Command Summary
- This is a summary, for a detailed command, see…
This page describes all the DCC-EX commands that the EX‑CommandStation supports.
Conventions used on this page
<
and>
- All DCC-EX commands are surrounded by these characters to indicate the beginning and end, these must always be includedFirst letter or number - These are called OPCODES, are case sensitive, and must be specified as directed, eg.
1
,c
, or-
CAPITALISED words - These are parameters referred to as keywords, and should be specified as directed, eg.
MAIN
(note these are not case sensitive, however capitalising makes them easier to distinguish from other parameters)lowercase words - These are parameters that must be provided or are returned, with multiple parameters separated by a space ” “, eg.
cab
Square brackets
[]
- Parameters within square brackets[]
are optional and may be omitted, and if specifying these parameters, do not include the square brackets themselves| - Use of the | character means you need to provide one of the provided options only, for example
<0|1 MAIN|PROG|JOIN>
becomes either<0 MAIN>
or<1 MAIN>
0|1
DIRECTION: 1=forward, 0=reverse.
Controlling the EX-CommandStation
Power management
Command |
Description / Response |
---|---|
|
Re-boot the command Station |
|
Request current status |
|
Request max current |
|
Turns power on and off to the MAIN and PROG tracks together or independently. Also allows joining the MAIN and PROG tracks together. |
Cab (Loco) Commands
Command |
Description / Response |
---|---|
|
Decoder Functions - Legacy command. |
|
Emergency Stop |
|
Remove one or all locos from reminders |
|
Request details of a specific Roster Entry |
|
Request the list defined Roster Entry IDs |
|
Requests a deliberate update on the cab speed/functions in the same format as the cab (loco) broadcast. |
|
Set Cab (Loco) Speed |
|
Switch between 28 and 128 speed steps |
|
Turns loco decoder functions ON and OFF |
|
Set Cab (Loco) Speed - Legacy command |
Turnout/Points
Command |
Description / Response |
---|---|
|
Delete defined turnout/point |
|
Request a list all defined turnouts/Points |
|
Request details of a specific Turnout/Point |
|
Request the list of defined turnout/Point IDs |
|
Throw (1 or T) or close(0 or C) a defined turnout/point |
Routes/Automations
Command |
Description / Response |
---|---|
|
Request a list of Automations/Routes |
|
Requests information for a route/automation |
System Information
Command |
Description / Response |
---|---|
|
Request Current on the Track(s) |
|
Requests the DCC-EX version and hardware info, along with listing defined turnouts. |
|
Requests the number of supported cabs(locos) |
Writing CVs - Program on the main
Command |
Description / Response |
---|---|
|
Write CV bit on main track |
|
Write CV on main track |
Reading/Writing CVs - Programming track
Command |
Description / Response |
---|---|
|
Read CV |
|
Read DCC decoder address |
|
Verify/Read bit of CV with guessed value |
|
Verify/Read of CV with guessed value |
|
Write bit to CV |
|
Write CV |
|
Write DCC address to cab (loco) |
|
Writes a DCC packet to the PROG track |
|
Deprecated, please use <W cv value> instead |
|
Deprecated, please use <w cv value> instead |
Writing CVs - Programming track - Tuning
Command |
Description / Response |
---|---|
|
Adjust ACK retries to number x (default is 2) |
|
Override 250mA prog track limit while idle |
DCC Accessories
Command |
Description / Response |
---|---|
|
Control an Accessory Decoder |
|
Control an Accessory Decoder |
Sensors
Command |
Description / Response |
---|---|
|
Lists Status of all sensors |
|
Requests a definition list of all defined sensors |
WiFi Control
Command |
Description / Response |
---|---|
|
Force the Command Station into “WiFi Connected” mode |
|
Sends AT+ commands to the WiFi board (ESP8266, ESP32, etc.) |
|
Switch to direct communication with WiFi AT processor |
Track Manager (Formally DC-District)
Note: this is not available yet in the Production release of EX‑CommandStation
Command |
Description / Response |
---|---|
|
Configure Track Manager Note: since only one channel can be PROG, changing a second channel to PROG, will force the other to OFF |
|
Request the current Track Manager configuration |
EX-RAIL
Command |
Description / Response |
---|---|
|
Kills a currently running script task by ID (use to list task IDs) |
|
Lock sensor ON, preventing external influence |
|
Manually frees a virtual track Block |
|
Manually reserves a virtual track Block |
|
Pauses ALL EX-RAIL automation actvites, including sending an E-STOP to all locos. |
|
Request EX-RAIL running task information. |
|
Request the Routes & Automations control list in wiThrottle Protocol format. |
|
Resumes ALL EX-RAIL automation actvites, and resumes all locos at the same speed at which they were paused. |
|
Starts a new task to send a loco onto a Route, or activate a non-loco Animation or Sequence |
|
Unlock sensor, returning to current external state |
|
When the CommandStation is connected to a serial monitor, EX-RAIL script logging can be Enabled or Disabled |
Configuring the EX-CommandStation
Configuring the EX-CommandStation - Turnouts/Points
Command |
Description / Response |
---|---|
|
Define turnout on a DCC Accessory Decoder with the specified address and subaddress |
|
Define turnout on a DCC Accessory Decoder with the specified linear address |
|
Define turnout output on specified vpin. |
|
Define turnout servo (PWM) on specified vpin Note: Servos are not supported on the minimal HAL (Uno or Nano target). |
|
Deletes a turnout by Id. |
|
Set servo position to value on pin vpin. |
|
Define a turnout on a DCC Accessory Decoder with the specified address and subaddress - Legacy command |
|
Define a turnout servo on specified vpin - Legacy command |
Once all turnout/points have been properly defined, you can use the <E>
(upper case E) command to store their definitions to EEPROM.
Configuring the EX-CommandStation - Sensors
Command |
Description / Response |
---|---|
|
Create a new sensor ID |
|
Delete defined sensor |
Once all sensors have been properly defined, you can use the <E>
(upper case E) command to store their definitions to EEPROM.
Configuring the EX-CommandStation - Servos
Command |
Description / Response |
---|---|
|
Creates a new sensor ID, with specified PIN and PULLUP |
|
Deletes definition of sensor |
Configuring the EX-CommandStation - Outputs
Command |
Description / Response |
---|---|
|
Creates a new output ID, with specified PIN and IFLAG values |
|
Deletes definition of output ID |
|
Lists all defined output pins |
|
Sets output ID to either INACTIVE or ACTIVE state |
Configuring the EX-CommandStation - EEPROM management
Command |
Description / Response |
---|---|
|
Diagnostic dump eeprom contents |
|
Erase ALL (turnouts, sensors, and outputs) from EEPROM |
|
Store definitions to EEPROM |
Configuring the EX-CommandStation - Diagnostic programming commands
Command |
Description / Response |
---|---|
|
Override 250mA prog track limit while idle |
|
Sets the ACK limit |
|
Sets the ACK pulse maximum |
|
Sets the ACK pulse minimum |
Diagnostic traces
Command |
Description / Response |
---|---|
|
Enables ACK diagnostics |
|
Enables Command Parser diagnostics |
|
Enables Ethernet diagnostics |
|
Enables LCN interface diagnostics |
|
Enables WiFi diagnostics |
|
Enables WiThrottle diagnostics |
|
Shows cab numbers and speed in reminder tables |
|
Shows configured servo board and GPIO extender board config and used pins |
|
Shows remaining RAM (Free Memory) |
I/O (HAL) Diagnostics
Command |
Description / Response |
---|---|
|
List HAL devices and allocated VPINs |
|
Read and display pin vpin’s analogue value. |
|
Write value to analogue pin vpin, supplying param2 to the driver. |
Write direct DCC packet
Command |
Description / Response |
---|---|
|
Write a DCC packet the MAIN track |
|
Write a DCC packet the MAIN track |
Other
Command |
Description / Response |
---|---|
|
Is reserved for user commands (through user filter) |
More Information
- For a detailed command reference, see…