Testing M291 "result"
-
Hi,
When using the form of M291 where it shows an OK and CANCEL button is there any way in the code that follows the M291 to determine which button was pressed?
If the CANCEL button was pressed I would like to stop executing the macro.
Thanks.
Frederick
-
@fcwilt Have you tried testing the "result" "named constant" that tends to return information on the previous gcode command: https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands#Section_Named_constants
Should say I've not tried it following the M291 command!
-
@gloomyandy said in Testing M291 "result":
@fcwilt Have you tried testing the "result" "named constant" that tends to return information on the previous gcode command: https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands#Section_Named_constants
Should say I've not tried it following the M291 command!
No I have not - I had not read about it - thanks for the suggestion.
Frederick