LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling a frequency inverter in Labview

Solved!
Go to solution

Hi guys,
I am working on a project where I have to implement a frequency inverter in Labview.

Some background: The frequency inverter is used to control some parameters of a pump like the RPM and the pressure of the pump and my goal is to implement that in Labview instead of using the frequency inverter device. Firstly I am confused about the hardware stuff and the equipment I should use for connecting the Frequency inverter with Labview, I was asked to look for compactDAQ to connect it to . Is it the best way to connect them together?

I have read in the operating manual of the frequency inverter that it supports Modbus RTU connection but I am not sure how that works.
I would be thankful if someone could give me some idea how to get started.

The frequency inverter used is Vertimo E and here's a link for the operating manual: https://www.kostal-industrie-elektrik.com/en-gb/downloads/downloadmanager#Drive%20technology/VERTIMO...

0 Kudos
Message 1 of 6
(3,338 Views)

Hi Amr,

 

Modbus/RTU uses a serial communication port, most often RS232. You can use VISA functions and implement the protocol on your own - or use one of those modbus libraries in VIPM...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(3,303 Views)

I am still trying to get my head around the whole process so please bear with me.

 

Is the compactDAQ an alternative to this Modbus RTU connection then? if yes, which one should I go for and based on what?

0 Kudos
Message 3 of 6
(3,294 Views)

Hi amr,

 

why do you want to replace a simple serial port with a full cDAQ device?

 

Modbus is just a protocol which encodes a certain message format and provides a certain way to read/write registers/values/parameters in your device. It's really simple once you use one of those free available modbus libraries (and read the manual of your inverter)...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 6
(3,266 Views)

I discussed the Modbus way of doing the VFD in Labview with my boss but he thought it might be too complicated for the user and the programmer as normal workers will have to use it, is that right? he doesn't have experience in Labview so I don't think he knows what he is talking about. I believe if there's any complexity it would be for the programmer (me).

Secondly, I would like to ask about what does  API  mean. I googled it and saw a LabVIEW tutorial but I am not sure what is the goal there or where I could get started with it. I was told that I have to write an API if I want to use the Modbus method and that it takes time.

 

Thirdly, I downloaded the Modbus library and there's only two examples. A Modbus master example and a Modbus slave example. I am not sure how do I get access to each feature using this way. Well I know that the modbus is just a protocol which encodes a certain message format and provides a certain way to read/write registers/values/parameters in your device and I read the manual and saw that each feature has a certain register number but how could I implement this, is the question.

0 Kudos
Message 5 of 6
(3,205 Views)
Solution
Accepted by topic author Amr95

Yep, your boss doesn't know what he's talking about.  The user wouldn't know any difference whether you used Modbus or another method which would probably be using a data acquisition card to output voltages to the control inputs on the device's control board.

 

API is Application Programming Interface.

 

Your VFD would be a slave device, so in order to control it, you need to create a Modbus Master on your PC.  So look at the Master example.  You basically write a command and read back a response.  The library VI formats the command and interprets the response for you.

 

So if you want to read the current in the drive, you read that register.  Probably is a Read Holding Register function.  If you want to change the frequency, you would Write Holding Register sending a value to that frequency registers.  You can start and stop the drive.  But make sure you understand how the drive works, even if you were using old fashioned speed pot and push button mode.  You may have to hard wire in some control wires.  (Definitely make sure you have a hard-wired E-Stop button so you can hit it and shut the drive down in the event that you lose control of it through software.)  There may be some registers you have to set in the drive to enable Modbus commands and the ability to start and control the drive through software.

 

You should also look at http://www.modbus.org/tech.php

 

Start small and just use the Modbus Master example to do something simple to read a single register.

0 Kudos
Message 6 of 6
(3,190 Views)