Welcome! Log In Create A New Profile

Advanced

G code for calibration

Posted by DOYT 
G code for calibration
February 14, 2017 03:33PM
This is my code for adjusting my bed. But after cleaning nozzle process my printer suddenly set extruder temp to 0. Why is that? What is wrong?

G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M190 S55
M104 T0 S215
M107 ;start with the fan off
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G92 E0 ;zero the extruded length
G29 ;AutoBed Leveling
M109 T0 S215
G1 X0 Y0 F2000.0
G1 Z-3.9 F{travel_speed}
G1 Y0.0 F1000.0 ;Go to this specific point from print area
G1 X60 E9.0 F800.0
G1 X100 E15.0 F800.0
G92 E0 ;zero the extruded length again
G1 F{travel_speed}
;Put printing message on LCD screen
M117 Printing...
G0 F9000 X0.000 Y2.000 Z0.200
;TYPE:WALL-OUTER
G1 F1800 X0.00 Y100.00 E8.35495
G1 X30.00 Y100.00 E8.67424
G1 X30.00 Y2.00 E8.993
G1 X60.00 Y2.00 E9.31284
G1 X60.00 Y100.00 E9.70804
G1 X90.00 Y100.00 E10.087770
G1 X90.00 Y2.00 E10.440900
G1 X120.00 Y2.00 E10.76743
G1 X120.00 Y100.00 E11.067341
G1 X150.00 Y100.00 E11.340651
G1 X150.00 Y2.00 E11.587361
G1 X180.00 Y2.00 E11.807441
G1 X180.00 Y100.00 E12.00

;End GCode
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
M84 ;steppers off
G90 ;absolute positioning
;{profile_string}
Re: G code for calibration
February 14, 2017 03:40PM
And also extruder stop extruding, even if I have the min temp for extruding at 180 degrees
Re: G code for calibration
February 14, 2017 06:53PM
I think you've broken the thermistor when you cleaned the nozzle. No connection to the thermistor would result in 0 degrees reading for the hot-end temperature. Because temperature reading is below 150 degrees or so, the software won't run the extruder.
Re: G code for calibration
February 15, 2017 02:32AM
Ah... no no no. Don't get me wrong. If I want to print something everything is ok from hardware point of view. So my printer works fine. Only when i'm running this Gcode, after cleaning the nozzle procedure the temperature is set to 0 immediatly. Like the printer is reading the line M104 S0 ;extruder heater off from the end of the gcode before running my program witch start with G1 F1800 X0.00 Y100.00 E8.35495. But like I said, if now I want to print something I can do it, it's not a problem. Do you understand what I'm trying to say?
Re: G code for calibration
February 15, 2017 02:35AM
And my thermistor reads perfectly well temperatures. After line G1 X100 E15.0 F800.0 I have on my lcd 215 degree/ 0 degree and my host is cutting off heating the extruder to keep it at 215. It something wrong in this gcode. I write it and I don t have much experience.
Re: G code for calibration
February 15, 2017 06:41AM
nm

Edited 1 time(s). Last edit at 02/15/2017 06:47AM by obewan.
Re: G code for calibration
February 15, 2017 06:57AM
All I'm trying to do is something like this: [ultimaker.com] A kind of Gcode witch allows me to adjust bed leveling with babystep function in real time.
Re: G code for calibration
February 16, 2017 09:51AM
Maybe it's the missing T0 somewhere in the start code?
Your temp setting says M104 T0 S215, but the tool 0 has not been selected before that line.
Just put a line with T0 behind the M82 line.

Edited 1 time(s). Last edit at 02/16/2017 09:52AM by o_lampe.
Sorry, only registered users may post in this forum.

Click here to login