帮助我的 G 代码更改灯丝更换中间打印

3D打印 g代码 换丝
2021-05-19 14:55:20

我正在使用 Ultimaker Cura,我想更换我正在尝试在第 15 层打印的灯丝。我遇到的问题是我还需要使用 G 代码来加载和卸载我的灯丝BMG挤出机。这是 Ultimaker Cura 为在第 15 层暂停的后处理创建的脚本。

;current layer: 15
M83
G1 F3000 E-25
G1 F300 Z4
G1 F9000 X100 Y100
G1 F300 Z15
M104 S25; standby temperature
M0;Do the actual pause
M109 S215; resume temperature
G1 F3000 E25
G1 F3000 E-25
G1 F300 Z4
G1 F9000 X101.7 Y137.3
G1 F3000 E25
G1 F9000
M82
G92 E763.80547
G4 P1    

这是我通常用来卸载灯丝的方法:

G21 ;Metric Values
G90 ;Absolute Positioning
M109 S205.000 ;205 Unload
G92 E0 ;Reset Extruder Positioning
G1 E10 F100 ;Extrude 10mm filament
G92 E0 ;Reset Extruder Positioning
G1 E-600 F1500 ;Retract Filament completely 
G92 E0 ;Reset Extruder
M400 ;Wait Command
M117 REMOVE FILAMENT NOW ;LCD Message
M400 ; Wait Command

并加载:

G21 ;Metric Values
G90 ;Set absolute positioning
M109 S205.000 ;Preheat PLA
M300 S440 P200 ; Tone
M300 S660 P250 ; Tone
M300 S880 P300 ; Tone
G4 S5 ; Wait 5 seconds
G92 E0 ;Reset Extruder Position
G1 E380 F1500; Fast Feed of 380mm filament
G92 E0 ;Reset Extruder Position
G1 E100 F200 ;Feed 100mm filament slowly
G92 E0 ;Reset Extruder Position
M400; Finish Move

所以这就是我想出的,它会起作用吗?

;current layer: 15
M83
G1 F3000 E-25
G1 F300 Z4
G1 F9000 X100 Y100
G1 F300 Z15
G92 E0; Reset extruder position
G92 E-600 F1500; Retract Filament Completely
M104 S25; standby temperature
M0;Do the actual pause
G92 E0; Reset Extruder Position
M109 S215 ;Preheat PLA+
G1 E380 F1500; Fast Feed of 380mm filament
G92 E0; Reset Extruder Position
G1 E100 F200; Slowly Feed 100mm
M104 S25; Standby Temperature
M0; Do the actual Pause
M109 S215; resume temperature
G1 F3000 E25
G1 F3000 E-25
G1 F300 Z4
G1 F9000 X101.7 Y137.3
G1 F3000 E25
G1 F9000
M82
G92 E763.80547
G4 P1
1个回答

首先,恕我直言:M0 停止印章我不知道你在使用哪个固件,但它应该等你按下 LCD 上的按钮(Marlin 做到了)。之后它运行 gcode 卸载和加载灯丝,恢复温度(M109 S215)并继续印章。

这是我的最终版本:

    M83
    G1 F3000 E-25
    G1 F300 Z4
    G1 F9000 X100 Y100
    G1 F300 Z15
    M0 ;Do the actual pause
    G21 ;Metric Values
    G90 ;Absolute Positioning
    M109 S205.000 ;205 Unload
    G92 E0 ;Reset Extruder Positioning
    G1 E10 F100 ;Extrude 10mm filament
    G92 E0 ;Reset Extruder Positioning
    G1 E-600 F1500 ;Retract Filament completely 
    G92 E0 ;Reset Extruder
    M400 ;Wait Command
    M117 REMOVE FILAMENT NOW ;LCD Message
    M400 ; Wait Command
    G21 ;Metric Values
    G90 ;Set absolute positioning
    M109 S205.000 ;Preheat PLA
    M300 S440 P200 ; Tone
    M300 S660 P250 ; Tone
    M300 S880 P300 ; Tone
    G4 S5 ; Wait 5 seconds
    G92 E0 ;Reset Extruder Position
    G1 E380 F1500; Fast Feed of 380mm filament
    G92 E0 ;Reset Extruder Position
    G1 E100 F200 ;Feed 100mm filament slowly
    G92 E0 ;Reset Extruder Position
    M400; Finish Move
    M109 S215; resume temperature
    G1 F3000 E25
    G1 F3000 E-25
    G1 F300 Z4
    G1 F9000 X101.7 Y137.3
    G1 F3000 E25
    G1 F9000
    M82
    G92 E763.80547
    G4 P1