pwmgen enable mode-offset

More
29 Apr 2023 18:51 #270220 by telmoram
Hello can someone help me, i am using 7i90 mesa card and pwm for control servo motor with:

setp hm2_7i90.0.pwmgen.00.output-type 1 #PWM pin0
setp hm2_7i90.0.pwmgen.00.offset-mode 1 # offset mode so 50%=0

When starting linuxcnc the duty cycle is automatically set to 50%, but I need it to zero when pressing e-stop, I have used pwm enable to false, but the value of the duty cycle is kept at 50%, is there any of put pwm output to zero when pressing e-stop?

Thanks.

Please Log in or Create an account to join the conversation.

More
29 Apr 2023 19:03 #270221 by PCW
Replied by PCW on topic pwmgen enable mode-offset
The offset mode assumes you want 0 analog out (so 50% duty cycle) when disabled

If you need 0 PWM in offset mode when disabled you could add a mux component
and feed it the commaned PWM value in one input, full scale negative in the other
and select the mux input with machine-on

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.065 seconds
Powered by Kunena Forum