[grbl Issue#1613] Single axis homing fail

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

Issue #1613 | 状态: 进行中 | 作者: phiphysos | 创建时间: 2020-03-09


I am trying to use GRBL to drive one motor precisely for a measurement apparatus. Therefor I changed the config.h file and deleted #define HOMINGCYCLE1 ((1<AXIS)|(1<AXIS)) from it. When I send the homing command to my arduino the motor starts moving until the limit switch is activated.

– When the limit switch is activated for a short amount of time the motor does it’s homing pull off, but then starts moving back in the direction he was homing firstly until the limit switch is activated again.
– When the limit switch is activated for a longer amount of time the motor does it’s homing pull off and stops.

In both cases GRBL responds with “ALARM: Homing fail”. Has anybody an idea of what causes the trouble? I am using a NO switch and my GRBL settings are:

$0=10 (step pulse, usec)
$1=25 (step idle delay, msec)
$2=0 (step port invert mask:00000000)
$3=0 (dir port invert mask:00000000)
$4=0 (step enable invert, bool)
$5=0 (limit pins invert, bool)
$6=0 (probe pin invert, bool)
$10=3 (status report mask:00000011)
$11=0.010 (junction deviation, mm)
$12=0.002 (arc tolerance, mm)
$13=0 (report inches, bool)
$20=0 (soft limits, bool)
$21=1 (hard limits, bool)
$22=1 (homing cycle, bool)
$23=0 (homing dir invert mask:00000000)
$24=250.000 (homing feed, mm/min)
$25=1000.000 (homing seek, mm/min)
$26=5 (homing debounce, msec)
$27=5.000 (homing pull-off, mm)
$100=250.000 (x, step/mm)
$101=250.000 (y, step/mm)
$102=250.000 (z, step/mm)
$110=500.000 (x max rate, mm/min)
$111=500.000 (y max rate, mm/min)
$112=500.000 (z max rate, mm/min)
$120=10.000 (x accel, mm/sec^2)
$121=10.000 (y accel, mm/sec^2)
$122=10.000 (z accel, mm/sec^2)
$130=200.000 (x max travel, mm)
$131=200.000 (y max travel, mm)
$132=200.000 (z max travel, mm)

Thank you in advance!

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

喜欢 (0)