Welcome, Guest
Username Password: Remember me
Messages posted to this category need to be reviewed by the moderator before it gets posted.
  • Page:
  • 1

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

There is a library of mathematics functions for the SmartMotors? 4 years, 8 months ago #384

  • davcast
  • OFFLINE
  • Posts: 13
  • 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.

Re: There is a library of mathematics functions for the SmartMotors? 4 years, 8 months ago #387

  • csearcy
  • OFFLINE
  • Posts: 480
  • 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: 4 years, 8 months ago by csearcy.

Re: There is a library of mathematics functions for the SmartMotors? 4 years, 8 months ago #390

  • davcast
  • OFFLINE
  • Posts: 13
  • 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

Re: There is a library of mathematics functions for the SmartMotors? 4 years, 8 months ago #391

  • csearcy
  • OFFLINE
  • Posts: 480
  • 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

Re: There is a library of mathematics functions for the SmartMotors? 4 years, 8 months ago #392

  • davcast
  • OFFLINE
  • Posts: 13
  • 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.

Re: There is a library of mathematics functions for the SmartMotors? 4 years, 8 months ago #396

  • csearcy
  • OFFLINE
  • Posts: 480
  • 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.
  • Page:
  • 1
Moderators: hsummer, csearcy
Time to create page: 0.48 seconds