Moje skúsenosti s konfiguráciou a vyladením tlačového servera Octoprint.
Tak sa mi to konečne podarilo zladiť všetko pre korektnú tlač a integráciu do domácej automatizácie.
Pred nedávnom som si zakúpil tlačiareň Čínskeho výrobcu Mingda Magixian X.
K tlačiarni výrobca doporučuje program CURA na vytvorenie súborov gcode, ale ja uprednostňujem PrusaSlicer pre jeho jednoduchosť a rýchlosť a hlavne farebnú tlač po vrstvách.
Nastavenie tlačiarne Magician X v programe PrusaSlicer.
Gcode začiatok:
G28 ; home all axesM104 S[first_layer_temperature] ; set extruder tempM140 S[first_layer_bed_temperature] ; set bed tempM190 S[first_layer_bed_temperature] ; wait for bed tempM109 S[first_layer_temperature] ; wait for extruder tempM117 ; Purge extruderG92 E0 ; reset extruderG1 Z1.0 F3000 ; move z up little to prevent scratching of surfaceG1 X2 Y20 Z0.3 F5000.0 ; move to start-line positionG1 X2 Y200.0 Z0.3 F1500.0 E15 ; draw 1st lineG1 X2 Y200.0 Z0.4 F5000.0 ; move to side a littleG1 X2 Y20 Z0.4 F1500.0 E30 ; draw 2nd lineG92 E0 ; reset extruderG1 Z1.0 F3000 ; move z up little to prevent scratching of surface
Gcode koniec:
G91; relative positioningG1 Z1.0 F3000 ; move z up little to prevent scratching of printG90; absolute positioningG1 X0 Y200 F1000 ; prepare for part removalM104 S0; turn off extruderM140 S0 ; turn off bedM84 ; disable motorsM106 S0 ; turn off fan
Gcode pre zmenu farby:
@pause
Gcode pre pozastavenie tlače:
@pause
Pokiaľ nepoužívate OctoPrint server, ale nahrávate súbor na SD kartu nechajte kód M600 pre zmenu farby a M601 pre pozastavenie tlače.
Nastavenie tlačiarne Magician X v programe Octoprint.
{% if pause_position.x is not none %}; relative XYZEG91M83
; retract filament, move Z slightly upwardsG1 Z+5 E-5 F4500
; absolute XYZEM82G90
; move to a safe rest position, adjust as necessaryG1 X0 Y0{% endif %}
{% if pause_position.x is not none %}
G21 ; set units to millimetersG90 ; use absolute coordinatesM83 ; use relative distances for extrusion
; prime nozzleG1 E-5 F4500G1 E5 F4500G1 E5 F4500
; absolute EM82
; absolute XYZG90
; reset EG92 E{{ pause_position.e }}
; move back to pause position XYZG1 X{{ pause_position.x }} Y{{ pause_position.y }} Z{{ pause_position.z }} F4500
; reset to feed rate before pause if available{% if pause_position.f is not none %}G1 F{{ pause_position.f }}{% endif %}{% endif %}
Môj OctoPrint server pracuje v docker Synology octoprint/octoprint – Docker Image | Docker Hub
Po zapnutí tlačiarne a pripojení k serveru OctoPrint je potrebné urobiť kalibráciu tlačiarne.
Po skúsenostiach som ešte vypol detekciu straty filamentu, pretože ak to nastane, tlač cez octoprint už nebude pokračovať. Nakoniec ešte sa mi ani raz nestalo, aby mi došiel filament.
Pridal som v Octoprinte kód pred spustením tlače:
M412 S0; vypne detekciu strata filamentu
Nakoniec som to integroval aj do domácej automatizácie:




