7i92t and 5 axis bob no 0-10v on spindle

More
2 years 8 months ago #292536 by PCW
The PWM will be routed to the correct pin if firmware designed for the
BOB you are using is installed...

Please Log in to join the conversation.

More
2 years 8 months ago #292588 by 0jw
I'm relay not sure what's going on at this point. Different combinations of hashing out some lines at the bottom resulted in either the relay working or the voltage working but never both.
 I had a section from trying what was in the thread mentioned by Aciera and noticed it also had the line setp hm2_7i92.0.pwmgen.pwm_frequency so removed that section.The relay is working but I still have this spindle output voltage problem.
this is my current hal file.

Please Log in to join the conversation.

More
2 years 8 months ago #292639 by 0jw
I definitely overlooked the specs on the 7i92. I don't think with the 5 axis bob can do anything other than pwm. This vfd can not be run from pwm. So I probably need a pwm to anolog voltage converter board. Sorry for the confusion and thank you for helping me!

Please Log in to join the conversation.

More
2 years 8 months ago #292644 by 0jw
If anyone has any suggestions that would be awesome! I was wondering if I can just use an RC circuit to flatten the pwm. Although I think if that were possible people would be doing it. From what I've read the cheap pwm to 0-10v converters aren't linear. Maybe best option is a new vfd. At least linuxcnc can turn it on and off when needed.

Please Log in to join the conversation.

More
2 years 8 months ago #292660 by PCW
The 5ABOB  takes PWM from the parallel port and converts is to an analog voltage
Your latest hal file is missing the PWM generator setup  and connections:

# ---PWM Generator signals/setup---

setp   [HMOT](CARD0).pwmgen.00.output-type 1
setp   [HMOT](CARD0).pwmgen.00.scale  [SPINDLE_0]OUTPUT_SCALE


net spindle-output      => [HMOT](CARD0).pwmgen.00.value
net spindle-enable      => [HMOT](CARD0).pwmgen.00.enable

In addition you probably need to lower the PWM frequency to get decent linearity:setp hm2_7i92.0.pwmgen.pwm_frequency 1000

Please Log in to join the conversation.

More
2 years 8 months ago #292668 by 0jw
I've just made those changes. linuxcnc starts without errors but still no speed control.

setp hm2_7i92.0.pwmgen.00.output-type 1
setp hm2_7i92.0.pwmgen.00.scale 24000

net spindle-output => hm2_7i92.0.pwmgen.00.value
net spindle-enable => hm2_7i92.0.pwmgen.00.enable

Please Log in to join the conversation.

More
2 years 8 months ago #292670 by PCW
Start LinuxCNC, start the spindle at 1/2 speed (using MDI) and then
type this command in a terminal and post the results here:

halcmd show all spin

 

Please Log in to join the conversation.

More
2 years 8 months ago #292673 by 0jw
ok, this is what i get from terminal.

Please Log in to join the conversation.

More
2 years 8 months ago #292681 by PCW
OK that looks right (PWM Enable = true and PWM value = 1/2 of full scale)

What voltage do you get out of the analog out pin?

ISTR that the PWM --> analog circuit in these BOBs is quite slow,
so try including this statement in your hal file:

setp    [HMOT](CARD0).pwmgen.pwm_frequency 100

 In addition, the PWM on the BOB is active low so must be inverted
(just checked with one of those BOBs here) so you need:

setp    [HMOT](CARD0).pwmgen.00.out0.invert_output true

With these two settings, the analog output works for me

(0 to ~10V with 0 to full scale PWM)


100 Hz PWM frequency gives about 100 mV of worst case ripple.
You can reduce the ripple by increasing the PWM rate but this
will increase linearity errors.

Please Log in to join the conversation.

More
2 years 8 months ago #292712 by 0jw
With this line I get the error line not found.
Setp hm2_7i92.0.pwmgen.00.out0.invert_output true
I also tried
Setp hm2_7i92.0.pwmgen.00.invert_output true
Setp hm2_7i92.0.pwmgen.00.out0.output true
Setp hm2_7i92.0.pwmgen.00.output true
Setp hm2_7i92.0.pwmgen.000.out0.invert_output true

Please Log in to join the conversation.

Time to create page: 0.327 seconds
Powered by Kunena Forum