@dc42 This would be a great addition. I was doing a search for this feature, and this was the first Google hit. Has there been any progress on this feature since last year?
You mentioned controlling the deceleration. Is there a Duet command that stops steppers instantly? Marlin has a quickstop feature.
M410 - Quickstop - "Stop all steppers instantly. Since there will be no deceleration, steppers are expected to be out of position after this command."
https://marlinfw.org/docs/gcode/M410.html
PS: For those coming from Google. Here is another thread talking about how this would be helpful for clean jogging and microscopy applications.
https://forum.duet3d.com/topic/19900/gcode-stop-current-move-with-deceleration-no-emergency