Need help with the orient component for spindle activation (M19)

More
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)
Attachments:
Last edit: 31 Jan 2022 21:11 by jpg.

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

More
01 Feb 2022 16:51 #233721 by andypugh
I don't see anything that is enabling the pwmgen.

There is a commented out line
#net spindle-on <= motion.spindle-on => pwmgen.0.enable
and another where a comment probably stops parsing:
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.

More
01 Feb 2022 17:22 - 01 Feb 2022 17:23 #233723 by jpg
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.

More
01 Feb 2022 18:53 #233730 by andypugh
How is your spindle speed controlled?

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

More
01 Feb 2022 19:12 - 01 Feb 2022 19:13 #233733 by jpg
 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
Attachments:
Last edit: 01 Feb 2022 19:13 by jpg.

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

More
01 Feb 2022 19:50 #233736 by jpg
I use this module to manage the VDF

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

More
01 Feb 2022 21:09 #233744 by andypugh
You have
net spindle-cmd-rpm => pwmgen.0.value
but nothing drives the spindle-cmd-rpm signal.
I think this line
net pwm-switch-out   spindle-pwm-switch.out	     => stepgen.4.velocity-cmd
should be
net pwm-switch-out   spindle-pwm-switch.out	     => pwmgen.0.value
(and delete the line mentioned above)
The following user(s) said Thank You: jpg

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

More
01 Feb 2022 22:28 #233749 by jpg
good evening, I have just tried and it is the same thing, nothing changes, attached the modified HAL
Attachments:

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

More
01 Feb 2022 22:38 #233751 by andypugh
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?

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

More
01 Feb 2022 22:47 #233753 by jpg
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.

Time to create page: 0.108 seconds
Powered by Kunena Forum