It looks ok to me. But my recommendation is to forget about the distance
between the home switch and the centerline.

For example when I retrofitted the Mazak, I wired all the limits and home
switches and when I was sure the hard limits worked I started playing
around with the homing setup.

Basically I relied on trial and error with the soft limits on the INI until
the machine didn't hit the hard limits while jogging. So I set home
position at the switch to be 0 (although that's not necessary, you can make
that value whatever fits your needs) and from that position I carefully jog
until I detect both positive and negative hard limits. Then I input that on
the INI with some room to avoid overshooting and hitting the hard limits.

The only difference is that your lathe is parallel so your turret feeds in
the opposite way than mine towards the center, but that's not a problem
since you already have that set with your motor's scale sign. So when you
are in G54 and set your diameter or radius (I always work in diameter so I
have G7 as one of my startup codes) you should see how your diameter
decreases as you feed towards the spindle. By the way I'm reassuring this
because reading your post got me thinking about how LCNC knows what's my
turret's orientation.

Hope what I wrote makes sense John.

Take care.





El jue., 8 de diciembre de 2022 04:37, John Dammeyer <jo...@autoartisans.com>
escribió:

> I've done a bit more work on this.  I've made an assumption that the  home
> switch is about 5" from the theoretical lathe centerline with a specific
> tool inserted in a fixed holder.
>
> I home the cross slide setting 0.000 into the world coordinates G53
> location.  Then move it -4.0" inwards which puts it conveniently at exactly
> 0.5" from the real lathe center line.
>
> Now we want the DRO to read 0.5" at this point, not -4.000.  So this is
> where the G54 comes in and the AXIS Touch Off Tool dialog.  In that dialog
> we'd enter 0.5" which then ends up putting a value into the G54 offsets
> locations which then is combined with the G53 to fill in the DRO position
> fields to show the position relative to this new 'home' position.
>
> Since I had trouble getting my head around this I wrote a small program to
> simulate some of the AXIS interface.  I haven't done the tool table stuff
> yet.  I want to get this clarified first.
>
> What I'm not sure about is whether I'm doing the math (and the sign of the
> value or even the value) correctly in the G54 locations.
>
> I've attached some screen shots.   These shots show the initial move, the
> touch and then the change to G54.  It appears to work.
>
> John
>
>
>
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to