Spindle control for a 2nd spindle

More
26 Apr 2013 07:22 #33221 by andypugh

How can I create a second PWM generator and link it that I can use both?

If you look in your HAL file you will see
loadrt pwmgen output_type=0
change it to say
loadrt pwmgen output_type=0

Then duplicate all the pwmgen.0 HAL lines for pwmgen.1

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

More
26 Apr 2013 10:35 #33225 by arvidb

...
change it to say
loadrt pwmgen output_type=0

Then duplicate all the pwmgen.0 HAL lines for pwmgen.1


I'm guessing a bit now, but I think Andy meant
"change it to say
loadrt pwmgen output_type=0,0"

which should give you another pwmgen (called "pwmgen.1"). The "0,0" means create two pwmgens of type 0.

All this from the manual only, I haven't tested it myself:
linuxcnc.org/docs/html/man/man9/stepgen.9.html
The following user(s) said Thank You: mmt

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

More
26 Apr 2013 22:34 #33250 by mmt
arvidb was correct Andy. It was 0,0 and then pwmgen.1 worked.

Thank you both for your help.

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

Time to create page: 0.313 seconds
Powered by Kunena Forum