2nd print problem
-
@Chriss
I guess you need a tool select in your start.g -
I'm not sure, I select the T0 in my config.g and I do not change the tool afterwards. (At least not yet.)
And the tools seems to be selected because I see that the "active" temp is changed.
Cheers, Chriss
-
@Chriss
Yes but I think M0 is deactivating the tool
Edir:
The config.g is only read once at boot -
Yep, that is clear that the config.g is parsed at boot only. So there is no way that I do not have no tool selected when I have a "T0" in the config.g. And as I wrote: The T0 tries to cold extrude. How can you cold extrude at a tool if you have no tool selected?
-
@Chriss said in 2nd print problem:
Yep, that is clear that the config.g is parsed at boot only. So there is no way that I do not have no tool selected when I have a "T0" in the config.g. And as I wrote: The T0 tries to cold extrude. How can you cold extrude at a tool if you have no tool selected?
Edit complained that I did not read your mail carefully enough. The M0 does not deselect the tool. It turns the heater off:
If no H1 parameter is present, the heaters are turned off too.
I need to change the start.g to turn the heat back on. I will test that....
Cheers, Chriss
-
You where absolutely right. I added a "T0" to the start.g and it seems to work now. I have to test that in one or two other conditions but I think that this did it.
But this behavior is not fully logical to me or I did not understood the docu correctly:
https://duet3d.dozuki.com/Wiki/Gcode#Section_M0_Stop_or_Unconditional_stopThe bulletpoint 4 tells me that it turns the heater off. In my world would the "G10 S225" also turn on the heater. I know that there is a other command for that but Prusa does what Prusa does.
Cheers, Chriss
-
One potential problem with using start.g as opposed to using M98 in the slicer is that start.g happens before any slicer code whereas the M98 invoked code happens later.
How much later depends on the slicer in use and certain slicer settings.
For my slicer I cannot use start.g because the commands I wish to execute get overridden by slicer generated code. Using M98 works because the slicer happens to execute the M98 after those same commands so my commands override the slicer commands - which works fine.
Frederick
-
Yes, that was the reason that I posted the head of the g-code:
M107 M190 S75 ; set bed temperature and wait for it to be reached G10 S225 ; set temperature ;TYPE:Custom ;M98 P"0:/sys/start.g" G10 S225 ; set temperature M116 ; wait for temperature to be reached G21 ; set units to millimeters G90 ; use absolute coordinates M82 ; use absolute distances for extrusion G92 E0
You can see the two lines which start with ";", that is the "start gcode" in the slicer. Well, the two "G10" around the start g-code is a bit confusing but PS does what PS does. The start.g comes before all of that. Anyway, the observed behavior is gone but it is still not logical to me. My understanding was that you can not "deselect" a tool. But exactly that seems to happen with "M0". :?
Cheers, Chriss
-
@Chriss This may help. This is what I use in the start gcode in PrusaSlicer:
T-1 ; deselect current tool
M98 P"/macros/PLAOffset" ; set z probe offsets
G10 P0 S[first_layer_temperature] R140 ; set T0 temps
M190 S[first_layer_bed_temperature] ; heat up bed
G28 ; home all axes
G32 ; bed calibration
T0 ; select T0 and heat to active temp
M116 ; wait for temp on T0
G1 E10 ; extrude a bitConfig.g has a T0 at the ends of the file.
Macro PLAOffset contains the G31 settings. -
Depending on what you want to do you may need to use start.g as well as the slicer start gcode section and even call a separate macro with M98.
-
@Chriss said in 2nd print problem:
The bulletpoint 4 tells me that it turns the heater off. In my world would the "G10 S225" also turn on the heater.
In this case the heaters being off means the tool is deselected. G10 S225 will only set the temperature, but won't activate any tools. So yes you need T0 in your start.g to re-select the tool, at which point any temperatures that have been set will begin to heat.