12-02-2019 04:24 AM
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.
12-02-2019 04:50 AM
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…
12-02-2019 05:03 AM
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.
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
12-02-2019 06:15 AM
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
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..
12-02-2019 06:29 AM
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.