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/reference/software/command-summary-consolidated.rst
+43-4Lines changed: 43 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1440,23 +1440,62 @@ By design, for safety reasons, the NMRA specification prevents locos from respon
1440
1440
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1441
1441
1442
1442
*Response:* |BR|
1443
-
|_| ``<r -cab>`` |BR|
1444
-
|_| > **cab:** |BR|
1443
+
|_| ``<r address>`` |BR|
1444
+
|_| > **address:** |BR|
1445
1445
|_| |_| |_| |_| • DCC Address of the decoder/loco. The short (1-127) or long (128-10293) address of the engine decoder |BR|
1446
1446
|_| |_| |_| |_| • -1 = failed read |BR|
1447
1447
|_| |BR|
1448
1448
|_| *Example Responses:* |BR|
1449
-
|_| Response (successful): **<r cab>** |BR|
1449
+
|_| Response (successful): **<r 3>** |BR|
1450
1450
|_| Response (fail): **<r -1>**
1451
1451
1452
1452
*Notes:*
1453
1453
1454
-
**IMPORTANT:** If the loco is on a consist, the address returned will be the consist address
1454
+
**IMPORTANT:** If the loco is in a consist (CV19), the address returned will be the consist address.
1455
1455
1456
1456
When combined with the ``<D ACK ON>`` Command, the ``<R>`` Command (with or without parameters) can be used for diagnostics, for example when you get a "-1" response. (See `Diagnosing Issues <https://github.com/DCC-EX/CommandStation-EX/wiki/Diagnosing-Issues>`_\ ** for more help)
1457
1457
1458
1458
|hr-dashed|
1459
1459
1460
+
.. _native-command-r-locoid:
1461
+
1462
+
``<R LOCOID>`` - Read DCC decoder (cab) address
1463
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1464
+
1465
+
*Response:* |BR|
1466
+
|_| ``<r LOCOID address>`` |BR|
1467
+
|_| > **address:** |BR|
1468
+
|_| |_| |_| |_| • DCC Address of the decoder/loco. The short (1-127) or long (128-10293) address of the engine decoder |BR|
1469
+
|_| |_| |_| |_| • -1 = failed read |BR|
1470
+
|_| |BR|
1471
+
|_| *Example Responses:* |BR|
1472
+
|_| Response (successful): **<r LOCOID 3>** |BR|
1473
+
|_| Response (fail): **<r LOCOID -1>**
1474
+
1475
+
*Notes:*
1476
+
1477
+
**IMPORTANT:** Unlike `<R>` If the loco is in a consist, the address returned will be the actual address.
0 commit comments