On 03/18/2021 08:43 PM, John Dammeyer wrote:

-----Original Message-----
From: Jon Elson [mailto:el...@pico-systems.com]
Sent: March-18-21 6:22 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] Spindle rps and index

On 03/18/2021 05:18 PM, Nicklas SB Karlsson wrote:
Need to orient spindle. Using a quadrature encoder spindle
need to be "homed" by rotating up to one revolution to
find index pulse but there is no homing for spindle. Know
what index pulse is in encoder but what does the index
enable signal for spindle do? or how is it used?


On most encoder counters, if one component sets
encoder.xx.index-en (or whatever it is called in that
rendition) to true, and then the encoder is turned until it
generates the index pulse, the position count will jump to
zero at that instant.  Also, at that instant, the index
enable pin will be set back to false.

Jon
Interesting topic.

I take it then that you can't actually move the spindle to the index position 
unless you have some sort of control beyond velocity?

I'm currently using PWM on mine but once I redo some wiring I can run it with 
step/dir.  So theoretically it should be possible to move to a 'home' or 
'0.000' position.  But how is that even done if the spindle is controlled with 
M3,M4 and Sxxx?


You have to put some kind of custom component in between. The problem is you now want to have a thing which switches back and forth between a spindle (M3, 4 and 5 and Sxxx) and an axis C. You have to give some kind of command with a custom M code that disconnects it as an axis and connects it as a spindle, and then reverses the process, all without causing a following error. It could be a bit tricky. This has come up a number of times in the past.

Jon


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

Reply via email to