Git Product home page Git Product logo

Comments (7)

IceflareTech avatar IceflareTech commented on June 8, 2024 1

The problem is extrusion. If I extrude 100mm in order to prime then E will be 100mm over its last position. When the first line in layer 2 runs it will retract 100mm, less the increment from the last line in layer 1, to get to the E value thus unloading the filament. I suppose I could retract the exact amount that I use in code while the filament is out. As long as my retracts equal my extrudes I should be ok. My printer runs absolute btw

Edit: Just ran the code and all is great! Thanks to upD8R for the beep! took out the extruder set and made sure all was equal.

M300 S500 P2000 ;BEEP
G91 ;Set to absolute positioning
G1 Z2 F200 E-10 ;retract 10mm of feed stock move 2
G90 ;Set to relative positioning
G1 Y-200 ;Move bed back
M117 Change Filament... ;Display message
G91 ;Set to absolute positioning
G1 F200 E-40 ;retract 40mm of feed stock
M300 S500 P2000 ;BEEP
M0 ;Wait for buton press( is a resume in octoprint)
M117 Extruding... ;Display message
G1 F200 E45 ;extrude 45mm of feed stock
M117 Press to return to print.. ;Display message
M300 S500 P2000 ;BEEP
M0 ;Wait for buton press( is a resume in octoprint)
G4 P3000 ;Wait 3 secounds
G1 F200 E5 ;extrude 5mm of feed stock
G4 P300 ;Wait 1/3 secound
G90 ;Set to relative positioning

from octoprint-multicolors.

MoonshineSG avatar MoonshineSG commented on June 8, 2024

you can't. at least not easily. modify the firmware to add a "save" and "read" codes would be the best, yet not the easiest.

but the question you should ask is "why?". Why do you need to do a zeroing of axes ?

the way (as far as my printer goes - i run Marlin) M0 works: move to 0x/0y, pause.
when you resume, it ust continues the gcode which (unless you use relative coordinates - which AFIK is not very common) will continue exactly from where you stoped. Why zero the axes ?

from octoprint-multicolors.

upD8R avatar upD8R commented on June 8, 2024

Here's my code (not actually mine but found on Thingiverse) if it helps you. I also zero X ad Y in case I wasn't careful enough while changing the Filament.
Multi Colors embedded Code:

;------------------------------
; PAUSE & PRESENT BED
;------------------------------
;
G92 E0
G1 E-15 F300 ;retract
G92 E0
;
G91;relative
G0 Z10 F9000 ;UP
G90; absolute
G0 X0 Y200 F9000 ;arbitrary absolute pos
;
M300 S500 P2000 ;BEEP
M25 ; PAUSE
;

Resume code in Octoprint:

M300 S500 P2000 ;BEEP
G28 X Y ;home XY ONLY, to negate any unpowered bed movement by user, only as accurate as the endstops
G90; absolute
G0 X0 Y200 F9000 ;arbitrary absolute pos
G92 E0
G1 E15 F300 ;extrude
G92 E0
G91;relative
G0 Z-10 F9000 ;down
G90; absolute

from octoprint-multicolors.

MoonshineSG avatar MoonshineSG commented on June 8, 2024

G28 is never 100% accurate. and the Z+10 -10 is unlikely to get you back to EXACTLY the same Z (unless you have a super awsome printer)

I would stick to my "just be carefull" aproach and not mess with homming. :D

from octoprint-multicolors.

upD8R avatar upD8R commented on June 8, 2024

Agreed and before using your plugin I used the Filament sensor on my printer to force a pause. This is also moving on Z then. In my environment the results with your plugin and the code above are more than sufficient for my needs. Couldn't see any offset or similar things.
img_20180512_094533 1
img_20180512_094549

from octoprint-multicolors.

MoonshineSG avatar MoonshineSG commented on June 8, 2024

The print looks good.
(German football fan?) :)

from octoprint-multicolors.

upD8R avatar upD8R commented on June 8, 2024

Haha, yes! Just preparations for the upcoming world championship next month.

from octoprint-multicolors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.