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

The text of a manual · part 7 of 42

Bulletin 5370 CVIM Configurable Vision Input Module User Manual: 5 - Camera and Lighting Parameters, pages 67 to 76

Pages 67 to 76 of 390, from Bulletin 5370 CVIM Configurable 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 5370-CVIM

Page 67

Chapter

Chapter Objectives

5

Camera and lighting Parameters

The objectives of this chapter are to show you how to configure the camera and lighting parameters in the Camera popup menu. This includes adjusting the camera, selecting the camera type and operating mode, and setting the lighting threshold, camera resolution, light probe, and calibration parameters. The Camera popup menu appears when you pick the Camera menu box in the Main Configuration menu.

Configuration Categories

The main function and configuration Camera popup menu are these:

categories in the l Focus camera. This function is a continuous series of digitized “snapshots,” and it provides a “live” image on the video monitor screen. You can use it to set up and adjust the lighting and camera. type/mode. This configuration category identifies the type of camera to be used: standard, or frame reset. It also sets the operating mode when a standard camera is used: normal trigger, or delayed trigger.

l Camera

The lighting threshold adjustment enables you to maximize the contrast in a stored camera image. The resolution parameter provides you with a choice of three degrees of image resolution. You can adjust the lighting threshold for optimum contrast and select an image resolution appropriate to your application. l Lighting/Resolution.

l Light probe. The light probe automatically compensates for changes in the intensity of the light falling on the workpiece. You can configure the light probe according to the type of lighting to be used in your application.

calibration. This function compensates linear and circular gages so that they can measure a specific distance equally in both the X and Y axes, and in all angles in between. You can use this function when your application requires gages to make calibrated measurements. l Object calibration. This function compensates linear and circular gages similar to object calibration, but also compensates for optical distortion throughout the camera image. You can use this function when your application requires gages to make calibrated measurements anywhere within the camera image.

l Grid

Page 68

Chapter

5

Camera and Lighting Parameters

5-2

Con figurin Camera an c?Lighting Parameters

This section shows you the details of configuring and lighting parameters.

the camera

You will begin by picking the Camera menu box in the Main Configuration menu. You will then configure several parameters relating to the camera and lighting. Before proceeding with this section, you should have read Chapter 3, CVIM User Interface.

Selecting Camera Popup Menu and Parameters

Your first step is to select the Camera popup menu. Comments

Your Action Look at the Camera menu box in the Main Configuration menu. Pick Camera in the Main Configuration menu.

The Camera menu box indicates the camera, A or B, that is associated with the currently active tool set. When you pick the Camera menu box, the Camera popup menu appears above the Main Comiguration menu, as follows: Focus Camera Camera Type/Mode em.

Lighting/Resolution

0.0

Light Probe

.a@

Env.

Csmqa

A:

Ref. Line

4-

Camera Popup Menu

Ref. Win

Gage

Window

Mist

Exit

The Camera popup menu shows the six configuration categories described earlier. You should perform the Camera Type/Mode, Focus Camera and Lighting/Resolution configurations before any of the others.

Page 69

Chapter

5

Camera and lighting

Parameters 5-3

Selecting

Select the Camera Type/Mode camera type and mode.

Camera Type/Mode Popup Menu Your Action menu box, then select the

Comments

Pick the Camera Type/Mode menu box in the Camera popup menu.

When you pick the Camera Type/Mode menu box, the Camera Type/Mode popup menu appears above the Camera popup menu, as follows:

@ StandardCij&riI

Camera Type/Mode Popup Menu -

1; ::

:

IJ Frame Reset Camera Shutter

IGrid Calibration Env.

#&?&ziI&,

(usec):

690 me.

0.0 1

Ref. Line

Ref. Win

Gage

Window

Mist

Exit

Note that the Standard Camera box in the Camera Type/Mode popup menu has a shaded square (0). This indicates that a standard camera, with normal response to triggers, is currently selected. From the top down, the selections in the Camera Type/Mode popup menu have the following meanings: Camera: Selects a standard camera and normal response mode to trigger input signals. l Standard

Using the normal response mode, the CVIM system responds to trigger signals only when it is not busy processing a previous image. If the CVIM system is busy, it misses the trigger signal and does not acquire a new image. l Std. Cam., DTR Mode: Selects a standard camera and a delayed reject response (DTR) to trigger input signals.

Using this response mode, the CVIM system waits until the last possible instant (waits until the end of the current camera field) before determining whether it can accept a trigger. If the CVIM system is still busy at that time, it misses the trigger and does not acquire a new image.

Page 70

Chapter

5

Camera and Lighting Parameters

5-4

Selecting Camera Type/Mode Popup Menu (continued) Comments

Your Action l Frame

Reset Camera:

Selects a frame reset camera.

