Inverse spindle speed at Mesa 5i20 + 7i47S?

More
13 Dec 2012 02:35 - 13 Dec 2012 02:38 #27642 by machete
Hello!

I am trying to setup Mesa 5i20 + 7i47S + VFD (0-10V) for 2.2Kw spindle 2000rpm.
(with my personal firmware )
on LinuxCNC 2.5.1.

It working fine except spindle speed - it is "inverted":
when i execute in MDI: M3 S300 i recive aproximately 1700rpm
when M3 S1700 it is about 300rpm.

Here is full table:
MDI comandhm2_5i20.0.pwmgen.04.valueLED on 7i47SVolgage on VFD from 7i47SApproximately spindle speed shown by VFD
M3S15001500dim3.35680
M3S500500bright8.491753
M3S18001800dim1.74340
M3S300300bright9.521966


hal:
Warning: Spoiler!


.ini

Warning: Spoiler!
Last edit: 13 Dec 2012 02:38 by machete.

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

More
13 Dec 2012 03:12 - 13 Dec 2012 03:45 #27647 by PCW
The PWM signal for the 7I47S is active low so the PWM output pin needs to be inverted.

Something like:

setp hm2_5i20.0.gpio.019.invert_output true

(with the 019 changed to whatever GPIO pin is appropriate for your custom configuration)
Last edit: 13 Dec 2012 03:45 by PCW.

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

More
20 Dec 2012 00:18 #27871 by machete
Thank you!
It works!

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

Time to create page: 0.083 seconds
Powered by Kunena Forum