GithubHelp home page GithubHelp logo

aekhv / vfdmod Goto Github PK

View Code? Open in Web Editor NEW
18.0 7.0 7.0 555 KB

Vfdmod is a LinuxCNC user space component designed to control any VFD that supports standard MODBUS RTU protocol

License: GNU General Public License v3.0

C 9.90% C++ 89.17% QMake 0.93%
qt linuxcnc vfd modbus rs485

vfdmod's Introduction

About

Vfdmod is a LinuxCNC user space component designed to control any VFD that supports standard MODBUS RTU protocol.

Features

  • Setting command speed with MODBUS function codes 0x06 (write holding register) and 0x10 (write multiple holding registers).
  • Setting control word with MODBUS function codes 0x06, 0x10, 0x05 (write coil) and 0x0F (write multiple coils).
  • Reading any count of user defined parameters with MODBUS function codes 0x01 and 0x03.
  • Four types of user defined parameters are supported: bit, float, s32 and u32.
  • Built-in PyVcp generator.
  • RS485 connection state monitoring including total error count and last error code.
  • Auto reconnection attempts when USB-to-RS485 adapter was physically re-plugged.
  • Huanyang VFDs are not supported because they use non-standard MODBUS function codes.

Screenshots

Documentation

See vfdmod wiki: https://github.com/aekhv/vfdmod/wiki

Downloads

Latest DEB-packages: https://github.com/aekhv/vfdmod/releases

Support

English support forum: https://forum.linuxcnc.org/

Russian support forum: http://www.cnc-club.ru/

History

Vfdmod 0.3.2:

  • User defined HAL pins may be boolean (bit type):
    • Function code 0x01 (read coils) supported.
    • Function code 0x03 (read holding registers, used by default) may be used to get any single bit within returned 16-bit data.

Vfdmod 0.3.1:

  • Function codes 0x05 (write single coil) and 0x0F (write multiple coils) are supported.
  • PyVcp generator: fault reset button fixed.
  • Blank config file now includes all parameters and short description of each.

Vfdmod 0.3.0:

  • Reconnection feature added, it's useful when serial device has been re-attached.
  • Fault reset added.
  • Function codes 0x06 (write single register) and 0x10 (write multiple registers) are supported.

Vfdmod 0.2.0:

  • PyVcp generator added.

Vfdmod 0.1.0:

  • First release.

vfdmod's People

Contributors

aekhv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vfdmod's Issues

Howto install vfdmod

Hi, I didn't understand how to install vfdmod on my linuxcnc or linux system.

Could you please explain me?

mesa pktuart support

will be great instead of using the non realtime usb , to use the mesa card uarts that are real time and incl. digital filters.
this addition will be great.

Want to add 32 bit read/write functionality

Hello,

i am using a Folinn H1 vfd and it supports 32 bit register values. This is simply possible by only writing and reading two registers with the write and read multiple registers function code 0x03 and 0x10.
I want to add this feature to your library and because of that i have a question. I cant find any documentation about your used modbus lib, so i am right that the number 1 in this function "modbus_read_registers(ctx, mconfig.rpmOut.address, 1, &value)" specifies the amount of read registers (same with the write function)?
How you have compiled your lib?

Multiplier values, Divider only accepts integer values

My VDF is a Fuling model DZB280, to adjust the frequency I must divide the RPM by 2.4, but the program only allows integers, it would be possible to replace the Multiplier, Divider values with a floating type variable.

negative Speeds

Running an optidrive e3 4kw here.
Setting the speed on it requires a negative input to run backwards.
The way vfdmod is currently se up i cant do that.
minSpeedRPM needs to be allowed to be less than 0.
Can you change this please?

Any chance for a current ARM build for Raspberry Pi?

I tried the armhf .deb package, but it doesn't run on a Raspberry Pi:

pi@cnc:~/vfdmod-0.3.2 $ vfdmod 
vfdmod: error while loading shared libraries: libmodbus.so.5: wrong ELF class: ELFCLASS64
pi@cnc:~/vfdmod-0.3.2 $ 

(I also had to create a symlink using sudo ln -s /usr/lib/aarch64-linux-gnu/libmodbus.so.5 /usr/lib/libmodbus.so.5, otherwise it also couldn't work.)

Distro info:

pi@cnc:~/vfdmod-0.3.2 $ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 10 (buster)
Release:	10
Codename:	buster
pi@cnc:~/vfdmod-0.3.2 $ 

VFD connection using Modbus and Python language

Hello
I want to write a program using Python language to be able to set up a GD200 series into a drive using Modbus RTU communication protocol and send the hex code of the drive parameters. Can you guide me in creating this program?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.