[FIXED] Getting Homing To Set To Zero

Discussion about the arduino based g-code interpreter, grbl
Post Reply
mankyd
Posts: 36
Joined: Tue Jan 13, 2015 2:38 am

[FIXED] Getting Homing To Set To Zero

Post by mankyd » Thu Feb 18, 2016 3:13 am

Howdy. I've installed my limit switches in the negative direction. I've configured GRBL (see below) and it seems to work well enough. That is except for one catch: When it homes, it leaves the x & y directions zeroed to the back-right corner. I'd like it zeroed to the front-left corner. Is there any way to do this, or must i remember to hit G92 every time I home? I was hoping that homing would automatically set everything to zero.

Code: Select all

$0=10 (step pulse, usec)
$1=255 (step idle delay, msec)
$2=0 (step port invert mask:00000000)
$3=4 (dir port invert mask:00000100)
$4=0 (step enable invert, bool)
$5=0 (limit pins invert, bool)
$6=0 (probe pin invert, bool)
$10=255 (status report mask:11111111)
$11=0.020 (junction deviation, mm)
$12=0.010 (arc tolerance, mm)
$13=0 (report inches, bool)
$20=1 (soft limits, bool)
$21=1 (hard limits, bool)
$22=1 (homing cycle, bool)
$23=3 (homing dir invert mask:00000011)
$24=100.000 (homing feed, mm/min)
$25=1000.000 (homing seek, mm/min)
$26=25 (homing debounce, msec)
$27=5.000 (homing pull-off, mm)
$100=20.000 (x, step/mm)
$101=20.000 (y, step/mm)
$102=20.000 (z, step/mm)
$110=5000.000 (x max rate, mm/min)
$111=5000.000 (y max rate, mm/min)
$112=5000.000 (z max rate, mm/min)
$120=400.000 (x accel, mm/sec^2)
$121=400.000 (y accel, mm/sec^2)
$122=400.000 (z accel, mm/sec^2)
$130=415.000 (x max travel, mm)
$131=435.000 (y max travel, mm)
$132=80.000 (z max travel, mm)
Last edited by mankyd on Thu Feb 18, 2016 3:37 am, edited 2 times in total.
Shapeoko 3 #147
Headless Controll via Raspberry Pi
SuperPID2
Touch Plate
Hall Effect Limit Switches in the Works

http://ohthehugemanatee.net/

chamnit
Posts: 376
Joined: Tue Aug 12, 2014 2:16 pm
Location: Albuquerque NM, USA
Contact:

Re: Getting Homing to Set To Zero

Post by chamnit » Thu Feb 18, 2016 3:18 am

Yes. But this is a compile-time option, where you'll need to uncomment the HOMING_FORCE_ORIGIN line, re-compile, and flash. This will have Grbl set zero, wherever the homing cycle completes.

mankyd
Posts: 36
Joined: Tue Jan 13, 2015 2:38 am

Re: Getting Homing to Set To Zero

Post by mankyd » Thu Feb 18, 2016 3:31 am

Interesting. Thanks! I've compiled GRBL once before. Looks like its time to do it again.
Shapeoko 3 #147
Headless Controll via Raspberry Pi
SuperPID2
Touch Plate
Hall Effect Limit Switches in the Works

http://ohthehugemanatee.net/

Post Reply