Using the frame reset camera, the CVIM system can reset the camera’s image sensor, and the camera can then begin acquiring a new image immediately. NOTE: If you select Frame Reset Camera and intend to use two cameras, both must be frame reset cameras. Pick the appropriate box in the Camera Type/Mode popup menu.

When you pick the box, the new selection will be highlighted in the Camera Type/Mode popup menu.

Selecting Shutter Parameter

Ifyou selected Standard Camera or Std. Cam., DTR Mode in the Camera Type/Mode popup menu, skip this step. Ifyou selected Frame Reset Camera in the Camera Type/Mode popup menu, you must set the Shutter parameter (in microseconds) to the same shutter speed that you set on the frame reset camera. NOTE: If your application uses two frame reset cameras, both must be set to the same shutter speed. To determine the correct shutter speed setting for the camera(s) used in your application, refer to the camera user manual.

Your Action Look at the Shutter menu box in the Camera popup menu.

Comments The 5 h utter menu box displays the currently selected value for the shutter parameter. NOTE: The allowable range of values for the shutter parameter is 400 to 16,667. If you try to enter a number less than 400, the number in the Shutter menu box will remain (or change to) 0 (zero), which is the default value.

Page 71

Chapter

Selecting

5

Camera and Lighting Parameters

5-5

Shutter Parameter (continued)

Comments

Your Action Pick the Shutter menu box.

When you pick the Shutter menu box, the “calculator” appears alongside the Camera menu, as follows:

10

Standard pad

1

Camera

Std. Cam., DTR Mode

I

_Camera Type/MO de Popup Menu Calculator Pad 1

.,

.: .:. :.; ,:. : j :, : j:.. .j ; .., 6;o’ ;:;; :..:j..‘; : ::,.-.: :.

Camera Popup Menu I

:: :. : : :: .. . : I. ‘-;:,I h:.j:‘; :: .. .

f Focus Camera

I +

- x

-

O/O .-

/

=

Clr a

Enter

Env.

.. ...A :: Ref. Line ~@-t&ia

Ref. Win

Gage 1Window

1Mist

1 A

1 Exit

Pick each digit of the shutter parameter.

As you pick each digit, it will appear in the calculator “display.” Thus, for a value of 690, pick “6,” pick “9,” and pick “0.”

Pick the Enter key.

When you pick the Enter key, the new shutter parameter value will appear in the Shutter menu box.

Page 72

Chapter

5-6

5

Camera and lighting

Parameters

Select the Focus Camera function, then focus the camera lens and set the aperture for the best contrast.

Using Focus Camera Function

NOTE: Before proceeding with this function, be sure that the “Setup” trigger source for the active tool set will enable trigger inputs from either the internal or an external source. If an external source is selected, the CVIM system will display the following message and will wait for the trigger signal: The system is waiting for a trigger. Depress the lightpen to continue.

For information on the selection of trigger sources for each tool set, refer to the appropriate sections in Chapter 4, Operating Environment. Your Action

Comments

Pick the Focus Camera menu box.

When you pick the Focus Camera menu box, the screen image becomes “live,” and a message box appears above the Camera popup menu, as follows:

Depress the light pen to continue

Focus Camera

‘~ Light Probe

Env.

C#n$rs&

...

Ref. Line

.-

Camera Popup Menu

Ref. Win

Gage

Window

Mist

Exit

Note that the image on the monitor screen now displays what the camera currently “sees.“The image is “live,” and consists of a rapid, continuous series of digitized camera snapshots.

--

Page 73

Chapter

5

Camera andLighting

Parameters

5-7

Using Focus Camera Function (continued) Comments

Your Action Adjust the lighting and camera.

Adjust the lighting fixture as necessary for optimum effect on the camera’s field of view - the area in which the workpiece will be inspected. Adjust the camera focus and aperture for the clearest focus and best contrast. Also, adjust the camera’s distance to the workpiece for the optimum field of view size.

When al2 adjustments are satisfactory, exit the Focus Camera function.

Selecting Lighting/Resolution Popup Menu and Parameters

After you have a satisfactory image, exit the Focus Camera function by pushing in the light pen tip. The camera image will “freeze,” and the message box will disappear.

Select the Lighting/Resolution parameters in that menu. Comments

Your Action Pick the Lighting/Resolution menu box in the Camera popup menu.

popup menu, then select the

When you pick the Lighting/Resolution menu box, the Lighting/Resolution popup menu appears above the Camera popup menu, as follows: Lighting/Resolution Popup Menu Focus Camera l.e

Camera Type/Mode

;ggb.~i;~~e;~$~tio<~ ::i 4+’

Light Probe

000 4

Object Calibration

0.0

Grid Calibration

0.0

Env.

j. C&teia:&;

Ref. Line

Camera

Popup Menu

Ref. Win

Gage

Window

From the top down, these are the configuration in the Lighting/Resolution popup menu: l Light

Reference:

camera image.

