Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 12089

Re: When homing, z bed moves down before going up, crashing into brackets

$
0
0
Quote
PDBeal
Depending on what version your currently doing it sort of changes, but if you look in Marlin_main.cpp and search for "void gcode_G28()" That is the routine that handles homing. And if you skim through it until you see something similar to the following:

      if (home_all_axis || homeX || homeY) {
        // Raise Z before homing any other axes and z is not already high enough (never lower z)
        destination[Z_AXIS] = LOGICAL_Z_POSITION(Z_HOMING_HEIGHT);
        if (destination[Z_AXIS] > current_position[Z_AXIS]) {

          #if ENABLED(DEBUG_LEVELING_FEATURE)
            if (DEBUGGING(LEVELING)) {
              SERIAL_ECHOPAIR("Raise Z (before homing) to ", destination[Z_AXIS]);
              SERIAL_EOL;
            }
          #endif

          do_blocking_move_to_z(destination[Z_AXIS]);
        }
      }

That was the section I commented out at one time from the RCBugFix-RC7 version. It was different in the RCBugFix-RC6 version, so it might not look exactly like that depending on what version your using.

There might be another location to look too, but I don't remember if it was just the one section.

So yes, that is exactly as it appears in my Marlin_main.cpp but commenting that out didn't change anything. I searched for other places that may have referred to it but couldn't really figure it out. Thanks for the help anyway!

Viewing all articles
Browse latest Browse all 12089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>