The text of a manual · part 7 of 9
Compact Color Vision System CV-301 Series Instruction Manual, pages 61 to 70
Pages 61 to 70 of 86
The original document is the PDF (1.1 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-301
Page 61
Chapter 4
Setting procedure
4.5 High Precision Setting This section describes how to use the functions in the menus used for high precision setting.
4.5.1 Menu Item List The following is the layered structure of the parameters for the [AREA•CON] and [AREA•TRG] mode settings. The same setting procedure is used for both the [AREA•CON] and [AREA•TRG] modes. Items 1 to 3 in the structure are explained on the following page. PROG No MODE
Mode selection AREA•CON AREA•TRG AREA+POS ABS•POS
4
REL•POS SHUTTER REGISTER WINDOW1 MEASURE 000000
WINDOW1 COLOR
SELECT
3 Color extraction menu Specify the color to be extracted.
SEN•5 TOL H=000000
BACK•BK
L=000000
AUTO
ILLU T=000000 RAW SCRN
COPY
IGNORE
REGISTER ZOOM
1 Main menu MEASURE
SQR CL
MASK
SQR CL
DETECT MEASURE 000000
Coordinate Set measurement value setting window
Set mask Coordinate value setting window
COLOR BACK
TOL H=000000 L=000000 2 Window menu Set the color to be extracted, window size, and tolerance for each window.
53
Page 62
Chapter 4
Setting procedure 1 Main menu “*” indicates the initial setting value.
Menu item
Description
SHUTTER
1/60* to 1/10000
Set the shutter speed.
REGISTER
N/Y
Save an image.
WINDOW1
To sub menu (Refer to 2 for details.)
Set the color to be extracted and the detection window.
MEASURE, - - Purpose When detecting a fast moving target. Save a target image in the memory. When preparing detection.
Measured value display
Check the measured value.
Set the upper limit "H" and the lower limit to "L". Enable/disable the illumination adjustment function.
Set the allowable range for the detection. (Units: pixels) Enable the function to automatically adjust illumination when the light quantity changes.
TOL
H=000000 L=000000
ILLU
OFF* ON
T=000000, - - Processing time display
Check the processing time.
RAW SCRN*
The actual image captured by the camera.
Check the unprocessed image.
RAW SCRN
4
Setting
PROCES 1 PROCES 2
Processed image for the detection. Processed image for the detection.
Check the detection condition. Check the detection condition.
2 Window menu “*” indicates the initial setting value. Menu item
Setting
WINDOW1
1* to 8
COLOR
To sub menu (Refer to 3 for details.)
Extract the color of a target.
MEASURE
SQR, CL
MASK
SQR, CL
COLOR DETECT BACK
TOL
54
Description Set a window for each color to be extracted.
H=000000 L=000000
Draw a rectangular or circular window on the screen. Draw a rectangular or circular window on the screen. Count the no. of pixels in the area of the extracted color. Count the no. of pixels in the area outside of the extracted color. Set the upper limit to "H" and the lower limit to "L".
Purpose Set several windows to select several targets. Extract color for detection or position adjustment. Set the range to be measured. Set the range not to be measured. Check the no. of pixels in the area of the extracted color. Check the no. of pixels in the area outside of the extracted color. Set the allowable range to judge whether the measured value is OK or NG. (Units: pixels)
Page 63
Chapter 4
Setting procedure
3 Color extraction menu “*” indicates the initial setting value.
Menu item
Setting
Description
Purpose
Move the cursor on the screen to select the color to be extracted.
Extract the color to be detected.
1* to 32
Zoom in on the image.
Zoom in on the image to select the color. Choose "SELECT" and press the TRIGGER key, and then move the ENT key to select the zoom factor.
0 to 20 (5*)
Set the color recognition sensitivity. 0: High sensitivity. 20: Low sensitivity.
Make the detection more accurate or rough.
WH
White background
BK
Black background
1 to 20
Specify up to 20 points using the arrow cursor.
SELECT
(ZOOM)
SEN•
BACK•
IGNORE AUTO
Set the color extraction range automatically.
COPY
Select another window No.
W1 to 8, P1, P2
Display a white background in the processed screen 1 or 2. Display a black background in the processed screen 1 or 2. Specify the color not to be extracted. Automatically adjust the extraction range of the color selected using "SELECT". Copy the other window's color extraction settings.
55
4
Page 64
Chapter 4
Setting procedure The following is the layered structure of the parameters for the [REL•POS “Relative position”] mode setting. • The [ABS•POS] mode setting does not have “POS•2”. •
The [AREA+POS] mode setting has “WINDOW1” instead of “POS•2”.
•
The same setting procedure is used for “WINDOW1” in [AREA+POS] mode and “WINDOW1” in [AREA] mode.
Items 4 to 6 in the structure are explained on the following page.
PROG No MODE
SHUTTER
5 Position adjustment menu Set position detection parameters, such as the color to be extracted, windows, and position tolerances.
3 Color extraction menu Specify the color to be extracted.
REGISTER POS•1
4
COLOR
SELECT
POS•2
SEN•5
X=000
IGNORE
Y=000
AUTO
ILLU
REGISTER
OFF
ZOOM
BACK•BK
COPY
T=000000 RAW SCRN
MODE•P
4 Main menu
(When mode P is selected)
Position adjustment mode selection
P X Y
PW
X+Y
SW
X>Y
SPEED 2
X<Y
X= +100 Y= +100 MAT 00
(When a mode other than P is selected) XW 1. YW 2. FILTER
6 Filter setting when using line sensor XW RNGE (Range) 5
X= +100
LENG (Length) 5
Y= +100
DET (Detection) C
TOL
YW RNGE (Range) 5
X= +100
LENG (Length) 5
= +000
DET (Detection) C
Y= +100 = +000 MAT 00 3.
COORD (Coordinate) DEV (Deviation)
T= 000000 RAW SCRN 1. Not displayed in Mode Y. 2. Not displayed in Mode X. 3. Displayed in Mode P.
56
Coordinate value display selection
Page 65
Chapter 4
Setting procedure
4 Main menu “*” indicates the initial setting value. Menu item
Setting
SHUTTER
1/60* to 1/10000
REGISTER
N/Y
POS• 1
To sub menu (Refer to 5 for details.)
X= 000, - - Y= 000, - - ILLU
OFF*, ON
T=000000, - - RAW SCRN*
RAW SCRN
PROCES1 PROCES2
Description Set the shutter speed. Save an image. Set the position of target.
Measured value display Measured value display Enable/disable the illumination adjustment function. Processing time display The actual image captured by the camera. Processed image for the detection. Processed image for the detection.
Purpose When detecting a fast moving target. To save a target image in the memory. Prepare position adjustment.
Check the position of an Xcoordinate. Check the position of a Ycoordinate. Enable the function to automatically adjust illumination when the light quantity changes. Check the processing time. Check the unprocessed image. Check the setting.
4
Check the setting.
57
Page 66
Chapter 4
Setting procedure 5 Position adjustment menu “*” indicates the initial setting value. Menu item COLOR
Setting To sub menu (Refer to 3 for details.) P* X
Y
X+Y MODE•
X>Y
4
X<Y
PW (Pattern window) (Only when mode P is selected) SW (Search window) (Only when mode P is selected) SPEED XW (Only when a mode other than P is selected) YW (Only when a mode other than P is selected) FILTER (Only when a mode other than P is selected)
Description
Extract color for detection or position adjustment.
Draw a pattern window and a search window. Set the range to detect the pattern edge in the Xaxis direction. Set the range to detect the pattern edge in the Yaxis direction. Set the range to detect the pattern edges in both the X- and Y- axis directions. Set the range to detect the pattern edges in both the X- and Y- axis directions.
Adjust position using "pattern search". Detect (adjust) the position of a pattern by using only the pattern edge in the X-axis direction Detect (adjust) the position of a pattern by using only the pattern edge in the Y-axis direction Detect (adjust) the position of a pattern by using the pattern edges in both the X- and Y- axis directions Detect (adjust) the position of a pattern by first using the edge in the X-axis direction and then using the edge in the Y-axis direction. Detect (adjust) the position of a pattern by first using the edge in the Y-axis direction and then using the edge in the X-axis direction. Determine the size and position of a pattern window.
Set the range to detect the pattern edges in both the X- and Y- axis directions. Determine the size and position of a pattern window.
0 to 5 (2*)
To sub menu (Refer to 6 for details.)
Determine the range of a search window.
Determine the range of a search window.
Set the speed of the search. 5: Slow (Accurate search), 0: Fast (Rough search) Set the range of an edge detection window in the X-axis direction. Set the range of an edge detection window in the Y-axis direction. Set the value of each filter.
Change the speed (accuracy) of the search.
COORD (Coordinate) TOL (Tolerance) DEV (Deviation)
X= +000
Y= +000
MAT 000
+500 to -500 (+500*), +500 to -500 (-0*) +480 to -480 (+480*), +480 to -480 (-0*) 0 to 100 (50*) (Only when mode P is selected)
RAW SCRN RAW SCRN
PROCES1 PROCES2
58
Set the tolerance on the distance in the X-axis direction. Set the tolerance on the distance in the Y-axis direction. Set the tolerance of the matching rate. Processing time display
T= 000000
Purpose
Extract the color of a target.
The actual image captured by the camera. Processed image for the detection. Processed image for the detection.
Set the range of an edge detection window in the X-axis direction. Set the range of an edge detection window in the Y-axis direction. Change the filter setting value of line sensor.
Set the numerical value output to display an absolute coordinate value in pixels. Set the numerical value output to display the deviation amount in comparison to the registered screen. Set the tolerance of an Xcoordinate value. Set the tolerance of a Ycoordinate value. Compare the matching rate between the stored pattern and detected pattern. Check the processing time. Check the unprocessed image. Check the setting. Check the setting.
Page 67
Chapter 4
Setting procedure
6 Filter setting when using line sensor “*” indicates the initial setting value.
Menu item
Setting
XW: RNGE (Range)
1 to 64 (5*)
LENG (Length)
1 to 64 (5*)
B DET (Detection) C* YW: RNGE (Range)
1 to 64 (5*)
LENG (Length)
1 to 64 (5*)
B DET (Detection) C*
Description
Purpose
Set the range of the edge to be Set the range of the edge recognized in the X-axis direction. to be recognized. (Units: pixels) Set the length of the edge to be Set the length of the edge recognized in the X-axis direction. to be recognized. (Units: pixels) Detect the first edge of the, - - background in the window in the X-axis direction. Detect the first edge of the, - - extracted color in the window in the X-axis direction. Set the range of the edge to be Set the range of the edge recognized in the Y-axis direction. to be recognized. (Units: pixels) Set the length of the edge to be Set the length of the edge recognized in the Y-axis direction. to be recognized. (Units: pixels) Detect the first edge of the, - - background in the window in the Y-axis direction. Detect the first edge of the, - - extracted color in the window in the Y-axis direction.
59
4
Page 68
Chapter 4
Setting procedure
4.5.2 Shutter Speed Adjustment When the target is moving fast, choose a fast shutter speed to ensure the captured image is clear. The shutter speed selection is available in each measurement mode. Select the speed best suited for your application.
Setting procedure 1. Move the ENT key up or down to place the cursor on “SHUTTER”. ENT
MODE AREA•CON SHUTTER REGISTER
2. Press the ENT key. The cursor moves to the numerical value line. ENT
4
AREA•CON SHUTTER 1 / 60
3. Move the ENT key up or down to select a shutter speed from 1/60 to 1/ 10000.
ENT
AREA•CON SHUTTER 1 / 250
4. Press the ENT key to accept the value. The cursor returns to “SHUTTER”. ENT
Note: When selecting a mode other than [AREA•CON] mode, you need to provide a trigger input to see the current video. Press the TRIGGER key on the remote control console or input a trigger signal to the I/O terminal block.
60
Page 69
Chapter 4
Setting procedure
Adjustment Shutter speed 1/60 1/125 1/250 1/500 1/1000 1/2000 1/4000 1/10000
•
Normal Sensor for trigger input
Fast
When the shutter speed is too slow, the target image is blurred. RUN No 0 MODE AREA•CON WINDOW1 MEASURE 005510 POS•1 TOL H=100000 L=003000
4
T=000063 PROCES2 ●-------
•
When the shutter speed is fast enough, the target image is clear. RUN No 0 MODE AREA•CON WINDOW1 MEASURE 005510 POS•1 TOL H=100000 L=003000
T=000063 PROCES2 ●-------
Note: The faster the shutter speed is set, the darker the image on the monitor becomes. Choose a wide lens diaphragm or increase the illumination level. For illumination, use an inverter lamp or a lamp equipped with a reliable DC power supply.
61
Page 70
Chapter 4
Setting procedure
4.5.3 Advanced “COLOR” Setting Use the following “COLOR” settings when an accurate search is required or when the current color extraction is not successful.
SELECT SEN • 5 BACK • BK IGNORE AUTO COPY REGISTER
“SEN” (Sensitivity) setting Setting: 0 to 20 (Initial value: 5)
4
•
Adjust the sensitivity for the color extraction when selecting a color in the “SELECT” menu.
•
A smaller value represents high sensitivity for color recognition. The color can be extracted in minute steps in the “SELECT” setting.
•
A larger value represents low sensitivity for color recognition. Use larger values to roughly extract the color when the target has a small number of colors.
1. Move the ENT key up or down to place the cursor on “SEN”.
ENT
SELECT SEN • 5 BACK • BK IGNORE AUTO COPY
2. 1) Press the ENT key. The cursor moves to the numerical value line. ENT
SELECT SEN • 5 BACK • BK IGNORE AUTO COPY
2) Move the ENT key up or down to select the sensitivity value. When the ENT key is moved up, the value is increased; when the ENT key is moved down, the value is decreased.
ENT
3) Press the ENT key to accept the value. ENT
62