LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control of AC Motor through VFD with Modbus communication via Labview

Solved!
Go to solution

Hi Alex,

 

mind to share your solution so others can benefit from it!?

Best regards,
GerdW


using LV2020 on Win8.1+cRIO
0 Kudos
Message 31 of 35
(145 Views)

Hello,

The idea was to understand both the VFD Manual and how Modbus works.

So as I said the VFD manual has the addresses in Hexadecimal, but you need only few of them.

What I changed was that I didnt put the 06H, because this is the <<Code>> to write the Modbus, but by having the ModBus <<Write Register Holding>> it do it automatically.

So inside the While Loop you just need to add the address to run the motor which for my case was 2000H and 0002H.

Again Thank you!!

-Alexis

0 Kudos
Message 32 of 35
(142 Views)

Dear GerdW,

I have another question, if its possible to answer. The VI that I created for the motor, I added it inside on another VI which is used to get data from sensors via a NI USB. 

 

There are now two while loops, one to get the data via NI USB and another which is to control the motor.

My problem is that when I am running the VI, I am not getting anymore the data from the sensors, and only the motor is working.

Also another issue is that I cant stop/abort the VI..

Any thoughts on that?

Regards,
Alexis

0 Kudos
Message 33 of 35
(117 Views)

Hi Alexis,

 


@Alexis_Koul wrote:

Any thoughts on that?


Sure: when your code does not work as per your requirements then your code implementation is most probably wrong!

Unfortunately you forgot to attach your code…

 

(I guess the main reason is you forgot to "THINK DATAFLOW!" - it's explained in the "starter" section of the LabVIEW help.)

Best regards,
GerdW


using LV2020 on Win8.1+cRIO
0 Kudos
Message 34 of 35
(114 Views)

Ok problem fixed.

Was not <<Think Dataflow>> issue.

-Alexis

0 Kudos
Message 35 of 35
(111 Views)