- Posts: 140
- Thank you received: 0
How to change PWM Frequency?
5 years 9 months ago #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.
Process "Generate Programming File" completed successfully
Thanks for your excellent support.
Please Log in to join the conversation.
5 years 9 months ago #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
Attachment not found
I guess it is better to look for another solenoid valve which is more suitable
Please Log in to join the conversation.
5 years 9 months ago #197058
by anfänger
Replied by anfänger on topic How to change PWM Frequency?
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
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 to join the conversation.
5 years 9 months ago #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
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
Please Log in to join the conversation.
5 years 9 months ago #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.
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.
Please Log in to join the conversation.
5 years 8 months ago #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 to join the conversation.
5 years 8 months ago #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?
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 to join the conversation.
Time to create page: 0.049 seconds
