7i92t and 5 axis bob no 0-10v on spindle
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18122
- Thank you received: 5337
05 Feb 2024 11:43 #292536
by PCW
Replied by PCW on topic 7i92t and 5 axis bob no 0-10v on spindle
The PWM will be routed to the correct pin if firmware designed for the
BOB you are using is installed...
BOB you are using is installed...
Please Log in or Create an account to join the conversation.
- 0jw
- Offline
- Premium Member
-
Less
More
- Posts: 98
- Thank you received: 0
05 Feb 2024 16:53 #292588
by 0jw
Replied by 0jw on topic 7i92t and 5 axis bob no 0-10v on spindle
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.
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 or Create an account to join the conversation.
- 0jw
- Offline
- Premium Member
-
Less
More
- Posts: 98
- Thank you received: 0
06 Feb 2024 05:01 #292639
by 0jw
Replied by 0jw on topic 7i92t and 5 axis bob no 0-10v on spindle
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 or Create an account to join the conversation.
- 0jw
- Offline
- Premium Member
-
Less
More
- Posts: 98
- Thank you received: 0
06 Feb 2024 07:08 #292644
by 0jw
Replied by 0jw on topic 7i92t and 5 axis bob no 0-10v on spindle
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 or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18122
- Thank you received: 5337
06 Feb 2024 09:11 #292660
by PCW
Replied by PCW on topic 7i92t and 5 axis bob no 0-10v on spindle
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
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 or Create an account to join the conversation.
- 0jw
- Offline
- Premium Member
-
Less
More
- Posts: 98
- Thank you received: 0
06 Feb 2024 11:23 #292668
by 0jw
Replied by 0jw on topic 7i92t and 5 axis bob no 0-10v on spindle
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
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 or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18122
- Thank you received: 5337
06 Feb 2024 11:36 #292670
by PCW
Replied by PCW on topic 7i92t and 5 axis bob no 0-10v on spindle
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
type this command in a terminal and post the results here:
halcmd show all spin
Please Log in or Create an account to join the conversation.
- 0jw
- Offline
- Premium Member
-
Less
More
- Posts: 98
- Thank you received: 0
06 Feb 2024 12:07 - 06 Feb 2024 12:08 #292673
by 0jw
Replied by 0jw on topic 7i92t and 5 axis bob no 0-10v on spindle
ok, this is what i get from terminal.
Last edit: 06 Feb 2024 12:08 by 0jw.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18122
- Thank you received: 5337
06 Feb 2024 13:57 - 06 Feb 2024 15:05 #292681
by PCW
Replied by PCW on topic 7i92t and 5 axis bob no 0-10v on spindle
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.
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.
Last edit: 06 Feb 2024 15:05 by PCW. Reason: reorganize
Please Log in or Create an account to join the conversation.
- 0jw
- Offline
- Premium Member
-
Less
More
- Posts: 98
- Thank you received: 0
06 Feb 2024 20:44 #292712
by 0jw
Replied by 0jw on topic 7i92t and 5 axis bob no 0-10v on spindle
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
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 or Create an account to join the conversation.
Time to create page: 0.141 seconds