Rockwell Automation 5370-CMPK Color CVIM Module MATH-PAK User Manual

Page 41

Advertising
background image

Chapter 4

Defining Formulas

4–26

Trigonometric operators:

SIN COS TAN

SIN

Calculates the sine value of the listed operand.
Assumes the operand to be a value (

q) stated in degrees.

COS

Calculates the cosine value of the listed operand.
Assumes the operand to be a value (

q) stated in degrees.

TAN

Calculates the tangent value of the listed operand.
Assumes the operand to be a value (

q) stated in degrees.

The tangent (

q) = sine (q) cosine (q).

Format / Usage: In general, enter and use the trigonometric operators in
formulas just as you would in writing an equation – place the trigonometric
operator in the formula – which provides the open parenthesis “(” – followed
by the operand, and then close the expression with the parenthesis “).”

Example usage: This formula yields the sine for the gage 2 result (

GAGE2

):

SIN(GAGE2)

Inverse trigonometric operators:

ARC SIN ARC COS ARC TAN

ARC SIN

(arcsine) Calculates the angle (

q) value (in degrees) of the

operand. Assumes the operand to be a sine value.

ARC COS

(arccosine) Calculates the angle (

q) value (in degrees) of

the operand. Assumes the operand to be a cosine value.

ARC TAN

(arctangent) Calculates the angle (

q) value (in degrees) of

the operand. Assumes the operand to be a tangent value.

Format / Usage: To enter an inverse trigonometric function, place the

ARC

operator in the formula immediately followed by the respective trigonometric
operator. Then enter the operand, followed by the “)” (close parenthesis).

Valid range: Operand values for arcsine and arccosine operators must be
between –1 and 1. Values beyond this range will provide a result of 0, and
the formula will fail.

Figure 4.10 Arcsine and arctangent operation results

–90

d

90

d

45

d

–45

d

0

d

Result (implied angle) is
always given as a value
between –90

°

and 90

°

(0 to –90

d

if sine < 0 )

(0 to 90

d

if sine > 0 )

Advertising