ni.com is currently experiencing issues.

Support teams are actively working on the resolution.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW+ASDA-B2 communication

Solved!
Go to solution

I am trying to communicate my servo drive (Model:ASDA-B2) with LabVIEW using Modbus communication i.e. Modbus Vis. As per manual of servo drive it has many parameters whose values can be changed which will help you to operate servo motor as per your requirement. Now in order to change values in these parameters, there are 32-bit addresses which are given in which you can give 16 or 8 bit hexadecimal values and decimal values depending upon parameters. For e.g. there is a parameter named "P1-01" which has a hex 32 bit address of "0102 0103"(this parameter selects the mode in which you want to run servo drive i.e. speed mode, position mode or a combination) and i give value as "0x0004" in order to run in speed mode. This is the second VI for which I have shared the pic below. Now in Modbus vi that i am using accepts only 16 bit address so what I did was I used "Write Multiple Holding Register.vi" in which my starting address is "0102" which in U16 format is 258 as per me and for value what i did was i wrote the value in two parts  first array element contains "00" part and other contains "04" part which in U16 format I deduced is "0" and "4" respectively. I am new to this type of communication and I may be not writing in a proper way. Kindly guide me how can write program for it. I am sharing the manual for the as well as code and error that I am receiving. 

0 Kudos
Message 1 of 3
(1,243 Views)

Hi Mudit,

We've found that using modbus to communicate to servo drives (Delta, Yaskawa, Mitsubishi, etc.) can be difficult to use.  Our company has a simple "one-cable solution" for LabVIEW users to control Delta ASDA-B2 motors.  Here's a demo video: https://youtu.be/vVT29MvLhtE.  This would give you full control over Delta drives without any problems.

 

BR

John

Add motion to LabVIEW in 30min or less - TENET EMotion
Finding it hard to source NI hardware? Try NI Trading Post

0 Kudos
Message 2 of 3
(1,203 Views)
Solution
Accepted by topic author Mudit099

I was able to communicate with my drive but I have a doubt I used Create Master.vi from master pallete of Modbus and then read and write vis from slave pallete of Modbus and then only it communicated with my drive. Why? 

0 Kudos
Message 3 of 3
(613 Views)