How to change PWM Frequency?

More
28 Jan 2021 22:36 #196997 by roland
Replied by roland on topic How to change PWM Frequency?
I have downloaded the latest sources.
Process "Generate Programming File" completed successfully :)
Thanks for your excellent support.

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

More
29 Jan 2021 12:35 #197050 by roland
Replied by roland on topic How to change PWM Frequency?
Now i have tried rcpwmgen. Unfortunately the frequency (rate) is also a parameter. The frequency can not be linked to a signal.


I guess it is better to look for another solenoid valve which is more suitable :)
Attachments:

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

More
29 Jan 2021 13:16 #197058 by anfänger
How often and how quick do you need to change the parameter?
With halcmd setp hm2_7i92.0.rcpwmgen.rate you can change the parameter. I have some Mcodes that change parameters. But they are for gear change, so they don’t need to be realtime

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

More
29 Jan 2021 16:11 - 29 Jan 2021 16:20 #197068 by PCW
Replied by PCW on topic How to change PWM Frequency?
Ack sorry, I relied on the idiot that wrote the manual page
section on the rcpwm...

I have changed rcpwm so it uses a pin for rate, so it matches
the manual. I can push this change, or just supply the changed
files if you are compiling LinuxCNC yourself and want to try
before I get around to pushing this change to master
Last edit: 29 Jan 2021 16:20 by PCW.

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

More
29 Jan 2021 17:10 - 29 Jan 2021 21:46 #197074 by roland
Replied by roland on topic How to change PWM Frequency?
i have not compiled linuxcnc myself.
I am waiting for the change in master.

@anfänger
the frequency must be changed during the program execution.
The change by mcodes is good in manual mode. but not in auto mode.
Last edit: 29 Jan 2021 21:46 by roland.

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

More
01 Feb 2021 22:30 #197338 by PCW
Replied by PCW on topic How to change PWM Frequency?
This change has been pushed to master (rcpwm rate is now a pin)

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

More
08 Feb 2021 20:20 #198060 by roland
Replied by roland on topic How to change PWM Frequency?
i have installed master. rcpwmgen works now. (rate is a pin)
For the calculation of rate and width i wrote a hal component.
Everything works now as it should.

Will rcpwmgen also be changed in 2.8.x?

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

Time to create page: 0.084 seconds
Powered by Kunena Forum