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

More
2 years 8 months ago #292525 by PCW
There is no pwm setup or pwm connections in the hal file

and the driver command line has "num_pwmgens=0"
The following user(s) said Thank You: 0jw

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

More
2 years 8 months ago #292527 by Aciera
Seems that you are missing the hal entries for the PWM output.
I'm not familiar with your particular mesa card/ firmware but I would have expected something like in this thread:
forum.linuxcnc.org/24-hal-components/387...tartup-solved#162724

Did you maybe miss the spindle setup in the pncconf tool?
The following user(s) said Thank You: 0jw

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

More
2 years 8 months ago #292528 by PCW
I suspect PWM 0 on P2 was not assigned to the spindle in pncconf

I get this:

loadrt hm2_eth board_ip="192.168.1.121" config="num_encoders=1 num_pwmgens=1 num_stepgens=5"
setp    [HMOT](CARD0).pwmgen.pwm_frequency 20000
setp    [HMOT](CARD0).pwmgen.pdm_frequency 6000000

And this further down:

# ---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

When I assign PWM 0 to spindle on the P2 tab
The following user(s) said Thank You: 0jw

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

More
2 years 8 months ago #292532 by 0jw
Oh I didn't realize I need a pwm generator in pncconf. In fact I had thought the exact opposite because I need 0-10v. Before in pncconf I had spindle cw on 000: and now I see I can set spindle pwm on 0: not sure it will goto pin 1 but I'll.

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

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 or Create an account 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 or Create an account to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum