- Configuring LinuxCNC
- Advanced Configuration
- Need help with the orient component for spindle activation (M19)
Need help with the orient component for spindle activation (M19)
31 Jan 2022 21:05 - 31 Jan 2022 21:11 #233669
by jpg
Good evening to all, I have been trying for some time to use "orient" on my port // configuration, but I cannot trigger my VDF, when I type, for example, M19 R180; however on the configuration where I have "orient", when I turn the encoder by hand, by activating the orient mode, it triggers the relay of the pin but not the VDF. The problem is the same when I try "s200" for example, the relay is triggered, but no motor rotation, it seems that I lost the PWM as well as the display of the speed (but it bothers me less). I enclose(orient spindel) the HAL orient configuration, the standard(configuration_mpg_pour_orient.) version, which works very well (I use it as a reference)
I hope you can help me, thank you
Translated with www.DeepL.com/Translator (free version)
I hope you can help me, thank you
Translated with www.DeepL.com/Translator (free version)
Last edit: 31 Jan 2022 21:11 by jpg.
Please Log in or Create an account to join the conversation.
01 Feb 2022 16:51 #233721
by andypugh
Replied by andypugh on topic Need help with the orient component for spindle activation (M19)
I don't see anything that is enabling the pwmgen.
There is a commented out lineand another where a comment probably stops parsing:
But then I see something that looks like an attempt to run the spindle with stepgen.4
So, is the spindle PWM controlled or stepgen controlled?
There is a commented out line
#net spindle-on <= motion.spindle-on => pwmgen.0.enable
net spindle-on0 motion.spindle-on => spindle-active-delay.in #=># pwmgen.0.enable
But then I see something that looks like an attempt to run the spindle with stepgen.4
So, is the spindle PWM controlled or stepgen controlled?
Please Log in or Create an account to join the conversation.
01 Feb 2022 17:22 - 01 Feb 2022 17:23 #233723
by jpg
Replied by jpg on topic Need help with the orient component for spindle activation (M19)
Hello Andy, I got this configuration on a Russian site, the configuration is, I think in stepgen; I confess that I am looking for a while, because all configurations with orient are with MESA cards and as I am trying to understand the operation with bob //, there are very few configuration "ready to use" I think that what I need is a PWM configuration, is it the easiest to put into service? thank you
Last edit: 01 Feb 2022 17:23 by jpg.
Please Log in or Create an account to join the conversation.
01 Feb 2022 18:53 #233730
by andypugh
Replied by andypugh on topic Need help with the orient component for spindle activation (M19)
How is your spindle speed controlled?
Please Log in or Create an account to join the conversation.
01 Feb 2022 19:12 - 01 Feb 2022 19:13 #233733
by jpg
Replied by jpg on topic Need help with the orient component for spindle activation (M19)
I modified my file to have only the PWM, I have the triggering of the spindle, CW, CCW, but not the variation of the speed and the triggering of the spindle in orient mode
Last edit: 01 Feb 2022 19:13 by jpg.
Please Log in or Create an account to join the conversation.
01 Feb 2022 19:50 #233736
by jpg
Replied by jpg on topic Need help with the orient component for spindle activation (M19)
Please Log in or Create an account to join the conversation.
01 Feb 2022 21:09 #233744
by andypugh
Replied by andypugh on topic Need help with the orient component for spindle activation (M19)
You havebut nothing drives the spindle-cmd-rpm signal.
I think this lineshould be(and delete the line mentioned above)
net spindle-cmd-rpm => pwmgen.0.value
I think this line
net pwm-switch-out spindle-pwm-switch.out => stepgen.4.velocity-cmd
net pwm-switch-out spindle-pwm-switch.out => pwmgen.0.value
The following user(s) said Thank You: jpg
Please Log in or Create an account to join the conversation.
01 Feb 2022 22:28 #233749
by jpg
Replied by jpg on topic Need help with the orient component for spindle activation (M19)
good evening, I have just tried and it is the same thing, nothing changes, attached the modified HAL
Please Log in or Create an account to join the conversation.
01 Feb 2022 22:38 #233751
by andypugh
Replied by andypugh on topic Need help with the orient component for spindle activation (M19)
Now is the time to use the halscope to follow the signals through the HAL.
Look at the PID input, the PID output, then follow through from there.
Are your PID gains set up?
Look at the PID input, the PID output, then follow through from there.
Are your PID gains set up?
Please Log in or Create an account to join the conversation.
01 Feb 2022 22:47 #233753
by jpg
Replied by jpg on topic Need help with the orient component for spindle activation (M19)
Good evening, Andy, I'm watching tomorrow night, after my work, good night and thank you
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- Need help with the orient component for spindle activation (M19)
Time to create page: 0.097 seconds