Spindle control for a 2nd spindle
26 Apr 2013 07:22 #33221
by andypugh
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
Replied by andypugh on topic Spindle control for a 2nd spindle
If you look in your HAL file you will seeHow can I create a second PWM generator and link it that I can use both?
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.
26 Apr 2013 10:35 #33225
by arvidb
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
Replied by arvidb on topic Spindle control for a 2nd spindle
...
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.
26 Apr 2013 22:34 #33250
by mmt
Replied by mmt on topic Spindle control for a 2nd spindle
arvidb was correct Andy. It was 0,0 and then pwmgen.1 worked.
Thank you both for your help.
Thank you both for your help.
Please Log in or Create an account to join the conversation.
Time to create page: 0.072 seconds