04-17-2012 06:04 PM
I need help with communicating with Animatics Smart Motors (stepper) via serial port (labview VISA). I can get communication to both motors and have them run together, and/or have serving motor run, but cannot get the other motor to run independently (daisy chain). Is anyone working with ANimatics SM23165D-DE motors and labview and can help me solve this problem?
04-18-2012 04:35 PM
Hi jacqui,
I am not sure if I understand the situation completely, can you please further elaborate (you can communicate to each motor but not when they are daisy chained?). It could be an issue with how you have everything connected. On the SM23165D product page under connections it seems you need specific cables to daisy chain them together. Do you have it set up and using the same cables as shown in the diagram?
SM23165D(Connections Tab)
http://www.animatics.com/products/smartmotor/animatics/nema-23-2300-series/sm23165d.html
Tim O
04-18-2012 05:18 PM
Hello Tim:
Thanks for the response, but the problem is solved. A character key with a hexidecimal number plus the command is needed to communicate with the motors independently.
06-26-2012 01:11 PM
I'm having problems with the same motor.
I can't even get my VI to communicate with the motor.
Would you be willing to share your VI?
If not, I would appreciate knowing what strings you sent the motor for:
Initialization (if any) and
Movement, (velocity, Acceleration and position)
I'm a newbie at RS232. But you probably figured that out already!
Thanks,
Bill
06-27-2012 11:34 AM
Hi Bill:
My motors are Animatics SM23165 D-DE and they are daisy chained so there is no hand shaking between them (Class 5 Motor without Combitronics).
In Labview, Go to Help-Find Examples-Hardware Input and Output- Serial- Andvanced Serial Write and Read.vi.
Set your parameters...termination character (D)...make sure all parameters match Animatics motor parameters.
Now you should be able to write commands to your motor. First clear flags: Put this command into Write text box..... EIGN(2) EIGN(3) ZS.......then .run vi
At this point, you could set velocity.........VT=#value .....for example VT=100000 (If you want to alter the velocity during a move add a G....for ex. VT=100000 G
position move is PT=#value.....acceleration is AT=#value. If your motors are in daisy chain and you want to communicate with one motor at a time, use \80 for both motors, use \81 for motor one, use \82 for motor 2.... for example ......\82PT=1000000 G......... or \81PT=400000 G........but you need to address the motors in SMI first, i.e. in the ADDR=1 .......... ADDR=2 .
You can find various motor commands on Animatics User Guide (PDF)
I hope this helps.
Jacqueline
06-27-2012 07:52 PM
Hi Bill:
Did you get your issue solved?
06-28-2012 06:19 AM
I haven't had a chance to try it yet.
I have too many other fires to put out right now.
I will let you know when I have it working. Thanks again for the help.
Bill
07-24-2012 01:56 PM
Hi Jacqueline,
I finally had time to get back to this.. (I'm using only one motor)
I still can't communicate to my motor.
I opened the Advanced Serial Write and Read.vi
Parameters:
Com 1
Baud 9600
Data bits 8
Parity none
Stop Bits 1.0
Flow Control none
Delay before read (ms) 5000
Termination Character D
End Write with Termination character? True
Command EIGN(2)
EIGN(3)
ZS
I also tried EIGN(W,0) ZS ( This was suggested by the Animatics people )
.
When I run the vi, I get a timeout error "Error -1073807339 occurred at visa read in advanced serial write and read."
The VISA driver/software has been installed.
The motor works fine when I use the Animatics software with the EIGN(W,0) ZS command. I was also able to control velocity and position using their software.
Any suggestions?
Thanks for your help. this is really driving me nuts.
Bill
07-25-2012 11:10 AM
Hi Bill:
I have had this problem, too. It seems if you initiate motors in Animatics SMI, then you can Write/Read in labview, i.e., turn SMI on and find motors...then close program. It should work.
In the program I am designing, I can get the motors to work without initiating the SMI motors...there is a trick to that, too. Here is my work number if you need to contact me: 1-800-991-1335 (PST)
08-21-2013 04:18 PM
Jacqueline,
I am using two SM34165DT smartmotors using the Animatics daisy chain. I've been able to address each motor and make them move in the way that I would like in the SMI software, but have not had much luck in Labview. I've configure the VISA parameters correctly (9600 baud, etc.). Now I would like to send a 'report position' command to each of the motors individually.
How would you do this?
\80RPA, \81RPA, \82RPA do not work. Is \80 (written as a string) going to be converted to hex 80 by the VISA Write block?
Please help. Thanks!
-Matt