[grbl Issue#1271] Homing without z-axis

未分类 bolang 6个月前 (10-14) 53次浏览

Issue #1271 | 状态: 已关闭 | 作者: pettuma | 创建时间: 2017-08-09


Temporarily I have only xy machine with limit switches. I connected one manual switch to simulate Z limit switch and started the standard homing cycle $H. The homing cycle somehow goes until I trigger the manual swith. After this immediately “ALARM: Homing fail” appears.

I start with this grbl state:
Setting:
$0=10 (step pulse, usec)
$1=25 (step idle delay, msec)
$2=0 (step port invert mask:00000000)
$3=6 (dir port invert mask:00000110)
$4=0 (step enable invert, bool)
$5=0 (limit pins invert, bool)
$6=0 (probe pin invert, bool)
$10=19 (status report mask:00010011)
$11=0.010 (junction deviation, mm)
$12=0.010 (arc tolerance, mm)
$13=0 (report inches, bool)
$20=0 (soft limits, bool)
$21=0 (hard limits, bool)
$22=1 (homing cycle, bool)
$23=0 (homing dir invert mask:00000000)
$24=1000.000 (homing feed, mm/min)
$25=200.000 (homing seek, mm/min)
$26=250 (homing debounce, msec)
$27=1.000 (homing pull-off, mm)
$100=320.000 (x, step/mm)
$101=320.000 (y, step/mm)
$102=250.000 (z, step/mm)
$110=2000.000 (x max rate, mm/min)
$111=2000.000 (y max rate, mm/min)
$112=500.000 (z max rate, mm/min)
$120=30.000 (x accel, mm/sec^2)
$121=30.000 (y accel, mm/sec^2)
$122=10.000 (z accel, mm/sec^2)
$130=290.000 (x max travel, mm)
$131=90.000 (y max travel, mm)
$132=100.000 (z max travel, mm)
Version: [0.9j.20160316:]
Is there any advice why the homing cycle cannot be completed? Thanks.


评论 (3)

#1 – lalo-uy 于 2017-08-09

In the homing sequence the switch goes on, then the direction is reversed
and goes off, then on again slowly and finally off.
You will have to mimic all this steps to avoid the ALARM.

Much better comment off the Z homing cycle in config.h and recompile.

2017-08-09 4:14 GMT-03:00 pettuma :

> Temporarily I have only xy machine with limit switches. I connected one
> manual switch to simulate Z limit switch and started the standard homing
> cycle $H. The homing cycle somehow goes until I trigger the manual swith.
> After this immediately “ALARM: Homing fail” appears.
>
> I start with this grbl state: WPos:0.000,0.000,0.000,Lim:000>
> Setting:
> $0=10 (step pulse, usec)
> $1=25 (step idle delay, msec)
> $2=0 (step port invert mask:00000000)
> $3=6 (dir port invert mask:00000110)
> $4=0 (step enable invert, bool)
> $5=0 (limit pins invert, bool)
> $6=0 (probe pin invert, bool)
> $10=19 (status report mask:00010011)
> $11=0.010 (junction deviation, mm)
> $12=0.010 (arc tolerance, mm)
> $13=0 (report inches, bool)
> $20=0 (soft limits, bool)
> $21=0 (hard limits, bool)
> $22=1 (homing cycle, bool)
> $23=0 (homing dir invert mask:00000000)
> $24=1000.000 (homing feed, mm/min)
> $25=200.000 (homing seek, mm/min)
> $26=250 (homing debounce, msec)
> $27=1.000 (homing pull-off, mm)
> $100=320.000 (x, step/mm)
> $101=320.000 (y, step/mm)
> $102=250.000 (z, step/mm)
> $110=2000.000 (x max rate, mm/min)
> $111=2000.000 (y max rate, mm/min)
> $112=500.000 (z max rate, mm/min)
> $120=30.000 (x accel, mm/sec^2)
> $121=30.000 (y accel, mm/sec^2)
> $122=10.000 (z accel, mm/sec^2)
> $130=290.000 (x max travel, mm)
> $131=90.000 (y max travel, mm)
> $132=100.000 (z max travel, mm)
> Version: [0.9j.20160316:]
> Is there any advice why the homing cycle cannot be completed? Thanks.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/grbl/grbl/issues/1271>, or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AK4bcWeVQm8ombiRANQWiNatekkXLON7ks5sWVxTgaJpZM4OxrzH>
> .
>


#2 – 109JB 于 2017-08-09

Why not just turn off Z axis homing in the config.h file?

You should be able to change these 2 lines

#define HOMINGCYCLE0 (1<CYCLE1 ((1<AXIS)|(1<AXIS)) // OPTIONAL: Then move X,Y at the same time.

to:

//#define HOMINGCYCLE0 (1<CYCLE0 ((1<AXIS)|(1<AXIS)) // OPTIONAL: Then move X,Y at the same time.

Once done the machine will home only on x and y


#3 – pettuma 于 2017-08-09

Ok, I will do it this way. I wanted to test it as I prefer to work with
wires.

Dne 09.08.2017 v 16:34 109JB napsal(a):
>
> Why not just turn off Z axis homing in the config.h file?
>
> You should be able to change these 2 lines
>
> #define HOMINGCYCLE0 (1< workspace.
> #define HOMINGCYCLE1 ((1<AXIS)|(1<AXIS)) // OPTIONAL: Then
> move X,Y at the same time.
>
> to:
>
> //#define HOMINGCYCLE0 (1< clear workspace.
> #define HOMINGCYCLE0 ((1<AXIS)|(1<AXIS)) // OPTIONAL: Then
> move X,Y at the same time.
>
> Once done the machine will home only on x and y
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/grbl/grbl/issues/1271#issuecomment-321273884>, or
> mute the thread
> <https://github.com/notifications/unsubscribe-auth/AdSwWOuefjYlcynsKNWouXHHbGFNLjx1ks5sWcNggaJpZM4OxrzH>.
>


原始Issue: https://github.com/grbl/grbl/issues/1271

喜欢 (0)