[ Vfdmod ] An easy VFD control over MODBUS RTU

More
3 years 7 months ago #265835 by jasen
Very impresive. as can be used for ulmost every vfd.
The only thing i can suggest is to add the pktuart support for the mesa boards. in this way the vfd can be connected directly to the digital filtered uart of the mesa boards

Please Log in to join the conversation.

More
3 years 6 months ago #269335 by andypugh

Very impresive. as can be used for ulmost every vfd.
The only thing i can suggest is to add the pktuart support for the mesa boards. in this way the vfd can be connected directly to the digital filtered uart of the mesa boards
I found this post as I was writing the docs for a system that does exactly this. But I think that there is room for both. 

I am not clear, but has this component been submitted for inclusion in the LinuxCNC distribution?
 

Please Log in to join the conversation.

More
3 years 5 months ago #272032 by Dragonick

I've successfully used this to control a Folinn BD600 over MODBUS, and it should also apply to other Folinn (Fuling) models of VFDs. Unfortunately this model requires a reverse command to be sent using a negative percentage to the relative frequency command, which is something I'll try to figure out at a later stage.

Thanks @aekhv for this lovely bit of code!

Hope this information comes in handy for anyone using a Folinn VFD! :D

Here's the ini file I've used on Debian Bullseye with LinuxCNC 2.9 (default release packages work perfectly fine):


Code:
[Common] MaxSpeedRPM=24000 MinSpeedRPM=6000 ;AtSpeedThreshold=0.05 [RS485] SlaveAddress=1 SerialDevice=/dev/ttyUSB1 BaudRate=9600 LoopDelay=500 ProtocolDelay=6 ;IsConnectedDelay=10 ConnectionErrorList=110 ConnectionDelay=500 [Control] Address=0x1000 RunForwardValue=0x0001 RunReverseValue=0x0002 FaultResetValue=0x0007 StopValue=0x0006 [SpindleRpmIn] FunctionCode=0x06 Address=0x3000 Multiplier=10000 Divider=24000 [SpindleRpmOut] Address=0x3001 Multiplier=30 Divider=10 [freq-running] FunctionCode=0x03 Address=0x3001 PinType=float PinName=freq-running Divider=10 [bus-voltage] FunctionCode=0x03 Address=0x3002 PinType=float PinName=bus-voltage [output-voltage] FunctionCode=0x03 Address=0x3003 PinType=float PinName=output-voltage [output-current] FunctionCode=0x03 Address=0x3004 PinType=float PinName=output-current Divider=100 [output-torque] FunctionCode=0x03 Address=0x3006 PinType=float PinName=output-torque [run-speed] FunctionCode=0x03 Address=0x3007 PinType=float PinName=run-speed [spindle-load-speed] FunctionCode=0x03 Address=0x300F PinType=float PinName=spindle-load-speed [power-on-time] FunctionCode=0x03 Address=0x301A PinType=float PinName=power-on-time [spindle-run-time] FunctionCode=0x03 Address=0x301B PinType=float PinName=spindle-run-time [fault-code] FunctionCode=0x03 Address=0x8000 PinType=float PinName=fault-code And here's the files added to the custom.hal to make it work with the interface: [code]loadusr -W vfdmod bd600.ini --debug net spindle-vel-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
[/code]
Code:
[code]Hi, I also have a bd600 inverter and I used your configuration but I get this error. What am I doing wrong ?
[/code]

 

Attachment not found

Please Log in to join the conversation.

More
3 years 5 months ago #272053 by rodw
Did you install vfdmod per the instructions at the beginning of this thread?

Please Log in to join the conversation.

More
3 years 1 month ago #279733 by Markgonz
Hello friends, I started a thread looking for help but I figured I will ask here as well

My setup is a 7i96s running linux v2.9 pre, on an intel minipc.
 
I have been trying to control my spindle VFD( Omron MX2) with vfdmod and usb rs485 dongle, I was able to install vfdmod, but I have trouble understanding how to enter the correct values on the configuration file for the control of the address, spindle forward, etc I guess I would need to read the VFD manual to put the correct numbers but I haven't been able to find them so I did copy the values from someone else config I found here.
I have attached my vfdmod config file if someone can take a look.  

Attachment not found



The manual of my VFD is this one:  assets.omron.eu/downloads/manual/en/v3/i..._users_manual_en.pdf .  page 322 I think is where the modbus info is,

I also found this video where this guy sets up his lathe using vfdmod and shows what the process looks like, helpful but still some steps are missing


Thanks!
 

Please Log in to join the conversation.

More
3 years 1 month ago #279898 by reBrick
I am trying to get vfdmod working with a SoyanPower SVD-E VFD. I think I am finally making a little progress, but still having problems. I have attached a plethora of files including a debug log. Also, is this not compatible with gmoccapy? It appearsd the post gui is loading in a different order.

The parameters appear to be retrieved successfully (P00.00), but I am not having any luck with the other 0x03 and 0x06 function codes.

here is the manual : www.soyan-tech.com/Content/upload/PDF/20...-User-Manual-New.pdf


Edit: I have fixed the P00 registers and what I think is the register for setting frequency. The manual calls if 'Communication Setting Address' 2000 Communication setting range -10000 to 10000. Does that sound right?

Attachment not found


Attachment not found


Attachment not found


Attachment not found


Attachment not found

 

Attachment not found


Attachment not found

Please Log in to join the conversation.

More
2 years 11 months ago #286560 by ModuloFS
Hello, 

in case anybody is using a Folinn H1 (also sold as a EV50 series at stepperonline.com) here you may find my LCNC configuration: github.com/ModuloFS/LCNC_RatRig_KillerBee . Because this inverter can handle 32 bit values over modbus you have to set the parameter P01.47 to 1. So there you are able to reach the set value given in Parameter P02.90 to 100 % over communication with only 16 bits. I am going to add more documentation to my configuration later. If you have any questions feel free to ask! 

Please Log in to join the conversation.

More
2 years 9 months ago #290380 by COFHAL
Could you post your Ini file for the VFD, I have the same one and I haven't been able to configure the SpindleRpmin and out thing correctly.

Please Log in to join the conversation.

More
2 years 9 months ago #290383 by ModuloFS
I have the complete ini of my machine on github. Here you find the ini of the vfd:
github.com/ModuloFS/LCNC_RatRig_KillerBe...ee/vfd_h1_config.ini

Be aware of the P01.47 parameter in the vfd, because at the standard configuration you are not able to set the max output frequency with the 16 Bit register values.

Please Log in to join the conversation.

More
2 years 9 months ago #290385 by COFHAL
Dear s_volenszki 

Could you post your Ini file for the VFD, I have the same one and I haven't been able to configure the SpindleRpmin and out thing correctly.

Please Log in to join the conversation.

Time to create page: 0.170 seconds
Powered by Kunena Forum