Address

Author Topic: Custom Button for Z adjust in Pronterface?  (Read 1740 times)

da3v

  • FamiLAB Member
  • Full Member
  • *
  • Posts: 114
    • View Profile
Custom Button for Z adjust in Pronterface?
« on: March 23, 2012, 01:10:50 PM »
Thantik has mentioned it a couple of times. Is the source/usage published somewhere, or do I need to head over to the lab and poke around on the machine?

ThantiK

  • FamiLAB Member
  • Full Member
  • *
  • Posts: 237
  • Resident 3D printer guru.
    • View Profile
Re: Custom Button for Z adjust in Pronterface?
« Reply #1 on: March 24, 2012, 11:01:12 AM »
There's a gcode that Chris uses for this, I'll ask him to post or find out when I get home. Also, I gotta get together with you and show you the awesome m92 gcode.
« Last Edit: March 24, 2012, 11:03:35 AM by ThantiK »

Chorca

  • FamiLAB Member
  • Sr. Member
  • *
  • Posts: 272
  • My primary function is failure.
    • View Profile
    • Flickr
Re: Custom Button for Z adjust in Pronterface?
« Reply #2 on: March 26, 2012, 03:02:29 AM »
It's not complicated, just check out the motion control sequences in the reprap forum: http://reprap.org/wiki/G-code

Basically, it homes the Z normally (the sensor/switch is set so the tip will home *below* the build surface, i.e. it will push on the bed a little when 'homed'
G28 Z0

Then tells the Z "oh hey, you're not actually at 0, you are below the surface (sets it to be 0.5mm above the 'home position')
G92 Z-0.5

Then, to keep the nozzle from dragging along the bed when the print starts, moves it up an arbitrary amount (mine's set to 5mm I think)
G0 Z5

That's all you need. Then just inspect the zero height. You can choose a 'sane' value by making the last line G0 Z0 which will move the nozzle to the actual zero point, to make sure it's somewhere close to where it should be, then fine tune the second line to move the nozzle more up (more negative, i.e. -0.8 or down (more positive, i.e. -0.2) to get things at the right height.
« Last Edit: March 26, 2012, 04:31:51 PM by Chorca »