The text of a manual · part 6 of 9
Compact Color Vision System CV-301 Series Instruction Manual, pages 51 to 60
Pages 51 to 60 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 51
Chapter 4
Setting procedure
4.4.2 Setting Parameters and Procedure Setting parameters The following is the layered structure of the parameters for the [ABS•POS] mode setting. The parameters in bold type are described in the basic setting section. For information on the parameters not shown in bold type, refer to page 61. If you select [REL•POS] mode, you also have to set “POS•2” (Position adjustment 2). Use the same procedure to set both “POS•1” and “POS•2”.
PROG No MODE
SHUTTER REGISTER
Position adjustment menu Set position detection parameters, such as the color to be extracted, windows, and position tolerances.
POS•1
COLOR
Color extraction menu Specify the color to be extracted.
SELECT SEN•5
X=000
BACK•BK
Y=000
IGNORE
ILLU
COPY
4
AUTO REGISTER ZOOM
OFF T=000000 RAW SCRN
MODE•P
Main menu
(When mode P is selected)
P
Position adjustment mode selection
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.
Filter setting when using line sensor
YW 2. FILTER
XW RNGE (Range) 5
X= +000
LENG (Length) 5
Y= -000
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
Coordinate value display selection
1. Not displayed in Mode Y. 2. Not displayed in Mode X. 3. Displayed in Mode P.
43
Page 52
Chapter 4
Setting procedure
Basic setting 1. Determine the program No. You can set 16 programs (numbers 0 to 15). 1) Move the ENT key up or down to place the cursor on “No.”.
ENT
PROG No 0 MODE
2) Press the ENT key. Now you can change the program number. ENT
3) Move the ENT key up or down to select the number.
ENT
PROG No 1 MODE
4
4) Press the ENT key to choose the desired selection. ENT
Reference: Program numbers can be changed using the I/O terminals. ➮ Refer to pages 95 and 99. 2. Select the measurement mode. 1) Move the ENT key down to place the cursor on “MODE”. ENT
PROG No 1 MODE
2) Press the ENT key. The cursor moves one line down. ENT
3) Move the ENT key up or down to select [ABS•POS].
ENT
No 1 MODE ABS•POS
4) Press the ENT key to choose the desired selection. The cursor returns to “MODE”. ENT
44
Page 53
Chapter 4
Setting procedure
3. Register the screen. Store the image to be used for the setting in the memory. 1) Move the ENT key down to place the cursor on “REGISTER”. ENT
SHUTTER REGISTER POS • 1
2) Press the ENT key. The message “REGISTER SCREEN N/Y” appears To cancel the screen registration, press the ENT key while “N” is selected. PROG No 0 MODE ABS•POS SHUTTER REGISTER POS • 1
ENT
X= 000 Y= 000 MAT00
ERASE SCREEN N / Y
ILLU OFF T=000063 RAW SCRN ●-------
4
3) Move the ENT key right to select “Y”. ENT
Reference: When you press the TRIGGER key while “Y” is selected, the screen is updated to the latest image. 4) Press the ENT key. The current screen is stored in the memory. ENT
4. Set “COLOR” in the “POS•1” menu. Set the color to be extracted. 1) Move the ENT key up or down to place the cursor on “POS•1”. The menu changes. The cursor is placed on “Color”. ENT
SHUTTER REGISTER POS • 1
2) Press the ENT key. The menu changes. The cursor is placed on “SELECT”.
ENT
POS • 1 COLOR SELECT SEN • 5
3) Press the ENT key. The arrow cursor appears on the screen. ENT
45
Page 54
Chapter 4
Setting procedure 4) Move the ENT key in any direction to move the arrow cursor to the color to be extracted. PROG POS • 1 COLOR ENT
SEN • 5 BACK • BK IGNORE AUTO COPY REGISTER ZOOM 1 200,264 T=000063 PROCES1 ●-------
Arrow cursor
5) Press the ENT key. • The screen changes to Processed Screen 1 and the background becomes black.* Only the extracted color is faintly displayed. Pressing the ENT key makes the color clearer.
4
•
If there is another area which contains the color to be extracted, place the arrow cursor on the area and press the ENT key.
•
Press the CLEAR key to undo the last key operation. The clear key can be used to undo up to 5 previous steps.
*
The background becomes black because “BK” (black) is selected in “BACK” (background) in the menu. ➮ Refer to page 63 . PROG
ENT
POS • 1 COLOR
SEN • 5 BACK • BK IGNORE AUTO COPY REGISTER ZOOM 1 196,272 T=000063 PROCES1 ●-------
▲ PROG POS • 1 COLOR
SEN • 5 BACK • BK IGNORE AUTO COPY REGISTER ZOOM 1 238,364 T=000063 PROCES1 ●-------
6) Press the ESCAPE key. The cursor goes to “SELECT”. ESCAPE
46
Page 55
Chapter 4
Setting procedure
■ To zoom in on the image The image can be zoomed in during the color extraction. 1) Press the TRIGGER key. The cursor goes to the number next to “ZOOM”. TRIGGER
ZOOM
1
Zoom factor
2) Every time the ENT key is moved up, the image is zoomed in 2x, 4x, 8x, 16x, and 32x sequentially. If the ENT key is moved down, the image is zoomed out. Select the desired image size. PROG POS • 1 COLOR
ENT
SEN • 5 BACK • BK IGNORE AUTO COPY REGISTER ZOOM 1
4
270,270 T=000063 PROCES1 ●-------
▲ PROG POS • 1 COLOR
SEN • 5 BACK • BK IGNORE AUTO COPY REGISTER ZOOM 4 270,270 T=000063 PROCES1 ●-------
3) Press the TRIGGER key. You can continue the “SELECT” operation with the image size of the specified zoom factor. TRIGGER
47
Page 56
Chapter 4
Setting procedure 5. Extract color automatically using the “AUTO” function. More stable color extraction is ensured regardless of the variation of target color or the change in illumination. It is recommended that you set “AUTO” after the color extraction. 1) Move the ENT key up or down to select “AUTO”. ENT
IGNORE AUTO COPY
2) Press the ENT key repeatedly. The color selected at “SELECT” is extracted. Press the CLEAR key to undo the last key operation. The clear key can be used to undo up to 7 previous steps. PROG
ENT
POS • 1 COLOR SELECT SEN • 5 BACK • BK IGNORE AUTO COPY REGISTER
4
T=000063 PROCES1 ●-------
▲ PROG POS • 1 COLOR SELECT SEN • 5 BACK • BK IGNORE AUTO COPY REGISTER
T=000063 PROCES1 ●-------
3) Press the ESCAPE key. The cursor returns to “COLOR”. ESCAPE
■ To cancel the color extraction You can cancel the color selection and restart the procedure from the beginning. 1) Use the ENT key and ESCAPE key to place the cursor on “SELECT”. ENT
SELECT SEN • 5 BACK • BK
2) Hold down the CLEAR key for 2 seconds. The message “ERASE COLOR PROGRAM N/Y” appears. CLEAR
48
Page 57
Chapter 4
Setting procedure
3) Move the ENT key right to select “Y”. PROG
ENT
POS • 1 COLOR SELECT SEN • 5 BACK • BK IGNORE AUTO COPY REGISTER
ERASE COLOR PROGRAM N / Y
T=000063 PROCES1 ●-------
4) Press the ENT key. The color selection is canceled. ENT
There are two methods for “POS” (Position adjustment) setting: Pattern search and line sensor. This section describes the setting procedure using pattern search. ➮ Refer to page 19 for details about pattern search and line sensor. 6. Draw “PW” (Pattern window). Draw a window (range) around the image pattern using “SELECT” in the “COLOR” menu and save the window’s position on the screen. 1) Move the ENT key up or down to place the cursor on “PW”. ENT
MODE • P PW SW
2) Press the ENT key. The frame of the window appears on the screen. PROG ENT
POS • 1 COLOR MODE • P PW SW SPEED • 2 200,200 300,300 MAT 00 TOL X=+500 =+ 0 Y=+480 =+ 0 MAT 50 T=000063 RAW SCRN --------
3) Move the ENT key horizontally or vertically to enclose the pattern in the window. PROG POS • 1 COLOR MODE • P PW SW SPEED • 2 094,228 394,308 MAT 00 TOL X=+500 =+ 0 Y=+480 =+ 0 MAT 50 T=000063 RAW SCRN --------
ENT
Every time the ENT key is pressed, the window drawing mode changes as shown on the right.
ENT key
49
4
Page 58
Chapter 4
Setting procedure 4) After setting the size and position of the window, press the ESCAPE key to exit the “PW” setting. ESCAPE
Note: You cannot draw a pattern window (PW) larger than the search window (SW). If you need to draw a large pattern window, first increase the size of the search window described in step 7 before drawing the pattern window. 7. Draw “SW” (Search window). Draw a window (range) in which the pattern saved in the “PW” setting is searched. 1) Move the ENT key up or down to place the cursor on “SW”. ENT
4
PW SW SEN • 2
2) Press the ENT key. The frame of the window appears on the screen. ENT
3) Move the ENT key horizontally or vertically to enclose the desired area in the window. PROG POS • 1 COLOR MODE • P PW SW SPEED • 2 034,034 462,454 MAT 00 TOL X=+500 =+ 0 Y=+480 =+ 0 MAT 50 T=000046 PROCES1 --------
ENT
Every time the ENT key is pressed, the window drawing mode changes as shown on the right. ENT
ENT key
4) After setting the size and position of the window, press the ESCAPE key to exit the “SW” setting. ESCAPE
Reference: The search window (SW) is shown with a dotted line. The pattern window (PW) searches the specified pattern within the search window. If a similar pattern is positioned near the specified search pattern, narrow the search window to avoid detection errors.
50
Page 59
Chapter 4
Setting procedure
Narrowing the search window (SW) speeds up detection. Window coordinate value display The window coordinate value is displayed using numerical values. Use the value to check or save the coordinate values. A (200, 150)
D
MEASURE 200,150 400,300 B
Upper line: (X, Y) coordinates of point A Lower line: (X, Y) coordinates of point C
C (400, 300)
8. Set “TOL” (Tolerance) values. Set the allowable range (upper and lower limits) for the X- and Y-coordinates as the tolerance values. The values are shown in pixels. 1) Set the upper limit value for the X-coordinate. Move the ENT key up or down to place the cursor on “H = 000000” under “TOL”. TOL X=+500 =+ 0 ENT
2) Press the ENT key. “0” on the first digit is shown in reverse video. You can enter a numerical value. ENT
TOL X=+500 =+ 0
3) Move the ENT key right or left to select the digit to be changed. ENT
TOL X=+500 =+ 0
4) Move the ENT key up or down repeatedly. •
Every time the ENT key is moved up, the numerical value of the first digit increases from 0 to 9. When the ENT key is moved up while 9 is displayed, the value of the next digit increases.
•
Every time the ENT key is moved down, the numerical value decreases to 500.
•
The tolerance value for the X-coordinate can be set between +500 and -500. TOL X=+400 =+ 0 ENT
5) Press the ENT key to accept the entered value.
ENT
TOL X=+400 =+ 0
51
4
Page 60
Chapter 4
Setting procedure 6) Set the lower limit value for the X-coordinate, and the upper and lower limit values of the Y-coordinates using the same procedure as in steps 1) through 5). The tolerance value of a Y-coordinate can be set between +480 and -480.
TOL X =+400 X =+ 0 Y=+480 X =+ 0
Reference: You cannot set the upper limit value smaller than the lower limit value. This completes the tolerance setting.
Checking operation 1. Press the ESCAPE key to display the initial menu screen. ESCAPE
4
PROG No 0 MODE ABS•POS SHUTTER REGISTER POS•1 X= 000 Y= 000 MAT 00 ILLU OFF
T=000063 RAW SCAN ●-------
2. Press the TRIGGER key. TRIGGER
PROG No 1 MODE ABS•POS SHUTTER REGISTER POS•1 X= +224 Y= +268 MAT 100 ILLU OFF
T=000053 RAW SCAN ●-------
3. Check the detection result indicator. ● (Green): Acceptable (The measured value is within the tolerances.) ● (Red): Not acceptable (The measured value is out of the tolerances.) ● (White): No detection (The trigger input is not received.)
Detection result indicator
52
T=000076 RAW SCRN ●-------