DCC-EX Serial Command List¶
The following list is dynamically built from the CommandStation-EX code. It contains all the serial commands with brief definitions. In many cases the parameters are self explanitory, for example a speed (which will always be a DCC compatible 0..127 where 0=stop and 1=emergency stop). Note tSpeed is different to speed and is a simple 0..127.
This list appears in the order in which the command parser will detect command patterns. Clicking on a command pattern should search out documantation pages which describe or use each command.
Please bear in mind that this list can be easily generated but the various links spread about the documentation take a lot of effort and will be built over time.
<#>¶
Request number of simultaneously supported locos
<!>¶
Emergency stop all locos
<! P>¶
ESTOP pause layout
<! R>¶
ESTOP resume paused layout
<! Q>¶
ESTOP query paused status
<t loco>¶
Request loco status
<t loco tspeed direction>¶
Set throttle speed(0..127) and direction (0=reverse, 1=fwd)
<t ignore loco tspeed direction>¶
(Deprecated) Set throttle speed and direction
<f loco byte1>¶
(Deprecated use F) Set loco function group
<f loco group byte2>¶
(Deprecated use F) Set loco function group
<T>¶
List all turnouts
<T id>¶
Delete turnout
<T id X>¶
List turnout details
<T id T>¶
Throw Turnout
<T id C>¶
Close turnout#
<T id value>¶
Close (value=0) ot Throw turnout
<T id SERVO vpin closedValue thrownValue>¶
Create Servo turnout
<T id SERVO vpin closedValue thrownValue profile>¶
Create Servo turnout profile: 1=Fast, 2=Medium, 3=Slow
<T id VPIN vpin>¶
Create pin turnout
<T id DCC addr subadd>¶
Create DCC turnout
<T id DCC linearAddr>¶
Create DCC turnout
<T id addr subadd>¶
Create DCC turnout (Deprecated use
<T id vpin closedValue thrownValue>¶
Create SERVO turnout (Deprecated use
<S id vpin pullup>¶
Create Sensor
<S id>¶
Delete sensor
<S>¶
List sensors
<J M>¶
List stash values
<J M stash_id>¶
get stash value
<J M CLEAR ALL>¶
Clear all stash values
<J M CLEAR stash_id>¶
Clear given stash
<J M stashId locoId>¶
Set stash value
<J M CLEAR ANY locoId>¶
Clear all stash entries that contain locoId
<J C>¶
get fastclock time
<J C mmmm nn>¶
Set fastclock time
<J G>¶
FReport gauge limits
<J I>¶
Report currents
<J L display row>¶
Direct current displays to LCS/OLED
<J A>¶
List Routes
<J R>¶
List Roster
<J R id>¶
Get roster for loco
<J T>¶
Get turnout list
<J T id>¶
Get turnout state and description
<z signedVpin>¶
Set pin. HIGH iv vpin positive, LOW if vpin negative
<z vpin analog profile duration>¶
Change analog value over duration (Fade or servo move)
<z vpin analog profile>¶
Write analog device using profile number (Fade or servo movement)
<z vpin analog>¶
Write analog device value
<I>¶
List all turntables
<I id>¶
Broadcast turntable type and current position
<I id position>¶
Rotate a DCC turntable
<I id DCC home>¶
Create DCC turntable
<I id position activity>¶
Rotate an EXTT turntable
<I id EXTT vpin home>¶
Create an EXTT turntable
<I id ADD position value angle>¶
Add turntable position
<Q>¶
List all sensors
<s>¶
Command station status
<E>¶
STORE EPROM
<e>¶
CLEAR EPROM
<Z>¶
List Output definitions
<Z id pin iflag>¶
Create Output
<Z id active>¶
Set output
<Z id>¶
Delete output
<D ACK ON>¶
Enable PROG track diagnostics
<D ACK OFF>¶
Disable PROG track diagnostics
<D CABS>¶
Diagnostic display loco state table
<D RAM>¶
Diagnostic display free RAM
<D CMD ON>¶
Enable command input diagnostics
<D CMD OFF>¶
Disable command input diagnostics
<D RAILCOM ON>¶
Enable Railcom diagnostics
<D RAILCOM OFF>¶
DIsable Railcom diagnostics
<D WIFI ON>¶
Enable Wifi diagnostics
<D WIFI OFF>¶
Disable Wifi diagnostics
<D ETHERNET ON>¶
Enable Ethernet diagnostics
<D ETHERNET OFF>¶
Disabel Ethernet diagnostics
<D WIT ON>¶
Enable Withrottle diagnostics
<D WIT OFF>¶
Disable Withrottle diagnostics
<D LCN ON>¶
Enable LCN Diagnostics
<D LCN OFF>¶
Disabel LCN diagnostics
<D WEBSOCKET ON>¶
Enable Websocket diagnostics
<D WEBSOCKET OFF>¶
Disable wensocket diagnostics
<D EEPROM numentries>¶
Dump EEPROM contents
<D ANOUT vpin position>¶
see
<D ANOUT vpin position profile>¶
see
<D SERVO vpin position>¶
Test servo
<D SERVO vpin position profile>¶
Test servo
<D ANIN vpin>¶
Display analogue input value
<D HAL SHOW>¶
Show HAL devices table
<D HAL RESET>¶
Reset all HAL devices
<D TT vpin steps>¶
Test turntable
<D TT vpin steps activity>¶
Test turntable
<C PROGBOOST>¶
Configute PROG track boost
<C RESET>¶
Reset and restart command station
<D RESET>¶
Reset and restart command station
<C SPEED28>¶
Set all DCC speed commands as 28 step to old decoders
<C SPEED128>¶
Set all DCC speed commands to 128 step (default)
<C RAILCOM ON>¶
Enable Railcom cutout
<C RAILCOM OFF>¶
Disable Railcom cutout
<D ACK LIMIT value>¶
Set ACK detection limit mA
<D ACK MIN value MS>¶
Set ACK minimum duration mS
<D ACK MIN value>¶
Set ACK minimum duration uS
<D ACK MAX value MS>¶
Set ACK maximum duration mS
<D ACK MAX value>¶
Set ACK maximum duration uS
<D ACK RETRY value>¶
Set ACK retry count
<C WIFI OFF>¶
Disable Wifi
<C WIFI ON>¶
Enable Wifi
<C WIFI HOSTNAME hostname>¶
set Wifi hostname (in quotes)
<C WIFI DEFAULT>¶
set Wifi to default credentials
<C WIFI ssid password>¶
set Wifi ssid and password (in quotes)
<C WIFI TEMP ssid password>¶
set Wifi ssid and password temporarily (in quotes)
<C WIFI AP ssid password>¶
set Wifi to AP mode with given ssid and password (in quotes)
<C WIFI AP ssid password channel>¶
set Wifi to AP mode with given ssid and password (in quotes)
<C WIFI HIDDENAP ssid password>¶
set Wifi to AP mode with given ssid and password (in quotes)
<C WIFI HIDDENAP ssid password channel>¶
set Wifi to AP mode with given ssid and password (in quotes)
<D WIFI SHOW>¶
Show Wifi status
<o vpin>¶
Set neopixel on(vpin>0) or off(vpin<0)
<o vpin count>¶
Set multiple neopixels on(vpin>0) or off(vpin<0)
<o vpin r g b>¶
Set neopixel colour
<o vpin r g b count>¶
Set multiple neopixels colour
<1>¶
Power ON all tracks
<1 MAIN>¶
Power on MAIN track
<1 PROG>¶
Power on PROG track
<1 JOIN>¶
JOIN prog track to MAIN and power
<1 track>¶
Power on given track
<0>¶
Power off all tracks
<0 MAIN>¶
Power off MAIN track
<0 PROG>¶
Power off PROG track
<0 track>¶
Power off given track
<c>¶
Report main track currect (Deprecated)
<a address subaddress activate>¶
Send DCC accessory command
<a address subaddress activate onoff>¶
Send DCC accessory command with onoff control (TODO.. numbers)
<a linearaddress activate>¶
send dcc accessory command
<A address value>¶
Send DCC extended accessory (Aspect) command
<w loco cv value>¶
POM write cv on main track
<r loco cv>¶
POM read cv on main track
<b loco cv bit bitvalue>¶
POM write cv bit on main track
<m LINEAR>¶
Set Momentum algorithm to linear acceleration
<m POWER>¶
Set momentum algortithm to very based on difference between current speed and throttle seting
<m loco momentum>¶
set momentum for loco (accel and braking)
<m loco accelerating braking>¶
set momentum for loco
<W cv value ignore1 ignore2>¶
(Deprecated) Write cv value on PROG track
<W loco>¶
Write loco address on PROG track
<W CONSIST loco REVERSE>¶
Write consist address and reverse flag on PROG track
<W CONSIST loco>¶
write consist address on PROG track
<W cv value>¶
Write cv value on PROG track
<W cv bitvalue bit>¶
Write cv bit on prog track
<V cv value>¶
Fast read cv with expected value
<V cv bit bitvalue>¶
Fast read bit with expected value
<B cv bit bitvalue>¶
Write cv bit
<R cv ignore1 ignore2>¶
(Deprecated) read cv value on PROG track
<R LOCOID>¶
read loco id (ignoring consist) on PROG track
<R CONSIST>¶
read consist id on PROG track
<R cv>¶
Read cv
<R>¶
Read driveable loco id (may be long, short or consist)
<->¶
Clear loco state and reminder table
<- loco>¶
remove loco state amnd reminders
<F loco DCCFREQ freqvalue>¶
Set DC frequencey for loco
<F loco function onoff>¶
Set loco function ON/OFF
<^>¶
List consists
<^ loco>¶
uncouples any consist containing this loco
<^ leadloco follower [ follower2..7]>¶
creates a consist from up to 8 loco ids (negative for loco in reverse)
<+>¶
Complex Wifi AT command interface (Not ESP32)
<M ignore d0 d1 d2 d3 d4 d5>¶
Send up to 5 byte DCC packet on MAIN track (all d values in hex)
<P ignore d0 d1 d2 d3 d4 d5>¶
Send up to 5 byte DCC packet on PROG track (all d values in hex)
<J O>¶
List turntable IDs
<J O id>¶
List turntable state
<J P id>¶
list turntable positions
<=>¶
list track manager states
<= track MAIN>¶
Set track to MAIN
<= track MAIN_INV>¶
Set track to MAIN inverted polatity
<= track MAIN_AUTO>¶
Set track to MAIN with auto reversing
<= track PROG>¶
Set track to PROG
<= track OFF>¶
Set track power OFF
<= track NONE>¶
Set track no output
<= track EXT>¶
Set track to use external sync
<= track AUTO>¶
Update track to auto reverse
<= track INV>¶
Update track to inverse polarity
<= track DC loco>¶
Set track to DC
<= track DC_INV loco>¶
Set track to DC with inverted polarity
<= track DCX loco>¶
Set track to DC with inverted polarity
<D EXRAIL ON>¶
EXRAIL diagnostics on
<D EXRAIL OFF>¶
EXRAIL doagnostics off
<L>¶
LCC/CBUS adapter introducing self
<L eventid>¶
LCC incoming event
<J A id>¶
list automation details
<K blockid loco>¶
Loco entering Block
<k blockid loco>¶
Loco exiting block
</>¶
Stream EXRAIL status
</ PAUSE>¶
pause all tasks
</ RESUME>¶
Resume all tasks
</ START route>¶
Start a route or sequence
</ START loco route>¶
Start an AUTOMATION or sequence with a loco
</ KILL ALL>¶
Kill all exrail tasks
</ KILL taskid>¶
Kill specific exrail tasks
</ RESERVE section>¶
Flag section as reserved
</ FREE section>¶
Free reserve on section
</ FREEALL>¶
Free all reserves
</ LATCH latch>¶
Set pin latch
</ UNLATCH latch>¶
Removeve pin latch
</ RED signal>¶
Set signal to Red
</ AMBER signal>¶
set Signal to Amber/Yellow
</ GREEN signal>¶
Set signal to Green
<@>¶
Request all virtual msgs to this client
<@ display row text>¶
Display text on virtual LCD at row
<y vpin PLAY tracknumber>¶
Play sound track with default volume
<y vpin PLAY tracknumber volume>¶
Play sound track with volume
<y vpin REPEAT tracknumber>¶
Repeat sound track with default volume
<y vpin REPEAT tracknumber volume>¶
Repeat sound track with volume
<y vpin FOLDER folder>¶
switch to sound track folder
<y vpin STOP>¶
Stop playing sound
<y vpin VOL volume>¶
Set sound volume
<y vpin PAUSE>¶
Pause sound
<y vpin RESUME>¶
Resume sound
<y vpin EQ eq>¶
Set sound EQ
<y vpin RESET>¶
Reset sound module
<N>¶
List current and alternate defines for SensorCam base vpins
<N Q>¶
Lists full set of SensorCam sensor states
<N cmd value>¶
execute SensorCam command with parameters
Build info:¶
Autogenerated from devel/DCCEXCommands.h at Sat Jun 13 07:34:53 UTC 2026