Optimizes the contrast in the stored

Selects the image resolution to be used in your application. The numbers refer to horizontal and vertical image resolution. This is the number of pixels along the horizontal and vertical axes.

l Res:

- parameters

Page 74

Chapter

5

Camera and Lighting Parameters

5-8

Selecting

Lighting/Resolution

Popup Menu and Parameters (continued)

Selecting Resolution

Popup Menu

Select the Resolution popup menu, then select the camera image resolution required for your application. NOTE: Be sure that the camera image resolution that you select is the one you want for your application. If you change the resolution after you have configured the tools, you may need to re-configure those tools.

Your Action Look at the Res menu box in the Lighting/Resolution popup menu.

Pick the Res menu box, if appropriate.

Comments The Res menu box displays the currently selected image resolution. Refer to the Camera Parameters table in Appendix B for the image resolution you selected for the currently active tool set. If the resolution you checked in that table is not currently displayed in the Res menu box, use the next steps to select a different resolution. When you pick the Res menu box, the Resolution menu appears alongside the Lighting/Resolution menu, as follows:

In 512Hx256V

Lighting/Resolution Popup Menu

0 popup popup

I

512Hx512V

1

Focus Camera Camera Type/Mode ;&$&&@&j&.jfi; : .: .: .. :.

Popup Menu 0.0 ; ij:..; ;&#.

Light Probe l.@

Object Calibration

0.0

Grid Calibration

0.0

Env.

‘?&me&A ‘. ’ i Ref. Line

+..

Camera Popup Menu

Ref. Win

Gage

Window

Mist

Exit

Note that the 256Hx256V box in the Resolution popup menu has a shaded square (0). This indicates that the currently selected camera image resolution is based on 256 pixels along both the vertical and horizontal axis.

Page 75

Chapter

Selecting Lighting/Resolution Popup Menu and Parameters

5

Camera and Lighting Parameters

5-9

Selecting Resolution Popup Menu (continued)

(continued)

Your Action

Comments NOTE 1: During runmode operation, the CVIM system displays all camera images with 256-pixel vertical resolution regardless of the resolution selected in the Resolution popup menu. Consequently, when the CVIM system returns to the setup mode from the run mode, and the selected resolution is 512H x 512V, any “learn” operation that you perform on the run mode camera image may have a different result from the result indicated in the Results Page or from prior learn operations. Thus, to regain a f&Z (512V) resolution image, you must acquire a new camera image using either the Snapshot or the Focus Camera function. NOTE 2: If the Delete Templates box is in light type and the resolution boxes are in black type, it means that at least one window is configured for the Template Match operation, and a template has been saved. It also means that an “active feature” has been saved in at least one reference window. In both cases, the windows may be either enabled or disabled. Before you can change the image resolution, you must first pick the Delete Templates box. When you pick the Delete Templates box, the following message appears in the upper-left corner of the monitor screen: WARNING: All templates and features for tool set 1 must be deleted before the resolution can be modified. Reselect to confirm. L

Pick the same box again to continue.

Pick the appropriate box in the Resolution popup menu.

When you pick the same box the second time, the saved templates and/or “active features” will be erased. At the same time, the resolution boxes will change to light type, and you can proceed to change the image resolution if you wish. When you pick a box in the Resolution popup menu, the following message will appear in the message box at the upper-left corner of the monitor screen: WARNING: Selecting a new camera resolution will require recalibration and may invalidate the tool results. Reselect to confirm. The purpose of this message is to warn you that changing the image resolution will change the calibration and may invalidate tool results.

Page 76

Chapter

5

Camera and Lighting Parameters

5-70

Selecting

Lighting/Resolution

Selecting

Resolution fopup

Menu (continued)

Popup Menu and Parameters (continued)

Your Action

Comments

Pick the same box again to complete the change.

When you pick the same box the second time, the new selection will be highlighted in the Resolution popup menu and will appear in the Res menu box. Setting

Light Reference

Threshold

Select the Light Reference slide bar, then adjust the contrast in the image to its optimum level. The function of the light reference threshold adjustment is to optimize image contrast around the part of the workpiece that is to be inspected. The corresponding assumption is that the contrast levels in all other parts of the image are not important to the outcome of the inspection. Your Action

Comments

Pick the Light Reference menu box in the Lighting/ Resolution popup menu.

When you pick the Light Reference menu box, the REFERENCE slide bar and its two cursors will appear at the right edge of the screen, as follows: --

Left -: Cursor

Lighting/Resolution Popup Menu I

II>

H I

’

R E F E R E N C E

Slide BarFocus Camera Camera Type/Mode

L 0

7a b En”.

m, ~~~f~~;;

Ref. Line

Ref. Win

Gage

Window

Mist

Exit 1

NOTE: Some parts of the camera image may have turned and/or blue at this time. If so, ignore it for now.

green