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

More
2 years 8 months ago - 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.
Last edit: 2 years 8 months ago by PCW. Reason: reorganize

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

More
2 years 8 months ago #292726 by tommylight

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

More
2 years 8 months ago #292742 by PCW
Yes, you must pay attention to capitalization.

Here is the parameter on my setup:

 
 

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

More
2 years 8 months ago - 2 years 8 months ago #292758 by 0jw
I think the capital S just happened from using quick reply then go to edit. I don't see anything obvious that could be a case sensitive problem.
I've attached the recent hal file.
I'm out of town now so wont be able to make any progress on the machine for the next week.

hopefully I can take some time to learn more about programing hal.
but maybe id be better off trying to set up the machine using the mesa configuration tool v2.
Last edit: 2 years 8 months ago by 0jw.

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

More
2 years 8 months ago #292760 by PCW
Pncconf works for me that is it creates a working spindle configuration
The only thing it will not do is the inversion of the PWM output which
requires the:

setp hm2_7i92.0.pwmgen.00.out0.invert_output true
The following user(s) said Thank You: 0jw

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

Time to create page: 0.067 seconds
Powered by Kunena Forum