- Posts: 105
- Thank you received: 0
Need help with the orient component for spindle activation (M19)
4 years 9 months ago #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)
Please Log in to join the conversation.
4 years 8 months ago #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 line
and 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
Code:
#net spindle-on <= motion.spindle-on => pwmgen.0.enable
Code:
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 to join the conversation.
4 years 8 months ago #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
Please Log in to join the conversation.
4 years 8 months ago #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 to join the conversation.
4 years 8 months ago #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
Please Log in to join the conversation.
4 years 8 months ago #233736
by jpg
Replied by jpg on topic Need help with the orient component for spindle activation (M19)
Please Log in to join the conversation.
4 years 8 months ago #233744
by andypugh
Replied by andypugh on topic Need help with the orient component for spindle activation (M19)
You have
but nothing drives the spindle-cmd-rpm signal.
I think this line
should be
(and delete the line mentioned above)
Code:
net spindle-cmd-rpm => pwmgen.0.value
I think this line
Code:
net pwm-switch-out spindle-pwm-switch.out => stepgen.4.velocity-cmd
Code:
net pwm-switch-out spindle-pwm-switch.out => pwmgen.0.value
Please Log in to join the conversation.
4 years 8 months ago #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 to join the conversation.
4 years 8 months ago #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 to join the conversation.
4 years 8 months ago #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 to join the conversation.
Time to create page: 0.167 seconds
