Cura & RRF Power Supply (M80)
-
Hi All,
I've now got power supply management working and wanted to have the gcode turn on the power before a print begins. However if I put M80 in Cura's "Machine Settings", "Start G-code" the generated code try's to set heater temps etc before turning on the PSU, i.e. there is code in the print file before the M80 command.Any thoughts on how I sort this? Is there somewhere else in Cura to put pre-printing commands?
Any constructive thoughts would be much approciated.
Cheers
Barry M -
@cncmodeller Can you post the Cura 'start G-code' you are using, and the start of the Gcode file it generates?
Ian
-
@cncmodeller Perhaps you could place your M80 in a start.g file, I think that gets run before any of the gcode in the file being printed....
-
@gloomyandy , that's a good idea I'll give it a go, thanks
-
@droftarts said in Cura & RRF Power Supply (M80):
@cncmodeller Can you post the Cura 'start G-code' you are using, and the start of the Gcode file it generates?
Ian
Start GCode
G80 G28 ;Home G1 Z15.0 F6000 ;Move the platform down 15mm ;Prime the extruder G92 E0 G1 F200 E3 G92 E0
Cura Generated file
;FLAVOR:RepRap ;TIME:14160 ;Filament used: 17.4632m, 0m ;Layer height: 0.2 ;MINX:-47.024 ;MINY:-47.02 ;MINZ:0.3 ;MAXX:47.026 ;MAXY:47.03 ;MAXZ:61.3 ;Generated with Cura_SteamEngine main T0 M190 S90 M104 S240 M109 S240 M82 ;absolute extrusion mode G80 G28 ;Home G1 Z15.0 F6000 ;Move the platform down 15mm ;Prime the extruder G92 E0 G1 F200 E3 G92 E0
As you can see the heaters get triggered before the machine setting Gcode is executed.
-
In order to have Cura move the temp commands later in the file you would have to add some placeholder tokens to your start gcode.
http://files.fieldofview.com/cura/Replacement_Patterns.html
When it parses your start gcode and sees you are using temp commands it will stop adding its own temp commands to the start of the file.
-
@gloomyandy said in Cura & RRF Power Supply (M80):
@cncmodeller Perhaps you could place your M80 in a start.g file, I think that gets run before any of the gcode in the file being printed....
For completeness this approach works great.
I also have a M81 S1 in my stop.g to shut off power after a print has been completed.
Thanks All,
Barry M -
-