Start.g and M80
-
Hi all I know that this questions have been asked before,
but I did not find the solution..https://forum.duet3d.com/topic/7828/problem-with-powering-on-with-m80
My machine:
Modified CR10S with the Duet3D wi-fi board. Firmware version 1.21 (2018-03-21)
and a 500W ATX PowerSupply
(The powersupply is hooked up the the EXT 5V
(and jumper moved to allow for power on/off)
(Using Purple Green and black from the ATX powersupply)
so its always delivers 5V power and Pulles the ATX green wire low to power on...)I want the M80 command to be run before the print starts..
my slicer produces this...// slicer Inserted before print
G90
M82
M106 S0
M140 S74
M190 S74
M104 S195 T0
M109 S195 T0
// My start G-code.
M80; PowerON ATX
//as dek pointed out I would properly need to yield for some time for the stepper to power up.
SO I will insert the G4 S5 ; Dwell for 5 secondsas I understand it, the M104 and M109 is yielding for heated nossel and bed.
Stopping the ATX power from turning on..Dc42 pointed out the the post that there a start.g file but my understanding is that the start.g is initialised from sd card prints, and im using the Webinterface
-
Hi Again found the solution for a
Simplify3din my start Code I insert
M80; Start ATX
G4 S5 ;Yield 5 sec before continue
M104 S[extruder0_temperature] ;Preheat Extruder
M190 S[bed0_temperature] ;Wait for bed to heat
M140 S[extruder0_temperature] ;Wait for Extruderthe build in M140 and M109 will be overriden and the variables replaced on build 🥰
thanks anyways..
-
If you are using Duet Web Control to start prints then you are printing from SD card and start.g will be run.
-
@dc42 hI thanks for the reply and the clarification
-
@dc42
Does this mean we don't have to call the start.g macro in the slicer? Sorry for interfering here but I have a start and end macro called in the slicer printing from the dwc -
@pro3d That's right, start.g will run before any slicer start gcode when the print is started from the SD card.
-
@phaedrux said in Start.g and M80:
@pro3d That's right, start.g will run before any slicer start gcode when the print is started from the SD card.
It will be even run before the first line of GCode in the file is executed.
-
@pro3d
I add code to my slicer Simplify 3d
to start the ATX power supplymy code in Start scripts
M80; Start ATX
G4 S5 ;Yield 5 sec before continue
M104 S[extruder0_temperature] ;Preheat Extruder
M190 S[bed0_temperature] ;Wait for bed to heat
M140 S[extruder0_temperature] ;Wait for ExtruderI should properly not use the M104 command but its fine..
heats up the nose but I will properly move it to afterThe Myyy[xxxxxX_xxxxxxx] tells simplify3D to ignore its own inserted commands.
so it will not insert them before you start scripts