The text of a manual · part 11 of 24
CV-700 Series User's Manual: High-speed, High-accuracy, Color Vision System, pages 101 to 110
Pages 101 to 110 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 101
Chapter 4
4.6.8
Setting Procedure
Basic setting procedure for the GRAVITY mode Use the “GRAVITY” mode to determine the center of gravity and the angle of principal axis for the extracted area in the binary-converted image data. Center of gravity: A point at which the target object is supported to be kept in balance.
Y Y
X
X
The X-/Y-coordinates of the center of gravity are determined on the screen.
4
Angle of principal axis: The longitudinal angle (θ) of a target.
θ
Note: According to the operation principles, detection will be unstable under the following conditions. • When the cluster of extracted colors spreads across the MEASURE window. • When two or more clusters with a similar size exist in the MEASURE window. • When the principal axis is not determined. (e.g. square and circular objects) This section describes the basic setting procedure for the [GRAVITY] mode. 1. First follow the “Basic setting procedures” (➮ page 36) to set the parameters to the color settings. 2. Set [MEASURE] (Measurement window) Specify the size of the window used for measurement. 1) Place the cursor on [MEASURE] and press the [ENT] key. The window selection menu appears. 2) Select the shape of the window from [SQR] (square) and [CIRC] (circular).
MEASURE SQR CIRC
91
Page 102
Chapter 4
Setting Procedure 3) Press the [ENT] key. A frame appears on the screen. The screen below shows the frame when [SQR] is selected. CAM1 CAM2 PROGRAM WIND•1 INSPECT GRAVITY SEL SCRN COLOR MEASURE 200, 220 300, 300 DATA X=+0.000 Y=+0.000 ANG=+000 TOL
ANALOG T= RAW SCR
4) Move the cursor to enclose the desired area for measurement. CAM1 CAM2 PROGRAM WIND•1 INSPECT GRAVITY SEL SCRN COLOR MEASURE 200, 220 300, 300 DATA X=+0.000 Y=+0.000 ANG=+000 TOL
4
ANALOG T= RAW SCR
5) The window drawing mode changes as follows every time the [ENT] key is pressed. Square window
Circular window
Tips
To change the window shape Selecting SQR or CIRC is available only when the window is not drawn. To change the shape to another selection (square or circular) after drawing the window, clear the current window. To clear, move cursor to [MEASURE] and hold [CLEAR] for at least 2 seconds. Note 1: When two or more targets enter the MEASURE window, the target with the greatest area is measured. Note 2: Be sure the [MEASURE] window does not come into contact with the targets. 6) After setting the size and position of the window, press the [ESCAPE] key to exit the [MEASURE] setting.
92
Page 103
Chapter 4
Setting Procedure
■ Mask window When a mask window ([MASK]) is overlapped with a measurement window, the area inside of the mask window is omitted from the measurement. Draw a mask window using the same procedure as for a measurement window. Area to be measured
MEASURE MASK
[MASK] window
[MEASURE] window
3. Set the TOL (Tolerance) of the coordinates Set the allowable range (upper and lower limits) for the X and Y coordinates. Set the tolerance for each displayed value. 1) Place the cursor on [TOL] and press the [ENT] key. The TOL window appears. 2) Place the cursor on [X=xxx] under [TOL] and press the [ENT] key. The value for the first digit is shown as highlighted. You can enter a numerical value.
TOL X=+0.000 =+0.000 Y=+0.000 =+0.000 3) Press the [▲]/[▼] cursor keys (panel key) or press the [ENT] key up or down to change the value. • •
When the [ENT] key is moved up repeatedly, the value increments by one from “0”. After “9”, the second digit is incremented. The setting range is ±99999.
TOL X=+0.000 =+0.000 Y=+0.000 =+0.000 4) Press the [ENT] key to confirm the tolerance value.
TOL X=+50.00 =+0.000 Y=+10.00 =+0.000 4. Set the [TOL] of the angle Set the allowable range (upper and lower limits) for the angle of the principal axis (the longitudinal angle of the cluster). The units are degrees. 1) Place the cursor on [TOL] and press the [ENT] key. The TOL window appears.
93
4
Page 104
Chapter 4
Setting Procedure 2) Place the cursor on “ANG=180” (the upper limit of tolerance for the angle), and press the [ENT] key. The value for the first digit is shown as highlighted. You can enter a numerical value.
ANG= 180 = 000 3) Press the [▲]/[▼] cursor keys (panel key) or press the [ENT] key up or down to change the value.
ANG= 180 = 000 4) Press the [ENT] key to confirm the tolerance value. 5) Set the lower limit of the tolerance for the angle following the same procedure for the upper limit. The basic setting for the GRAVITY mode is complete.
Operation check after changing the settings
4
1. Press the [ESCAPE] key to return to the initial menu screen. 2. Press the [TRIGGER] key. •
Cross-shaped cursors appear on the center of gravity in the orientation of the angle of the principal axis. CAM1 CAM2 PROGRAM WIND•1 INSPECT GRAVITY SEL SCRN COLOR MEASURE MASK AREAFILT DATA X=+0.000 Y=+0.000 ANG=+000 TOL X=+50.00 =+0.000 Y=+10.00 =+0.000 ANG=180 =000 T= RAW SCR
Tips
• You can omit the undesired noise and/or stains in the window from counting by using “AREAFILT” (Area filter). (➮ page 101) • “FILTER” is also available for the setting. (➮ page 103) 3. Check the detection result indicator. Green: Acceptable (The measured value is within the tolerance range.) Red: Unacceptable (The measured value is outside of the tolerance range.) White: No detection (The trigger signal is not input.)
Measured value
DATA X=+10.00 Y=+45.00 T= RAW SCR
Detection result
94
Page 105
Chapter 4
Setting Procedure
Saving the settings Save the setting data. The following three can be used to save the data. •
Press the [RUN/PROG] panel key for at least two seconds or slide the mode selection slide switch on the remote control console up. When the CV-701(P)/751(P) enters [RUN] mode, the message <REGISTER SET> appears on the screen and the settings are saved in the internal memory.
•
Select [SAVE] on the menu screen. When the [ENT] key is pressed, the message “REGISTER SET” appears on the screen and the settings are saved in the internal memory. CAM1 CAM2 PROGRAM No.00 MODE INS/TRG SHUTTER SCRN REG
OPTION SAVE T=
WIND•1 INSPECT GRAVITY DATA X=+0.000 Y=+0.000 ANG=+000
REGISTER SET
•
4
OPTION SAVE T= RAW SCR
Save the data in CompactFlash memory (Optional) ➮
See “Chapter 7 CompactFlash Memory” on page 171 for the procedure.
Note 1: Do not turn the power off until the message “REGISTER SET” disappears. Note 2: If the power is turned off before saving the settings, the setting data will be lost.
95
Page 106
Chapter 4
Setting Procedure
4.7 “INS” Mode Advanced Settings 4.7.1
“INS/TRG” menu
Menu structure 2. Window menu
1. Main menu No.00 MODE INS/TRG
SHUTTER SCRN REG
4
WIND•1 INSPECT OUTER DATA TOL H= L=
OPTION SAVE T= RAW SCR
96
ARE/CON INS/TRG INS+POS ABS.POS REL.POS
WIND•1 INS OUTER SEL SCRN
CAM1 CAM2 WIND•1 WIND•2 WIND•3 WIND•4 WIND•5 WIND•6 WIND•7 WIND•8
SVD SCRN ILLU DATA CAL
COLOR SCAN
AREA OUTER INNER GAP PITCH EDGE NO COUNT POINT STAIN GRAVITY
3. Color menu CLR TYPE COLOR1 SELECT SEN=5
X Y
MEASURE
IGNORE AUTO
EDGE SEN 030 DATA TOL H= L=
SCRN REG
ANALOG
LEVEL FILTER
COLOR1 COLOR2 GRAY WIND•1 WIND•2 WIND•3 WIND•4 WIND•5 WIND•6 WIND•7 WIND•8
Page 107
Chapter 4
Setting Procedure
1. Main menu “*” indicates the initial setting value.
Parameter
Setting
Description
Function
00* to 15
Program No. for the setting
Change the program No. to set several settings.
1/30 to 1/10000 (1/60*)
Shutter speed
Select a faster shutter speed when detecting a fast-moving target.
Register the reference screen.
Save a target image in the memory.
Set the INS mode, target color, and detection window.
Set details for detection.
INSPECT
INS mode display
Check the INS mode for the selected window.
DATA
Measured value display
Check the measured value.
Set the upper limit “ H” and the lower limit “ L” .
Set the measured data. (Units: pixels)
PROGRAM MODE SHUTTER
SCRN REG N/Y
WIND• 1
To sub menu (Refer to “ 2.” for details).
TOL
H=000000 L=000000
OPTION
To sub menu (Refer to respective Set the illumination sections for adjustment function. details.)
Set optional settings.
SAVE
Save the setting data.
Save the setting data in the memory.
T=000000
Processing time display
Check the processing time.
RAW SCR
RAW SCR*
The actual image captured Check the unprocessed by the camera. image.
PROCES1
Processed image for detection.
Check the detection condition.
PROCES2
Processed image for detection.
Check the detection condition.
PROCES3
Processed image for detection.
Check the detection condition.
PROCES4
Processed image for detection.
Check the detection condition.
97
4
Page 108
Chapter 4
Setting Procedure
2. Window menu
“*” indicates the initial setting value. **
WIND• 1
SEL SCRN
COLOR
DET
4 SCAN
SCAN
MEASURE
EDGE SEN MASK AREAFILT SIZE POINT DATA NUMBER MATCH
TOL
LEVEL
SET
ANALOG
98
WIND1* to 8
Window No.
Change the window No. to set several windows.
GRAVITY
POINT STAIN
COUNT
PITCH
EDGE NO
Function
GAP
Description
INNER
Setting
AREA
Parameter
OUTER
INS (Inspect) mode
❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍
CAM1* CAM2 Select the camera image When two cameras are ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍ for screen registration. connected. CAM1|2 CAM1/2 To sub menu (Refer Set the colors to be Extract colors for detection. ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍ to “ 3.” for details). extracted. With the cursor, select the Count pixels in the COLOR* pixels to be extracted in extracted color. colors on the screen. ❍ – – – – – – – – – With the cursor, select the Count pixels in the BACK pixels to be extracted in the background. background on the screen. Set the scanning direction X* Set the scanning direction. to either the X- or Y- axis – ❍ ❍ ❍ ❍ ❍ – – – – Y direction. Select the direction of edge BL ➞ WH * Select the direction for detection for a brightness – – – – – ❍ – – – – measurement. change from BL ➞ WH or WH ➞ BL WH ➞ BL. ❍ ❍ ❍ ❍ ❍ ❍ ❍ – ❍ ❍ SQR ❍ – – – – – ❍ – ❍ ❍ CIRC Draw a square, circular, or Set the range to be ❍ – – – – – – – – – F SQR free square window on the measured. screen. RING – – – – – – – – ❍ – ARC – – – – – – – – ❍ – Set the sensitivity for edge When edge detection is 000 to 100 – ❍ ❍ ❍ ❍ ❍ – – – – detection. unstable. ❍ – – – – – ❍ – – ❍ SQR Draw a square, circular, or Set the range not to be ❍ – – – – – ❍ – – ❍ CIRC free square window on the measured. screen. ❍ – – – – – – – – – F SQR H=65535 Set areas of targets to be Set an area filter. – – – – – – ❍ – – ❍ L=000000 omitted. Set the size of a point for Select the size of points for 4/8/16 – – – – – – – ❍ – – measurement. POINT measurement. Set the position of a point Select positions of points P1 to P8 – – – – – – – ❍ – – for measurement. for POINT measurement. –––––––– Measured value display Check the measured value. ❍ ❍ ❍ ❍ ❍ ❍ – – ❍ ❍ Check the counted number 00 0 Measured result display. – – – – – – ❍ – – – with the COUNT mode. Check the measured result –––––––– Measured result display. – – – – – – – ❍ – – with the POINT mode. Set the tolerance to judge whether the measured H=000000 Set the upper limit “ H” , ❍ ❍ ❍ ❍ ❍ ❍ ❍ – ❍ ❍ value is acceptable or L=000000 and the lower limit “ L” . unacceptable. (Units: pixels) Set the detection level for 000 Set the level of the stain. presence/absence – – – – – – – – ❍ – detection of stains. Set the tolerance for the Set the tolerance for measured result with the – – – – – – – ❍ – – POINT mode. POINT mode. DATA H Output the measured value ANALOG H Set the scaling value for ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍ ❍ with the desired output DATA L analog output. voltage. ANALOG L
Page 109
Chapter 4
Setting Procedure
3. Color menu “*” indicates the initial setting value.
Parameter
Setting
Description
Function
Select the color extraction settings.
Change the extraction methods or copy the settings of other windows.
COLOR COLOR1 COLOR2 CLR TYPE GRAY WIND1 to 8 POS ADJ1 to 2 SELECT
Move the cursor on the screen to select the colors To extract the colors. to be extracted.
SEN
Set the sensitivity for the Change the color range to color range when selecting be extracted in one the extraction colors by operation. using the cursor.
0 to 9 (5*)
BL* Set the background color.
When the detected image is not clear.
IGNORE
Select colors not to be extracted.
Omit selected colors from those extracted.
AUTO
Automatically extend the range for color extraction.
Stabilize the color extraction.
SCRN REG N/Y
Register the reference image.
Save the target image in the memory.
LEVEL
Select a level for color extraction.
Manually select a level for color extraction.
Select a filter. (➮ See page 103 for details.)
Omit the noise or optimize detection.
BACK WH
FILTER
11 types
99
4
Page 110
Chapter 4
4.7.2
Setting Procedure
Sensitivity adjustment for edge detection
Adjust the sensitivity for edge detection When edge detection is unstable (e.g. some edges are not detected or unnecessary edges are detected), adjust the sensitivity to optimize detection. 1. Place the cursor on [EDGE SEN] (Edge sensitivity) in the window menu and press the [ENT] key. The first digit is shown as highlighted.
MEASURE EDGE SEN 030 2. Move the [ENT] key up or down to change the value for [EDGE SEN]. •
4 •
The change in the value for [EDGE SEN] is reflected in the edge detection status on the monitor screen. Set the optimal sensitivity while watching the monitor. A larger value for [EDGE SEN] decreases the sensitivity, and a smaller value increases the sensitivity.
MEASURE EDGE SEN 030
CAM1 CAM2 PROGRAM WIND•1 INSPECT OUTER SCRN REG COLOR SCAN MEASURE EDGE SEN 035 DATA +0.000 TOL H=+0.000 L= +0.000 ANALOG T= RAW SCR
100