LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write the velocity value in VISA write function ?

I am working on a project where, I need to control the motor motion using VISA (Labview) through USB port.

 

I have the command list to do so.

 

But now I don't have idea how to say motor to so motion at specific velocity.

 

For example: I have command such as  PR which performs relative motion, but I need to say to motor to perform the motion at specific speed.

 

I don't know how can I say via VISA to motor to perform motion at specific speed.

0 Kudos
Message 1 of 5
(2,133 Views)

Hi mi,

 


@mi1111 wrote:

I don't know how can I say via VISA to motor to perform motion at specific speed.


You need to read the programming manual of your motor driver. It should list all the supported commands…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,116 Views)

I went through the commands manual but I am not getting how to write command properly.

 

I need to do following steps

First set position mode to 5  (Command is UM)

Second to set motor on (command is MO)

Third is to Specify motion target position (PR)

fourth is to set the motion speed (SP)

fifth begin motion (BG)

 

I have programme in elmo language (From the manufacturer)

Looks like this are the same step what I described above.

But have no idea how to programme the same in labview, how to use write same command in labview (VISA) to perform the operation.

mi1111_0-1575284371066.png

 

I dont understand may because doing first time.

 

I have attached the command list ,for more information.

 

could you let me know how to write command at VISA write to do the same.

 

Thank you

0 Kudos
Message 3 of 5
(2,106 Views)

Try sending one command at a time and check if you get the status back.  ie., write and immediately readback for any reply from the terminal.

 

I referred this http://www.pk-rus.ru/fileadmin/download/man-g-usrpgm.pdf

 

Other ELMO related forum discussions are here

http://forums.ni.com/ni/board/message?board.id=170&message.id=303781&requireLogin=False

http://forums.ni.com/ni/board/message?board.id=140&message.id=28311&requireLogin=False

https://forums.ni.com/t5/Motion-Control-and-Motor-Drives/New-to-LabVIEW-and-using-Elmo-Motion-Contro...

 

I'm not sure if this drive directly accepts serial commands via RS232, might need to confirm this.  If so, then trying with VISA will be of no use..

--
Ajay MV


Message 4 of 5
(2,088 Views)

Hi,

 

I have both communication ports RS-232 and USB.

 

I talked with guy from Elmo he said I have to send same command for USB (UM=5) same as mentioned in commands list.

 

Your reply was helpful.

 

Thank you.

0 Kudos
Message 5 of 5
(2,079 Views)