Huanyang VFD - LinuxCNC 2.7.0 - Spindle speed

More
12 Oct 2015 10:44 #63709 by craigw
I need some help. I'm certain I must be overlooking something simple. Hopefully someone can point me in the right direction. I upgraded to 2.7.0 from 2.6.9. I made the appropriate changes in my ini and hal files. Everything I've tested works except the spindle speed. It's off by 8x. I command S100 and I get 800 RPM. S200=1600RPM S1875=15000RPM and so on. I'm using the Chinese 2.2KW spindle with the Huanyang VFD normally sold together controlled over a "modbus" interface.

I went back to 2.6.9 and restored config. All is well again. I went back to 2.7.0, speed is off again. I've searched all configs, and I don't appear to have any scaling commands. I do have a custom panel that displays RPM, and it agrees with what the VFD shows. I've gone through and double checked the VFD setting PD001-PD010, and PD143-PD144. Any ideas where I should look?

Thanks,
Craig

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

More
12 Oct 2015 13:04 - 12 Oct 2015 13:24 #63711 by Rick G
Last edit: 12 Oct 2015 13:24 by Rick G.

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

More
12 Oct 2015 19:49 #63718 by craigw
Yes, the required hal/ini file changes I mentioned were a result of the docs. I also went through that thread numerous times to verify my settings. Spindle control does work, it's just 8x expected value. Like this post fixed in the old driver www.cnczone.com/forums/phase-converters/...e-2.html#post1155764. The driver I was using with 2.6.9 was from post #101 of that thread by shadowbane.

Is this where the issue is at line 256? git.linuxcnc.org/gitweb?p=linuxcnc.git;a...60a53b00bb66;hb=HEAD

Comparing with alan_3301's fix, this seems to go back to the original way.

Rereading that last thread yet again, one thing I didn't try was setting PD144 back to 50. Right now it's at 3000, I think. I've slept since I last looked at it.

Thanks,
Craig

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

More
13 Oct 2015 10:35 #63731 by craigw
I set PD144 to 50, the max RPM I saw was 400 (8*50) with S24000.

I added -S 24000 in custom.hal as per the man page
loadusr -Wn spindle-vfd hy_vfd -n spindle-vfd -d /dev/ttyUSB0 -p none -r 38400 -s 1 -t 1 -S 24000
Then it goes to 8000 RPM with S10000. S2000=1600RPM S4000=3200 S8000=6400 S24000=19200
Crazy thing is it all worked correct with 2.6.9.

After two hours trying everything I can think of, I put everything back for 2.6 and installed 2.6.10. All is well.

I copied the hal and ini files from 2.6 and 2.7 into a common directory added extensions for 2.6 and 2.7 respectively, and diffed them.
The only differences were for the name changes/removed pins for the new driver, and removing the hm2 pet_watchdog which is no longer supported.

Any other suggestions as to what to look for/at, I'm game to reinstall 2.7.

Craig

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

More
19 Oct 2015 05:41 #63910 by craigw
Looks like it was indeed a bug. I see this in the changelog "hy-vfd: set P144 correctly"

I went and installed 2.7.1, and tried with my previous 2.7.1 config, and it's working perfectly now.

Thanks to the devs!

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

Time to create page: 0.154 seconds
Powered by Kunena Forum