Emerson EZMotion User Manual page 185

Table of Contents

Advertisement

ArcSin
This trig function can be used in formulas from within a program.
Example:
var.var0 = ArcSin(var.var1)
Returns the trigonometric ArcSin in degrees. The ArcSin is the angle whose Sine is the given number.
ArcTan
This trig function can be used in formulas from within a program.
Example:
var.var0 = ArcTan(var.var1)
Returns the trigonometric ArcTan in degrees. The ArcTan is the angle whose Tan is the given number.
Modulus
Returns the remainder (Modulus) resulting when a numerator is divided by a denominator. The result has the same sign as the
denominator. The floating-point operators are NOT rounded to integers as would be in the Mod operator.
Examples:
Example 1: Modulus(5,1.4) Returns 0.8
Example 2: Modulus(5,-1.4) Returns -0.6
Example 3: Modulus(-5,1.4) Returns 0.6
Example 4: Modulus(-5,-1.4) Returns -0.8
The exact mathematical function for the Modulus function is as follows:
Modulus(x,y) = x - (FLOOR (x/y)) * y
Where FLOOR is defined as rounding the argument down to the next whole integer value towards negative infinity.
Example: FLOOR(-3.5715) = -4
The FLOOR function itself is not available to the user within a user program.
EZMotion User/Programming Guide
Revision A8
www.controltechniques.com
173

Advertisement

Table of Contents
loading

Table of Contents