172 EZMotion User/Programming Guide
www.controltechniques.com Revision: A8
Figure 174: Multitasking Flow Chart
9.11.1 Program Math Functions
Cos
This trig function can be used in formulas from within a program.
Example:
var.var0 = Cos(var.var1)
Returns the trigonometric cosine in degrees. Cos(x) x is in degrees and accurate to 6 decimal places.
Sin
This trig function can be used in formulas from within a program.
Example:
var.var0 = Sin(var.var1)
Returns the trigonometric sine in degrees. Sin(x) x is in degrees and accurate to 6 decimal places.
Tan
This trig function can be used in formulas from within a program.
Example:
var.var0 =Tan(var.var1)
Returns the trigonometric tangent in degrees. Tan(x) x is in degrees and accurate to 6 decimal places.
ArcCos
This trig function can be used in formulas from within a program.
Example:
var.var0 = ArcCos(var.var1)
Returns the trigonometric ArcCos in degrees. The ArcCosine is the angle whose cosine is the given number.
t = 0
Control Loop
Update
Message(s)
Waiting?
End Of
Update?
Task
Blocked?
Process
Message(s)
Process
Task
Switch to
Next Task
Switch to
Next Task
Yes
No
Yes
No
No
Yes