For Jon Elson in particular. On the typical BoB with a relay to be used 
as spindle control, on the SainSmart for instance its activated by pin 
14 going true.

Whats the reaction time for one of those teeny 5 volt coil relays 
including a reasonable debounce period? Will 20 milliseconds get me a 
solid signal, or so I need even more time by the time a contact bounce 
has settled?

Heres what I have in mind for hal entries, primarily because
the 7i76 TB4 ENA- doesn't come up until spinout already has valid data,
which is too late, it must be enabled when the pulses from
the boot module arrive:

#*********************************************************
# First - setup 5i25's p3-p17 for servo enable use BUTBUT*
# BUT pin 14 is the relay control. The 7i76 can't        *
# supply an enable to the pwm-servo fast enough, so      *
# set the relay on to steer 12 volts to the pwm-servo    *
# and delay the boot module chain start 20 ms before enabling *
# the boot module etc. relay-delay is a "timedelay" module   *
#*********************************************************
# now, reboot the servo amp at every spindle start
setp relay-delay.on-delay .02 # is in seconds
setp relay-delay.off-delay .1 # long enough to cover a g33.1 reversal
net spindle-enable-relay <= spindle.0.on => relay-delay.in 
net spindle-enable-relay => hm2_5i25.0.gpio.018.in
net delay-boot  <= relay-delay.out => boot.spindle.enable and_pid_s_en.in0
#**********************************************************
# supply 12 volts to "n.o." relay contact, send common to *
# pwm-servo enable by running a wire to it.               *                     
          
#**********************************************************
The timing looks pretty good, the boot pulses are delayed about 23 
millisecs after the relay is fired. The question is, is 20ms a long 
enough delay?

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>



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

Reply via email to