05-15-2012 09:44 AM - edited 05-15-2012 09:45 AM
This is basic COMM setup, so in the second serial write, this is where you can put in specific velocity commands.
You can do a 3rd write by wiring another serial write box after some time delay, just write "X " via the ASCII string box to the device and the motor will stop.
Basic program that should get it spinning! Puts it in velocity mode, with the associated acceleration parameter. All the first commands I write it are in the manual. Any questions let me know. I use the smartmotor to run a torque driver, so I drive a load cell with the device. Lil sucker has helped me solve lots of engineering-$$$ problems for my company!
05-15-2012 02:56 PM
Thank you. I'm very new to this and am still unable to get it "spinning." Is there any sort of set up needed prior to running the program?
I've opened the program, went to the block diagram to change the COM location to COM5 (where it is located if I use the SmartMotor interface). No matter what commands I use in the second serial write, I don't get any errors, but nothing seems to happen. Is there any settings I need to change or something else that I'm missing?
I've tried even very simplistic code:
MV A=80 V=32212*5 G
But no luck.
Please help!
05-15-2012 04:25 PM
When you power up the motor, is the light red?
Then after you try to send it commands, does it go green?
Those eign() commands clear the locks, after that runs the lights go green, then it should be ready to take commands. Remember to put SPACES in-between commands and especially after the "G " command, remember that space!
Let me know, I was in your shoes a while back so I know how frustrating it is to do such a simple task with no results.
05-16-2012 04:44 PM - edited 05-16-2012 04:44 PM
Thank you so much. It was the space following the final G. I greatly appreciate your help.
08-13-2024 04:08 PM
This worked for me, Thanks!!