Script execution problem after printing
-
Good afternoon! Meet the new user
Today I installed Duet.
I ran into a printer behavior issue after printing.
I wrote a small script.========================================== M104 S0 ;extruder heater off M140 S0 ;heated bed heater off (if you have it) G92 E0 ;relative positioning G1 E-1 F300 ;retract the filament a bit before lifting the nozzle to release some of the pressure G1 Z+0.5 E-3 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more M107 G1 Z5 F500 G28 Z0 G28 X0 Y0 ;move X/Y to min endstops so the head is out of the way M84 ;steppers off G90 ;absolute positioning ============================================
I donβt understand why the Duet ignores line 5, 7 and 8
The duet first parks the X and Y axes and only then Z
I want the opposite!
even t if I delete lines 8 and 9 the Duet still parks the X and Y axes, the Z axis does remain not parkedI do not understand why this happens, please help me understand
-
You might need to spend some time reading up on each of the commands used.
e.g.
https://duet3d.dozuki.com/Wiki/Gcode#Section_G28_Home
"The X-Z parameters act only as flags. Any coordinates given are ignored."G92 E0 ;relative positioning
No, it just sets the E position to zero
so, your subsequent commands are presumably still in absolute mode.You need G91
G1 Z+0.5 E-3 X-20 Y-20
Probably can't happen if X/Y end stops are zero (can't move to -20). -
Thank you, could you tell me how I should fix my script?
-
If you describe your printer (corexy, delta, cartesian?) and describe what you want to do, then we can help.
-
i have corexy
my table (Z-axis) rises and falls
I fixed the script like this, in my opinion it works!============================ M104 S0 ;extruder heater off M140 S0 ;heated bed heater off (if you have it) G92 E0 ;relative positioning G1 E-1 F300 ;retract the filament a bit before lifting the nozzle to release some of the pressure M107 G91 G1 Z+0.5 E-3 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more G1 Z5 F500 G90 G28 Z0 G28 X0 Y0 ;move X/Y to min endstops so the head is out of the way M84 ;steppers off G90 ;absolute positioning ======================================
sorry my bad english, it's Google's fault
-
============================
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G92 E0 ; set extruder to 0
M83 ; set extruder to relative movements
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle to release some of the pressure
M107
G91 ; relative movement
G1 Z+0.5 E-3 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more
G1 Z5 F500
G90 ; absolute movement
G28 ; home all axis
M84 ;steppers off======================================
-
@Phaedrux Thanks