Rockwell Automation 5370-CVIM2 Module User Manual

Page 361

Advertising
background image

5

Chapter

Chapter 7

Inspection Tools

7–123

Figure 7.96 CVIM2 image: X and Y Values and Corresponding Angles for atan2

–20Y

+20X

–20X

+20Y

–20,20 = –45

°

–20,–20 = –135

°

20,–20 = +135

°

20,20 = +45

°

For an example of using the

atan2

function to find an angle in the image,

refer to the Math Tool Formula Examples section on page 7–137.

dgrs –– The “

dgrs

” (degrees) function converts radians to degrees on the

basis of the radian value that you enter after the opening parenthesis. Thus, if
you enter

dgrs(3.14159)

as a formula, and then pick the

Nominal

field in

the tool edit panel,

180.000

will appear in the

Nominal

field, indicating that

3.14159 radians was converted to 180.000 degrees.

rads –– The “

rads

” (radians) function converts degrees to radians on the

basis of the degree value that you enter after the opening parenthesis. Thus, if
you enter

rads(180)

as a formula, and then pick the

Nominal

field in the

tool edit panel,

3.142

will appear in the

Nominal

field, indicating that 180

degrees was converted to 3.142 radians.

Advertising