Welcome, Guest

TOPIC: Interfacing SM3430D with DSP

Interfacing SM3430D with DSP 7 years 7 months ago #129

I am using Animatics Smart Motor SM3430D-PLS2. And Interfacing it with ezDSP TMS320F2808. The problem is that when request for velocity feedback is given to the motor, the motor sends variable array data to the DSP through RS232, and the size of the array depends upon the speed/velocity of the motor. If velocity is zero it sends two bytes, if velocity is between 1 and 10 it sends 5 bytes and so on. and remember that it sends 13(0x0D) in the last as a terminator byte. The problem is on DSP side, in which number of receive bytes should be fixed. so when variable number of bytes comes on its serial port, it gives time out error. So, anyone of you, please help me regarding this problem. As I am displaying this speed on LCD.
The administrator has disabled public write access.

Re: Interfacing SM3430D with DSP 7 years 7 months ago #130

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
The value returned from the RV (Report Velocity) command is not fixed length. The termination character 13(0x0D) must be used to determine that the response is complete.
The administrator has disabled public write access.
Time to create page: 0.216 seconds
Powered by Kunena Forum