Here's what I've got in my HAL to get it to work. I have 3 software
encoders loading and it all works as it should, until the machine moves
back to the arbitrary position it started at and zeroes there instead of at
the index pulse. I tried using phase a and it just keeps moving blindly, so
I know i'm on the right track.

#pnp proximity sensor setup

loadrt encoder
addf encoder.capture-position servo-thread
addf encoder.update-counters servo-thread

net x-home-prox-enable classicladder.0.out-30 hm2_7i76e.0.7i76.0.0.output-14
net x-home-prox encoder.0.phase-Z hm2_7i76e.0.7i76.0.0.input-30
classicladder.0.in-30
net x-home-index-enables joint.0.index-enable encoder.0.index-enable
net home-x  classicladder.0.in-05 #(copy from  original HAL)
=>joint.0.home-sw-in

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

On Sun, Apr 4, 2021, 12:54 AM Sam Sokolik <[email protected]> wrote:

> Because - I think in that situation - the index pulse also goes to the
> encoder counter and resets the encoder count to zero.   You don't have that
> happening because you don't have an encoder counter.
>
> On Sat, Apr 3, 2021, 11:49 PM Feral Engineer <[email protected]>
> wrote:
>
> > Yeah, I mean it's kinda what I'm trying to do now, but I'd like to get it
> > to work native to how I think it should in my mind.
> >
> > Here's what the page says:
> > When using encoder index homing, the home switch offset is calculated
> from
> > the encoder reference position, after the home switch has been tripped.
> >
> > To me, it sounds like it should hit the switch, back up until it finds
> the
> > "encoder index" pulse and zero right there. Why it moves and zeroes at
> its
> > original power up location is messing with my head.
> >
> > Phil T.
> > The Feral Engineer
> >
> > Check out my LinuxCNC tutorials, machine builds and other antics at
> > www.youtube.com/c/theferalengineer
> >
> > On Sun, Apr 4, 2021, 12:39 AM Sam Sokolik <[email protected]> wrote:
> >
> > > Initially I would just try 'and-ing' the 2 in hal or classic ladder and
> > run
> > > strait to the home input.  (Not using the home to index)
> > >
> > > On Sat, Apr 3, 2021, 11:20 PM Feral Engineer <
> [email protected]
> > >
> > > wrote:
> > >
> > > > Mechanical switch and a proximity sensor (mechanical on 7i76 input 5,
> > > prox
> > > > on input 30, powered by output 15 after latching input 5)
> > > >
> > > > Stepper motors, 7i76e board, emco pc turn 55. It originally had this
> > > setup
> > > > (dual switch and prox home sequence). Tried doing this a while back
> but
> > > > gave up, then had the idea to try and circumvent the weird return to
> > > random
> > > > spot via ladder logic, to no avail.
> > > >
> > > > Phil T.
> > > > The Feral Engineer
> > > >
> > > > Check out my LinuxCNC tutorials, machine builds and other antics at
> > > > www.youtube.com/c/theferalengineer
> > > >
> > > > On Sun, Apr 4, 2021, 12:15 AM Sam Sokolik <[email protected]>
> wrote:
> > > >
> > > > > So your not using an actual encoder to home but using a home switch
> > and
> > > > an
> > > > > 'index' pulse.   Thinking out loud - in a normal homing sequence -
> > the
> > > > > index would reset the encoder counts to zero.  In effect you don't
> > have
> > > > > that functionality.   Is this steppers?  Using a Stepgens of some
> > kind?
> > > > > Maybe that needs to be reset somehow?  Again - thinking out loud
> and
> > it
> > > > is
> > > > > late.
> > > > >
> > > > > On Sat, Apr 3, 2021, 10:58 PM Feral Engineer <
> > > [email protected]
> > > > >
> > > > > wrote:
> > > > >
> > > > > > Finally getting back around to messing with this mechanical/prox
> > home
> > > > > > issue. See attached video link. I show what it is doing and
> explain
> > > > what
> > > > > I
> > > > > > want it to do.
> > > > > >
> > > > > > Thanks in advance for your help
> > > > > >
> > > > > > https://youtu.be/XVz6v2YNXJQ
> > > > > >
> > > > > > Phil T.
> > > > > > The Feral Engineer
> > > > > >
> > > > > > Check out my LinuxCNC tutorials, machine builds and other antics
> at
> > > > > > www.youtube.com/c/theferalengineer
> > > > > >
> > > > > > _______________________________________________
> > > > > > Emc-developers mailing list
> > > > > > [email protected]
> > > > > > https://lists.sourceforge.net/lists/listinfo/emc-developers
> > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Emc-developers mailing list
> > > > > [email protected]
> > > > > https://lists.sourceforge.net/lists/listinfo/emc-developers
> > > > >
> > > >
> > > > _______________________________________________
> > > > Emc-developers mailing list
> > > > [email protected]
> > > > https://lists.sourceforge.net/lists/listinfo/emc-developers
> > > >
> > >
> > > _______________________________________________
> > > Emc-developers mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/emc-developers
> > >
> >
> > _______________________________________________
> > Emc-developers mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/emc-developers
> >
>
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>

_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to