Welcome! Log In Create A New Profile

Advanced

gcode please help

Posted by Hedgehog 
gcode please help
January 25, 2017 10:06PM
I am really bad at GCODE. REALLY bad.
So I need help to set my heat bed to 70 C, then wait 5 mins, then to 60 C, then wait 5 mins, then to 50 C, 5 mins etc. until I get to 20 C.
It would be put in the box of after print gcode stuff at the last page of slic3r.
Can anyone help me and write this stuff out or just give me the line of 70C wait 5mins, I can figure the rest out by myself
Thx.
Re: gcode please help
January 26, 2017 03:28AM
The best way, I can think of is to keep the printer busy for 5mins until you change bed temp again.

M190 S70          ;set bed temp to 70C
G1 F2000 X0     ; moxe x axis to zero at normal speed
G91                   ; set to relative positioning

G1 F10 X50       ;moves x-axis 50mm at a speed of 10mm/min = 5min pause
M400                 ; tell the printer to wait until the move has ended
M190 S60          ; set next temperature

G1 F10 X-50       ;moves x-axis minus 50mm at a speed of 10mm/min = 5min pause
M400                 ; tell the printer to wait until the move has ended
M190 S50          ; set next temperature

G1 F10 X50       ;moves x-axis 50mm at a speed of 10mm/min = 5min pause
M400                 ; tell the printer to wait until the move has ended
M190 S40          ; set next temperature

; repeat until done

G90                  ;set to absolute positioning
G1 F2000         ; set speed to normal values

Edited 2 time(s). Last edit at 01/26/2017 03:46AM by o_lampe.
Re: gcode please help
January 26, 2017 04:04AM
Hmm, just tested the script on my Prusa and it only seems to work when started from SD-Card.
Trying to "print" this via Octoprint/USB port ended in a timeout error. Seems the M400 command blocks everything.

I've attached the script in case someone want to try it. ( or improve it smiling smiley )

Edited 1 time(s). Last edit at 01/26/2017 04:05AM by o_lampe.
Attachments:
open | download - timetest.gcode (120 bytes)
Re: gcode please help
January 26, 2017 05:07AM
for the delay could you use
G4 S300
Re: gcode please help
January 26, 2017 05:35PM
i am printing from sd.
thank u very much !
Re: gcode please help
January 26, 2017 05:37PM
Quote
obewan
for the delay could you use
G4 S300

what is g4s300
Re: gcode please help
January 27, 2017 03:14AM
Quote
Hedgehog
Quote
obewan
for the delay could you use
G4 S300

what is g4s300

G4 S300 will make the printer wait 300 seconds. I haven't seen this before.
Sorry, only registered users may post in this forum.

Click here to login