The text of a manual · part 4 of 9
Compact Color Vision System CV-301 Series Instruction Manual, pages 31 to 40
Pages 31 to 40 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 31
Chapter 4 Setting procedure Explains how to use the remote control console to set the CV-301. Describes from the basic setting to the advanced setting.
4.1
Remote Control Console and Screen Display ................. 24
4.1.1 Remote Control Console ....................................................... 24 4.1.2 Screen Page Layout .............................................................. 25 4.2
Preparation and Basic Setting ........................................... 26
4.2.1 Preparation before Setting ..................................................... 26 4.2.2 Basic Setting .......................................................................... 27 4.2.3 Screen Selection .................................................................... 30 4.3
[AREA] Mode Setting .......................................................... 32
4.3.1 [AREA•CON] Mode Menu ...................................................... 32 4.3.2 Setting Parameters and Procedure ....................................... 33 4.4
[POS “Position detection”] Mode Setting ......................... 42
4.4.1 [ABS•POS] Mode Menu ......................................................... 42 4.4.2 Setting Parameters and Procedure ....................................... 43 4.5
High Precision Setting ....................................................... 53
4.5.1 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6
Menu Item List ....................................................................... 53 Shutter Speed Adjustment ..................................................... 60 Advanced “COLOR” Setting .................................................. 62 Advanced “Position Adjustment” Setting ............................... 65 Illumination Adjustment Function ........................................... 70 Erasing Settings ..................................................................... 71
4.6
Initialization ......................................................................... 72
4.6.1 Initialization Procedure .......................................................... 72 4.6.2 Initialization by Program No. .................................................. 73 4.7
Input/Output Operation in PROGRAM Mode .................... 74
4.8
Changing Environmental Setting ...................................... 75
4.8.1 Change Environmental Setting .............................................. 75
Page 32
Chapter 4
4.1
Setting procedure
Remote Control Console and Screen Display The remote control console is used to set the CV controller for detection. The screen display is a display shown on the monitor. Use the remote control console while watching the monitor screen.
4.1.1 Remote Control Console
[ENT] key Move this key in the direction of one of the arrows or press the center of the key. RUN PROG
ENT
ESCAPE
[ESCAPE] key Press this key to exit each setting.
4
SCREEN
TRIGGER
CLEAR
[SCREEN] key Press this key to select the screen display from [RAW SCRN], [PROCES1], or [PROCES2]. (➮ Refer to page 30.)
[Mode selection slide switch] Slide this switch up or down to select either RUN (Run) or PROG (Program) operation mode.
POWER
[TRIGGER] key Press this key to input a trigger signal. Hold down the key for 2 seconds for continuous trigger input. Press it again to stop the trigger input. [CLEAR] key Press this key to cancel the setting.
How to use the [ENT] key ■ Press the center of the key • To select menu item. • To confirm the numerical set value.
EN T
■ Move the key in the direction of an arrow The key can be moved up, down, right, left and diagonally. • • • •
24
To move through menu items. To enter [TOL “tolerance”] value. To move the arrow cursor on the monitor. To change the size of a window or move a window.
ENT
Page 33
Chapter 4
Setting procedure
4.1.2 Screen Page Layout The cursor position is displayed in reverse video. The menu screen has a layered structure. Use the [ENT] and [ESCAPE] keys to move through the layers. ■ Initial screen Image screen
Menu screen
PROG No 0 MODE AREA•CON SHUTTER REGISTER WINDOW 1 MEASURE 000000 TOL H= 000000 L = 000000 ILLU OFF T=000017 RAW SCRN --------
[RUN]/[PROG] display Shows “RUN” when the remote control console slide switch is set to RUN.
Menu screen Displayed items vary depending on the measurement modes.
Display for each mode The following menu screens are displayed according to the current measurement mode.
Mode: [AREA•TRG “Area trigger”]
Mode: [AREA + POS “Area + Position”]
Mode: [ABS•POS “Absolute position”]
Mode: [REL•POS “Relative position”]
PROG
PROG
PROG
PROG
No 0 MODE AREA•TRG SHUTTER REGISTER
No 0 MODE AREA+POS SHUTTER REGISTER POS • 1 WINDOW 1 MEASURE 000000 TOL H= 000000 L = 000000 ILLU OFF T=000063 RAW SCRN --------
No 0 MODE ABS•POS SHUTTER REGISTER POS • 1
No 0 MODE REL•POS SHUTTER REGISTER POS • 1 POS • 2
X= 000 Y= 000
X= 000 Y= 000
ILLU OFF T=000063 RAW SCRN ●-------
ILLU OFF T=000092 RAW SCRN ●-------
WINDOW 1 MEASURE 000000 TOL H= 000000 L = 000000 ILLU OFF T=000034 RAW SCRN --------
25
4
Page 34
Chapter 4
4.2
Setting procedure
Preparation and basic setting
4.2.1 Preparation before Setting Before turning on the power 1. Check the cable connections. ➮
Refer to page 10.
2. Set the remote control console’s mode selection slide switch to “Program”.
ENT
ESCAPE
RUN PROG
Mode selection slide switch Program
4 Turning on the power 1. Turn on the power. An unprocessed screen is projected on the monitor. 2. Aim the camera at a target and adjust the lens and illumination.
Illumination lamp
Note: If the color of the target displayed on the monitor is different from that of the actual target, adjust the white balance. (➮ Refer to page 75.)
26
Page 35
Chapter 4
Setting procedure
4.2.2 Basic Setting This section explains basic information about how to use the vision system and how to use major functions.
Screen coordinates The CV-301’s screen defines the upper left point as the reference point and is composed of 240,000 pixels: 500 pixels in the X-axis direction and 480 pixels in Yaxis direction. The tolerance value and position indication are presented using pixels as the units. (0,0) 1 2 3 ···
X-axis
1 pixel
···
1 2 3
(499,0)
240,000 pixels
4 (0,479)
(499,479)
Y-axis
Note: A pixel is a basic unit in image processing. The length and area are presented in pixels.
Drawing window To set a measurement range on the screen, draw a window (frame). The shape of the window can either be a circle or a rectangle. The following section explains how to draw the window.
PROG WINDOW 1 COLOR MEASURE 200, 200 240, 240 MASK – – –, – – – – – –, – – – DETECT MEASURE 003017 TOL H=000000 L=000000 T=000017 RAW SCRN --------
Rectangle (SQR) window
27
Page 36
Chapter 4
Setting procedure
Drawing a rectangle (SQR) window 1. Move the ENT key horizontally and vertically to move point A to the desired position.
A
D
B
C
ENT
2. Press the ENT key to determine point A. ENT
3. Move the ENT key horizontally and vertically to move point C to the desired position.
4
A
D
B
C
ENT
4. Press the ENT key to determine point C. ENT
5. Move the ENT key horizontally and vertically to move the entire window. To follow steps 1 through 5 again, press the ENT key.
A
D
B
C
ENT
6. After determining the size and position of the window, press the ESCAPE key to exit MEASURE mode. ESCAPE
Drawing a circle (CL) window 1. Move the ENT key up or down to change the radius. ENT
A 2. Press the ENT key to determine point A. ENT
28
Page 37
Chapter 4
Setting procedure
3. Move the ENT key horizontally and vertically to move the entire window.
A ENT
B
D C
4. To follow steps 1 through 3 again, press the ENT key. 5. After determining the size and position of the window, press the ESCAPE key to exit MEASURE mode. ESCAPE
Every time the ENT key is pressed, the window drawing mode changes as shown in the figure on the right. When drawing a rectangular window
4
ENT
When drawing a circular window
Reference: To change the window shape Select the window shape before drawing the window. To change the window shape from a rectangle to a circle or from a circle to a rectangle after drawing the window, erase the current window. (➮ Refer to page 71.)
Window coordinate value display The window coordinate value is displayed using numerical values. Use the value to check or save the specified coordinate values. Rectangle 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)
Circle A (100, 150)
Radius: 50
(100, 200)
MEASURE 050,000 100,200
Upper line: The left value indicates the radius. The right value is always “000”. Lower line: (X, Y) coordinates of circle center
29
Page 38
Chapter 4
Setting procedure
4.2.3 Screen Selection Three types of screens can be selected. Use a screen other than the raw screen to check the settings and operation.
ESCAPE
SCREEN
TRIGGER
[SCREEN] key CLEAR
POWER
Operation Every time the [SCREEN] key is pressed, the screen changes to the next type in the sequence. PROG No 0 MODE AREA•CON SHUTTER REGISTER
RAW SCRN
4
PROCES1
WINDOW 1 MEASURE 000000 TOL H= 000000 L = 000000 ILLU OFF T=000017 RAW SCRN --------
[SCREEN] key
PROCES2
RAW SCRN (Unprocessed screen)
RUN No 0 MODE AREA•CON
WINDOW 1 MEASURE 003323 TOL H= 000000 L = 000000
T=000017 PROCES1 ●-------
PROCES1 (Processed screen 1)
RUN No 0 MODE AREA•CON
WINDOW 1 MEASURE 003323 TOL H= 000000 L = 000000
T=000017 PROCES2 ●-------
PROCES2 (Processed screen 2)
30
Page 39
Chapter 4
Setting procedure
Note: While the CV is operating, the trigger input is ignored during screen changes. When Trigger mode is selected and the trigger input interval is short, the Processed screen will not be displayed.
Measurement mode
RAW SCRN
Unprocessed screen
[AREA]
Unprocessed [ABS • POS "Absolute screen position"] (Cross cursor)
[REL • POS "Relative position"]
Area
Binary image
PROCES2 Projects the image of Processed screen 1 only in a window. Displays the image outside of the window in black-and-white.
Projects only the extracted color. Binary conversion Displays other screen colors in black(Cross cursor) and-white. (Cross cursor) Projects only the extracted color. Displays other colors in blackand-white. (Cross cursor)
Unprocessed screen (Cross cursor)
Binary conversion screen (PW1: Solid cross cursor, PW2: Dot cross cursor)
Unprocessed screen (Cross cursor)
Projects the image of Binary conversion Processed screen screen of Area 1 only in a window window. Displays (Cross cursor) the image outside of the window in black-and-white.
Unprocessed screen (Cross cursor)
Projects only the extracted color in Binary conversion POS 1 screen. of POS 1 screen Displays other (Cross cursor) colors in blackandwhite.
[AREA + POS "Area + position"] Position detection (In POS 1 menu)
PROCES1
4
When the CV is set to RUN mode, the [AREA] mode screen automatically appears.
31
Page 40
Chapter 4
4.3
Setting procedure
[AREA] Mode Setting This section describes the basic setting procedure using the [AREA•CON “Area continuous”] mode. [AREA] is a mode used for the detection of presence/absence of a target, detection of a missing target, detection of color and shape of a target, and measurement of area. ■ Difference between [AREA•CON] and [AREA•TRG] [AREA•CON] is a continuous detection mode. [AREA•TRG] is a trigger detection mode which detects a target when a trigger signal is input. The setting procedures for both modes are the same. ■ Setting [AREA + POS] To set the [AREA + POS] mode, set the [POS “Position adjustment”] setting described on page 45.
4.3.1 [AREA•CON] Mode Menu
4 Program No. Up to 16 programs (numbers 0 to 15) can be registered. SHUTTER Changes shutter speed. WINDOW1 Sets a window and selects the color to be extracted. Tolerance Sets the tolerance. (Units: pixels) Processing time Displays the processing time for each screen. (Units: ms) Detection result The color indicator shows the detection result for each window. ● (Green): Within tolerance
PROG No 0 MODE AREA•CON SHUTTER REGISTER
MODE 4 measurement modes can be selected.
WINDOW 1 MEASURE 000000 TOL H= 000000 L = 000000 ILLU OFF
Measured value Displays the measured value in a window. (Units: pixels)
T=000017 RAW SCRN ●●●----
Screen registration Store the image for setting.
Illumination adjustment function ON/OFF display Current display Shows the current screen mode. (Raw screen, Processed screen 1, Processed screen 2)
● (Red): Out of tolerance ● (White): No detection : Window has not been determined.
Note: This photo shows all indicators lit in order to demonstrate the actual color of the detection result. In actural operation, indicators ● and ●, or ● and ● are not lit simultaneously.
32