On Fri, 10 Apr 2020, Leonardo Marsaglia wrote:

Date: Fri, 10 Apr 2020 16:11:18 -0300
From: Leonardo Marsaglia <ldmarsag...@gmail.com>
Reply-To: "Enhanced Machine Controller (EMC)"
    <emc-users@lists.sourceforge.net>
To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
Subject: [Emc-users] Home use index problem (In step + dir mode)

Hello guys again,

I'm testing the homing of the X axis with a push button and that works
except when the index pulse has to trigger. That never happens.

I'm using the 7i52S to move my servo with step + dir for position command
right to the drive. In LCNC the stepper is working in velocity mode like
it's recommended. I'm reading the Z pulse of the servo motor thru the same
7i52S using one of the encoder inputs. I'm only reading Z because I don't
need A and B for my purposes now.

The problem is, I can't make the homing with index feature to work. I can
see the index pulse triggering to FALSE when the shaft completes the turn,
and I even set the pin to TRUE again manually to see if the homing sequence
stops, but the motor keeps turning at final velocity waiting for the index
to happen.

I'm even monitoring the joint.0.index-enable pin with Halmeter to be sure
the signal is linked and it's working ok. The only thing I find strange is
that I need to set the index-enable pin to TRUE by myself. The homing
sequence doesn't seem to be doing that.

It  sounds like you dont have homing to index enabled in your ini file
(if motion does not set index-enable, it will not look for it going false)

That said I dont think this will work correctly on step/dir systems without encoder feedback. The reason is that on index detection, the reported position on encoders is zeroed, (and motion expects this behavior) this is not done on stepgens. The hardware for capturing the index and the stepgen count at
index is in the firmware, (allowing stepgens to emulate encoder behaviour)
but the hm2 driver has no support for this option.




I'm using LCNC 2.8.0-pre1-5538-g21d7db0. I was thingking maybe this
feature is not allowed with steppers and that's why I can't use it? But the
homing sequence is actually waiting for that index pulse so I don't think
this is the case.

I'm surely missing something here, but without your help I'm a little bit
lost.

As always thank you for your support!

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


Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



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

Reply via email to