mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-26 17:46:14 +01:00
command ref work in progress
This commit is contained in:
parent
5e60fb4e27
commit
d89dd0d1fa
|
@ -4,24 +4,37 @@ General points:
|
||||||
- Commands below have a single character opcode and parameters.
|
- Commands below have a single character opcode and parameters.
|
||||||
Even <JA> is actually read as <J A>
|
Even <JA> is actually read as <J A>
|
||||||
- Keyword parameters are shown in upper case but may be entered in mixed case.
|
- Keyword parameters are shown in upper case but may be entered in mixed case.
|
||||||
- value parameters are numeric.
|
- value parameters are decimal numeric (unless otherwise noted)
|
||||||
- [something] indicates its optional.
|
- [something] indicates its optional.
|
||||||
- Not all commands have a response, and not all responses come from the last commands that you have issued.
|
- Not all commands have a response, and broadcasts mean that not all responses come from the last commands that you have issued.
|
||||||
|
|
||||||
Startup status
|
Startup status
|
||||||
<s>
|
<s> Return status like
|
||||||
|
<iDCC-EX V-4.2.22 / MEGA / STANDARD_MOTOR_SHIELD G-devel-202302281422Z>
|
||||||
|
also returns defined turnout list:
|
||||||
|
<H id 1|0> 1=thrown
|
||||||
|
|
||||||
Track power management
|
Track power management. After power commands a power state is broadcast to all throttles.
|
||||||
<1>
|
|
||||||
<1 MAIN|PROG|JOIN>
|
<1> Power on all
|
||||||
<0>
|
<1 MAIN|PROG|JOIN> Power on MAIN or PROG track
|
||||||
<0 MAIN|PROG>
|
<1 JOIN> Power on MAIN and PROG track but send main track data on both.
|
||||||
|
<0> Power off all tracks
|
||||||
|
<0 MAIN|PROG> Power off main or prog track
|
||||||
|
|
||||||
|
Basic manual loco control
|
||||||
|
<t locoid speed direction> Throttle loco.
|
||||||
|
speed in JMRI-form (-1=ESTOP, 0=STOP, 1..126 = DCC speeds 2..127)
|
||||||
|
direction 1=forward, 0=reverse
|
||||||
|
For response see broadcast <l>
|
||||||
|
|
||||||
|
<F locoid function 1|0> Set loco function 1=ON, 0-OFF
|
||||||
|
For response see broadcast <l>
|
||||||
|
|
||||||
|
<!> emergency stop all locos
|
||||||
|
<T id 0|1|T|C> Control turnout id, 0=C=Closed, 1=T=Thrown
|
||||||
|
response broadcast <H id 0|1>
|
||||||
|
|
||||||
Basic manual control
|
|
||||||
<t cab speed direction>
|
|
||||||
<F cab function 1|0>
|
|
||||||
<!>
|
|
||||||
<T id 0|1|T|C>
|
|
||||||
|
|
||||||
DCC accessory control
|
DCC accessory control
|
||||||
<a address subaddress activate [onoff]>
|
<a address subaddress activate [onoff]>
|
||||||
|
@ -35,25 +48,30 @@ Note: Turnouts are best defined in myAutomation.h where a turnout description ca
|
||||||
<T id VPIN vpin>
|
<T id VPIN vpin>
|
||||||
<T id DCC addr subaddr>
|
<T id DCC addr subaddr>
|
||||||
<T id DCC linearaddr>
|
<T id DCC linearaddr>
|
||||||
|
Valid commands respond with <O>
|
||||||
|
|
||||||
|
Outputs (Used by JMRI, not required by EXRAIL)
|
||||||
|
<Z id vpin active> Define an output pin that JMRI can set by id
|
||||||
|
<Z id activate> Activate an output pin by id
|
||||||
|
|
||||||
|
|
||||||
Outputs
|
Sensors (Used by JMRI, not required by EXRAIL)
|
||||||
<Z id activate>
|
<S id vpin pullup> define a sensor to be monitored.
|
||||||
<Z id vpin iflag>
|
Responses <Q id> and <q id> as sensor changes
|
||||||
|
|
||||||
Sensors
|
Decoder programming - main track
|
||||||
<S id vpin pullup>
|
<w cab cv value> POM write value to cv on loco
|
||||||
|
<b cab cv bit value> POM write bit to cv on loco
|
||||||
|
|
||||||
Decoder programming
|
Decoder Programming - prog track
|
||||||
<w cab cv value>
|
<W cabid> Clear consist and write new cab id (includes long/short settings)
|
||||||
<b cab cv bit value>
|
Responds <W cabid> or <W -1> for error
|
||||||
<W cabid>
|
<W cv value> Write value to cv
|
||||||
<W cv value>
|
|
||||||
<V cv value>
|
<V cv predictedValue> Read cv value, much faster if prediction is correct.
|
||||||
<V cv bit value>
|
<V cv bit predictedValue> Read CV bit
|
||||||
<R>
|
|
||||||
<R cv>
|
<R> Read drive-away loco id. (May be a consist id)
|
||||||
<B cv bit value>
|
|
||||||
<D ACK ON|OFF>
|
<D ACK ON|OFF>
|
||||||
<D ACK LIMIT|MIN|MAX|RETRY value>
|
<D ACK LIMIT|MIN|MAX|RETRY value>
|
||||||
<D PROGBOOST>
|
<D PROGBOOST>
|
||||||
|
@ -152,6 +170,8 @@ Obsolete commands/formats
|
||||||
<B cv bit value obsolete obsolete>
|
<B cv bit value obsolete obsolete>
|
||||||
<R cv obsolete obsolete>
|
<R cv obsolete obsolete>
|
||||||
<W cv value obsolete obsolete>
|
<W cv value obsolete obsolete>
|
||||||
|
<R cv> V command is much faster if prediction is correct.
|
||||||
|
<B cv bit value> V command is much faster if prediction is correct.
|
||||||
|
|
||||||
Broadcast responses
|
Broadcast responses
|
||||||
Note: broadcasts are sent to all throttles when appropriate (usually because something has changed)
|
Note: broadcasts are sent to all throttles when appropriate (usually because something has changed)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user