1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +01:00
CommandStation-EX/Release_Notes/CommandRef.md
Asbelos b969563d35 Squashed commit of the following:
commit 4d8efcdd05
Author: Asbelos <asbelos@btinternet.com>
Date:   Wed Mar 1 16:32:05 2023 +0000

    Reinstate obsolete <s>

commit 003313998b
Author: Asbelos <asbelos@btinternet.com>
Date:   Wed Mar 1 16:07:11 2023 +0000

    Change <I><G> to <JI><JG>

commit c72bf51959
Author: Asbelos <asbelos@btinternet.com>
Date:   Sat Feb 25 17:38:39 2023 +0000

    G and I commands
2023-03-02 12:56:30 +00:00

2.9 KiB

This file is being used to consolidate the command reference information.

General points:

  • Commands below have a single character opcode and parameters. Even is actually read as
  • Keyword parameters are shown in upper case but may be entered in mixed case.
  • value parameters are numeric.
  • [something] indicates its optional.
  • Not all commands have a response, and not all responses come from the last commands that you have issued.

Startup status

Track power management <1> <1 MAIN|PROG|JOIN> <0> <0 MAIN|PROG>

Basic manual control <F cab function 1|0> <!> <T id 0|1|T|C>

DCC accessory control <a address subaddress activate [onoff]>

Turnout definition Note: Turnouts are best defined in myAutomation.h where a turnout description can also be provided ( refer to EXRAIL documentation) or by using these commands in a mySetup.h file.

Outputs

Sensors

Decoder programming <D ACK ON|OFF> <D ACK LIMIT|MIN|MAX|RETRY value>

Advanced DCC control

<#> <-> <- cabid>

EEPROM commands These commands exist for backwards JMRI compatibility. You are strongly discouraged from maintaining your configuration settings in EEPROM.

Diagnostic commands <D CMD ON|OFF> <D WIFI ON|OFF> <D ETHERNET ON|OFF> <D WIT ON|OFF> <D LCN ON|OFF> <D EXRAIL ON|OFF> <D SERVO|ANOUT vpin position [profile]> <+ cmd> <+>

User defined filter commands <U ....> <u ....>

Track Management <=> <= track DCC|PROG|OFF> <= track DC|DCX cabid>

Turntable interface <D TT vpin steps [activity]>

Fast clock interface

Advanced Throttle access to features


EXRAIL Commands


</> </START cab sequence> </START sequence> </KILL taskid> </KILL ALL> </RESERVE|FREE blockid> </LATCH|UNLATCH latchid> </RED|AMBER|GREEN signalid>

Obsolete commands/formats

Broadcast responses Note: broadcasts are sent to all throttles when appropriate (usually because something has changed)

Diagnostic responses These are not meant to be software readable. They contain diagnostic information for programmers to identify issues. <* ... *>