On Friday 23 June 2017 04:41:39 andy pugh wrote:

> On 23 June 2017 at 06:19, Gene Heskett <[email protected]> wrote:
> > > It is waiting for an index..
> >
> > Index signal from the encoder.00 right?
>
> Not directly, it is waiting for the encoder counter to signal that an
> index has been seen,
>
> http://linuxcnc.org/docs/html/examples/spindle.html#_spindle_synchroni
>zed_motion
>
Oh goody.  And sorting this for the differences in pin/signal names 
between the above non-hostmot2 examples, and the hostmot2 names is left 
as an exercise for the reader. hostmot2 doesn't have a position-scale 
pin, just scale for instance. setp to 240 as thats the encoder edges for 
on full turn. I have the index-pulse like this:

#######################################################
# for g33.1, motion.spindle-revs needs to be hooked to 
# encoder.0.position output
net gee33dot1   <= hm2_[HOSTMOT2](BOARD).0.encoder.00.position  =>      
motion.spindle-revs
# and index-enable needs to be enabled
setp    hm2_[HOSTMOT2](BOARD).0.encoder.00.index-enable      true
# and then hooked up bidirectional to motion.spindle-index-enable
net spindle-index hm2_[HOSTMOT2](BOARD).0.encoder.00.index-enable <=> 
motion.spindle-index-enable #is false forever

but position is incrementing forever if fwd, decrementing forever in 
reverse.  So it appears the Index is being ignored if what I read about 
how this works is true.

> (suitably modified for hm2)

What I've tried to do is essentially duplicate The Little Monsters 
settings, which do work, but one is on a 5i25, the other on a 7i90.
The changes in naming of the two makes direct comparisons difficult to 
translate error free.  Same with the 3 axis G0704, which can do rigid 
tapping just fine, running the g33.1 canned cycle in a loop for peck 
mode, advancing a fixed amount per peck, usually around half a turn. But 
again, thats a 5i25 interfaced machine. To switch it to a 5i25 driving a 
7i90 is tempting as I am out of i/o and can't add a 4th axis to it that 
it badly needs.  And I am out of room in that monster box for a 7i90 and 
its breakout boards, I'd have to make/buy yet another box to contain all 
that.  One project at a time please...

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to