Smart motor address...
 
Notifications
Clear all

Smart motor addressing /Retrieve serial number

4 Posts
1 Users
0 Reactions
33 K Views
(@stephcyl)
Posts: 2
New Member Guest
Topic starter
 

Hello,
I am writing a software to communicate with smart motor SM2315d via serial ports.
Am having problems using the software to determine number of motors connected to the port. At the moment, I can only address the motors based on the number of motors I know connected. How can I automatically detect and address them? In otherwords, I would like to know what the SMIEngine AddressMotorChain Sends to the ports so I can immitate same.
Another problem is this: How can I retrieve the motor's serial number from the port? I have checked all the parameters that can be retrieved by placing R infront of them but could'nt find the serial number amongst them.
Any help will be appreciated.
Regards,
Lucy.

 
Posted : 10/01/2011 6:00 am
(@csearcy)
Posts: 316
Reputable Member Guest
 

Hello,
I will answer the serial number question first.
The serial number and other data such as the motor type and firmware revision are stored in EEPROM. Attached is a program that will extract the data from EEPROM and print it to the Terminal window. [file name=411_Info_Please.sms size=7853] http://www.animatics.com/media/kunena/attachments/legacy/files/411_Info_Please.sms [/file]

 
Posted : 31/01/2011 2:35 pm
(@csearcy)
Posts: 316
Reputable Member Guest
 

A quick way to find out how many motors you have connected... and address them on a daisy chain.

Attached is a dialog between the SMI2 Terminal window and an unknown number of SmartMotors.

The Serial Data Analyzer can be opened to show the actual Hex code sent between the Terminal window and the motors (see attached zip/jpg).

0Z resets all motors to default

The string 0a=a+1 ECHO is sent until an echo is received.

0Ra reports variable "a" from each motor... last one first.

0b=5-a reverses the count for proper addressing.. (the value 5 must be derived by the host from the 0Ra response).

0ADDR=b sets the correct address for each motor found.

--Terminal Text follows--

0Z
0a=a+1 ECHO
0a=a+1 ECHO
0a=a+1 ECHO
0a=a+1 ECHO
a=a+1 ECHO <--this was the first echo
0Ra 2
3
4
0b=5-a
0Rb 3
2
1
0ADDR=b
1RSP 24576/495ch
2RSP 24576/495ch
3RSP 24576/477 [file name=QuickAddress.zip size=456331] http://www.animatics.com/media/kunena/attachments/legacy/files/QuickAddress.zip [/file]

 
Posted : 31/01/2011 7:25 pm
(@stephcyl)
Posts: 2
New Member Guest
Topic starter
 

Thanks a lot!

 
Posted : 13/02/2011 11:40 pm
Share: