M568 requires 'P' parameter. Bug?
-
Hi,
This thread is for reporting incorrect behavior for the M568 command.
I started a print this morning using wood-filled PLA. I setup a lot of z-height based temperature changes using M568 because it is now the preferred method for setting tool temps.
The 1st temp change command in the gcode file was reached and the error, "M568: missing parameter 'P' in GCode file" appeared on the panel due. I did a quick check through the console and the command, 'M568 S225' returned the same "missing P parameter" error.
When generating the gcode file I omitted the 'P' parameter because the wiki ( https://duet3d.dozuki.com/Wiki/Gcode#Section_M568_Set_Tool_Settings ) states, "Pnnn Tool number. If this parameter is ont provided, the current tool is used." and also "Remember that any parameter that you don't specify will automatically be set to the last value for that parameter."
I stopped the print and regenerated the file with 'P' defined and all is working now. I just wanted to report that the behavior is not consistent with the documentation.
- Trey
Edit:
HW: Duet 2 Wifi
FW: RRF 3.3, DWC 3.3.0, WiFi Svr 1.26 -
@ajdtreyd said in M568 requires 'P' parameter. Bug?:
When generating the gcode file I omitted the 'P' parameter because the wiki ( https://duet3d.dozuki.com/Wiki/Gcode#Section_M568_Set_Tool_Settings ) states, "Pnnn Tool number. If this parameter is ont provided, the current tool is used." and also "Remember that any parameter that you don't specify will automatically be set to the last value for that parameter."
Did you verify at the time you used the command there was a current tool?
Frederick
-
@ajdtreyd thanks for pointing this out. I confirm that the behaviour is not as intended. This will be fixed in the next 3.4 beta release.