Coder Social home page Coder Social logo

Homing does not move motors about grbl-lpc HOT 12 CLOSED

gnea avatar gnea commented on August 29, 2024
Homing does not move motors

from grbl-lpc.

Comments (12)

tbfleming avatar tbfleming commented on August 29, 2024 2

Scratch that. It looks like you need to change config.h so it won't try homing Z:

#define HOMING_CYCLE_0 ((1<<X_AXIS)|(1<<Y_AXIS))
// #define HOMING_CYCLE_1
// #define HOMING_CYCLE_2

from grbl-lpc.

tbfleming avatar tbfleming commented on August 29, 2024

Do G0 and G1 moves work?

from grbl-lpc.

plushvoxel avatar plushvoxel commented on August 29, 2024

Yes. everything else seams to work. We also had successful laser cuts and engravings.

from grbl-lpc.

tbfleming avatar tbfleming commented on August 29, 2024

Connect to it using a terminal (e.g. PuTTY) and send it the ? command. It should send a status block back. Look for |Pn:. Within that field will be X, Y, and Z values if it sees any switches active.

Repeat when you're holding down each switch to make sure they register properly.

from grbl-lpc.

plushvoxel avatar plushvoxel commented on August 29, 2024

With the Head in the homing position:

$5=1
  ok
?
  <Alarm|WPos:0.000,0.000,75.000|FS:0,0|Pn:PXYZ>

$5=0
  ok
?
  <Alarm|WPos:0.000,0.000,75.000|FS:0,0|Pn:P>

With the Head not in the homing position:

$5=1
  ok
?
  <Alarm|WPos:0.000,0.000,75.000|FS:0,0|Pn:PZ>

$5=0
  ok
?
  <Alarm|WPos:0.000,0.000,75.000|FS:0,0|Pn:PXY>

A switch in the Z direction is not attached.

I assume $5=1 is the correct setting. But when I home with this, I get ALARM: 8 - Homing fail. Cycle failed to clear limit switch when pulling off. Try increasing pull-off setting or check wiring.

from grbl-lpc.

tbfleming avatar tbfleming commented on August 29, 2024

The Z switch input might be confusing it. Try tying it off to either VCC or GND (opposite of what your switches drive to).

from grbl-lpc.

plushvoxel avatar plushvoxel commented on August 29, 2024

Ah, in the grbl/config.h. It would be nice if this was optionally / disabled in laser mode or configurable via serial commands.
Shall I open an issue?

from grbl-lpc.

tbfleming avatar tbfleming commented on August 29, 2024

Some lasers use a Z axis to adjust focus based on stock height. I'm trying to avoid moving too far from grbl-328's way of doing things to make it easier to move grbl-lpc to grbl-hal when it comes out.

from grbl-lpc.

plushvoxel avatar plushvoxel commented on August 29, 2024

My grbl/config.h now has the lines 106 to 109 as follows:

// #define HOMING_CYCLE_0 (1<<Z_AXIS)                // REQUIRED: First move Z to clear workspace.
#define HOMING_CYCLE_0 ((1<<X_AXIS)|(1<<Y_AXIS))  // OPTIONAL: Then move X,Y at the same time.
// #define HOMING_CYCLE_1 ((1<<X_AXIS)|(1<<Y_AXIS))  // OPTIONAL: Then move X,Y at the same time.
// #define HOMING_CYCLE_2                         // OPTIONAL: Uncomment and add axes mask to enable

Works for me and our K40 laser cutter.

Much Thanks!

from grbl-lpc.

X3msnake avatar X3msnake commented on August 29, 2024

from grbl-lpc.

plushvoxel avatar plushvoxel commented on August 29, 2024

What wiki do you mean?
The cncpro wiki?

from grbl-lpc.

X3msnake avatar X3msnake commented on August 29, 2024

from grbl-lpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.