Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 6 of 47

Bulletin 2803 VIM Vision Input Module User Manual: 4 - Staging Considerations for Vision Applications, pages 52 to 60

Pages 52 to 60 of 404, from Bulletin 2803 VIM Vision Input Module User Manual

The original document is the PDF (26 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Allen-Bradley 2803-VIM2

Page 52

Chapter 4-70

How $aLens Works

4

Staging Considerations for Vision Applications

Lens Aperture (F-stop) Settings

(continued) Figure 4.5 Control of Brightness and Depth of Field Using the F-stop

Aperture

More Depth of field

Higher F-stop setting -Aperture is smaller, decreasing brightness and increasing depth of field.

/ Aperture

Less Depth of field

Lower F-stop setting -Aperture is greater, increasing brightness and decreasing depth of field. Lens Section View

Selecting the Lens for Your Application

The following instructions aid you in the selection and setup of lenses to suit your applications. l

Determine the field of view (FOV) size requirement The FOV is the area that the camera “sees.” The FOV is rectangular in shape (see Figure 4.6); its width is greater (X 1.33) than its height (this is due to the 3:4 “aspect ratio” of the camera and monitor). In setting the FOV size, the FOV should be large enough to include all the workpiece features to be inspected, and to accomodate for positional variation of the workpiece during inspections. Beyond this, a margin of 20% should be added to the FOV. Also, in setting the FOV size, the FOV should not be so large that the features of interest cannot be distinguished clearly in the video monitor.

Page 53

Chapter

Staging Considerations

4 for Vision Applications 4-11

Selecting the Lens for Your Application (continued) Figure 4.6 Asaect

Ratio

3 :4 Aspect Ratio x=4 v.

-

(133% of Y) .,

Example FOV calculation: Suppose the features of interest on a carton are located on a 5 X 5 inch (127 X 127 mm) area. Suppose that the position variation is f 1 inch (25.4 mm) - or 2 inches (50.8 mm) -for both horizontal and vertical positioning. Approximate height of the FOV would be:

(5 in. + 2 in.) X 1.2 (20% margin) = 8.4 inches, or (127 mm + 50.8 mm) X 1.2 = 213.4 mm Approximate length of the FOV would be (since the length is greater ( X 1.33) than the height): 8.4 inches X 1.33 = 11.2 inches, or 213.4mm x 1.33 = 283.8mm. Thus the required FOV would approximately be 8.4 X 11.2 inches, or 213.4 X 283.8 mm (Note: Multiply the FOV by .75 when using a Cat. No. 2801-YD camera). l

Determine the Standoff Distance Determine your ideal camera and lens standoff (distance away) from the part. This is often dictated by a clearance requirement to stay out of the way of moving machinery or workpieces. Sometimes it is limited by available floor space or ceiling height, or by a requirement to shroud the workstage. It might also be the standoff distance that is simply the most convenient for setup and maintenance.

Page 54

Chapter 4- 12

4

Staging Considerations for Vision Applications

Note: The size of the FOV is determined by two factors: the type of lens, and the standoff distance. Generally, for a specific lens type, the greater the standoff, the larger the FOV.

Selecting the Lens for Your Application (continued)

l

Determine Accuracy Determine the accuracy to which the object must be measured.

l

Determine the Need for Extension Tubes Some lenses need an extension tube to focus at close distances. The extension tube is placed between the camera and lens. If an extension tube is needed at a given standoff, the length of the tube is listed in Table 4.A. Note: There are techniques for folding and enlarging the standoff distance. For example, the camera can view the workstage through a mirror or prism. This allows considerable freedom in camera placement and angle.

Using the Lens Selection Tables

Table 4.A can aid you in selecting the best lens for your application. The first column of the tables lists the height, then width, for FOVs. The second column gives the accuracy to which an object will be measured at each FOV. The third column gives the pixel size. You may use the table based upon a known FOV or a desired accuracy.

Lens Selection if FOV is Known

To use the lens selection table, if the FOV is known, use the first FOV (listed in the first column of the table) that is larger than the FOV required. On the right side of the table, the standoff distance for each lens is shown for each FOV.

Lens Selection if Accuracy is Known

To use the lens selection table if the desired accuracy of the measurement is known, find the desired accuracy listed in the second column of the table. The required FOV is listed in the first column, and the lens standoff distance is listed in the right columns.

Page 55

Chapter

4

Staging Considerations for Vision Applications 4-73

Lens and Camera

Set-up (continued) Table 4.A (continued on next page) Lens Selection Table ield of View’ in inches (millimeters)

leight --r-

Width

Desired Accuracy in inches (millimeters) deight

Pixel Size in inches (millimeters)

12.5mm Lens 2801 -NL2 in inches (millimeters)

25mm Lens 2801-NLl in inches (millimeters)

50mm Lens 2801-NL6 in inches (millimeters)

l05mm 2801 -NL4 in inches (millimeters)

Width t

Dist. :o Obj.

0.3

0.4

3.0039 0.004E

5.9

(8)

(10)

(0.1)

(226)

0.4

0.5

1.0051 0.006:

10.5

(10)

(13)

(0.13)

(267)

0.5

0.7

3.0063 0.007t

12 1

(13)

(17)

(0.16)

(307)

0.6

0.8

3.0078 0009:

13.7

(15)

(20)

(0.2)

(0.24)

(347)

(0.12)

(0.16)

(0.2)

0.8

1.1

0010

0012

16.9

(20)

(27)

(0.25)

(0.3)

(428)

0.016

1 .o

1.3

0.013

(25)

(34)

(0.33) (0.41)

20.0 (509)

1.2

1.6

0.016

0.019

23.2

(30)

(41)

I[0.41) (048)

(590)

1.5

2.0

0019

0.023

28.0

(38)

(51)

(0.48)

(0.58)

(711)

1.8

2.4

0023

0.028

32.8

(46)

(61)

(0.58)

(0.71)

(832)

2.1

2.8

0.027

0.033

37.5

(53)

(71)

(0.69)

(0.84)

(954)

2.4

3.2

0.031

0.038

42.3

(61)

(81)

(0.79)

(0.97)

(1075)

2.7

3.6

0.035

0.042

47.1

(69)

(91)

(0.89)

(1.07)

(1196)

3.0

4.0

0.039

0.047

(76)

(102)

(0.99)

(1.19)

3.5

4.7

0.045

0.055

(89)

(1.14) (119) -L

(1.4)

If you are iJsing a Catalo - A hyphen in a column ir

0.013

0.016

0.018

1Omm

None

None

None

None

None

None

None

None

None

None

None

59.9 (1520)

icates that the standoff distance is not possible with the specified lens.

40mm

51.9 (1317)

0.015

Extension

None

Page 56

Chapter 4- 14

4.

Staging Considerations for Vision Applications

Lens and Camera Set-up (continued) Table 4.A (continued) Lens Selection Table Geld of View*

Width

Pixel Size in inches (millimeters)

12.5mm Lens 2801-NL2 in inches (millimeters)

25mm Lens 2801-NLl in inches (millimeters)

50mm Lens 2801-NL6 in inches (millimeters)

55mm 2801NL3

Height

Dist. toObj.

Extension

Dist. toObj.

Extension

Dist. toObj.

sion

Dist. Dist. to Obj. toObj.

Extension

Dist. to Obj.

Extension

None

67.7 (,720)

None

None

75.7 (1923)

None

$2;)

