Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homing does not move motors #8

Closed
plushvoxel opened this issue Jul 9, 2017 · 12 comments
Closed

Homing does not move motors #8

plushvoxel opened this issue Jul 9, 2017 · 12 comments

Comments

@plushvoxel
Copy link

Firmware and Board Version
grbl 1.1f
MKS-SBASE v1.3

Input and Output

$$

 $0=1
 $1=25
 $2=0
 $3=3
 $4=0
 $5=0
 $6=0
 $10=0
 $11=0.010
 $12=0.002
 $13=0
 $20=0
 $21=0
 $22=1
 $23=1
 $24=25.000
 $25=500.000
 $26=250
 $27=5.000
 $30=1000
 $31=0
 $32=1
 $33=1000.000
 $34=0.000
 $35=0.000
 $36=100.000
 $100=160.000
 $101=160.000
 $102=160.000
 $110=24000.000
 $111=24000.000
 $112=24000.000
 $120=1500.000
 $121=1500.000
 $122=1000.000
 $130=300.000
 $131=200.000
 $132=50.000
 $140=0.400
 $141=0.600
 $142=0.000

$H

 ALARM: 9 - Homing fail. Could not find limit switch within search distance. Defined as 1.5 * max_travel on search and 5 * pulloff on locate phases.

Expected Behavior
Motors moving in the -X and +Y direction until end stops.

Observed Behavior
Motors not moving at all.
Motors "locking" and making high pitch noise.

@tbfleming
Copy link
Collaborator

Do G0 and G1 moves work?

@plushvoxel
Copy link
Author

plushvoxel commented Jul 9, 2017

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

@tbfleming
Copy link
Collaborator

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.

@plushvoxel
Copy link
Author

plushvoxel commented Jul 9, 2017

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.

@tbfleming
Copy link
Collaborator

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

@tbfleming
Copy link
Collaborator

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

@plushvoxel
Copy link
Author

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?

@tbfleming
Copy link
Collaborator

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.

@plushvoxel
Copy link
Author

plushvoxel commented Jul 9, 2017

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!

@X3msnake
Copy link

X3msnake commented Jul 10, 2017 via email

@plushvoxel
Copy link
Author

What wiki do you mean?
The cncpro wiki?

@X3msnake
Copy link

X3msnake commented Jul 10, 2017 via email

@gnea gnea deleted a comment from 00alkskodi00 Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants