Git Product home page Git Product logo

powerflex_write's Introduction

powerflex_write

Tool to write parameters to powerflex drives via the DSI port

Powerflex VFD's have a DSI port, which we can connect to using minimalmodbus and RS485 USB adapter. We'll take formatted flat files, get the parameter number and value, then write each parameter to the drive. You can quickly write many parameters to speed up drive commissioning. I usually use it to write only the IP Address, then do the rest in LogixDesigner.

Create a .vfd file for each drive to write to. The drive must start with the model number preceded by an asterisk. Then you list drive parameters with the following syntax:

Drive Parameter:Description:Value  

The description is only used for information. You can see the supplied VFD_Test.vfd file for an example of writing the IP address. Place the .vfd files in the output/ directory of the project, run the gui. The output directory doesn't exist by default, it is created when you first start the gui.

python gui.py

Select the com port for your USB adapter, click Write VFD Parameters. The first file will be read, you will get a prompt to plug into the drive. Plug in and press Ok, the parameters will write and you will be prompted when that drive is complete. You will then be prompted to plug into the next drive. Drives that complete writing every parameter will be moved to the completed directory. Drives that fail will remain so that they can be corrected.

Note: The "Generate VFD Files" was purpose written for our drive naming convention. This feature will find all I/O tree modules that start with "VFD" and generate a file with just the IP address settings in it. I generally use this tool to only write the IP address settings, then I load the reset of the parameters from Studio5000. In the future, I may add an entry so you can specify a prefix to search for.

Requirements

  • python 3
  • minimalmodbus
  • l5x
  • pyserial
  • RS485 USB adapter
  • AK-UO-RJ45-TB2P

The cable

I picked up a RS485 adapter from Amazon, one with 2 terminals attached to the USB to make it easier to wire up. I used Belden 9463 (DH+ cable) to wire the USB adapter to the 2 wire RJ45 connector. You might tin the wires, they can get brittle over time, some heat shrink helps too.

Acknowledgements

powerflex_write's People

Contributors

dmroeder avatar

Stargazers

alireza avatar

Watchers

 avatar

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.