Greetings everybody, including Peter;

Just now powering up my lathe with a new spindle driver, one of Jon's 
20 amp pwm servo models.

In my hal file, I have this: (line wrap off)

# give me pin 17 to control Jon's driver
setp  hm2-5i25.0.gpio.007.is_output     true
setp  hm2_5i25.0.gpio.007.invert_output true

# now send the driver init anytime  motion.spindle-on goes true
net     spindle-on      motion.spindle-on       boot.0.enable   
hm2_5i25.0.pwmgen.00.enable
net     spindle-on                              hm2_5i25.0.gpio.007.out # 
is early enable signal for Jon's driver on J3 pin 17

Now, this boot module is, and I have it in the halscope, sending the two 
enabling pulses shortly after boot.0.enable hits.  Looks all well and good
till the driver doesn't work because it never sees the to pulses boot 
sends it because hm2_5i25.0.pwmgen.00.enable never changes state 
indicating
the pwmgen should be enabled.  Even when I zoom way out timewise, I never
see a state change at that pin.

BUT! the pwmgen becomes active and does generate active + pulses at the 
BOB output...

But its not active in time to send the direction signals that enable the
driver.  Direction logic does work if I tap the CCW button.

I can only think of one thing to try, and that is to put the servo-thread
back down to 1 kilohertz.  Or possibly modify boot.comp to kill more time.

Its current running just shy of 4khz.  Is this a known problem?

Thanks.

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>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to