[ Vfdmod ] An easy VFD control over MODBUS RTU
04 Mar 2023 11:28 #265835
by jasen
Replied by jasen on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
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
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 or Create an account to join the conversation.
17 Apr 2023 22:07 #269335
by andypugh
I am not clear, but has this component been submitted for inclusion in the LinuxCNC distribution?
Replied by andypugh on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
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.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 am not clear, but has this component been submitted for inclusion in the LinuxCNC distribution?
Please Log in or Create an account to join the conversation.
23 May 2023 17:35 #272032
by Dragonick
[/code]
Replied by Dragonick on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
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!
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]Hi, I also have a bd600 inverter and I used your configuration but I get this error. What am I doing wrong ?
Attachments:
Please Log in or Create an account to join the conversation.
23 May 2023 19:36 #272053
by rodw
Replied by rodw on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
Did you install vfdmod per the instructions at the beginning of this thread?
Please Log in or Create an account to join the conversation.
03 Sep 2023 16:35 - 03 Sep 2023 17:21 #279733
by Markgonz
Replied by Markgonz on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
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.
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!
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.
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!
Attachments:
Last edit: 03 Sep 2023 17:21 by Markgonz.
Please Log in or Create an account to join the conversation.
04 Sep 2023 23:46 - 06 Sep 2023 00:21 #279898
by reBrick
Replied by reBrick on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
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?
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?
Attachments:
Last edit: 06 Sep 2023 00:21 by reBrick.
Please Log in or Create an account to join the conversation.
26 Nov 2023 16:58 #286560
by ModuloFS
Replied by ModuloFS on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
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!
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!
The following user(s) said Thank You: tommylight, rodw
Please Log in or Create an account to join the conversation.
10 Jan 2024 16:34 #290380
by COFHAL
Replied by COFHAL on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
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 or Create an account to join the conversation.
10 Jan 2024 17:04 #290383
by ModuloFS
Replied by ModuloFS on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
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.
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.
The following user(s) said Thank You: COFHAL
Please Log in or Create an account to join the conversation.
10 Jan 2024 17:23 - 10 Jan 2024 17:29 #290385
by COFHAL
Replied by COFHAL on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
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.
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.
Last edit: 10 Jan 2024 17:29 by COFHAL.
Please Log in or Create an account to join the conversation.
Time to create page: 0.124 seconds