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

The text of a manual · part 15 of 24

CV-700 Series User's Manual: High-speed, High-accuracy, Color Vision System, pages 141 to 150

Pages 141 to 150 of 232

The original document is the PDF (2.6 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 Keyence CV-070

Page 141

Chapter 4

Setting Procedure

4.10.7 Adjusting the color extraction Using a filter function on the screen Follow the procedure below to set advanced processing (filter) to an image in order to omit noise on the screen or to optimize detection. Up to two filters can be set, and processing is operated following the order of selection. 1) Place the cursor on [FILTER] and press the [ENT] key. 2) Press the [▲]/[▼] cursor keys to select the desired filter. 3) Press the [ENT] key to select a filter function.

EXPAND1 EXPAND2 SHRINK MEDIAN AVERAGE EDGE EM EDGE EX INVERT SHADING INT UP TINT UP •

4

To remove the filter, select the chosen filter to be canceled and press the [CLEAR] key.

Filter type

Description

EXPAND1

Translates each pixel on the screen into the level of the brightest pixel within the surrounding 3 x 3 area. Expands the extracted area to stabilize the processing of small and disconnected edges and clusters.

EXPAND2

Same processing as EXPAND1. Select EXPAND2 to operate the expansion processing twice.

SHRINK

Translates each pixel on the screen into the level of the darkest pixel within the surrounding 3 x 3 area. Effective in reducing small amounts of noise.

MEDIAN

Translates each pixel on the screen into the level of the fifth brightest pixel within the surrounding 3 x 3 area. Reduces the noise without affecting the size of the extraction range.

AVERAGE

Translates each pixel on the screen into the average brightness level within the surrounding 3 x 3 area. Because it finds the average from the maximum and minimum value of the brightness level, it is more effective in eliminating noise than the MEDIAN.

EDGE EM

Emphasizes the border between the dark and bright area of the image.

EDGE EX

Only displays the border between the dark and bright area of the image

INVERT

Inverts the bright and dark area.

SHADING

Adjusts the varied luminous intensity in the window.

INT UP

Increases the intensity of the screen to adjust the visibility of the image.

TINT UP

Increases the tint of the screen to sharpen the color of the image.

Some combinations cannot be used simultaneously due to the types and sequence of the filters. One filter cannot be used two or more times.

131

Page 142

Chapter 4

Setting Procedure Basic concepts of the filter function ■ EXPAND

■ EDGE EX

■ SHRINK

■ INVERT

■ MEDIAN

■ SHADING The median

4 ■ AVERAGE

■ INT UP

■ EDGE EM

■ TINT UP

4) When the target colors are varied, for example when setting the [COLOR] for two or more targets, re-register the screen [SCRN REG] and repeat the color extraction process described in “Basic Settings” page 36. 5) Press the [ESCAPE] key to register the color settings. Note: The color setting interacts with the filter function. When the settings for one window are copied to another window using the method described on page 44, the filter type is copied accordingly.

Setting the color extraction level Do not use this function for normal operation. When the color is not extracted properly, display the histogram of the screen’s color data to operate detailed color extraction. This function is useful when a search is not functioning properly with [GRAVITY1/2] for [SERCH SEN] setting. If an area other than the desired area for the search is converted into a binary level, change the binary level to normalize the search. ■ [LEVEL] setting procedure 1. Display the color extraction menu.

LEVEL FILTER

132

Page 143

Chapter 4

Setting Procedure

2. Place the cursor on [LEVEL] and press the [ENT] key. The histogram appears.

H: Upper limit 2: Binary level L: Lower limit

▲

▲

The horizontal axis represents the color level, and the vertical axis represents the number of pixels. The distribution of pixels is displayed for each color level. “H” is the upper limit and “L” is the lower limit. The color extraction is operated between the upper and lower limit. By setting the “H” and “ L” to a level with concentrated distribution, undesired effects (e.g. variation of intensity) are likely to occur. “2” indicates the binary level. The levels above “2” will be converted into green. 3. The setting range for [LEVEL] is shown in blue. Press the [ ]/[ ] cursor (panel key) or move the [ENT] key to the right or left to select the desired level. 4. Press the [ENT] key.

▲

▲

The selected level is shown in red.

5. Change the level into the desired level. Press the [ ]/[ ] cursor (panel key) or move the [ENT] key to the right or left to select the desired level. 6. Press the [ENT] key to confirm the level selection. The level display returns to blue.

7. Repeat the above procedure (steps 3 to 6) to confirm the other levels. 8. Press the [ESCAPE] key to exit the level setting and return to the color extraction menu.

LEVEL FILTER

133

4

Page 144

Chapter 4

Setting Procedure

4.11 Optional Settings 4.11.1 Saving the running images Up to eight captured images in the [RUN] mode can be saved for future readout. The read-out screen can be used for processing and checking the data. Use this function to check a screen with an unacceptable detection result in RUN mode at a later date. Note 1: The screens under the “RUN” operation mode can be saved. The screens under the “PROGRAM” mode cannot be saved. Note 2: When saving more than eight screens, the saved screens are over-written in sequence starting from the earliest data. Note 3: The screens under “ARE/CON” mode cannot be saved. Note 4: The processing speed slows down slightly when using the “SAVE SCR” function. Note 5: Up to four screens can be saved for each camera when two cameras are connected. Note 6: The data is saved in RAM inside the controller. The saved data will be lost when the power is turned off. To keep the record, save the data in the CompactFlash memory (➮ page 171). Note 7: A saved screen cannot be used as a registered screen.