None

Width

Exten-

60mm Lens 2801 -NL9 in inches (millimeters)

105mm 2801-NL4 in inches (millimeters)

0.062

0017

0021

8.1

(1.57)

(0.43)

(0 53)

(205)

0.5mm

(410)

None

(819)

None

35.5 (901)

0.070 (1 78)

0.019 (0.48)

0.023 (0 58)

9.0 (229)

0.5mm

18.0 (458)

None

(tti,

None

(1008)

0.079 (201)

0022 (0.56)

0026 (0.66)

10.0 (253)

0.5mm

19.9 (506)

None

(:091;: None

(;A3i8n,(;;i85) Ncne

0.086 (2 18)

0024 (0.61)

0029 (0 74)

10.9 (277)

21.8 (554)

52.3

None

43.6 (1708)

48.0

None

None

(1219)

(1329)

None

(2326)

None

None

:Bo-;)

None

(1204)

None

($t)

56.9 (1446)

None

99 6 (2530)

None

None

:89:)

None

(:35906) None

(%)

($6)

None

115.5 (2g34)

None

None

,li!j,", None

0.09

0026

0031

11.9

(2.4)

(066)

(0.79)

(273)

0.11

0.030

0036

13.7

(2.8)

(0.76)

(0.91)

(349)

16.1

32.2

39.7

47.4

(%-;) 43.3 (1099)

91.6

0.12

0.034

0041

15.6

(3.1)

(0.86)

(104)

(398)

None

($;I

None

(k",,

None

(l";fh'g, &I'S,

0.14 (3.6)

0039 (0.99)

0047 (1 19)

17.5 (446)

None

(%:)

None

(:%)

None

(:;f$)

(28fjzs) None

None

($,i)

None

(:f$)

(:$$

None

None c~~~~

None

None

(ii;:)

None

(6166)

0.15

0.043

0051

19.4

(3.9)

(1.09)

(1.30)

(494)

None

(986)

0.19 (4.8)

0052 (1.32)

0062 (1.57)

23.2 (590)

None

46.4 (1180)

None

(,9'p,, None

0.23 (5.9)

0064 (1 63)

0.078 (1 98)

28.9 (734)

127.2

138.7

None

(%:)

None

(2936)

None

(3230)

(3524)

None

(7.1) 0.28

(1.96) 0077

(2.39) 0.094

34.6 (878)

None

(14'55, None

(::::)

No"e

152.2 (3865)

166.0

None

(4216)

177.2 (4500)

193.3 (4909)

202.2 (5135)

220.5 (5602)

38.8

115.6

0.33

0.090

0.109

(8.3)

(2.29)

(2.77) (1023)

None

(2045)

None

,b",b-:, None

0.37 (9.5)

0 103 (2.62)

0.125 45.9 (3.18) (1167)

None

(%)

None

(%:I

---

..-

40.3

80.5

None

102.2

111.4

(2595)

(2831)

147.3 (3742)

242.8

290.5 (7379)

None

None

If you are using a Catalog No. 2801-YD camera, multiply the field of view by 0.75. - A hyphen in a column indicates that the standoff distance is not possible with the specified lens.

None

None

338.2 (8591)

None

(~8~~1

None

Page 57

Chapter

Lens i3f7d Camera

Set- up

4

Staging Considerations for Vision Applications 4-15

When mounting your camera and lens assembly, set the front of the lens of the camera at the standoff distance listed in the table for your field of view. This distance is an approximation; it will get your camera close to the ideal location. From there, focus the lens and set the F-stop for maximum clarity and brightness. Example One The desired FOV is 3 by 4 inches (76X 102 mm). Referring to Table 4.A, you can use a variety of lenses, depending on the required standoff distance. For a standoff distance of 27.2 inches (690 mm), for example, you would use the 55mm lens. Example Two The desired accuracy of measurement is l/16 of an inch, or 0.063 inch (1.6 mm). The closest value in the table is 0.052 X 0.070 (1.37 X 1.78 mm) with an FOV of 4.5 X 6.0 inches (114 X 152 mm). Referring to Table 4.A, for a standoff distance of 18 inches (458 mm), for example, you would use the 25mm lens.

Workpiece

Positioning

The presentation of the workpiece within the VIM2 module FOV can fall into into one of two categories: 1) The workpiece is not moving (still) during inspection. 2) The workpiece is moving during inspection. If the workpiece is still during inspection, the staging of an inspection application is generally simpler than if it were moving. Both categories of positioning are described below.

S?ill Workpiece

When the workpiece is still, the optimum set-up would be to position the workpiece in front of the camera, with a tolerance of less than 1% of the FOV. For example, in a FOV of 3 X 4 inches (76 X 102 mm), the tolerance would be * l/32 inch (0.79 mm). If the object cannot be positioned accurately, the VIM2 tools (X and Y float gages) can be used to compensate for position variations. It is desirable to fixture the workpiece so that the variation in workpiece location will be less than 25% of the FOV. (Note that the use of these float gages tools slightly increases the time required to inspect each workpiece).

Page 58

Chapter 4-76

Moving Workpiece

4

Staging Considerations for Vision Applications

If the workpiece is moving, a strobe light is probably needed to “freeze” the workpiece’s motion in order to eliminate blur in the image. A strobe light is positioned in the same manner as a fluorescent or incandescent light. The VIM2 module’s Strobe output, located on the VIM2 swingarm, must be used to trigger the strobe light at the correct time. In order for the strobe light to eliminate blur in the image, it must be much brighter than the ambient lighting. A cover or shroud may be needed around the workstage to reduce the ambient light. The shroud can also prevent the strobe light flashes from becoming a distraction to nearby workers. To determine whether a strobe light is needed, first calculate the FOV necessary for the inspection. Then find the size of a pixel for that FOV using table 4.A or 4.B. Divide the speed of the workpiece in inches (or mm) per second by 60 seconds. If the result is greater than one-half the pixel size, a strobe light should be used.

0

Example Suppose the workpiece is a ring with a diameter of 2.5 inches (63.5 mm) moving at a speed of 6 inches (152.4 mm) per second. You select an FOV of 3 X 4 inches (76.2 X 101.6 mm). From table 4.A or 4.B, the pixel size is 0.013 X 0.016 inches (-330 X .406 mm). Divide the speed of the workpiece, second, by 60 seconds:

6 inches (152.4 mm) per

6 in./sec. + 60 sec. = 0.1 inch, or 152.4 mm/set. + 60 sec. = 2.54 mm The result is greater than one-half the pixel size; therefore, a strobe light is needed. The workpiece speed would have to be less than 0.5 inch (12.7 mm) per second to eliminate the need for a strobe light in this case.

Page 59

Chapter

4

Staging Considerations for Vision Applications 4-17

Using Filters With the VIM2 Module

Filters are devices used to suppress interference which would appear as noise in an image. Lens and lighting filters may be used in a VIM2 module application situation.

Lens filters

A colored lens filter can be useful in an application situation that requires a certain colored item to stand out. If you are inspecting shiny, transparent, or translucent workpieces, polarizing filters can be valuable. Neutral density filters can be used to restrict the focus or depth of field of a lens setup. Use an infrared pass or cut filter if your workpiece is heated or if you want to exclude ambient visible light. Photographers have used lens filters for more than a century. The techniques they have developed are all applicable to machine vision. It is beyond the scope of this manual to discuss the use of lens filtering in detail.

filters

Lighting filters can also be used, or a combination of lighting and lens filters can be used. For example, you can light a fluorescent workpiece with ultraviolet light and observe the visible light it gives off. You can also illuminate the workpiece with horizontally polarized light and view through a vertical polarizing filter.

Workstage Shielding

To control contrast and shadows you need to enclose (shroud) the workstage. This prevents stray reflections and shadows from interfering with the automatic operation of your system. Shrouding also provides a dark black background which can increase the contrast.

Lighting

It is also good practice to have any fixtures close to the workstage finished in a flat black color. This prevents reflections and the resulting uneven lighting. This is the reason that camera lenses are black.

Page 60

Chapter 4- 78

4

Staging Considerations

(This page intentionally for Vision Applications left blank)