+-10 volt spindle?
13 Sep 2013 10:11 #38742
by DaOne
Replied by DaOne on topic +-10 volt spindle?
Yes I did but I dont think it is setup for +-10 only 0-10 volts. I have no idea where to start.
![:( :(](/media/kunena/emoticons/sad.png)
Please Log in or Create an account to join the conversation.
13 Sep 2013 10:22 #38743
by DaOne
Replied by DaOne on topic +-10 volt spindle?
Ok maybe I am mistaken. I just looked at the config in pncconf. It allows me under "Output Info" to use -10 for "Analog Min Limit" and +10 for "Analog Max Limit". What I dont understand is how do you make it so that the M03 and M04 commands work with this setup?
Please Log in or Create an account to join the conversation.
13 Sep 2013 13:56 #38749
by cncbasher
Replied by cncbasher on topic +-10 volt spindle?
the mesa 7i77 has a spindle direction pin , connect that to your direction input of the speed controller will give you what you need , if you need 2 inputs to the vfd use a changeover dual pole relay and operate the relay from the direction pin
you don't mention what speed controller you have , so I cannot be more specific .
you don't mention what speed controller you have , so I cannot be more specific .
Please Log in or Create an account to join the conversation.
13 Sep 2013 14:09 #38750
by DaOne
Replied by DaOne on topic +-10 volt spindle?
I am not sure exactly what you need?
Here is what I have. Its a DC spindle drive. It has a enable pin that basically turns the spindle drive on and an analog input that excepts -10 through +10 volts. Everything from 0 to -10 is reverse and everything from 0 to +10 is forward. 0 volts = brake +10volts = 3450RPM
The way I was gonna do it was use a relay to flip the analog output so I can get forward and reverse used a digital output pin to select forward and reverse and then use 0 to + 10 volts like all the examples show. I am sure there is a better way but I am way to amateur at this to figure it out. I am using a mesa 5i25 with a 7i77. I was using the analog output to provide the 0-10 volts. If more info is needed please try to explain so a newbie can understand. I will try my best to get you what you require.
Thank you guys for the help.
Here is what I have. Its a DC spindle drive. It has a enable pin that basically turns the spindle drive on and an analog input that excepts -10 through +10 volts. Everything from 0 to -10 is reverse and everything from 0 to +10 is forward. 0 volts = brake +10volts = 3450RPM
The way I was gonna do it was use a relay to flip the analog output so I can get forward and reverse used a digital output pin to select forward and reverse and then use 0 to + 10 volts like all the examples show. I am sure there is a better way but I am way to amateur at this to figure it out. I am using a mesa 5i25 with a 7i77. I was using the analog output to provide the 0-10 volts. If more info is needed please try to explain so a newbie can understand. I will try my best to get you what you require.
Thank you guys for the help.
Please Log in or Create an account to join the conversation.
13 Sep 2013 17:12 #38759
by andypugh
It's not a KBIC then, as you are still typing.
Replied by andypugh on topic +-10 volt spindle?
I will have to look. prob not the smartest but i held the wires to the battery with my fingers
It's not a KBIC then, as you are still typing.
Please Log in or Create an account to join the conversation.
13 Sep 2013 17:22 - 13 Sep 2013 21:49 #38760
by andypugh
From the hardware point of view this is very easy. However it may be that PNCConf doesn't know how to configure this.
If you look at the motion.spindle-speed-out HAL pin then you will see that it has negative values for anticlockwise rotation. In fact you quite often have to add an "abs" component to get round this.This means that, when connected to the Mesa card pwmgen component and the 7i77 you will automatically get negative and positive voltages.
You need to connect the motion.spindle-speed-out pin in HAL to the hm2_5i25.0.pwmgen.05.value pin (I am guessing the pin name here, you will need to check)
The pwmgen output-type needs to be set in mode 2 I think (up / down mode) www.linuxcnc.org/docs/html/man/man9/hostmot2.9.html#pwmgen
setp hm2_5i25.0.pwmgen.05.output-type 2
Replied by andypugh on topic +-10 volt spindle?
So the spindle drive works like a typical servo drive.Here is what I have. Its a DC spindle drive. It has a enable pin that basically turns the spindle drive on and an analog input that excepts -10 through +10 volts. Everything from 0 to -10 is reverse and everything from 0 to +10 is forward. 0 volts = brake +10volts = 3450RPM
And you have a servo drive card.I am using a mesa 5i25 with a 7i77.
From the hardware point of view this is very easy. However it may be that PNCConf doesn't know how to configure this.
If you look at the motion.spindle-speed-out HAL pin then you will see that it has negative values for anticlockwise rotation. In fact you quite often have to add an "abs" component to get round this.
You need to connect the motion.spindle-speed-out pin in HAL to the hm2_5i25.0.pwmgen.05.value pin (I am guessing the pin name here, you will need to check)
The pwmgen output-type needs to be set in mode 2 I think (up / down mode) www.linuxcnc.org/docs/html/man/man9/hostmot2.9.html#pwmgen
setp hm2_5i25.0.pwmgen.05.output-type 2
Last edit: 13 Sep 2013 21:49 by andypugh. Reason: Wrong info
The following user(s) said Thank You: DaOne
Please Log in or Create an account to join the conversation.
13 Sep 2013 21:13 - 13 Sep 2013 21:19 #38765
by PCW
Replied by PCW on topic +-10 volt spindle?
The 7i77 has no direct PWM so its analog pins are named analogoutN-XXX
This example hal boilerplate is probably close to what pncconf has created (but with different net names)
Since motion.spindle-speed-out is scale in RPM, you want to set the scaling and range of the spindle output to match the drives scaling of voltage to RPM:
setp hm2_5i25.0.7i77.0.1.analogout5-maxlim 3450
setp hm2_5i25.0.7i77.0.1.analogout5-minlim -3450
setp hm2_5i25.0.7i77.0.1.analogout5-maxscale 3450
net spindle_speed hm2_5i25.0.7i77.0.1.analogout5 motion.spindle-speed-out
net spindle_enable hm2_5i25.0.7i77.0.1.spinena motion.spindle-on
This example hal boilerplate is probably close to what pncconf has created (but with different net names)
Since motion.spindle-speed-out is scale in RPM, you want to set the scaling and range of the spindle output to match the drives scaling of voltage to RPM:
setp hm2_5i25.0.7i77.0.1.analogout5-maxlim 3450
setp hm2_5i25.0.7i77.0.1.analogout5-minlim -3450
setp hm2_5i25.0.7i77.0.1.analogout5-maxscale 3450
net spindle_speed hm2_5i25.0.7i77.0.1.analogout5 motion.spindle-speed-out
net spindle_enable hm2_5i25.0.7i77.0.1.spinena motion.spindle-on
Last edit: 13 Sep 2013 21:19 by PCW.
The following user(s) said Thank You: DaOne
Please Log in or Create an account to join the conversation.
13 Sep 2013 22:36 #38769
by DaOne
Replied by DaOne on topic +-10 volt spindle?
The thing I am still missing is how to tie the "spindle-fwd motion.spindle-forward" and "spindle-rev motion.spindle-reverse" signals to make the forward/ reverse work? Or is this not really needed?
Please Log in or Create an account to join the conversation.
13 Sep 2013 22:43 #38770
by PCW
Replied by PCW on topic +-10 volt spindle?
Not needed as the motion.spindle-speed-out rpm will be a signed number already
Please Log in or Create an account to join the conversation.
13 Sep 2013 22:54 #38771
by andypugh
It isn't needed. The spindle speed is a signed number.
For reference, if you _did_ want to make an unsigned number into an unsigned number, you could use a "mux2" HAL component controlled by spindle-reverse to change the scale factor of a "gain" component between +1 and -1.
Replied by andypugh on topic +-10 volt spindle?
The thing I am still missing is how to tie the "spindle-fwd motion.spindle-forward" and "spindle-rev motion.spindle-reverse" signals to make the forward/ reverse work? Or is this not really needed?
It isn't needed. The spindle speed is a signed number.
For reference, if you _did_ want to make an unsigned number into an unsigned number, you could use a "mux2" HAL component controlled by spindle-reverse to change the scale factor of a "gain" component between +1 and -1.
Please Log in or Create an account to join the conversation.
Time to create page: 0.135 seconds