[gnea/grbl-Mega Issue#93] Homing only does pull-off

未分类 bolang 4个月前 (10-15) 26次浏览

Issue #93 | 状态: 进行中 | 作者: ThorbenH | 创建时间: 2019-03-14


Hello there,
this question might be answered by a painfully simple mistake I made, as I am new to GRBL, but here goes: Whenever I tell my CNC to home ($H) it does not even search for limit switches, but instantly does the first and then the second pull-off thing that is there to get the CNC of the limit switches. E.g. The x-Axis is supposed to move all the way back onto the limit switch and then pull-off and then onto the limit switch slowly and then pull-off again, but instead it just does two pull-off after another and that’s it.
(After it has “homed” I can use commands like “G91 G0 X-1” to move the axis around in both directions with no problem (provided its inside the soft limits.), so I don’t think I messed up the wiring…)

This is a self-build CNC running TB6600 on an Arduino Mega. I am running GRBL [VER:1.1f.20170802:] and I am using UniversalGcodeSender to send my commands.
My stepper-controllers are connected with a common ground (+ used as input, which is the inverse of standard grbl), my limit switches and z-Probe are external pull down and my enable pin has a pnp-transistor added in extra so it is inverted again. (That’s why so much inversion is going on here.)

GRBL Settings:
$0=10
$1=255
$2=7
$3=1
$4=1
$5=1
$6=1
$10=1
$11=0.010
$12=0.002
$13=0
$20=1
$21=0
$22=1
$23=0
$24=25.000
$25=500.000
$26=100
$27=1.000
$30=1000
$31=0
$32=0
$100=100.000
$101=100.000
$102=100.000
$110=1000.000
$111=1000.000
$112=1000.000
$120=50.000
$121=50.000
$122=50.000
$130=700.000
$131=750.000
$132=100.000

My PinPopulation:
MEGA2560 Digital Pin 24 XSTEPBIT
MEGA2560 Digital Pin 25 YSTEPBIT
MEGA2560 Digital Pin 26 ZSTEPBIT
MEGA2560 Digital Pin 30 XDIRECTIONBIT
MEGA2560 Digital Pin 31 YDIRECTIONBIT
MEGA2560 Digital Pin 32 ZDIRECTIONBIT

MEGA2560 Digital Pin 13 STEPPERSDISABLEBIT

MEGA2560 Digital Pin 10 XLIMITBIT
MEGA2560 Digital Pin 11 YLIMITBIT
MEGA2560 Digital Pin 12 ZLIMITBIT
MEGA2560 Analog Pin 15 PROBE_BIT

Anyone got an idea what I might have done wrong?


评论 (1)

#1 – ThorbenH 于 2019-03-25

Found the issue. It was induction. Couldn’t measure it because my voltage meter was to slow. Keep your wires shielded.
(Fixed it by running Cat5 (LAN) cable to the limit switches.)


原始Issue: https://github.com/gnea/grbl-Mega/issues/93

喜欢 (0)