4

Preparations Advance setting is required to save the captured screen. Set the SAVE SCR parameters with the environmental setting menu. 1. Put the CV-701(P)/751(P) in [PROGRAM] mode. 2. Press the [ESCAPE] key for at least two seconds. The environmental setting menu appears. MEMORY CARD WHITE BALANCE SETUP MENU CHANGE OUT MODE RS232C BPS RS232C OUT

CONSOLE N.O. 38400 0000000

LANGUAGE OUTPUT SYMBOL AUTO OFF TRIGGER SAVE SCR

JAPANESE COLOR OFF EXTERNAL OFF

COPY NO. AUTO SEQUENCE

No.00 OFF

CLOCK

00/03/30 06:46:46

TO No.00 NUM 4

3. Place the cursor on [SAVE SCR] and press the [ENT] key. The cursor goes to the item in the right column.

AUTO OFF TRIGGER SAVE SCR 4. Change the settings using the [▲]/[▼] cursor key. Setting options are as follows: OFF: The screens are not saved. ALL: All captured screens are saved. NG: Only unacceptable images are saved.

134

Page 145

Chapter 4 •

With the panel keys Press the [▲] or [▼] cursor key.

•

With the remote control console Move the [ENT] key up or down.

Setting Procedure

5. Press the [ENT] key to confirm the setting. 6. Press the [ESCAPE] key to return to the PROGRAM screen.

Reading saved screens 1. Put the CV-701(P)/751(P) in “PROGRAM” mode. 2. Place the cursor on [OPTION] and press the [ENT] key. The option selection menu appears.

OPTION SVD SCRN ILLU DATA CAL

4

3. Place the cursor on [SVD SCRN] and press the [ENT] key. The cursor goes to [SCRN SEL].

PROGRAM SCRN SEL TEST 4. Press the [ENT] key. The list of saved screens appears. The list is in descending order from the last saving. SCRN SEL 00/07/08 06:32:15 00/07/08 06:32:13 00/07/08 06:31:53 00/07/08 06:18:25 00/07/08 06:17:37 00/07/08 06:17:23

5. Select the desired saved screen for display. Placing the cursor on the desired option changes the screen display. SCRN SEL 00/07/08 06:32:15 00/07/08 06:32:13 00/07/08 06:31:53 00/07/08 06:18:25 00/07/08 06:17:37 00/07/08 06:17:23

•

With the panel keys Press the [▲] or [▼] cursor.

•

With the remote control console Move the [ENT] key up and down.

6. Press the [ENT] key to confirm the selection. To display the saved screen, press the [ESCAPE] key to return to the initial menu screen. To check the measured data with the saved screen, go to the next step.

135

Page 146

Chapter 4

Setting Procedure 7. Place the cursor on [TEST] and press the [ENT] key. The measured data with the saved screen is displayed.

PROGRAM SCRN SEL TEST Tips

The test mode of the saved screen does not output the detection results. 8. Press the [ENT] key to return to the initial menu screen.

4.11.2 Illumination adjustment function The illumination adjustment function automatically adjusts the intensity of illumination. A variation in luminance over time does not affect the stability of the detection. The illumination adjustment function is available with all measurement modes; however, it cannot follow sporadic changes. The illumination for the first trigger input under the trigger mode is not adjusted.

4

Processing time of the illumination adjustment •

“ARE/CON” mode There is a delay of approx. 0.3 seconds before the illumination is adjusted; however, the total processing remains unchanged.

•

“INS/TRG” mode The processing time remains unchanged.

•

“INS+POS”, “ABS.POS”, and “REL.POS” modes The processing time remains unchanged.

1. Place the cursor on [OPTION] in the main menu and press the [ENT] key. The option menu appears. 2. Place the cursor on [ILLU] and press the [ENT] key. The cursor goes to [CAM1].

OPTION SVD SCRN ILLU DATA CAL 3. Place the cursor on [CAM1] or [CAM2] and press the [ENT] key. The ON/OFF selection menu appears.

PROGRAM CAM1 OFF

4. Place the cursor on [ON] and press the [ENT] key. A window (frame) appears on the screen.

CAM1 OFF ON

136

Page 147

Chapter 4

Setting Procedure

5. Move the [ENT] key to set a window with a constant luminance to a desired area outside of the target. CAM1 CAM2 PROGRAM CAM1 040, 040 140, 140

T= RAW SCR

6. Press the [ENT] key. The window position is confirmed. 7. Press the [ESCAPE] key to confirm the setting and exit the selection menu.

4

Note: Set the window for illumination adjustment to an area with medium brightness. Setting the window in areas with too much or too little luminance will saturate the illumination adjustment function with slight changes in brightness, leading to unstable detection.

4.11.3 Unit conversion Converting a measured value The measured value is normally displayed in units of pixels. When the data calculation is set, the value can be displayed in mm. The displayed value is converted based on the set conversion ratio. Tips

The output from the terminal is an unconverted value. 1. Place the cursor on [OPTION] and press the [ENT] key. The option menu appears. 2. Place the cursor on [DATA CAL] and press the [ENT] key. The data calculation menu appears.

OPTION SVD SCRN ILLU DATA CAL 3. Set the conversion ratio. The measured data is normally displayed in units of pixels. When a conversion ratio (multiple span) is set, the value can be displayed in mm. The conversion ratio can be specified from “0.01 times” through “100 times”.

Example Number of pixels x Span = mm 1) Place the cursor on [MULTIPLY] and press the [ENT] key. The first digit, “0”, is shown as highlighted. You can enter a numerical value. DATA CAL MULTIPLY OFFSET X OFFSET Y OFFSET

01.00 +0.000 +0.000

137

Page 148

Chapter 4

Setting Procedure 2) Move the [ENT] key to the right or left to select a digit to be changed. DATA CAL MULTIPLY OFFSET X OFFSET Y OFFSET

01.00 +0.000 +0.000

DATA CAL MULTIPLY OFFSET X OFFSET Y OFFSET

00.50 +0.000 +0.000

3) Change the value.

4

•

With the panel keys Press the [▲] cursor repeatedly.

•

With the remote control console Move the [ENT] key up repeatedly. The value increments by one, and after “9” the second digit is incremented. Pressing the [▼] cursor or moving the [ENT] key down decrements the value to “0”. 4) Press the [ENT] key. The conversion ration is confirmed.

4. Set the offset function. When two areas are picked up with two cameras, the distance between the two areas is interpolated by the offset function to calculate the actual size. Set the offset values for both [OFFSET X] (X-axis direction) and [OFFSET Y] (Y-axis direction).

Example Number of pixels x Span + Offset = mm 1) Place the cursor on [OFFSET X] and press the [ENT] key. The first digit, “0”, is shown as highlighted. You can enter a numerical value. DATA CAL MULTIPLY OFFSET X OFFSET Y OFFSET

00.50 +0.000 +0.000

2) Move the [ENT] key to the right or left and select the digit to be changed. 3) Change the numerical value. The value increments by one, and after “9” the second digit is incremented. Pressing the [▲] cursor or moving the [ENT] key down decrements the value to “0”. DATA CAL MULTIPLY OFFSET X OFFSET Y OFFSET

00.50 +0.000 +0.000

4) Press the [ENT] key. The offset value for the X-axis direction is confirmed. 5) Place the cursor on [OFFSET Y] and repeat the above procedure. DATA CAL MULTIPLY OFFSET X OFFSET Y OFFSET

138

00.50 +40.00 +0.000

Page 149

Chapter 4

Setting Procedure

5. Set the enable/disable of the offset function. Set whether you want to enable or disable the offset function for each window. ●: Enabled –: Disabled 1) Place the cursor on [OFFSET] and press the [ENT] key. 2) Move the [ENT] key to the right and left to select a desired window. 3) Change the setting with [▲]/[▼] cursor keys. 4) Press the [ENT] key. DATA CAL MULTIPLY 00.50 OFFSET X +40.00 OFFSET Y +0.000 OFFSET o–

Window 1 Window 2

4

6. Press the [ESCAPE] key. The data calculation function is set. Note 1: The setting for MULTIPLY under DATA CAL is applied for all windows. Select the enabled/disabled offset function for each window. Note 2: The DATA CAL function is not activated when the INS mode is set to [AREA], [POINT], [COUNT], [STAIN] or [EDGE NO].

139

Page 150

Chapter 4

Setting Procedure

4.12 Operation Check of the Setting Status The CV-701(P)/751(P) is able to save the state of focus, exposure and position after setting is complete. Use the saved data to compare and check with the initial condition when there is a change of target.

4.12.1 Saving the setting status Save the focus and exposure under the current setting. 1. Prepare a test piece. Prepare a sheet of white paper with a rectangle filled in black. Make sure the length of the longitudinal side of the rectangle is about 1/4 of the field of view. You can set a desired aspect ratio. 2. Put the CV-701(P)/751(P) to “PROGRAM” mode. 3. Hold down the [ESCAPE] key for at least two seconds.

4

The environmental setting menu appears on the screen. 4. Place the cursor on [SETUP MENU] and press the [ENT] key. The setup menu appears on the screen.

MEMORY CARD WHITE BALANCE SETUP MENU 5. Place the test piece prepared in step 1 into the field of view. Make sure the black rectangle is in the center of the monitor screen. Place the test piece on a flat surface so that there is no curvature or warpage of the piece. The screen updates every time the [TRIG] key is pressed.

SETUP SAVE CAM1

CAL AREA PINT SET 00/03/30 06:41:13 NOW

Note: Be sure the black rectangle does not cover the exposure bars on the four sides of the screen. When CAM2 is set, place the cursor on [CAM1] and press the [ENT] key to select the camera.

SETUP SAVE CAM2

140