I have issues trying to set up a laser on a 7i96 board. I have an SSR turning on a relay to power the laser, and the PWM lead going to step+ lead on the step4 lead. I have the following statements in the hal file
net spindle-on spindle.0.on => hm2_7i96.0.ssr.00.out-02
net digital-out-0 motion.digital-out-00 => hm2_7i96.0.ssr.00.out-01
net spindle_speed spindle.0.speed-out hm2_7i96.0.pwmgen.00.value
setp hm2_7i96.0.pwmgen.00.output-type 1
setp hm2_7i96.0.pwmgen.00.scale [SPINDLE]MAX_RPM
setp hm2_7i96.0.pwmgen.pwm_frequency [SPINDLE]PWM_FREQUENCY
net spindle-enable hm2_7i96.0.pwmgen.00.enable
#net spindle-speed-out-rpm-abs hm2_7i96.0.pwmgen.00.value
net spindle-at-speed => spindle.0.at-speed
and with halcmd show all |grep *pwm* I get
29 bit IN FALSE hm2_7i96.0.pwmgen.00.enable <== spindle-enable
29 float IN 0 hm2_7i96.0.pwmgen.00.value <== spindle_speed
==> hm2_7i96.0.pwmgen.00.enable
==> hm2_7i96.0.pwmgen.00.value
29 bit RW FALSE hm2_7i96.0.pwmgen.00.offset-mode
29 bit RW FALSE hm2_7i96.0.pwmgen.00.out0.invert_output
29 bit RW FALSE hm2_7i96.0.pwmgen.00.out0.is_opendrain
29 bit RW FALSE hm2_7i96.0.pwmgen.00.out1.invert_output
29 bit RW FALSE hm2_7i96.0.pwmgen.00.out1.is_opendrain
29 s32 RW 1 hm2_7i96.0.pwmgen.00.output-type
29 float RW 23000 hm2_7i96.0.pwmgen.00.scale
29 u32 RW 0x00004E20 hm2_7i96.0.pwmgen.pdm_frequency
29 u32 RW 0x00002710 hm2_7i96.0.pwmgen.pwm_frequency
hm2_7i96.0.pwmgen.00.out0.invert_output hm2_7i96.0.gpio.025.invert_output
hm2_7i96.0.pwmgen.00.out0.is_opendrain hm2_7i96.0.gpio.025.is_opendrain
hm2_7i96.0.pwmgen.00.out1.invert_output hm2_7i96.0.gpio.026.invert_output
hm2_7i96.0.pwmgen.00.out1.is_opendrain hm2_7i96.0.gpio.026.is_opendrain
If I place the PWM lead on the Srep4- lead, I get a laser output, but cannot seem to set it any lower than high power. I am using s100 m3 and the run the speed up to 10000, without any change in the laser level.
I am missing something. Any help would be appreciated.
Thanks