Welcome! Log In Create A New Profile

Advanced

extruders work but not when printing, duet wifi

Posted by advancedrescue 
extruders work but not when printing, duet wifi
January 28, 2017 12:06AM
quick description
using Duet Wifi


Ive been in the process of building my own printer, now programming it. Been programming some, running test and then programming more. So I'm sure some things aren't finished. As of now i can home everything, got my steps tuned in, etc.


Issue is when i send a print to it after my homing and preheat of the hotend it starts the print as it should, but without the extruder motor even attempting to extrude, as if its off.
I can extrude using the main controls of the duet wifi when not printing, so i know it works and is wired up correctly.

heres all the my codes thus far. also i don't know if the code missing needs to be in a macro or config file.


config files, and homelall, homey, homex, homez . and a macro file i have

any help would be appreciated

config. g files


M111 S0 ; Debug off
M550 BEAST ; Machine Name
M551 P3258 ; Machine Password
M552 S1 ; Enable Wifi
M555 P2 : Set output to look like Marlin
M575 P1 B57600 S1 ; Set auxiliary serial port baud rate and require checksum (for PanelDue)


M350 X16 Y16 Z16 E16 T1 ; set 16x micro stepping with interpolotion
M574 X1 Y1 Z2 S1 ; set homing switch configuration (Y homing switch only at low end, active high)
M906 X1000 Y1000 Z1000 E1500 ; Set motor currents (mA)
M201 X200 Y200 Z15 E1500 ; Acceleration (mm/s^2)
M203 X15000 Y15000 Z400 E2500 ; Maximum speeds (mm/min)
M566 X600 Y600 Z30 E20 ; Maximum Jerk speeds (mm/min)
M208 X282 Y263 Z212 ; set axis maxima and high homing switch positions (adjust to suit your machine)
M208 X0 Y0 Z-0.2 S1 ; set axis minima and low homing switch positions (adjust to make X=0 and Y=0 the edges of the bed)
M92 X87.5239 Y87.9286 Z1066.350 ; movement measurements accuracy. ...=desiredmovement/actual movment*current value. set axis steps/mm
M92 E79.2626 ; Set extruder 0 and 1 steps/mm (currently set to match fox, could be e420 : 420
G21 ; Work in millimeters
G90 ; Send absolute coordinates
M83 ; ... but relative extruder moves

; Endstops
M574 X1 Y1 S0 ; Define active low outputs
M574 Z2 S0 ; Define active low outputs
G31 P500 X11.0 Y0.5 Z1.65 ; set threshold and offsets

Heater and Thermister
M305 P0 T100000 B4388 R4700 H0 L0 ; Put your own H and/or L values here to set the bed thermistor ADC correction
M305 P1 T100000 B4388 R4700 H0 L0 ; Put your own H and/or L values here to set the first nozzle thermistor ADC correction
M305 P2 T100000 B4388 R4700 H0 L0 ; Put your own H and/or L values here to set the second nozzle thermistor ADC correction
M143 H0 S275 ; Un-comment this to set maximum extruder temperature, default is 262C
;M141 H3 ; Un-comment this to set chamber heater/thermistor channel

Tool definition
M563 P0 D0 H1 ; tool 0 uses extruder drive 0 and heater 1
G10 P0 S190 R150 X0 Y0 ; set tool 0 temperatures and offsets
M563 P1 D1 H2 F2 ; tool 1 uses extruder drive 1 and heater 2. Fan 2 is mapped to fan 0
G10 P1 S0 R0 X10 Y0 ; set tool 1 temperatures and offsets

Epilogue
M556 S100 X0 Y0 Z0 ; Put your axis compensation here
M501 ; Run config-override.g
T0 ; Select the first head


homeall

; Home All
G91 ; relative mode
G1 Z4 F200 ; raise head 4mm
G1 X-240 Y-240 F3000 S1 ; move up to 240mm in the -X and -Y directions until the homing switches are triggered
G1 X4 Y4 F600 ; move slowly 6mm in +X and +Y directions
G1 X-10 Y-10 F600 S1 ; move up to 10mm in the -X and -Y directions until the homing switches are triggered
G90 ; back to absolute mode
G92 Y-30 ; set Y endstop to negative position of print bed
G1 Y0 F600 ; move to the edge of the board
G1 X141 Y131.5 F2000 ; put head over the centre of the bed, or wherever you want to probe
G91 ; relative mode
G1 Z-200 F300 S1 ; move Z down until the switch triggers
G92 Z0 ; set Z to zero
G1 Z4 F400 ; move slowly 6mm in +X and +Y directions
G1 Z-10 F100 S1 ; move up to 10mm in the -X and -Y directions until the homing switches are triggered
G92 Z0 ; set Z to zero
G90 ; back to absolute mode
G1 Z10 ; move 10 to get out of way



homex

; Resume macro file
G91 ; relative mode
G1 Z4 F200 ; raise head to avoid dragging nozzle over the bed
G1 X-240 F3000 S1 ; move up to 240mm in the -X direction, stopping if the homing switch is triggered
G1 X4 F600 ; move slowly 4mm in the +X direction
G1 X-10 F600 S1 ; move slowly 10mm in the -X direction, until homing switches are triggered
G1 X0 ; set X endstop to zero position of print bed
G1 Z-4 F200 S1 ; lower the head again
G90 ; back to absolute mode



homey

; Resume macro file
G91 ; relative mode
G1 Z4 F200 ; raise head to avoid dragging nozzle over the bed
G1 Y-230 F3000 S1 ; move up to 240mm in the -Y direction, stopping if the homing switch is triggered
G1 Y4 F600 ; move slowly 4mm in the +Y direction
G1 Y-10 F3000 S1 ; move slowly 10mm in the -Y direction, stopping at the homing switch
G92 Y-30 ; set Y endstop to negative position of print bed
G1 Y0 F600 ; move to the edge of the board
G1 Z-4 F200 S1 ; lower the head again
G90 ; back to absolute mode




homez

G91 ; relative mode
G1 X0 Y0 F2000 ; put head wherever you want it to be when you home Z (omit this line if it doesn't matter)
G91 ; relative mode
G1 Z-200 S1 F400 ; move Z down until the switch triggers
G90 ; back to absolute mode
G92 Z0 ; tell the firmware that we are at Z=0.3mm


macro prepare print pal
;macro /macros/__prepare_PLA.g prepare the machine after a cold start for PLA printing
T0 ; define tool
M104 S150 ; set the current hot-end temperature to 150°C and don't wait for it
G28 ; home
G32 ; calibrate during heating phase
M109 S190 ; set the current hot-end temperature to 190°C and wait for it - M104 don't wait
Re: extruders work but not when printing, duet wifi
January 28, 2017 02:28AM
Just a wild guess:
Usually this happens, if you forget to select a tool in you GCode or config files, however, I can see that config.g has two tools defined, and T0 selected.
Do you actually have two extruders? I see only one M92 command in your config.g (I mean the steps per mm are set only once) if you have two identical extruders, you should use
M92 E79.2626:79.2626
Basically, two extruders step/mm have to be separated by a ":". I doubt also, that 79.2626 is much different from 79.26 smiling smiley.
Here is the guess:
In most slicers, the default Tool numbering ist starting from T1, so you printer will try to output the GCode with a T1 tool, which is defined, but not correctly configured (from what I see). Therefore there is no extruder output.

You could check the GCode to see which tool is selected, or simply configure the starting GCode of your slicer to select the T0 tool.
Re: extruders work but not when printing, duet wifi
January 28, 2017 05:03AM
Check the GCode Console page of the web interface, to see if there are any messages about extrusion being prevented.

It would be helpful to see about the first 50 lines of the gcode file you are trying to print.

Which firmware version are you running?



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: extruders work but not when printing, duet wifi
January 28, 2017 03:11PM
I'll get back with y'all when I get messing with it today.

I do have two extruders but am only interested in getting one working at the moment, then moving on
Re: extruders work but not when printing, duet wifi
January 28, 2017 04:12PM
M106
M004 S190 P1
M104 S0 P1
M004 S190
G21 ; millimeters
T0 ; define tool
M104 S150 ; set the current hot-end temperature to 150°C and don't wait for it
G28 ; home
G32 ; calibrate during heating phase
M98 P/macros/brush.g ; call cleaning macro if it exists
M109 S150 ; set the current hot-end temperature to 150°C and wait for it - M104 don't wait
G32 ; 2nd calibration taking into account heating - at 150°C to save surface like
; ‘BuildTak’, which don’t accept sensing at high temperature. Low temperature
; sensing is inaccurate due to filament blob on the hot-end.
M109 S190 ; set the current hot-end temperature to 190°C and wait for it - M104 don't wait
G1 X0.000 Y0.000 Z0.180 F9000
T0
G1 X10.080 Y-6.872 Z0.180 F4500
G1 X10.080 Y6.872 Z0.180 F1500
G1 X9.916 Y7.269 Z0.180 F1500
G1 X7.269 Y9.916 Z0.180 F1500
G1 X6.872 Y10.080 Z0.180 F1500
G1 X-6.872 Y10.080 Z0.180 F1500
G1 X-7.269 Y9.916 Z0.180 F1500
G1 X-9.916 Y7.269 Z0.180 F1500
G1 X-10.080 Y6.872 Z0.180 F1500
G1 X-10.080 Y-6.872 Z0.180 F1500
G1 X-9.916 Y-7.269 Z0.180 F1500
G1 X-7.269 Y-9.916 Z0.180 F1500
G1 X-6.872 Y-10.080 Z0.180 F1500
G1 X6.872 Y-10.080 Z0.180 F1500
G1 X7.269 Y-9.916 Z0.180 F1500
G1 X9.916 Y-7.269 Z0.180 F1500
G1 X10.080 Y-6.872 Z0.180 F1500
G1 X67.731 Y-65.084 Z0.180 F4500
G1 X65.084 Y-67.731 Z0.180 F1500
G1 X64.920 Y-68.128 Z0.180 F1500
G1 X64.920 Y-81.872 Z0.180 F1500
G1 X65.084 Y-82.269 Z0.180 F1500
G1 X67.731 Y-84.916 Z0.180 F1500
G1 X68.128 Y-85.080 Z0.180 F1500
G1 X81.872 Y-85.080 Z0.180 F1500
G1 X82.269 Y-84.916 Z0.180 F1500
G1 X84.916 Y-82.269 Z0.180 F1500
G1 X85.080 Y-81.872 Z0.180 F1500
G1 X85.080 Y-68.128 Z0.180 F1500
G1 X84.916 Y-67.731 Z0.180 F1500
G1 X82.269 Y-65.084 Z0.180 F1500
G1 X81.872 Y-64.920 Z0.180 F1500
G1 X68.128 Y-64.920 Z0.180 F1500
G1 X67.731 Y-65.084 Z0.180 F1500
G1 X68.003 Y64.920 Z0.180 F4500
G1 X81.872 Y64.920 Z0.180 F1500
G1 X82.269 Y65.084 Z0.180 F1500
G1 X84.916 Y67.731 Z0.180 F1500
G1 X85.080 Y68.128 Z0.180 F1500
G1 X85.080 Y81.872 Z0.180 F1500
G1 X84.916 Y82.269 Z0.180 F1500
G1 X82.269 Y84.916 Z0.180 F1500
G1 X81.872 Y85.080 Z0.180 F1500
G1 X68.003 Y85.080 Z0.180 F1500
G1 X67.606 Y84.916 Z0.180 F1500
G1 X64.959 Y82.269 Z0.180 F1500
G1 X64.795 Y81.872 Z0.180 F1500
G1 X64.795 Y68.128 Z0.180 F1500
G1 X64.959 Y67.731 Z0.180 F1500
G1 X67.606 Y65.084 Z0.180 F1500
G1 X68.003 Y64.920 Z0.180 F1500
G1 X-64.920 Y68.128 Z0.180 F4500
G1 X-64.920 Y81.872 Z0.180 F1500
G1 X-65.084 Y82.269 Z0.180 F1500
G1 X-67.731 Y84.916 Z0.180 F1500
G1 X-68.128 Y85.080 Z0.180 F1500
G1 X-81.872 Y85.080 Z0.180 F1500
G1 X-82.269 Y84.916 Z0.180 F1500
G1 X-84.916 Y82.269 Z0.180 F1500
G1 X-85.080 Y81.872 Z0.180 F1500
G1 X-85.080 Y68.128 Z0.180 F1500
G1 X-84.916 Y67.731 Z0.180 F1500
G1 X-82.269 Y65.084 Z0.180 F1500
G1 X-81.872 Y64.920 Z0.180 F1500
G1 X-68.128 Y64.920 Z0.180 F1500
G1 X-67.731 Y65.084 Z0.180 F1500
G1 X-65.084 Y67.731 Z0.180 F1500
G1 X-64.920 Y68.128 Z0.180 F1500
G1 X-68.128 Y-64.920 Z0.180 F4500
G1 X-81.872 Y-64.920 Z0.180 F1500
G1 X-82.269 Y-65.084 Z0.180 F1500
G1 X-84.916 Y-67.731 Z0.180 F1500
G1 X-85.080 Y-68.128 Z0.180 F1500
G1 X-85.080 Y-81.872 Z0.180 F1500
G1 X-84.916 Y-82.269 Z0.180 F1500
G1 X-82.269 Y-84.916 Z0.180 F1500
G1 X-81.872 Y-85.080 Z0.180 F1500
G1 X-68.128 Y-85.080 Z0.180 F1500
G1 X-67.731 Y-84.916 Z0.180 F1500
G1 X-65.084 Y-82.269 Z0.180 F1500
G1 X-64.920 Y-81.872 Z0.180 F1500
G1 X-64.920 Y-68.128 Z0.180 F1500
G1 X-65.084 Y-67.731 Z0.180 F1500
G1 X-67.731 Y-65.084 Z0.180 F1500
G1 X-68.128 Y-64.920 Z0.180 F1500
G1 X-68.272 Y-65.640 Z0.180 F4500
G1 X-81.728 Y-65.640 Z0.180 F1500
G1 X-81.861 Y-65.695 Z0.180 F1500
G1 X-84.305 Y-68.139 Z0.180 F1500
G1 X-84.360 Y-68.272 Z0.180 F1500
G1 X-84.360 Y-81.728 Z0.180 F1500
G1 X-84.305 Y-81.861 Z0.180 F1500
G1 X-81.861 Y-84.305 Z0.180 F1500
G1 X-81.728 Y-84.360 Z0.180 F1500
G1 X-68.272 Y-84.360 Z0.180 F1500
G1 X-68.139 Y-84.305 Z0.180 F1500
G1 X-65.695 Y-81.861 Z0.180 F1500
G1 X-65.640 Y-81.728 Z0.180 F1500
G1 X-65.640 Y-68.272 Z0.180 F1500
G1 X-65.695 Y-68.139 Z0.180 F1500
G1 X-68.139 Y-65.695 Z0.180 F1500
G1 X-68.272 Y-65.640 Z0.180 F1500
G1 X-9.305 Y-6.861 Z0.180 F4500
G1 X-6.861 Y-9.305 Z0.180 F1500
Re: extruders work but not when printing, duet wifi
January 28, 2017 04:43PM
Oh and right now the hot end heats up when I turn the printer on. I believe it's due to the other day when working on it till late I then night we set it to do that because it also wasn't heating up when the print started. Last night when giving it a go before I sent my codes to y'all I used the paneldue to drop the temp down to zero before attempting the print. Once attempting the print it did wait for the temp to get to 190 before starting the print(without the extrusion tho). So I believe I just need to remove the code to heat up hot end at start up in the config codes.

I've been busy today, but will look at ANY tips posted involving any of my codes when I get home. I'm sure there multiple area of improvement even tho all else so far seems to run nicely.

Edited 1 time(s). Last edit at 01/28/2017 04:47PM by advancedrescue.
Re: extruders work but not when printing, duet wifi
January 28, 2017 04:54PM
Is it just me, or are there really no E commands in that GCode at all?

What slicer are you using? If it is Slic3r, do you have a filament selected prior slicing? Main screen at the right upper corner?
Also, I am not sure a M004 GCode exists, a typo perhaps?

Edited 2 time(s). Last edit at 01/28/2017 04:58PM by Teilchen.
Re: extruders work but not when printing, duet wifi
January 28, 2017 07:36PM
Quote
Teilchen
Is it just me, or are there really no E commands in that GCode at all?

What slicer are you using? If it is Slic3r, do you have a filament selected prior slicing? Main screen at the right upper corner?
Also, I am not sure a M004 GCode exists, a typo perhaps?

I use simplified. I tried printing using simplified to slice and then also straight from duet web interface. Heading home now and I'll look into that and the m004. And I Most likely am missing my E commands. Guess I don't know what to put yet and would it be in my my config file? I'll also look into this
Re: extruders work but not when printing, duet wifi
January 28, 2017 08:15PM
Ok home now and looking at it the m004 is in the print g code but not sure how or why it's there. I would think it's suppose to be m104 which is set temp for my extruder to 190 but it auto generated the code
Re: extruders work but not when printing, duet wifi
January 29, 2017 03:14AM
To me this looks like a straight slicer issue.
Try to find a working GCode from Slimplify3D and analyze the differences with yours. I am sure a lot of people use this software on this forum. Unfortunately I don't, so I cannot help you any further...
Better yet to use something like a working config for this software... I am not sure how the settings are transferred from one system to the other...

Edited 1 time(s). Last edit at 01/29/2017 03:15AM by Teilchen.
Re: extruders work but not when printing, duet wifi
January 29, 2017 03:36AM
Quote
Teilchen
To me this looks like a straight slicer issue.
Try to find a working GCode from Slimplify3D and analyze the differences with yours. I am sure a lot of people use this software on this forum. Unfortunately I don't, so I cannot help you any further...
Better yet to use something like a working config for this software... I am not sure how the settings are transferred from one system to the other...

I can use slic3r so that it's more familiar with you, to help narrow things down.

What makes me think it's a problem with my duet config is I can go to thingiverse(or anywhere there's stls), download the files, load them straight to the duet g file skipping a sliver all together, hit print and it does the exact same thing.

The e commands you speak of, are those typically in the duet config, or any other location like macra section?
Re: extruders work but not when printing, duet wifi
January 29, 2017 04:31AM
The E commands I was referring to are the extruder movements in the GCode file...
Here is a simple thin wall objekt I found on my PC (I am not at the printer now), you can try to print it and see if the extruder moves...
This one contains the Firmware retraction and relative extruder moves though... not sure if this going to work with your printer.

If you type M83 followed by E10 F300 in the DWC G-Code window what will happen?

Edited 3 time(s). Last edit at 01/29/2017 04:39AM by Teilchen.
Attachments:
open | download - Cam_Adapter.gcode (269.9 KB)
Re: extruders work but not when printing, duet wifi
January 30, 2017 03:50AM
Quote
advancedrescue
Quote
Teilchen
To me this looks like a straight slicer issue.
Try to find a working GCode from Slimplify3D and analyze the differences with yours. I am sure a lot of people use this software on this forum. Unfortunately I don't, so I cannot help you any further...
Better yet to use something like a working config for this software... I am not sure how the settings are transferred from one system to the other...

I can use slic3r so that it's more familiar with you, to help narrow things down.

What makes me think it's a problem with my duet config is I can go to thingiverse(or anywhere there's stls), download the files, load them straight to the duet g file skipping a sliver all together, hit print and it does the exact same thing.

The e commands you speak of, are those typically in the duet config, or any other location like macra section?

I checked the date and it's not the first April so I'll bite. Your printer feeds off G Code files. These consist largely of a commands starting G1 which tell the printer to move. After the G1 there are letters and numbers which tell the printer what to move. "X" followed by a number tells the printer to move a certain distance in the X axis (usually left to right). Y followed by a number tells the printer to move in the Y axis (usually front to back) and "Z" tells it to move up or down. E followed by a number would tell it to move the extruder (which is the thing that pushes filament into the hot end and makes it come out as molten plastic). Your gcode file has G1 commands followed by Xnnn Ynnn Znnn but no Ennn (I use nnn to signify a number - any number). So there is nothing in the file to tell that printer to move the extruder. stl files from Thingiverse won't work because - well they aren't gcode files. They need to be run through a slicer to generate the gcode commands that the printer understands.

Edited 1 time(s). Last edit at 01/30/2017 03:52AM by deckingman.
Re: extruders work but not when printing, duet wifi
January 30, 2017 12:14PM
Quote
deckingman
Quote
advancedrescue
Quote
Teilchen
To me this looks like a straight slicer issue.
Try to find a working GCode from Slimplify3D and analyze the differences with yours. I am sure a lot of people use this software on this forum. Unfortunately I don't, so I cannot help you any further...
Better yet to use something like a working config for this software... I am not sure how the settings are transferred from one system to the other...

I can use slic3r so that it's more familiar with you, to help narrow things down.

What makes me think it's a problem with my duet config is I can go to thingiverse(or anywhere there's stls), download the files, load them straight to the duet g file skipping a sliver all together, hit print and it does the exact same thing.

The e commands you speak of, are those typically in the duet config, or any other location like macra section?

I checked the date and it's not the first April so I'll bite. Your printer feeds off G Code files. These consist largely of a commands starting G1 which tell the printer to move. After the G1 there are letters and numbers which tell the printer what to move. "X" followed by a number tells the printer to move a certain distance in the X axis (usually left to right). Y followed by a number tells the printer to move in the Y axis (usually front to back) and "Z" tells it to move up or down. E followed by a number would tell it to move the extruder (which is the thing that pushes filament into the hot end and makes it come out as molten plastic). Your gcode file has G1 commands followed by Xnnn Ynnn Znnn but no Ennn (I use nnn to signify a number - any number). So there is nothing in the file to tell that printer to move the extruder. stl files from Thingiverse won't work because - well they aren't gcode files. They need to be run through a slicer to generate the gcode commands that the printer understands.

Yeah I appreciate it. I've been printing for alittle while but this is my first printer build and first time constructing the code from scratch. I know it's probably frustrating getting the same questions everyone feels all should already understand, but I've tried to stick clear of asking and learn as I go trouble shooting.

I figured out what he was saying about the e commands. I'm sitting down now and about to work on it finally. I understand the G1 command also. I think what throws me off a lot is in my mind there should be a page one in the wiki saying something along the line of " setting up the duet you will need to have a config file, homeall, homey, homex, homez, macros, and so on. Under each of those have a link giving a general checklist.

I understand the codes are different for everyone and I won't get all the answers, I'll have to figure it out on my own. But I found that as a noob I'm able to figure things out, then go to do something and realize there's a whole different section/category i somehow knew nothing about and only found out from extensively searching. I think it spawns from the majority here thinking everyone should just have the common knowledge and they tend to skip over certain things when trying to help. Which I'm not complaining about, I understand it. I'm trying to get to that point.

Again I appreciate the help, hopefully I will be able to wrap this up today. Doesn't seem like I'm that far off
Re: extruders work but not when printing, duet wifi
January 30, 2017 12:18PM
Quote
advancedrescue
I figured out what he was saying about the e commands. I'm sitting down now and about to work on it finally. I understand the G1 command also. I think what throws me off a lot is in my mind there should be a page one in the wiki saying something along the line of " setting up the duet you will need to have a config file, homeall, homey, homex, homez, macros, and so on. Under each of those have a link giving a general checklist.

There is such a wiki a page (although without the checklist you suggested), it's here: [duet3d.com]. You can also use the web page at [configurator.reprapfirmware.org] to generate all the files.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Sorry, only registered users may post in this forum.

Click here to login