AutoTowersGenerator icon indicating copy to clipboard operation
AutoTowersGenerator copied to clipboard

Invalid speed in G1 F0 E0 How fix it?

Open airjt-hub opened this issue 1 year ago • 4 comments

I am using Klipper, slicing a model for the Preset Retract Tower - Speed ​​10-50 test, and I get an error in Klipper Invalid speed in 'G1 F0 E0 ;AutoTowersGenerator: Changed retraction speed to 0.0 mm/s (0.0 mm/min)' How fix it? Thank you.

airjt-hub avatar Dec 25 '24 09:12 airjt-hub

Same exact issue here, apparently 0 mm/s is not a valid speed. It also looks like the speed tower contains no commands for changing the speed.

xEtherealx avatar Jan 16 '25 22:01 xEtherealx

I have the same problem - looking at the G-code for the the Retraction Speed tower, and every speed has been set to 0mm/min. This problem happens regardless of whether I use the pre-built tower or a custom tower.

I am also using Klipper - but the problem occurs in the G-code before the code is ever sent to Klipper, so I don't think that's relevant. I recently updated Cura to 5.9.0, so this might be part of the problem.

DavidPowell avatar Jan 18 '25 23:01 DavidPowell

I have the same issue, although only the "Changed retraction speed to 0.0 mm/s" commands at the start of the print have the issue.

START_PRINT BED_TEMP=60 EXTRUDER_TEMP=205.0
G92 E0
G92 E0
G1 F0 E-2.5 ;AutoTowersGenerator: Changed retraction speed to 0.0 mm/s (0.0 mm/min)
;LAYER_COUNT:214
;LAYER:0
M107
G0 F2700 X134.401 Y120.045 Z0.3
;TYPE:SKIRT
G1 F0 E0 ;AutoTowersGenerator: Changed retraction speed to 0.0 mm/s (0.0 mm/min)
G1 F1800 X133.907 Y120.153 E0.02523

Workaround: I was able to work around the issue by going into the g-code and replacing F0 with F600 to match the extruder move speed used by the other retraction change commands.

Code seeming to cause the issue: It seems like maybe the issue occurs from the retract tower settings in RetractTowerModel.py in line 29 causing current_retract_speed to be 0:

RetractTowerModel.py {'name': catalog.i18nc("@model", "Retract Tower - Speed 10-50") , 'filename': 'Retract Tower - Retract Speed 10-50.stl', 'start value': '10', 'value change': '10', 'tower type': 'Speed'}

RetractSpeedTower_PostProcessing.py

# Start at the requested starting retraction value
current_retract_speed = start_retract_speed - retract_speed_change # The current retract value will be corrected when the first section is encountered

emoeller80281 avatar Jan 26 '25 04:01 emoeller80281

Still an issue

slowthisbirddown avatar Feb 14 '25 18:02 slowthisbirddown