[ Vfdmod ] An easy VFD control over MODBUS RTU

More
25 Aug 2021 19:53 #218731 by iforce2d
My HAL had this:

net spindle-cmd-rpm => vfdmod.spindle.rpm-in
net spindle-at-speed <= vfdmod.spindle.at-speed
net spindle-cw => vfdmod.control.run-forward
net spindle-ccw => vfdmod.control.run-reverse

With your suggestion I got this result:
./custom.hal:11: Pin 'spindle.0.forward' does not exist

Thanks for the tip though, because now that you pointed out HAL connections as a possible problem, I noticed that the main .hal file had no matching pins called 'spindle-cw' or 'spindle-ccw'. There were only 'spindle-cmd-rpm' and 'spindle-at-speed' as generated by the stepconf wizard. I added connections like this:

net spindle-cw        => motion.spindle-forward
net spindle-ccw        => motion.spindle-reverse

After this when I click on the forward/reverse buttons I can see the correct values being set in the VFD registers. Everything looks good on the software side now, but..... motor doesn't turn. I wonder if there is some other message that needs to be sent when controlling via the port of the LCD panel. Looks like I will be spending some time with the logic analyzer....

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

More
26 Aug 2021 19:12 #218825 by iforce2d
(YL620 again) I spent a long time watching the traffic between the LCD panel and the VFD, and found that the panel basically relays the state of the buttons and dial to the VFD, and the VFD tells the panel which LEDs should be lit, and the target frequency. After this I reconnected my USB/RS485 connector and imitated the panel. All messages and replies are exactly the same, but..... the motor never starts.

After two and a half days of continuous struggle and failure I've had just about enough, so I will be giving up and using PWM control instead. Overall I like this vfdmod though, very nice to use.

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

More
31 Aug 2021 13:58 #219248 by pinsyd1
I notice  aekhv hasn't replied to this forum in many months, is this still the official forum for english support, or is this dead (I really hope not)?  I'd like to add functionality to this code (to support Bosch Rexroth VFD) but I'd like to know how to setup the dev environment on a stock linuxcnc build so I can compile.  It looks like QT and some other things are needed but I haven't got it compile in it's stock form.

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

More
01 Oct 2021 12:57 #221949 by aekhv

I'd like to add functionality to this code (to support Bosch Rexroth VFD) but I'd like to know how to setup the dev environment on a stock linuxcnc build so I can compile.  It looks like QT and some other things are needed but I haven't got it compile in it's stock form.


All you need is Qt4/Qt5 and LinuxCNC sources. When Qt is installed, run Qt Creator and open the project ("vfdmod.pro" file).
The following user(s) said Thank You: Roguish

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

Time to create page: 0.064 seconds
Powered by Kunena Forum