Welcome, Guest
Messages posted to this category need to be reviewed by the moderator before it gets posted.

TOPIC: There is a library of mathematics functions for the SmartMotors?

There is a library of mathematics functions for the SmartMotors? 6 years 10 months ago #384

  • davcast
  • davcast's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
Hi, I am trying to program the signal: sin(x). Then i'd like to know if there is a library with mathematics functions. If there isn`t what is the way to mahe this. I want to put the motor to dance. I am working in a laboratory of vibrations and thats it...


Plase tell me or give an idea to make this.
The administrator has disabled public write access.

Re: There is a library of mathematics functions for the SmartMotors? 6 years 10 months ago #387

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
The following Math functions are available with the Class5 Smartmotor.

FSQRT(x) Floating Point Square Root(x=float where x >= 0)
FABS(x) Floating Point Absolute Value (x = float)
SIN(x) Floating Point Sine (x = float in degrees)
COS(x) Floating Point Cosine (x = float in degrees)
TAN(x) Floating Point Tangent (x = float in degrees)
ASIN(x) Floating Point Arc Sine in degrees on [-90,90],(x = float on the interval [-1,1])
ACOS(x) Floating Point Arc Cosine in degrees on [0,180],(x = float on the interval [-1,1])
ATAN(x) Floating Point Arc Tangent in degrees on [-90,90] ,(x = float)
PI Floating Point representation of PI = 3.14159265359…
Last Edit: 6 years 10 months ago by csearcy.
The administrator has disabled public write access.

Re: There is a library of mathematics functions for the SmartMotors? 6 years 10 months ago #390

  • davcast
  • davcast's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
Hi, can you write an example where i can see the way to use that functions, and other thing, tell me where did you find that functions, that will be useful
The administrator has disabled public write access.

Re: There is a library of mathematics functions for the SmartMotors? 6 years 10 months ago #391

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
The an example of the usage for the SIN function would be as follows...

p=SIN(af[0])*af[1]

All of the Math functions are listed in the Class 5 users manual... available at
www.animatics.com/support/animatics-catalog.html
The administrator has disabled public write access.

Re: There is a library of mathematics functions for the SmartMotors? 6 years 10 months ago #392

  • davcast
  • davcast's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
Hi,

I got a SmartMotor witrh the next description:

Model: SM2337D (That´s it)
Version: 4.15c

I don´t what is the class of my smartmotor. Can you tell me how to get that information???

Thanks for your time.
The administrator has disabled public write access.

Re: There is a library of mathematics functions for the SmartMotors? 6 years 10 months ago #396

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
The motor you have is a Class 4 motor. You can tell the difference between Class 4 and Class 5 by the firmware revision. Your motor firmware is 4.15. Any motors with firmware starting with 4 ...are Class 4 motors. All Class 5 motors will have a firmware revision that starts with 5.
The administrator has disabled public write access.
Time to create page: 0.241 seconds
Powered by Kunena Forum