HY_VFD RS-485 HAL config

More
09 Jul 2025 17:19 #331587 by scsmith1451
Replied by scsmith1451 on topic HY_VFD RS-485 HAL config
Spoke too soon.

After verifying the VFD parameters and the loadusr arguments to insure matches, I was able to issue a M3 S6000. The spindle enable relay activated and the spindle ramped up to 6000. However, M5 did nothing and I had to stop the spindle with the VFD control panel.

Next I tried to rerun the M3 S6000 command. I heard the relay activate, but the VFD did not respond. I shut down and restarted LCNC this time it failed to restart complaining that about not being able to communicate with the VFD. Checking dmesg I found that the dongle had migrated from ttyUSB0 to ttyUSB1? I updated the custom.hal and restarted LCNC without issue. This time I issued a M3 S10000 which worked perfectly. but again M5 was ignored.

I've now gone through this sequence several time and each time the VFD starts at the requested speed, then fails to stop. Each time the dongle migrates to a different ttyUSB1/2 port. The last time I issued a start command I noticed that the pyVCP display did not show the speed nor at speed and as I was monitoring the display I saw the OS notify that the dongle had again reattached at a different port.

At this point I'm confident that I can communicate via hy_vfd to VFD, but I'm frustrated that the dongle keeps toggling between ports on its own. Any ideas what is going on and how to resolve the issue?

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

More
09 Jul 2025 19:12 #331589 by PCW
Replied by PCW on topic HY_VFD RS-485 HAL config
Just guessing that the port migration is because USB communications were
lost due to EMI as soon as the VFD started.

Does the VFD have a line filter?

I would keep the USB cable as short as possible and try wiring the RS-485 connection
through a common mode choke (a large ferrite bead)

Also check the VFD frame grounding

VFDs radiate EMI like a radio station, and USB is typically quite poor
in EMI resistance.

 

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

Time to create page: 0.099 seconds
Powered by Kunena Forum