emergency_stop
Instantly stop a locomotive using JMRI's decoder emergency-stop command for safety-critical situations such as derailment risk or imminent collision. Cuts power abruptly, unlike a normal stop.
Instructions
Emergency-stop a locomotive immediately (JMRI's decoder e-stop command).
Args: address: The locomotive's DCC address. Acquires the throttle automatically if this session doesn't already hold it.
Use this ONLY for safety-critical stops: derailment risk, imminent
collision, or any situation calling for an immediate halt rather than
a smooth deceleration. This is JMRI's actual decoder emergency-stop
command (speed -1.0 on the wire, distinct from a normal speed
command) — it cuts power abruptly rather than ramping down, which is
rougher on the mechanism/cargo, so don't use it as a synonym for a
routine stop.
Returns stopped: true once JMRI confirms the e-stop speed. Safe to
call repeatedly: like stop, a redundant emergency_stop on an
already-e-stopped loco is a silent no-op on JMRI's side, and this
tool's local throttle-state cache (kept fresh from JMRI's broadcasts,
including e-stops triggered by any OTHER client) reports the correct
current status instead of hanging.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes |