Welcome! Log In Create A New Profile

Advanced

g code to make heater active

Posted by RickRap 
g code to make heater active
February 19, 2016 10:16AM
On my duet, I would like to have my slicer turn on the hot end. Normally, M104 S220 would do that with other firmware. But with Reprap Firmware, I have to specify a tool: M104 T1 S220. That works fine, but it does not move the hot end from standby to active. What is the g code combination I need to do that?
Re: g code to make heater active
February 19, 2016 12:27PM
I guess that would be T1 in your case.
Re: g code to make heater active
February 19, 2016 03:52PM
Right. I send M104 T1 S220, On duet it stays on 'standby' and does not heat up.
I'm wondering if there is a switch or g code to tell the board to go from 'standby' to 'active'.

Edited 1 time(s). Last edit at 02/19/2016 03:57PM by RickRap.
PRZ
Re: g code to make heater active
February 19, 2016 04:10PM
What Chrishamm was meaning was to set 'T1' alone in a line.
In RRP firmware, Tn is starting the tool n heating at its active value, value which could be defined in G10 command.
However, M104 shall work as you write in DC42 fork, as indicated in the wiki ?
without T parameter M104 set temperature for the default tool.
Re: g code to make heater active
February 19, 2016 04:22PM
Quote
PRZ
However, M104 shall work as you write in DC42 fork, as indicated in the wiki ?
without T parameter M104 set temperature for the default tool.

Yes, but only if there is just one tool configured (just one M563 command in config.g). I implemented this so that owners of single-extrusion printers shouldn't run into this problem.



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: g code to make heater active
February 25, 2016 01:49PM
I have:

M563 P1 D0 H1

In config.g

It seems bed is tool 0 by default (no M563 command used)

Extruder is tool 1

Here are my settings:

Edited 1 time(s). Last edit at 02/25/2016 01:50PM by RickRap.
Attachments:
open | download - duet settings.png (25.2 KB)
Re: g code to make heater active
February 25, 2016 03:48PM
Quote
RickRap
I have:

M563 P1 D0 H1

In config.g

It seems bed is tool 0 by default (no M563 command used)

Extruder is tool 1

Here are my settings:

The web interface displays heaters, not tools (this is what RepRapPro wanted when chrishamm wrote the web interface). Heater 0 is the bed, heater 1 is the first hot end heater.

The convention with RepRapFirmware now is to number tools from 0, because that is how some slicers are designed to work. So I suggest you use M563 P0 D0 H1 instead of the M563 P1 line. I suggest you also delete the M563 P127 line from your config.g file, unless you have a specific use for tool 127, because for most people it just confuses things.



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: g code to make heater active
February 26, 2016 01:02PM
Thanks for the info. So, I should make P1 the bed then?

Not sure why that P127 is there. I don't think it's in my config file. If it is, not sure how it got there. confused smiley

Chrishamm wrote the web interface? Bang up job!
Re: g code to make heater active
February 26, 2016 03:24PM
The bed doesn't have a tool number, it's not configured by M563 at all.

RepRapPro used to include the M563 P127 command in their config.g files. I think they did it to make it easy to test all the heaters and extruders at once in multiple nozzle printers.



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: g code to make heater active
February 26, 2016 09:05PM
Ok, I switched the heater to Tool 0

Now, if I enter the following in the command line:

T0
M104 T0 S221

Tool 0 gets selected and starts heating up

If I put those same commands into a macro, It will only go to Standby and not heat up.

I'm just looking for a way to have a macro start up the heater prior to printing.
PRZ
Re: g code to make heater active
February 26, 2016 09:54PM
Command shall work in a macro like in config file.
I made two macros for preparing my printer (one for PETG, one for PLA),
the pla macro name '__Prepare_PLA.g' (underscore to have it on top of the list) is as follow:
;prepare the machine after a cold start for PLA printing
M140 S65 		; Set the bed temperature and don't wait for it
M104 S180		; set the current hotend temperature to 180 and don't wait for it
G28			; home
T0
G32			; calibrate during heating phase
M98 P/macros/brush.g    ; call cleaning macro
M109 S180		; set the current hotend temperature to 180 and wait for it - M104 don't wait 
M190 S65 		; Set the bed temperature and wait for it
G32			; 2nd calibration taking into account heating and other stuff

Edited 1 time(s). Last edit at 02/26/2016 09:54PM by PRZ.
Re: g code to make heater active
February 27, 2016 03:28AM
Quote
RickRap
Ok, I switched the heater to Tool 0

Now, if I enter the following in the command line:

T0
M104 T0 S221

Tool 0 gets selected and starts heating up

If I put those same commands into a macro, It will only go to Standby and not heat up.

I'm just looking for a way to have a macro start up the heater prior to printing.

Which firmware fork and version are you using?



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: g code to make heater active
March 08, 2016 12:07PM
Not sure which fork. I believe it's your dc42 fork. I can double check.

I've also been experiencing another anomaly. When trying to heat up the hotend, I am continually getting a fault. The console message says something about the hotend taking too long to heat up. Is there a setting to adjust this timeout? For instance, if I set the hotend to heat up to 220, it will make it to just over 200 then fault. If I reset immediately while the hotend has warmed up, I can usually get it to heat up and not fault.

I really like the Duet. The configuration seems to be more "fiddly" than some of the other controllers, but that could just be due to my familiarity with other controllers (RAMPS/Smoothie). The web interface is absolutely fantastic. Would love to see something like this for use with multiple printers. Some sort of 'printer farm' interface would be nice for multiple printers.
Re: g code to make heater active
March 08, 2016 03:31PM
You can adjust the heater timeout, see [reprap.org].



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: g code to make heater active
March 10, 2016 12:35AM
excellent! Thank you David
Sorry, only registered users may post in this forum.

Click here to login