Comments (7)
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.
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.
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.
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.
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.
from octoprint-multicolors.
The print looks good.
(German football fan?) :)
from octoprint-multicolors.
Haha, yes! Just preparations for the upcoming world championship next month.
from octoprint-multicolors.
Related Issues (20)
- Subfolder support HOT 4
- Injecting GCODE failed ['ascii' codec can't decode byte 0xc4 in position 1557595: ordinal not in range(128)] HOT 2
- Multicolor gcode..; HOT 5
- No layer reference in Slic3r gcode HOT 2
- Insert a space in the regular expression HOT 2
- ERROR: Injecting GCODE failed. Replaced 0 out of 1 needed. HOT 30
- Is KiSSlicer supported? HOT 3
- need help getting multicolors to work ,,, fresh install of octoprint and cura HOT 11
- Using S3d to slice, need an example HOT 10
- What Slicer was this made to work with? HOT 3
- Injecting GCODE failed HOT 5
- X & Y Reversed
- Not injecting g-code Issue. HOT 6
- Printer pauses at 1, 10, 11 ,12, etc. HOT 4
- Cura multicolor HOT 1
- REQUEST: Multi changes using multi extruders HOT 3
- Extra Pauses from Regex. Regex needs "\n"? HOT 1
- Request: Layer Numbers
- Python 3 compatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octoprint-multicolors.