Rockwell Automation 5370-CVIM2 Module User Manual
Page 359
![background image](/manuals/580351/359/background.png)
5
Chapter
Chapter 7
Inspection Tools
7–121
asin –– The “
asin
” (arc sine) function calculates an arc sine (angle) on the
basis of the sine value that you enter after the opening parenthesis. Thus, if
you enter
asin(.707)
as a standalone formula, and then pick the
Nominal
field in the tool edit panel,
44.991
(the arc sine of 0.707) will appear in the
Nominal
field. Similarly, if you enter
asin(–.707)
,
–44.991
will appear.
Note that the acceptable range of arc sine values is 0.0 to
"1.0. If you enter
a value greater than 1.0, the
Nomina
l field will display an “
Out of domain.
”
message box, which indicates that the value cannot be used.
cos –– The “
cos
” (cosine) function calculates the cosine of the angle that
you enter after the opening parenthesis. Thus, if you enter
cos(60)
as a
standalone formula, and then pick the
Nominal
field in the tool edit panel,
0.500
(the cosine of 60
°) will appear in the
Nominal
field.
Here are some examples that illustrate cosine function results for other
angles:
•
cos(120) = –0.500
•
cos(240) = –0.500
•
cos(300) = 0.500
In a typical application, the cosine function would likely be used to express
the cosine of an angle returned from a tool operation, such as this:
cos({Tool1.Theta})
acos –– The “
acos
” (arc cosine) function calculates the arc cosine (angle) on
the basis of the cosine value that you enter after the opening parenthesis.
Thus, if you enter
acos(.5)
as a standalone formula, and then pick the
Nominal
field in the tool edit panel,
60.000
(the arc cosine of 0.500) will
appear in the
Nominal
field. Similarly, if you enter
acos(–.5)
,
120.000
will
appear.
Note that the acceptable range of arc cosine values is 0.0 to
"1.0. If you
enter a value greater than 1.0, the
Nomina
l field will display an “
Out of
domain.
” message box, which indicates that the value cannot be used.
tan –– The “
tan
” (tangent) function calculates the tangent of the angle that
you enter after the opening parenthesis. Thus, if you enter
tan(30)
as a
standalone formula, and then pick the
Nominal
field in the tool edit panel,
0.577
(the tangent of 30
°) will appear in the
Nominal
field.
Here are some examples that illustrate tangent function results for other
angles:
•
tan(90) = 353013952228677
•
tan(180) = –0.000
In a typical application, the tangent function would likely be used to express
the tangent of an angle returned from a tool operation, such as this:
tan({Tool1.Theta})