03-31-2011 11:20 AM
Hi,
At school we're trying to interface a SMI smartmotor trough LabVIEW.
We're using the "advanced Serial Write and Read" example vi to communicate with the stepper motor.
The data we send to the motor is build up like this:
A=100
V=-300000
P=10000
Where A stands for acceleration, V for velocity and P for position.
This way of working goes well as long as the position is smaller than 100000. As soon as we enter positions higher than 99999 the motor stops at position 99999.
We already tried to communicate with the motor via the standard software of SMI, and there it's possible to go to positions higher than 99999. So the problem is in LabVIEW I think.
My question is now if there is a solution for this problem? I'm only a beginner with LabVIEW, so I really don't know what the mistake could be...
The settings of the "advanced Serial Write and Read" vi are next ones:
-baud rate: 9600
-data bits: 8
-parity: none
-stop bits: 1.0
-flow control: none
-XON character: 11
-XOFF character: 13
-Input buffer size: 4096
-End write on termination character: true
-End read on termination Character: true
-termination character: A
-timout: 10000ms
Hopefully someone can help me on this...
Thanks in advance,
Gieljan
03-31-2011 11:50 AM
Did you put a probe on the string input to write to serial port? The problem could be in the way you are creating the string.
03-31-2011 12:11 PM
thanks for your quick response!
I've put a probe after the string creation and I see the string is created correctly.
I've added a screenshot in attachment.
Maybe it is another problem?
Gieljan
03-31-2011 12:16 PM
I have not worked with this particular smart motor but I would think there is a good chance that theare is a software limit of 99999 which is probably setable via a serial command as well.
03-31-2011 12:20 PM
a 30 sec search yields http://www.animatics.com/en/supports/knowledge-base/smartmotorkb/command-sets.html
there are inface software limits in the command set: SLD Disable software travel limits send this command and retry your move.
good luck
03-31-2011 12:29 PM
I'm not sure this will solve the problem because we only have this problem when we use LabVIEW...
If we use the standard software, wich is delivered with the motor, we don't have this problem...
Anyway I will try this when I'm at school again.
Thanks for the tip!
03-31-2011 12:32 PM
See Pauls reply. It is possible that the other software is configuring the motor differently.
03-31-2011 03:55 PM
Allright, I'll try this at school and report afterwards.
Thanks for the quick help!
Gieljan
04-01-2011 08:34 AM
If there is a software limit you can set this using
SLN and SLP (sets + and - limits). Many apps this is a good idea to use for safety (protect both motor and people) issues. You dont want to rely on a motor hw limit which can fail (and often does)