Well that turned out to be easier than I thought except for the spindle 
direction signal.

Here's what's in the HAL
# PWM gen signals/setup
setp   hm2_7i92.0.pwmgen.00.scale  [SPINDLE_9]PWM_SCALE
setp   hm2_7i92.0.pwmgen.00.output-type  1

net spindle-enable          =>  hm2_7i92.0.pwmgen.00.enable
net spindle-vel-cmd-rps     =>  hm2_7i92.0.pwmgen.00.value
net spindle-cw              =>  hm2_7i92.0.gpio.005.out

And in the INI file PWM_SCALE is set to 50.  That gives me 100% PWM at 3000 RPM 
(50RPS) and 50% PWM at 1500 RPM according to my scope.  

Once I remember to add this
setp   hm2_7i92.0.gpio.005.is_output  true

The spindle-cw was correctly mirrored out to the DB25-16 pin.

Now just to change the 5 Volt PWM into 0V to 10V analogue.



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

Reply via email to