Omron F400 - 06-1999, F400 Operation Manual

Page 1
Cat. No. Z135–E1-1
F400
OPERATION MANUAL
Color Vision Sensor
Page 2
i
Operation Manual
Produced June 1999
Page 3
!
!
!
ii
Notice:
OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual.
The following conventions are used to indicate and classify precautions in this manual. Always heed the information provided with them. Failure to heed precautions can result in injury to people or damage to property.
DANGER Indicates an imminently hazardous situation which, if not avoided, will result in death or
serious injury.
WARNING Indicates a potentially hazardous situation which, if not avoided, could result in death or
serious injury.
Caution Indicates a potentially hazardous situation which, if not avoided, may result in minor
or moderate injury, or property damage.
Visual Aids
The following headings will help you locate different types of information.
Note Indicates information of particular interest for efficient and convenient operation of the
product. Indicates pages where additional information can be found.
1. Indicates a procedure. The step numbers in the procedure correspond to the numbers in any related illustrations.
OMRON, 1999
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of OMRON.
No patent liability is assumed with respect to the use of the information contained herein. More­over, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained in this publication.
Page 4
iii
About this Manual:
This manual describes the measurement conditions, settings, and external device communications meth­ods for the F400 Color Vision Sensor. The F400 can take measurements using color information.
The F400 supports two scene modes that can be used for measurement: Color Pickup Mode and Color Filter Mode. The features of these two scene modes are as follows:
Color Pickup Mode: Only the specified color is extracted and measured. Color Filter Mode: A color filter is applied to create an easily measurable image. Color combinations
that are hard to distinguish in gray images because of low contrast in brightness, such as green and yellow, can be recognized and measured.
Please read this manual and other related manuals carefully and be sure to understand the information provided before attempting to install or operate the F400. The manuals for the F400 are outlined in the fol­lowing table.
Manual
Contents Cat. No.
Introduction Manual
Provides introductory information about the F400. This manual is designed for first-time users of the F400 and describes features of color gray measurement, basic operations of the F400, and the main F400 applications.
Z131-E1-1
Setup Manual
Describes hardware, wiring, and connections required to install the F400.
Z130-E1-1
Operation Manual
Describes F400 functions. Explains measurement settings and methods for communications with external devices.
Z135-E1-1
Section 1 Introduction
describes features, measurement modes, and menu tree of the F400
Color Vision Sensor.
Section 2 Basic Operations
describes the overall flow of F400 application and basic opera-
tions.
Section 3 Settings
describes how to set measurement conditions for F400 visual inspections.
Section 4 Checking and Executing Measurements
describes how to monitor if correct mea­surements are being performed with the set measurement conditions. It also describes how to perform measurements.
Section 5 System Settings
describes the system setting procedures for the F400.
Section 6 Communications with External Devices
describes the communications settings
and I/O formats for communications with external devices.
Section 7 T roubleshooting
lists the errors that may occur during F400 operation, along with
their probable causes and remedies.
WARNING Failure to read and understand the information provided in this manual may
result in personal injury or death, damage to the product, or product failure. Please read each section in its entirety and be sure you understand the information provided in the section and related sections before attempting any of the procedures or operations given.
!
Page 5
v
TABLE OF CONTENTS
PRECAUTIONS vii. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1 Safety Precautions viii. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 General Precautions viii. . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 1 – Introduction 1. . . . . . . . . . . . . . . . . . . . . . .
1-1 Features 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2 Measurement Modes 4. . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2-1 Color Pickup and Color Filter Modes 4. . . . . . . . . . . . .
1-2-2 Additional Color Filter Mode 4. . . . . . . . . . . . . . . . . . .
1-3 Menu Trees 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 2 – Basic Operations 7. . . . . . . . . . . . . . . . . . .
2-1 Menu Operations 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-1 Screen Displays 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-2 Input Devices 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-3 Menu Tree 10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-4 Inputting Values 10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-5 Drawing Measurement Regions 12. . . . . . . . . . . . . . . . . .
2-2 Starting and Quitting 14. . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2-1 Starting 14. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2-2 Selecting Scene Modes 15. . . . . . . . . . . . . . . . . . . . . . . .
2-2-3 Changing Scenes 16. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2-4 Copying and Clearing Scenes 17. . . . . . . . . . . . . . . . . . .
2-2-5 Quitting 18. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 3 – Settings 21. . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1 Adjusting Images 22. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1-1 Shutter Speed 24. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1-2 Applying Color Filters 24. . . . . . . . . . . . . . . . . . . . . . . . .
3-1-3 Creating a Color Filter 26. . . . . . . . . . . . . . . . . . . . . . . . .
3-1-4 Picking Up Measurement Colors 28. . . . . . . . . . . . . . . . .
3-1-5 Filtering 33. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1-6 Background Suppression 34. . . . . . . . . . . . . . . . . . . . . . .
3-1-7 Output Calibration 36. . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2 Position Compensation 37. . . . . . . . . . . . . . . . . . . . . . . . .
3-2-1 Adjusting Images for Easier Position Compensation 38. .
3-2-2 Setting Position Compensation Regions 38. . . . . . . . . . .
3-2-3 Searches 40. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2-4 Position Compensation using Edges 43. . . . . . . . . . . . . .
3-2-5 Area and Center of Gravity, and Center of
Gravity and Axis Angle 46. . . . . . . . . . . . . . . . . . . . . . . .
3-3 Measurement Methods 50. . . . . . . . . . . . . . . . . . . . . . . . .
3-3-1 Measurement Regions 50. . . . . . . . . . . . . . . . . . . . . . . . .
Page 6
Table of contents
vi
3-3-2 Surface Defects 52. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3-3 Searches 55. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3-4 Edge Processing 63. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3-5 Area and Center of Gravity, and Center of
Gravity and Axis Angle 67. . . . . . . . . . . . . . . . . . . . . . . .
3-4 Expressions 75. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 4 – Checking and Executing Measurements 83
4-1 Checking Measurements 84. . . . . . . . . . . . . . . . . . . . . . . .
4-1-1 Adjusting Evaluation Criteria while
Viewing Measurements 85. . . . . . . . . . . . . . . . . . . . . . . .
4-2 Measuring 92. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-2-1 Adjusting Evaluation Criteria during Measurement 93. . .
SECTION 5 – System Settings 95. . . . . . . . . . . . . . . . . . . .
5-1 White Balance 96. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2 Output Destination 97. . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-3 Backup 97. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-3-1 Operations Using the F400 97. . . . . . . . . . . . . . . . . . . . .
5-3-2 Operation Examples for the Personal Computer 99. . . . .
5-4 Display Settings 100. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-4-1 Measurement Screen Settings 100. . . . . . . . . . . . . . . . . . .
5-4-2 Changing the Display Image 103. . . . . . . . . . . . . . . . . . . .
5-5 Key Allocation 106. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-6 Startup Mode 107. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-7 Error Settings 108. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-8 Version 110. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 6 – Communications with External Devices 111
6-1 Terminal Blocks 112. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-1-1 I/O Format 112. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-1-2 Terminal Signal Operation and Timing 112. . . . . . . . . . . .
6-1-3 Setting Communications (Terminal Block) 118. . . . . . . . .
6-2 RS-232C Port 119. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2-1 Flowcharts 119. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2-2 Setting Communications (RS-232C) 121. . . . . . . . . . . . . .
6-2-3 Input Command List 122. . . . . . . . . . . . . . . . . . . . . . . . . .
6-2-4 I/O Format 123. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 7 – Troubleshooting 135. . . . . . . . . . . . . . . . . . . .
Glossary 139. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Index 149. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Page 7
vii
PRECAUTIONS
This section provides general precautions for using the F400 Color Vision Sensor.
The information contained in this section is important for the safe and reliable application of the F400 Color Vision Sensor. You must read this section and understand the information contained before attempting to set up or operate a F400 Color Vision Sensor.
1 Safety Precautions viii. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 General Precautions viii. . . . . . . . . . . . . . . . . . . . . . . . . . .
Page 8
!
!
!
!
!
!
!
!
!
!
!
!
PRECAUTIONS
viii
1 Safety Precautions
WARNING Cover the terminal blocks with the Terminal Block Protection Covers.
Uncovered terminal blocks can result in electric shock.
WARNING Use DC power supplies with safe extra low-voltage circuits on the
secondary side for the main F400 power supply and power supplies for the terminal blocks. Excessively high voltages can result in electric shock.
Caution Do not touch fluorescent or halogen lights while the power is ON or
immediately after the power is turned OFF. These lights generate heat and can cause burns.
Caution Do not use the F400 in environments with flammable or explosive gases.
Caution Install the F400 away from high-voltage equipment or motors to ensure safety during
operation and maintenance.
Caution Use the power supply cables and crimp terminals of specified sizes.
Caution Use at the power supply voltages specified in this manual.
Caution Be sure to securely tighten the screws when mounting F400 components.
Caution Do not dismantle, repair or modify any F400 components.
Caution Dispose of F400 components as industrial waste.
Caution To prevent damage from static electricity, use a wrist strap or another device for pre-
venting electrostatic charges when touching terminals or connector signal lines.
Caution Do not turn OFF the power while a message is being displayed indicating that proces-
sing is being performed. Data in memory will be destroyed, and the F400 may not operate correctly the next time it is started.
2 General Precautions
The user must operate the product according to the performance specifications described in the operation manuals.
Before using the product under conditions which are not described in the manual or applying the product to nuclear control systems, railroad systems, aviation systems, vehicles, combustion systems, medical equipment, amusement machines, safety equipment, and other systems, machines, and equipment that may have a serious influence on lives and property if used improperly, consult your OMRON representa­tive.
Make sure that the ratings and performance characteristics of the product are suffi­cient for the systems, machines, and equipment, and be sure to provide the systems, machines, and equipment with double safety mechanisms.
Page 9
1
SECTION 1
Introduction
This section describes features, measurement modes, and menu tree of the F400 Color Vision Sensor.
1-1 Features 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2 Measurement Modes 4. . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2-1 Color Pickup and Color Filter Modes 4. . . . . . . . . . . . .
1-2-2 Additional Color Filter Mode 4. . . . . . . . . . . . . . . . . . .
1-3 Menu Trees 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Page 10
1-1SectionFeatures
2
1-1 Features
Color Images
Color information from a color image can be used when performing measurements. Select one of the two F400 measurement modes, called scene modes, depending on the application. The two modes are Color Pickup Mode and Color Filter Mode.
Refer to t h e
Introduction Manual (Z131)
for information on color (hues and saturation)
and applications.
Color Pickup Mode
The Color Pickup mode is used to extract only specified colors. Simply click the color to be displayed on the screen to register it as a pickup color. Up to 8 colors can be registered per scene.
Applications include separation by color, such as for ice cream separation or for wir­ing checks.
Color Filter Mode
A color filter can be applied to create an easily measurable image. There are five color filters: Red, green, blue, colorgray, and gray. The colorgray filter is used to convert a color image to a grayscale image with 256 gradations by using hue and saturation settings. The colorgray filter enables measurement of color combinations, such as green and yellow, with low contrast in brightness making them hard to distinguish in gray images.
Applications include detection of small defects, such as surface defects on bottle caps, and inspection free from background distortion, such as inspecting the amount of adhesive that has been coated on a surface.
Page 11
1-1SectionFeatures
3
Position and orientation of object can be compensated before measurement. p. 37 There are four methods: Using search, edge, area and center of gravity, or center of gravity and axis angle.
Color of object and color read by camera can be adjusted auto­matically using white balance.
p. 96 Adjust white balance each
time lighting is changed.
Camera image can be adjusted to facilitate measurement. Filtering: Edges of object are enhanced and noise reduced.
p.
33 Background suppression: Background of object, such as pat-
terns, is excluded from measurement.
p. 34
Color filter: Contrast of measurement area is increased
p.24
Up to 8 specified colors can be picked up.
p. 28
Images can be checked on screen. Up to 16 images can be stored
in memory to confirm past images to see what problems have occurred. Images can be backed up on a computer.
p. 100
Setup can be changed smoothly.
p. 16 Each of 16 scenes can be
set up for different inspection conditions. Change scenes to setup a different measurement object.
Camera
Sync sensor
Monitor
Programmable Controller
Personal computer
Shutter speed can be adjusted to speed of measurement object.
p. 24
F400
Communications with external devices is possible through a terminal block or RS-232C port. Refer to the table on the next page.
The distance between two regions or the maximum value can be obtained by calculating measured values or by using functions.
p. 75
Input/Output Terminal block RS-232C
Trigger input Yes Yes Measurement values output No Yes Judgement output (OK/NG) Yes No
Terminal blocks:
p. 112
RS-232C port:
p. 119
Page 12
1-2SectionMeasurement Modes
4
1-2 Measurement Modes
There are five measurement modes. Different modes are available depending on the scene mode.
1-2-1 Color Pickup and Color Filter Modes
Search p. 55, 144
Density searches are used when inspecting the shape of specific objects. The object is measured using a registered measurement pattern called a model. The position of the object and the degree of conformity, called the correlation, with the model are cal­culated.
Edge
p. 63, 140
The edge measurements are used to find the coordinates of edges of the measure­ment object. The width of an object can be calculated by using an equation to subtract edge coordinates.
Area and Center of Gravity
p. 67, 147
The binary center of gravity and area can be used to calculate the size (i.e., the area) and the position (i.e., the center of gravity) of the measurement object.
Center of Gravity and Axis Angle
p. 67, 147
The binary axis angle can be used to calculate the orientation (i.e., the binary axis) of the measurement object, in addition to the center of gravity and area. Binary axis searches increase processing time, so binary center of gravity and area searches should be used when only the center of gravity and area are required.
1-2-2 Additional Color Filter Mode
Surface Defects p. 52, 142
The measurement object can be inspected for surface defects. Areas that are largely different in densities are detected as defects.
Page 13
1-3SectionMenu Trees
5
1-3 Menu Trees
Color Pickup and Color Filter Modes have different menu hierarchies. The menu hier­archies are outlined in the following diagrams. The same hierarchy exists under each scene.
Color Pickup
Shutter speed p. 24 Pickup color
p. 28
Calibration
p. 36
Position compensation
Area & gravity
p. 46
Measurement region
Judge
p. 75
Data
p. 75
SET
MON (Monitor) p. 84
RUN
p. 92
Scene 0
Scene 15
p. 16
Gravity & axis p. 46 Edge p. 43 Search p. 40
Area & gravity
p. 67
Gravity & axis p. 67 Edge p. 63 Search p. 55
White balance p. 96
SYS (System)
Communications settingsp. 118, 121
Backup p. 97 Display settings p. 100
Startup mode p. 107 Error method p. 108 Version p. 110
SAVE p. 18
Region 0 Region 1
Measurement region 0 to 15
Output p. 97
Set key operation
p. 106
Expression
Adjust
Page 14
1-3SectionMenu Trees
6
Color Filter
Shutter speed p. 24 Color filter
p. 24
Calibration
p. 36
Position compensation
Color filter
p. 37
Measurement region
Judgement
p. 75
Data
p. 75
SET
MON (Monitor) p. 84
RUN
p. 92
Scene 0
Scene 15
p. 16
Color select p. 37
Filtering p. 37 Background suppression level p. 37
Surface defects
p. 52
Search p. 55 Edge p. 63 Area & gravity p. 67
White balance p. 96
SYS (System)
Communications settings p. 118, 121
Backup p. 97 Display settings p. 100
Startup mode p. 107 Error method p. 108 Version p. 110
SAVE p. 18
Background suppression level p. 34
Color select
p. 26
Filtering p. 33
Adjust
Region
Search p. 55 Edge p. 63
Area & gravity p. 67 Gravity & axis p. 67
Gravity & axis p. 67
Region 0 Region 1
Measurement region 0 to 15
Outputp. 97
Set key operation
p. 106
Expression
Adjust
Page 15
7
SECTION 2
Basic Operations
This section describes the overall flow of F400 application and basic operations.
2-1 Menu Operations 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-1 Screen Displays 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-2 Input Devices 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-3 Menu Tree 10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-4 Inputting Values 10. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-5 Drawing Measurement Regions 12. . . . . . . . . . . . . . . . .
2-2 Starting and Quitting 14. . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2-1 Starting 14. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2-2 Selecting Scene Modes 15. . . . . . . . . . . . . . . . . . . . . . . .
2-2-3 Changing Scenes 16. . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2-4 Copying and Clearing Scenes 17. . . . . . . . . . . . . . . . . . .
2-2-5 Quitting 18. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Page 16
2-1SectionMenu Operations
8
2-1 Menu Operations
2-1-1 Screen Displays
The F400 is operated by selecting functions from the screen. Highlighted text indi­cates the current cursor position. The screen is shown in the following diagram.
Scene number
Mode
Key operations
B Mark
Color bar
Cursor position
Displayed image
---- --ms
Color thr
Scn 0BMONB
The current scene number is displayed. There are 16 scenes that can be created to change the measurement conditions easily.
Options will appear when an item with the B mark is selected. The current operating mode is displayed. The modes are Set, Monitor, Run, System,
and Save. The operating modes are described in the following table.
Mode Meaning
SET Used to set measurement conditions. MON (Monitor) Used to confirm whether or not the measurement is being performed correctly under the set
conditions and make adjustments if required. In this mode, measurement results are displayed on the video monitor only and are not output to an external device.
RUN Used to perform object measurements. Outputs measurement results to an external device
via terminal blocks or RS-232C. SYS (System) Used to make F400 system settings. SAVE Saves settings to flash memory. Always save altered settings before exiting.
The selected text is highlighted.
The type of image displayed on the video monitor is shown. Refer to
Section 5-4-2
Changing Displayed Images
. p. 103
The keys that can be used and their corresponding functions are displayed at the bot­tom of the screen.
The F400 will be in Color Filter Mode if the color bar is displayed and in Color Pickup Mode if the color bar is not displayed.
2-1-2 Input Devices
The menu operations are performed from either the Console or the RS-232C port.
— Filter/Pickup —
Scene Number
B Mark Mode
Cursor Position
Displayed Image
Key Operations
Color Bar
— Filter/Pickup —
Page 17
2-1SectionMenu Operations
9
Console
The Console is used to perform menu operations. Be sure to familiarize yourself with Console operations before actually using the menus.
TRIG (trigger) Key
ESC (escape) Key
Up, Down, Left, and Right Cursor Keys
SHIFT Key
ENT (enter) Key
Key Function
ESC: Escape Key ESC Key functions differ depending on the screen currently displayed. Refer to
the explanations for individual screens. (See note.) Interrupts processing and returns the user to the previous menu display.
TRIG: Trigger Key Starts object measurement.
Picks up a color when in Color Pickup Mode. ENT: Enter Key Executes a function or sets a value. Up and Down Keys Used to move the cursor up and down to select items.
The Up Key will increase a value by 1 and the Down Key will decrease a value
by 1. Continue pressing the Up or Down Key to quickly increase or decrease a
value. Left and Right Keys Used to move the cursor left or right to select items. SHIFT Key Must be pressed in combination with another key to have any effect. Specific
functions are assigned to SHIFT +
another key
for specific screens. (See note.)
Refer to the explanations for individual screens.
Note Possible to change assigned key functions or to assign new functions such as chang-
ing scenes or displays. Changed key allocations are effective only in the Monitor or Run mode. Refer to
Section 5-5 Key Allocation
. p. 106
RS-232C Port
There are keyboard key combinations for input via RS-232C that correspond to the Console keys when in Run Mode. Refer to
Section 6-2-3 Input Command List
.
p. 122
The keyboard key combinations are shown in the following table. The key codes shown on the right in the following table can be input from an external device to per­form the same functions as the Console keys shown on the left.
Console key
RS-232C input
Co so e ey
Key Code
ESC CTRL + [ ($1B) TRIG CTRL + A ($01)
Page 18
2-1SectionMenu Operations
10
Console key RS-232C inputConsole key
CodeKey
ENT CTRL + M ($0D) Up Key CTRL + E ($05) Down Key CTRL + X ($18) Left Key CTRL + S ($13) Right Key CTRL + D ($04) SHIFT + ESC TAB, CTRL + I ($09) SHIFT + TRIG CTRL + T ($14) SHIFT + ENT CTRL + R ($12) SHIFT + Up Key CTRL + W ($17) SHIFT + Down Key CTRL +Z ($1A)
Note 1. Commands cannot be input during menu operation.
2. Input CTRL + Q to re-input commands to change from the menu operation to command input.
2-1-3 Menu Tree
F400 menus are hierarchical. The cursor is moved to the required functions to set measurement conditions. Use the following procedure to move around the menu tree.
Menu Tree:
p. 5
1. Move the cursor to the desired function using the Up, Down, Left, and Right Cursor Keys.
1
Adjust
Position compensation
Measurement region Expression
2. Press the ENT Key. In this example, the cursor will move to the Adjust menu. Repeat this step to move to lower levels.
2
Adjust
Position compensation
Measurement region Expression
Adjust
Region
3. Press the ESC Key. The display will move to the previous menu level (i.e., the screen shown in step (1)).
2-1-4 Inputting Values
This section explains how to input numeric values when setting measurement condi­tions. There are two input methods.
Specifying the Input Digit
Specifying the input digit is used mainly for setting judgements and system condi­tions.
— Filter/Pickup —
— Filter/Pickup —
Page 19
2-1SectionMenu Operations
11
1. Move the cursor to the item for which a value is to be changed and press the ENT Key. The cursor size will change to a cursor the size of a single digit.
1
Correlation : 79 [80:100] Position X : 180.000
[ 0.000 : 511.000]
Position Y : 30.000
[ 0.000 : 483.000]
Speed : 2B
End
2. Using the Left and Right Keys, move the cursor to the digit to be changed.
2
Position X: 180.000
[00000.000: 511.000]
3. Use the Up and Down Keys to change the value. The Up Key will increase the value by 1 and the Down Key will decrease the value by 1.
3
Position X: 180.000
[00100.000: 511.000]
4. Press the ENT Key when all digits have been changed as desired. The value will be set.
4
Position X: 180.000
[190.000: 511.000]
Increasing and Decreasing Values
Values are increased or decreased mainly when setting binary levels and back­ground suppression levels.
1. Move the cursor to the item for which the value is to be changed.
1
Binary level
↑↓:Move ←→:Change
Upper[255] Lower[128]
Reverse
Auto
OK
2. Using the Left and Right Keys, change the numeric value. The Right Key will increase the value by 1 and the Left Key will decrease the value by 1. The SHIFT + Right Key will increase the value by 10. The SHIFT + Left Key will decrease the value by 10.
Page 20
2-1SectionMenu Operations
12
3. Use the Up and Down Keys to move to the next item. The numeric value will be set.
3
Upper[200] Lower[128]
2-1-5 Drawing Measurement Regions
This section explains drawing methods for model and measurement regions. Use the Up, Down, Left, or Right Keys to move from one drawing point to another. Press the Shift Key together with any one of these keys to move at a faster rate.
Types of Drawings
Type Drawing method
Box Set two diagonally opposing corners.
Ellipse Set two diagonally opposing corners of a rectangle enclosing the
ellipse.
Circle Set the center and radius.
Circumference Set the center and radius. and then the line width.
Polygon Specify up to 10 neighboring vertices. After specifying the last point,
press the ENT Key twice and it will be joined to the first point and the region will be drawn.
Note The type and number of drawings that can be created depends on the function in
which the drawings are being used.
Drawing Method (OR/NOT)
Drawing mode Meaning
OR Registers drawings as models or regions. If multiple drawings are made, all drawings will
be registered as one region.
NOT Used to delete part of a region.
2nd figure (NOT)
1st figure (OR) 2nd figure (OR)
1st figure (NOT)
Example 1: Drawing a Circumference
1. Using the Cursor Keys, set the center of the circle and press the ENT Key. The center of the circle will be set. Use the SHIFT + Cursor Keys to move the cursor quickly.
The middle line is the base of the circumferences.
— Filter/Pickup —
Page 21
2-1SectionMenu Operations
13
2. Use the Up and Down Keys to specify the radius and press the ENT Key. The arrows for specifying the line width for the circumference will be displayed.
3. Use the Up and Down Keys to set the line width. The arrows for specifying the line width will be displayed.
4. Press the ENT Key. The drawing will be set and the drawn region will be dis­played in white.
Example 2: Deleting Part of a Drawing
1. Select OR mode in the first drawing (a box for this example) and press the ENT Key. The arrow for drawing a box will be displayed.
1
Box
Ellipse Circle Circumference Polygon
OR
NOT
New
2. Set two diagonally opposing corner points to draw the box. Use the SHIFT + Cur- sor Keys to move the cursor quickly.
1st point
2nd point
Page 22
2-2SectionStarting and Quitting
14
3. Select NOT mode in the second drawing (an ellipse in this example) and press the ENT Key. The arrow for drawing an ellipse will be displayed.
3
Box
Ellipse
Circle Circumference Polygon
OR
NOT
Add
4. Set two diagonally opposing corner points of a rectangle enclosing the ellipse to draw the ellipse.
The overlapping section of the box and ellipse will be deleted.
This section will be the region.
2-2 Starting and Quitting
2-2-1 Starting
Use the following procedure to start and quit operation.
Note Be sure to refer to the
Setup Manual (Z130)
when connecting components or wiring
the power supply or grounding the unit.
Setup Manual→2-2 Connections
and
2-3 Power Supply and Ground
1. Be sure that the basic F400 components have been connected cor­rectly.
Setup Manual
2. Turn ON the power supply to the monitor.
— Filter/Pickup —
Page 23
2-2SectionStarting and Quitting
15
3. Turn ON the power supply to the F400. The title page will be displayed.
2
Vision Inspection System
F400-C10 Series
Color-Gray Menu Software
Ver.2.00
(C)Copyright OMRON Corporation
1998-1999
All Rights Reserved
4. After a short pause, the main F400 screen will be displayed. The following screen will appear the first time power is turned ON.
3
---- --ms
Color thr
Scn 0BMONB
Note The startup scene and startup mode that appear when power is turned ON can be set.
Use these settings to make daily operation more efficient once the F400 is ready for actual operation.
Startup Mode
on p. 107
2-2-2 Selecting Scene Modes
The F400 has two scene modes: Color Filter and Color PickUp. Select the appropri­ate measurement mode for the application.
Refer to
Features
in the
Introduction Manual (Z131)
p. 5
Select the scene mode when setting conditions for a scene for the first time.
1. Select MON (Monitor) and press the ENT Key
— Filter/Pickup —
Page 24
2-2SectionStarting and Quitting
16
2. Select SET to display a list of scene processing options. The options will not be displayed if measurement conditions are already set for the selected scene num­ber. The scene number must be changed or the settings cleared before the options can be changed.
12
---- --ms
Color thr
Scn 0BMONB
SET
MON RUN SYS SAVE
3. Select either
Color filter
or
Color pickup
and press the ENT Key. The settings
screen for the selected scene mode will be displayed.
3
Settings screen for Color Filter Mode
Settings screen for Color Pickup Mode
Color bar displayed. No color bar displayed.
Color filter
Color pickup
Settings
Adjust
Position compensation Measurement region Expression
Color thr
Settings
Adjust
Position compensation Measurement region Expression
Color thr
Note Changing between Color Filter and Color Pickup Modes
To change the scene mode for selected scenes, clear the scene and then change the scene mode.
Copying and Clearing Scenes
on p. 17
2-2-3 Changing Scenes
All the settings for measurement conditions are input for a specific scene. Up to 16 scenes can be set, numbered from 0 to 15. Scenes can be changed to switch between different measurement conditions for different measurement setups or measurement objects. Scene 0 will be displayed by default when the power is turned ON. Setup can be changed by simply changing scenes. Refer to
Scene
in the
Glossary
on page 145.
— Filter/Pickup —
Page 25
2-2SectionStarting and Quitting
17
1. Place the cursor on the scene number displayed on the screen (Scn 0 in this example) and press the ENT Key. A list of scene numbers will be displayed. Move the cursor using the Down Key to display the next group of scene numbers from 9 to 15.
2. Select a new scene number.
1
2
---- --ms
Color thr
Scn 0BMONB
Scn 0
Scn 1
Scn 2 Scn 3 Scn 4 Scn 5 Scn 6 Scn 7 Scn 8
3. Press the ENT Key to display the selected scene.
3
---- --ms
Color thr
Scn 2BMONB
Note Commands to switch scenes can be input from external devices when in Monitor or
Run Mode. Refer to
I/O Format
in
6-1 Terminal Blocks
and
List of Input Commands
in
RS-232C
. p. 112, 122
2-2-4 Copying and Clearing Scenes
This section explains how to copy and clear scene data. Clear scene data before changing the scene mode to either Color Filter or Color Pickup Mode.
— Filter/Pickup —
Page 26
2-2SectionStarting and Quitting
18
1. Place the cursor on the scene number displayed on the main screen (Scn 0 in this example) and press the ENT Key. A list of scene numbers will be displayed. Move the cursor using the Down Key to display the next group of scene numbers from 9 to 15.
2. Press SHIFT + ESC Keys on the scene number to be copied or cleared. The two processing options will be displayed.
1
2
---- --ms
Color thr
Scn 0BMONB
Scn 0
Scn 1
Scn 2 Scn 3 Scn 4 Scn 5 Scn 6 Scn 7 Scn 8
3. Select
Copy
or
Clear
. A confirmation message will be displayed.
3
When
Copy
is selected
When
Clear
is selected
Place the cursor on Scn 0 and press the ENT Key to display a list of scene numbers.
Copy
Clear
Original scene : Scn 0B
Execute Cancel
This scene data will be cleared.
Execute Cancel
4. Move the cursor to Execute and press the ENT Key. The data for the selected scene will be copied or cleared and the display will return to the main screen.
2-2-5 Quitting
The user can quit the F400 and turn OFF the power at any time except while saving or loading data. Save all measurement settings to flash memory before quitting. The data in flash memory is loaded each time the F400 is started. Any changes made will be lost unless they are saved to the flash memory.
Note The measurement images and sample images in memory are also cleared when the
power is turned OFF. These images cannot be saved to flash memory, but they can be backed up on a computer if required. Refer to
5-3 Backup
. p. 97
1. Move the cursor to
MON
and press the ENT Key . A list of operation modes will be
displayed.
— Filter/Pickup —
Page 27
2-2SectionStarting and Quitting
19
2. Select
SAVE
. A confirmation message will be displayed.
1
2
---- --ms
Color thr
Scn 0BMONB
SET MON RUN SYS
SAVE
3. Move the cursor to Execute and press the ENT Key. The save will be executed and a progress box will be displayed.
3
Saving data
Setting data will be saved.
Execute Cancel
Note Do not input the RESET command or turn OFF the power while saving data. The data
may be lost, and the F400 may not operate properly the next time it is started.
When the data has been saved, the display will return to the main screen.
4. Turn OFF the power to the F400.
Page 28
21
SECTION 3
Settings
This section describes how to set measurement conditions for F400 visual inspections. The following headings are used in this section to indicate the measurement modes to which an operation is appli-
cable.
3-1 Adjusting Images 22. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1-1 Shutter Speed 24. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1-2 Applying Color Filters 24. . . . . . . . . . . . . . . . . . . . . . . .
3-1-3 Creating a Color Filter 26. . . . . . . . . . . . . . . . . . . . . . . .
3-1-4 Picking Up Measurement Colors 28. . . . . . . . . . . . . . . .
3-1-5 Filtering 33. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1-6 Background Suppression 34. . . . . . . . . . . . . . . . . . . . . .
3-1-7 Output Calibration 36. . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2 Position Compensation 37. . . . . . . . . . . . . . . . . . . . . . . . .
3-2-1 Adjusting Images for Easier Position Compensation 38.
3-2-2 Setting Position Compensation Regions 38. . . . . . . . . . .
3-2-3 Searches 40. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2-4 Position Compensation using Edges 43. . . . . . . . . . . . .
3-2-5 Area and Center of Gravity, and Center of
Gravity and Axis Angle 46. . . . . . . . . . . . . . . . . . . . . . .
3-3 Measurement Methods 50. . . . . . . . . . . . . . . . . . . . . . . . .
3-3-1 Measurement Regions 50. . . . . . . . . . . . . . . . . . . . . . . .
3-3-2 Surface Defects 52. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3-3 Searches 55. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3-4 Edge Processing 63. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3-5 Area and Center of Gravity, and Center of
Gravity and Axis Angle 67. . . . . . . . . . . . . . . . . . . . . . .
3-4 Expressions 75. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
— Color Filter —
— Color Pickup —
— Filter/Pickup —
Page 29
3-1SectionAdjusting Images
22
3-1 Adjusting Images
Images displayed on the video monitor can be adjusted for easier measurement. Before adjusting the image on the monitor , however, adjust lighting and camera focus to clearly display the measurement object in the center of the screen.
Note White Balance
Depending on the inspection environment and type of lighting, even white images read by the camera may appear somewhat colored. Refer to the
2-6 Lighting
in the
Setup Manual (Z130)
for information on lighting methods. Adjust the white balance
before setting the light and adjusting the image.
White Balance
p. 96
Different adjustments are possible depending on the scene mode and type of image. Refer to the following table for items that can be adjusted.
Color Filter Mode
Image Color filter Shutter
speed
Calibra-
tion
Color
selection
Background suppression
Filtering
Color Yes Yes Yes No No No Color Filter Image
Colorgray No Yes Yes Yes Yes Yes
Co o e age
Red No Yes Yes No Yes Yes Green No Yes Yes No Yes Yes Blue No Yes Yes No Yes Yes Gray No Yes Yes No Yes Yes
Color Pickup Mode
Image Shutter speed Color pickup Calibration
Color Yes Yes Yes Pickup color Yes Yes Yes
1. Move the cursor to the operation mode in the main screen (Monitor in this exam­ple) and press the ENT Key. A list of modes will be displayed.
2. Move the cursor to
SET
and press the ENT Key. A list of setting modes will be
displayed.
12
Scn 0BMONB
SET
MON RUN SYS SAVE
3. Move the cursor to
Adjust
and press the ENT Key. The Adjust (image adjust-
ment) Window will be displayed.
3
Adjust
Position compensation Measurement region Expression
Settings
Page 30
3-1SectionAdjusting Images
23
Color Filter Mode
Color Pickup Mode
Filtering OFF
BGS levels 0:255 Shutter 1/2000s Calibration
512.000
Colorgray thr
Color select
Pickup color
Shutter 1/2000s
Calibration
512.000
Pick up thr
Adjustment items are underlined. Use Left or Right Key to change the displayed item.
Adjust
Color thr
←→:Switch
Color filter
Colorgray
Shutter
1/2000s
Calibration
512.000
←→
Adjust
Color thr
←→:Switch
Pickup color
p
Shutter
1/2000s
Calibration
512.000
←→
Note 1. If adjustment items are hard to read, use the SHIFT + ESC Keys to switch
between clear and filled backgrounds. Select the background that makes the screen most legible. Refer to
5-4 Display Settings.
2. When temporarily switching between through or freeze images while performing image adjustment, use the SHIFT + Up Key or SHIFT + Down Key to select the appropriate type of display for the image.
Page 31
3-1SectionAdjusting Images
24
3-1-1 Shutter Speed
Change the shutter speed when the object is moving quickly, causing the image to be blurred. The shutter speed can be changed for any displayed image.
Movement speed Shutter speed
1/100 s 1/500 s 1/2000 s* 1/10000 s
Slow
Fast
*Default value
1. Move the cursor to
Shutter
on the screen for the image to be adjusted and press
the ENT Key. The Shutter Speed Window will be displayed. Use the Left and
Right Keys to change the list of options if
Shutter
does not appear on the list.
1
Adjust
Color thr
←→:Switch
Color filter
Colorgray
Shutter
1/2000s
Calibration
512.000
2. Use the Left and Right Keys to change the shutter speed. Check the image while changing the shutter speed.
2
1/100 s 1/500 s 1/2000 s 1/10000 s
Shutter
1/2000s
3. Press the ENT Key. The shutter speed setting will be saved and the display will return to the Adjust (image adjustment) Window.
3-1-2 Applying Color Filters
A color filter can be applied to the image read by the camera to emphasize particular colors and make a grayscale image for easier measurement. The F400 has five color filters. Select a filter color that will make the color to be detected lighter (e.g., surface defects or marks). This section explains how to select color filters.
Refer to the
Introduction Manual (Z131)
for information on colors. p. 39
— Filter/Pickup —
— Color Filter —
Page 32
3-1SectionAdjusting Images
25
Color Function
Red Emphasizes (lightens) red. Green Emphasizes (lightens) green Blue Emphasizes (lightens) blue. Gray Changes to a grayscale image (standard black and white image). Colorgray Creates a filter to suit the color to be detected.
1. Move the cursor to the color filter (Colorgray in this example) and press the ENT Key. The Color Filter Window will be displayed. Use the Left and Right Keys to change the list of options if
Color Filter
does not appear on the list.
1
Adjust
Color thr
←→:Switch
Color filter
Colorgray
Shutter
1/2000s
Calibration
512.000
2. Use the Left and Right Keys to change the color filter . Check image while chang­ing the color filter.
Colorgray Red Green Blue Grey
2
Color filter
Colorgray
3. Press the ENT Key. The color filter setting will be saved and the display will return to the Adjust (image adjustment) Window.
Note The selected color filter will be used for measurement. A different color filter can be
set for position displacement compensation.
Refer to
3-2-1 Adjusting Images for Easier Position Compensation
p. 38
Page 33
3-1SectionAdjusting Images
26
3-1-3 Creating a Color Filter
When the F400 color filters cannot emphasize a particular color in an image, a new filter is created to suit the detection color. The color image is converted to a grayscale image based on the hue and saturation settings. Adjust the hue and saturation set­tings while referring to the displayed image and create a filter that best emphasizes the detection color. This section explains the procedure for creating color filters.
Refer to the
Introduction Manual (Z131)
for information on colors. p. 39
Hue The colors red, yellow, green, blue, and purple. Select the color that
will highlight the section to be detected in the gray image. Color band The range of colors to be measured based on the set color. Saturation The vividness of the color. Areas outside the saturation range are
changed to white or black and excluded from measurement. The
saturation range is set using upper and lower limits.
Color filters are created by selecting the Colorgray filter function. Set a colorgray filter in advance using the Color Filter settings.
Refer to
3-1-2 Applying Color Filters
p. 24
1. Move the cursor to
Color select
and press the ENT Key. The Color Selection Window will be displayed. The image will be converted to a color grayscale image and a A mark will appear on the color bar . Use the Left and Right Keys to change the list of options if
Color select
does not appear on the list.
1
Adjust
Colorgray thr
←→:Switch
Color select
Filtering
OFF
BGS levels
0:255
Shutter
1/2000s
Calibration
512.000
2. Use the Up and Down Keys to move the A mark and select the color. The image displayed on the screen will change as the A mark scrolls through the colors. Press SHIFT + Up and Down Keys to scroll through the colors quickly. Use the
Left and Right Keys to switch to a color image and check the color.
— Color Filter —
Page 34
3-1SectionAdjusting Images
27
3. Press the SHIFT + ENT Keys to select the color band. Pressing the SHIFT + ENT Keys will alternately change between ±90_ and ±180_.
3
2
↑↓:Select SFT+ENT:Band
Color band
±90°
39
A
The number indicates the cursor position. Use this number as reference for setting the filter color. (For example: set to the same filter color for posi­tion adjustment and measurement.
Adjust (Color select)
4. Press the ENT Key. The set color and color band settings will be saved. Perform steps 5 to 9 to set the saturation range, otherwise go straight to step 10.
Note The selected color filter is used for measurement. A different color filter can be set for
position displacement compensation. Refer to
3-2-1Adjusting Images for Easier Position Compensation
p. 38
Setting the Chroma Range
5. Press the SHIFT + ESC Keys. The Saturation Range Settings Window will be displayed.
Page 35
3-1SectionAdjusting Images
28
6. User the Left and Right Keys to change the upper limit. The displayed image will change as the setting is changed. Use the SHIFT + Left and Right Keys to increase or decrease the value by 10.
6
7
8
Color select (Saturation range)
↑↓:Move ←→:Change
Lower limit Upper limit
Saturation Range Settings
Upper [80] Lower [ 0] OK
7. Repeat the same operation to change the lower limit.
8. Move the cursor to
OK
and press the ENT Key. The display will return to the Color
Selection Window.
9. Press the ENT Key again. The saturation range will be saved.
10. Press the ESC Key to close the Color Selection Window. The display will return to the Adjust (image adjustment) Window.
3-1-4 Picking Up Measurement Colors
Simply click the desired color to extract and measure it. All other colors will be treated as background. The extracted color is called the pickup color. Up to 8 pickup colors can be registered. Display the Adjust (image adjustment) Window for Color Pickup Mode before starting color pickup.
Refer to
2-2-2 Selecting Scene Modes.
p. 15
Selecting a Color
First, select the color to be picked up in the color image. The F400 will extract the selected color and will automatically switch to a pickup color image. All other areas of the image will be changed to black in the display. Repeat the color selection process until all the desired colors have been extracted.
Color image Move the cursor to the color to
be selected.
Pickup color image Only the selected color will be
displayed.
Pickup color0 Pickup color0
TRIG:Pick up SFT+ESC:Option
ESC:UNDO TRIG:Pick up SFT+ESC:Option
Press TRIG Key.
— Color Pickup —
Page 36
3-1SectionAdjusting Images
29
Changing Cursor Size
If the cursor size does not match the size of section to be extracted, press the SHIFT + ENT Keys to change the cursor size. (Max. 64 x 64 pix.)
Changing Background Color of Pickup Color
If the image is hard to see because the pickup color is similar to the background color, press the SHIFT + TRIG Keys to change the background color that is available in five different gradations.
Display Image and Margin
Press the SHIFT + ESC Keys on the color pickup display to display a dialog. Using this dialog, change the display image or set the color parameter range for extracting colors considering noise.
End
Display image : ColorB Margin : 3B
Display Image
Colors can be extracted though monitoring image colors while switching the display image between color image and two types of pickup color images.
Color image Pickup image
Pickup image for all pickup colors
The pickup color currently being extracted will be displayed.
All of the registered pickup colors will be displayed.
Pickup color regis­tered during the zero extraction.
Pickup color1
TRIG:Pick up SFT+ESC:Option
Pickup color1
TRIG:Pick up SFT+ESC:Option
Pickup color1
TRIG:Pick up SFT+ESC:Option
The color image is displayed.
Margin
When the margin is positive (+): Color parameter range will be widened by the set margin for color pickup.
When the margin is negative (–): Color parameter range will be narrowed by the set margin for color pickup and the colors outside the range will be treated as noise.
If all the colors subject to measurement cannot be picked up, set the margin to a positive value.
If colors not subject to measurement are also picked up with much noise, set the margin to a negative value.
–3 –2 –1
0 +1 +2 +3
Narrow
Wide
Margin
Page 37
3-1SectionAdjusting Images
30
1. Move the cursor to
Pickup color
and press the ENT Key. The Pickup Color Num-
ber Selection Window will be displayed.
1
Adjust
Color thr
←→:Switch
Pickup color
Shutter
1/2000s
Calibration
512.000
2. Use the Left and Right Keys to select the pickup color number to be registered. The image read by the camera will not be displayed if no pickup colors have been registered for the selected number. The pickup image will be displayed for regis­tered pickup color numbers.
2
Use the Left and Right Keys to scroll through the pickup color numbers 0 to 7 in order.
Pickup color 0
Pickup color 1
Pickup color 7
Color pickup
←→:Change
Color 0
3. Press the ENT Key. The Color Pickup Window will be displayed and the color pickup cursor will appear.
4. Move the cursor to the section for which the color is to be extracted and press the TRIG Key . Color pickup will be performed for the specified section of the image. The image will then change to a pickup color image and the selected color will be displayed. If the picked up color is hard to see, press the SHIFT + TRIG Keys to select one of
Page 38
3-1SectionAdjusting Images
31
five background gradations. Select the background gradation that will show the pickup color in greatest contrast. To change the display image or pickup color margin, press the SHIFT + ESC Keys.
4
Registered pickup color number
Color pickup cursor
Pickup color0
TRIG:Pick up SFT+ESC:Option
5. Move the cursor to the next section to be extracted and press the TRIG Key. Repeat this procedure to pick up all the colors for measurement.
Press the ESC Key to cancel colors selected using the TRIG Key. The last pickup color selection will be canceled.
4
Pickup color0
ESC:UNDO TRIG:Pick up SFT+ESC:Option
6. Press the ENT Key when all the desired colors have been extracted. The pickup colors will be registered and the display will return to the Pickup Color Number Selection Window. Repeat steps 2 to 5 to register more pickup colors.
Page 39
3-1SectionAdjusting Images
32
Changing and Clearing Pickup Colors
1. Move the cursor to
Pickup color
and press the ENT Key. The Pickup Color Num-
ber Selection Window will be displayed.
1
Adjust
Color thr
←→:Switch
Pickup color
Shutter
1/2000s
Calibration
512.000
2. Use the Left and Right Keys to display the pickup color number to be changed or cleared and press the ENT Key. The processing options will be displayed.
2
Pickup color
←→:Change
Color 0
Page 40
3-1SectionAdjusting Images
33
3. Select either
Correct
or
Clear
and press the ENT Key.
3
4
When
Correct
is selected When
Clear
is selected
The color pickup cursor is displayed.
A confirmation message is displayed.
Next, perform the same steps as for color pickup.
Correct
Clear
Pickup color0
TRIG:Pick up SFT+ESC:Option
Color 0 will be cleared.
Execute Cancel
4. When Clear has been selected, move the cursor to
Execute
and press the ENT Key. The selected pickup color settings will be cleared and the display will return to the Adjust (image adjustment) Window.
3-1-5 Filtering
The image read by the Camera can be manipulated to create an image that is easier to measure, by using smoothing or edge enhancement.
Smoothing displays a smoothed image with reduced noise. Smoothing allows sup­pression of the effects of uneven lighting due to an uneven or damaged surface.
Edge enhancement displays an image with enhanced edges between bright and dark regions to compensate for blurred images.
Filtering can be performed only on images to which a color filter has been applied.
Filtering method Function
OFF No filtering. Smoothing Displays a smooth image with reduced noise. Select either weak or
strong smoothing.
Enhance edges Displays an image with enhanced edges between bright and dark
regions.
Extract edges Displays an image with the edges between the bright and dark
regions extracted.
— Color Filter —
Page 41
3-1SectionAdjusting Images
34
1. Move the cursor to the
Filtering
method (OFF in this example) and press the ENT Key. The Filtering Window will be displayed. Use the Left and Right Keys to change the list of options if
Filtering
does not appear on the list.
1
Adjust
Red thr
←→:Switch
Filtering
OFF
BGS levels
0:255
Shutter
1/2000s
Calibration
512.000
2. Use the Left and Right Keys to select the filtering method. Check the image while selecting the appropriate filtering method.
2
Use the Left and Right Keys to switch between weak smoothing, strong smoothing, edge enhancement, and edge extraction.
OFF
Weak smoothing
Strong smoothing
Enhance edges
Extract edges
Filtering
OFF
3. Press the ENT Key. The filtering settings will be saved and the display will return to the Adjust (image adjustment) Window.
Note The selected filtering method is used for measurement. Different filtering can be set
for position displacement compensation.
Refer to
3-2-1 Adjusting Images for Easier Position Compensation
p. 38
3-1-6 Background Suppression
Background suppression (BGS) changes image areas with densities below the lower limit to 0, and image areas with densities above the upper limit to 255. Image areas with densities between the lower and upper limits are graded from 0 to 255 so that only images with densities between the lower and upper limits are measured.
Monitor the image and set the upper and lower limits of the density to eliminate the background.
— Color Filter —
Page 42
3-1SectionAdjusting Images
35
Example
Lower limit: 150 Upper limit: 255
Measurement object Density
Image areas with densities of 149 or lower will not be measured and the density will be changed to 0.
Only image areas with densities between 150 and 255 will be measured. The whole image is graded from 0 to 255.
Background Background density (cut)
1. Move the cursor to
BGS levels
(0:255 in this example) and press the ENT Key . The BGS Levels Setting Window will be displayed. Use the Left and Right Keys to change the list of options if
BGS levels
does not appear on the list.
1
Adjust
Red thr
←→:Switch
Filtering
OFF
BGS levels
0:255
Shutter
1/2000s
Calibration
512.000
2. Use the Left and Right Keys to alter the upper limit. The displayed image will change when the numeric values are changed. Use the SHIFT + Left and Right Keys to increase or decrease the numeric value by 10.
3. Change the lower limit the same way.
2
3
4
Upper[200] Lower[100]
OK
Lower limit Upper limit
BGS Level Setting
4. Move the cursor to OK and press the ENT Key.
Note The selected BGS level is used for measurement. Different BGS levels can be set for
position displacement compensation. Refer to
3-2-1 Adjusting Images for Easier Position Compensation
p. 38
Page 43
3-1SectionAdjusting Images
36
3-1-7 Output Calibration
Calibration can be set to output the measurement results in physical units, such as mm.
Set the relationship between the physical coordinates and the camera coordinates to convert the measurement results from pixels to physical units, such as µm, mm, or cm.
If calibration data is not set, the default settings will remain, and measurements using the camera coordinates will be output.
For details, refer to
Glossary
. p. 142
Default Settings
Origin
Coordinate system: Left-handed Origin: Upper left corner of screen
Magnification: 1.000 Units: mm/pix
484 mm (= 484 pixels)
512 mm (= 512 pixels)
Setting
Options Meaning
Origin Upper left*
Lower left Center
Select the position of the origin (0,0) of the coordinate system on the screen.
Upper left Lower left
Center
Coordinate system
Right-handed Left-handed*
Select the coordinate system. The positive direction for angles will depend on the coordinate system.
Left-handed System
Right-handed System
Upper
-left origin
Forward direction
Lower­left origin
Forward direction
Center origin
Forward direction
Upper
-left origin
Forward direction
Lower­left origin
Forward direction
Center origin
Forward direction
Magnification 0.001 to 9.999
(1.000*)
Set the actual measurement to which 1 pixel will correspond. For example, an actual length of 10 mm could correspond to 100 pixels on the screen. 10 (mm)/100 (pix) = 0.1 (mm/pix). The magnification, therefore, would be 0.1.
Units
µm/pix, mm/pix*, or cm/pix
Set the units for conversion.
Note The default settings are indicated by an asterisk (*).
— Filter/Pickup —
Page 44
3-2SectionPosition Compensation
37
1. Move the cursor to
Calibration
and press the ENT Key. The Calibration Setting Window will be displayed. Use the Left and Right Keys to change the list of options if
Calibration
does not appear on the list.
1
Adjust
Red thr
←→:Switch
Filtering
Red
Shutter
1/2000s
Calibration
512.000
2. Move the cursor to the item to be changed and press the ENT Key. Options are available for items indicated by a Bmark. The magnification is changed by changing the numeric value.
3. Press the ENT Key. The settings will be saved.
2, 3
5
Origin : Upper leftB Coordinate : LefthandB Magnification: [1.000] Unit : mm/pixB
End
4. Repeat steps 2 and 3 to change other settings.
5. When all settings have been made, move the cursor to
End
and press the ENT Key. The calibration settings will be saved and the display will return to the Adjust (image adjustment) Window.
3-2 Position Compensation
Use position displacement compensation when the position and orientation of the measurement objects are not consistent. The position of the measurement object is compared to a reference position, the amount of displacement is calculated, and the image is scrolled by that amount before a measurement is performed.
Page 45
3-2SectionPosition Compensation
38
Flow of Operation
1. Adjusting Images for Easier Position Compensation p. 38
2. Setting Position Compensation Regions
p. 38
3. Searches
p. 40
4. Position Compensation using Edges
p. 43
5. Area and Center of Gravity, and Center of Gravity and Axis Angle
p. 46
Adjust the image for easier posi­tion compensation.
Set the measurement region for position compensation.
Select the position compensation method.
Set the position compensation conditions.
3-2-1 Adjusting Images for Easier Position Compensation
Different image conditions can be set for measurement and position compensation. Refer to the procedures for setting measurement image conditions; the setting meth­ods are the same.
Applying Color Filters to Images
Different color filters can be applied for measurement and for position compensation. Refer to
3-1-2 Applying Color Filters
p. 24
Creating a Color Filter
Different color filters can be created for measurement and for position compensation. Refer to
3-1-3 Creating a Color Filter
p. 26
Filtering
Different filtering can be performed for measurement and for position compensation. For example, smoothing may be selected to reduce noise for measurement and edge enhancement may be selected for position compensation to highlight the edges of the measurement object.
Refer to
3-1-5 Filtering
p. 33
Background Suppression
Different background suppression can be performed for measurement and for posi­tion compensation.
Refer to
3-1-6 Background Suppression
p. 34
3-2-2 Setting Position Compensation Regions
The F400 has four methods of position compensation: Search, edge enhancement and extraction (edge), area and center of gravity, and center of gravity and axis angle. A measurement region must be set before position compensation can be performed. Up to two regions can be set for each scene.
— Color Filter —
— Filter/Pickup —
Page 46
3-2SectionPosition Compensation
39
1. Move the cursor to
SET/Position compensation/Region
and press the ENT Key. The Position Compensation Selection Window will be displayed. The win­dow shown in step 2 will be displayed if
Position compensation
is selected in
Color Pickup Mode.
1
1
Color Filter Mode Color Pickup Mode
Settings
Adjust
Position compensation
Measurement region Expression
Adjust
Region
Color frz
Settings
Adjust
Position compensation
Measurement region Expression
Color frz
2. Select the position compensation method and press the ENT Key. The setting options for the selected method of position compensation will be displayed. The method selected here will be registered for region 0. Refer to the procedures for each position compensation method for subsequent steps.
2
These options are not displayed when the second region is registered.
Color Filter Mode Color Pickup Mode
Search
Edge Area & gravity Gravity & axis
Area & gravity
Gravity & axis Edge Search
2
Changing and Clearing Measurement Regions
Settings for registered position compensation methods are changed and cleared on the Settings Window for the measurement region number. To change the position compensation method, clear the selected method and then register another method.
1. Move the cursor to
Set/Position compensation/Region
and press the ENT Key. If region 0 has been registered, the window for selecting measurement region numbers will be displayed.
2. Select either
Change settings
or
Clear
as desired and press the ENT Key.
2
3
0.Search
1.
Change settings
Clear
Region (Position compensation)
Changing Settings
The settings window for the selected position compensation method will be dis­played. Refer to the procedures for each position compensation method for subse­quent steps.
Clearing Settings
A confirmation message will be displayed.
Page 47
3-2SectionPosition Compensation
40
3. If
Clear
has been selected, move the cursor to
Execute
and press the ENT Key .
4
This region will be cleared.
Execute Cancel
Note The measurement regions selected here are for position compensation. Separate
measurement regions can be set for measurement.
Refer to
3-3-1 Measurement Regions
p. 50
3-2-3 Searches
This section explains position displacement compensation using searches. The search method must be selected for the position compensation region in advance.
Refer to
3-2-2 Setting Position Compensation Regions
p. 38
Searches
Position compensation is performed using a registered measurement pattern called a model. The area of the image that most highly correlates with the model is found, the amount of displacement is calculated, and the image is scrolled by the detected amount of displacement before measurements are performed.
Reference position (position where the model is registered.)
Displacement X
Displacement Y
Input image
— Filter/Pickup —
Page 48
3-2SectionPosition Compensation
41
Procedure
1. Select the color pickup number for position compensation (for Color Pickup Mode only).
2. Register a search model.
3.Set the search range.
4.Set the evaluation criteria for position compensation.
Note 1. Searches selected here are for position compensation.
Refer to
3-3-3 Searches
for measurement applications. p. 55
2. Position compensation methods are changed or cleared in the Region Settings Window.
Refer to
3-2-2 Setting Position Compensation Regions
. p. 38
Selecting Color Pickup Numbers for Position Compensation (Color Pickup Mode Only)
Select a color for position compensation from the registered pickup colors. The pro­cedure is the same as for measurement.
Refer to
Selecting Color Pickup Numbers for Measurement
under
3-3-3 Searches
p. 56
Pickup color number currently displayed
Color selection
Color 0
←→:Change
Registering a Model
A characteristic part of the measurement image, such as a mark or corner, is regis­tered as a model. The model can be of any size.
Since the position in which the model is registered serves as a reference position for position compensation, place the object so that it is properly located within the screen before registering it as a model. The procedure is the same as for measurement.
Page 49
3-2SectionPosition Compensation
42
Refer to
Registering a Model
under
3-3-3 Searches
p. 58
OK: Section to be inspected is located properly within the screen.
WRONG: Measurement object is off the screen.
Model (Up to 3 figures can be drawn in combination.)
Setting the Search Region
Set a range in which to search for the model. The search can be made on the whole input screen. However , the search range can be limited to reduce the processing time and increase the accuracy. The procedure is the same as for measurement.
Refer to
Setting the Search Region
under
3-3-3 Searches
p. 61
The model is displayed in solid lines.
Search region is displayed in dotted lines. The range to search for the model.
Search region 250,260
Setting Evaluation Criteria
Criteria are set for the correlation with the model to enable checking whether or not the correct position compensation model has been found. If the correlation with the model is too low, the wrong position may be found. Set the upper and lower limits for the correlation.
The procedure is the same as for measurement. Refer to
Setting Evaluation Criteria
under
3-3-3 Searches
p. 62
Page 50
3-2SectionPosition Compensation
43
Evaluation and Processing
Evaluation Processing
OK Position compensation is performed before measurement. NG The object is measured without position compensation. Regardless
of the measurement result, however, an overall evaluation of NG will be output to the OR terminal.
Correlation range for OK evaluation
Position compensation will not be performed if the correlation value is low. Measurement result is NG.
Position compensation will not be performed if the search position is NG. Measurement result is NG.
3-2-4 Position Compensation using Edges
This section explains position compensation using edge processing. Select
Edge
in
the position compensation region in advance. Refer to
3-2-2 Setting Position Compensation Regions
p. 38
Edge Processing
The light and dark regions between measurement object colors are found. The posi­tion of the measurement object is compared to a reference position, the amount of displacement is calculated, and the image is scrolled by that amount before a mea­surement is performed.
Calculation example for displacement along the Y axis:
Direction: Vertical Color: Light to dark
The reference position is marked by a + cursor and the image is scrolled by the amount of displacement.
Calculation example for displacement along the X axis:
Direction: Horizontal Color: Light to dark
+
+
— Filter/Pickup —
Page 51
3-2SectionPosition Compensation
44
Procedure
1. Select the color pickup number for position compensation (for Color Pickup Mode only).
2. Draw the position compensation region.
3. Set the edge detection condition and evaluation criteria for position compensation.
Selecting Color Pickup Numbers for Position Compensation (Color Pickup Mode Only)
Select a color for position compensation from the registered pickup colors. The pro­cedure is the same as for measurement.
Refer to
3-3-4 Edge Processing
p. 63
Pickup color number currently displayed
Color selection
←→:Change
Color 0
Note 1. Edge processing selected here is for position compensation.
Refer to
3-3-4 Edge Processing
for measurement applications. p. 63
2. Position compensation methods are changed or cleared in the Region Settings Window.
Refer to
3-2-2 Setting Position Compensation Regions
. p. 38
Drawing Position Compensation Regions
Draw a position compensation region. Draw one box for one region to include the edges. When a region has been drawn, edge positions are measured. Since these positions become reference positions, draw the region after placing a measurement object so that sections to be inspected do not exceed beyond the screen area.
The procedure is the same as for object measurement.
Page 52
3-2SectionPosition Compensation
45
Refer to
3-3-4 Edge Processing
for measurement applications. p. 63
OK Wrong
Edge detection in Y axis
Edge detection in X axis
Detection is not possible unless the edges are within the position compensation region. Determine the size and position of the region considering the movement range of a measurement object.
Scroll Method
Scroll method: Select a method that is appropriate for the amount of displacement.
Simultaneous mode:
Performs position compensation in X and Y directions simultaneously. This mode is nor­mally selected.
Priority mode:
Scrolls in one direction and then the other direction. The region 0 is processed first. Select this mode when there is a large displacement.
For more information, refer to the
Glossary
. p. 140
Edge Detection Condition and Setting Evaluation Criteria for Position Compensation
The method of edge detection and evaluation criteria for the position coordinates (X and Y) are set to determine whether or not the edges for position compensation has been found correctly.
The procedure is the same as for object measurement. Refer to
3-3-4 Edge Processing
for measurement applications. p. 63
Evaluation and Processing
Evaluation Processing
OK Position compensation is performed before measurement. NG The object is measured without position compensation. Regardless
of the measurement result, however, an overall evaluation of NG will be output to the OR terminal.
Position compensation will not be performed if density changes beyond the specified level are not found. Measurement result is NG.
Example
Page 53
3-2SectionPosition Compensation
46
3-2-5 Area and Center of Gravity, and Center of Gravity and Axis
Angle
Gray images with 256 gradations are processed into binary data; black pixels (0) and white pixels (1). The F400 uses the white pixels to measure the object. Select area and center of gravity, or center of gravity and axis angle in the position compensation region in advance.
Refer to
3-2-2 Setting Position Compensation Regions
. p. 38
Area and Center of Gravity
The center of gravity is calculated for the white pixels, and the displacement from the reference position is calculated.
Reference center of gravity
Center of gravity of the input image
Displacement X
Displacement Y
— Filter/Pickup —
Page 54
3-2SectionPosition Compensation
47
Center of Gravity and Axis Angle
The center of gravity and the axis angle are calculated, and the displacement from the reference position is calculated.
Reference center of gravity
Center of gravity of the input image
Displacement θ Displacement X
Displacement Y
Procedure
Color Filter Mode Color Pickup Mode
2. Draw the position compensa­tion region.
3. Set the evaluation criteria.
1.1 Set the binary level. 1.2 Select the color pickup number
Note 1. The center of gravity and axis angle selected here are for position compensation.
Refer to
3-3-5 Area and Center of Gravity , or Center of Gravity and Axis Angle
for
information on settings for measurement p. 67
2. Position compensation methods are changed or cleared in the Region Settings Window.
Refer to
3-2-2 Setting Position Compensation Regions
. p. 38
Setting Binary Levels for Position Compensation (Color Filter Mode Only)
Set the level for processing gray images with 256 gradations into binary images. Since the F400 uses the white pixels to measure the object, adjust the binary level so that the area for which the center of gravity and axis angle are to be calculated is white.
Page 55
3-2SectionPosition Compensation
48
The procedure is the same as for object measurement. Refer to
Setting Binary
Levels
under
3-3-5 Area and Center of Gravity, or Center of Gravity and Axis
Angle
. p. 69
OK: The measurement object is converted to white pixels.
Wrong
Binary level
Upper [255] Lower [128]
Reverse
Auto
OK
↑↓:Move←→:Change
Binary level
Upper [255] Lower [128]
Reverse
Auto
OK
↑↓:Move←→:Change
Selecting Color Pickup Numbers for Position Compensation (Color Pickup Mode Only)
Select a color for position compensation from the registered pickup colors. The pro­cedure is the same as for measurement.
Refer to
Selecting Color Pickup Numbers
under
3-3-5 Area and Center of Gravity, or
Center of Gravity and Axis Angle
.
p. 70
Pickup color number currently displayed
Color selection
Color 0
←→:Change
Drawing the Position Compensation Region
Set the position and size of the region, taking into consideration the range of move­ment of the measurement object. The center of gravity and axis angle of the white pixels in the region will be found. Regions can be drawn by combining up to 3 figures.
Once the region is drawn, the center of gravity will be calculated. This center of gravity will become the reference position. Position the measurement object so that the mea­surement region is completely within the screen and then draw the region.
The procedure is the same as for object measurement.
Page 56
3-2SectionPosition Compensation
49
Refer to
Drawing Measurement Regions
under
3-3-5 Area and Center of Gravity, or
Center of Gravity and Axis Angle
.
p. 71
Draw figure
Measurement object
Registered draw­ing number Cursor position coordinates
Set the region based on the range of move­ment for the mea­surement object.
Setting Evaluation Criteria for Position Compensation
Criteria for area is set to determine whether or not the measurement object is properly within the measurement region.
The procedure is the same as for object measurement. Refer to
Setting Evaluation Criteria
under
3-3-5 Area and Center of Gravity , or Center
of Gravity and Axis Angle
.
p. 73
Position Compensation Evaluation and Processing
Evaluation Processing
OK Position compensation is performed before measurement. NG The object is measured without position compensation. Regardless
of the measurement result, however, an overall evaluation of NG will be output to the OR terminal.
Example
Area Center of gravity X and Y coordinates
Range of movement for OK result
OK
NG Center of gravity outside range
Area is too small to perform position displacement compensation. Measurement result will be NG.
Axis Angle
Measurement: 10.00 Measurement: 10
For an OK result set the evaluation criteria as fol­lows:
[–10.00: 10.00]
Page 57
3-3SectionMeasurement Methods
50
3-3 Measurement Methods
The measurement methods for the F400 are outlined in the following table. The avail­able methods differ between scene modes.
Mode Surface defect Search Edge Area and center
of gravity
Center of
gravity and axis
angle
Color filter Yes Yes Yes Yes Yes Color pickup No Yes Yes Yes Yes
Procedure
Set measurement region.
Select measurement method.
Set measurement conditions
1. Measurement Regions
p. 50
2. Surface Defects
p. 52
3. Searches
p. 55
4. Edge Processing
p. 63
5. Area and Center of Gravity, or Center of Gravity and Axis Angle
p. 67
3-3-1 Measurement Regions
The F400 has 16 measurement regions for each scene and different measurement methods and evaluation criteria can be set for each region.
1. Move the cursor to
SET/Measurement region
and press the ENT Key . The win-
dow for selecting the region number will be displayed.
1
Adjust Position compensation
Measurement region
Expression
Settings
2. Select the measurement region number. Using the Down Key, move the cursor to display measurement region numbers 8 to 15.
2
0.
1.
2.
3.
4.
5.
6.
7.
Measurement region
Press the SHIFT + ESC Keys to switch the background (clear filled).
3. Press the ENT Key. The number will be set and a list of measurement methods will be displayed. The list of options will differ depending on the scene mode.
Color Filter Mode Color Pickup Mode
Refer to the procedures for each measurement method for subsequent steps.
Surface defect
Search Edge Area & gravity Gravity & axis
Area & gravity
Gravity & axis Edge Search
— Filter/Pickup —
Page 58
3-3SectionMeasurement Methods
51
Note The measurement region selected here is for measurement. Different measurement
regions can be set for position compensation. Refer to
3-2-2 Setting Position Compensation Regions
p. 38
Changing and Clearing Measurement Regions
Settings for registered measurement methods are changed and cleared on the Set­tings Window for the measurement region number. To change the measurement method, clear the selected method and then register another method.
Example
The following example shows how to change the measurement method registered for region 0 from line defect to circle defect detection.
1. Clear the
Line defect
setting from the measurement region.
2. Register
Circle defect
as the measurement method.
Measurement region Measurement region
0.Line defect
1.Area & gravity
2.
3.
4.
5.
6.
7.
Change settings
Clear
0.
1.Area & gravity
2.
3.
4.
5.
6.
7.
1. In the selection window for measurement region numbers, select the number of the region to be changed or cleared and press the ENT Key. A list of options will be displayed.
1
2
Measurement region
0.Line defect
1.Area & gravity
2.
3.
4.
5.
6.
7.
Change settings
Clear
2. Select either
Change settings
or
Clear
as desired and press the ENT Key.
Changing Settings
The settings window for the selected position compensation method will be dis­played. Refer to the procedures for each measurement method for subsequent steps.
Region
Conditions
Surface defect (line)
Clearing Settings
A confirmation message will be displayed.
Page 59
3-3SectionMeasurement Methods
52
3. If
Clear
has been selected, move the cursor to
Execute
and press the ENT Key .
The setting will be cleared and the display will return to the window shown in step
1.
3
This region will be cleared.
Execute Cancel
3-3-2 Surface Defects
Inspections can be made for surface defects by searching for areas with large differ­ences in density. The density of each element in the measurement region is calcu­lated, the differences in densities are compared, and the position with the most defects is detected.
1. The element is moved a little at a time within the measurement region and the density of the element is calculated at each position.
Element
Measurement region
Defect
2. The density of the element is compared with the densities of the elements above and to the left, and the difference is the defect. The larger density difference will be the defect for that element.
3. Defects are compared with the evaluation criteria and an OK/NG judgement given.
Note Measurement is performed using differences in density. If there are marks, patterns,
or letters in the measurement region, these will be detected as defects and the mea­surement will be incorrect. Use the search method when inspecting measurement regions with marks, patterns, or letters.
— Color Filter —
Page 60
3-3SectionMeasurement Methods
53
Procedure
1. Draw the measurement region.
2. Set the surface defect detection conditions and evaluation criteria.
Refer to
3-3-1 Measurement Regions
p. 50
Drawing Measurement Regions
Select a measurement region from a line, arc, circumference, and box.
Line Arc
Circumference Box
Start point
End point
Width
Width
Start point
End point
Radius
Width
Radius
Center
Specify 2 opposite corners.
Note Do not draw a measurement region in a section with marks, patterns, or letters. These
will be detected as defects and the measurement will be incorrect.
Measurement region
Marks and letters inside measurement regions are detected as defects.
1. Move the cursor to
SET/ Measurement region/Surface defect
. A list of shapes
will be displayed.
1 2
Surface defect
Search Edge Area & gravity Gravity & axis
Line
Arc Circumference Box
Page 61
3-3SectionMeasurement Methods
54
2. Select the shape to be drawn and press the ENT Key. A list of defect processing options will be displayed.
3. Select
Region
. The cursor for drawing regions will be displayed.
3
Region
Conditions
Surface defect (line)
4. Draw the measurement region. Once the measurement region has been drawn properly, the display will return to
the window shown in step 3.
Setting Surface Defect Detection Condition and Evaluation Criteria
Set upper and lower limits for the range for OK results.
Defect and density
The measurement result for the displayed image is shown before the brackets ([ ]). Use these are a reference in setting values.
The density of the element is compared with the densities of the elements above and to the left, and the larger difference is the defect.
Element size : [10] Compare pitch : [1] Defect : 80 [30] Density MAX : 250 [255] Density MIN : 50 [0]
End
Display
Options
Element size 4 to 80 (10*) Sets the size of the element. Set the size to suit the size of the
defect to be detected. The larger the element, the faster the processing.
Compare pitch 1 to 6 (1*) Sets the pitch (number of elements) for element movement. Set
the pitch to suit the size of the defects for inspection and elements. The compare pitch does not affect the processing speed.
Defect 0 to 255 (30*) Sets the value for an OK result. An OK/NG judgement will be
made based on a comparison with the average density of the neighboring elements.
Density MAX Density MIN
0 to 255 (MAX: 255*) (MIN: 0*)
Sets the density range for an OK result for the elements within the measurement region.
Note The default settings are indicated by an asterisk (*).
1. Move the cursor to Conditions and press the ENT Key. The Condition Settings Window for defect measurement will be displayed.
1
Region
Conditions
Surface defect (line)
2. Move the cursor to the evaluation criteria to be changed and change the settings.
Page 62
3-3SectionMeasurement Methods
55
Input numeric values in the brackets ([ ]). Refer to
2-1-4 Inputting Values.
p.
10
2
End
Element size : [10] Compare pitch : [1] Defect : 80 [30] Density MAX : 250 [255] Density MIN : 50 [0]
3. When the setting changes are completed, move the cursor to
End
and press the ENT Key. The evaluation criteria will be saved and the display returned to the window shown in step 1.
6
End
Element size : [12] Compare pitch : [1] Defect : 80 [30] Density MAX : 250 [255] Density MIN : 50 [0]
3-3-3 Searches
Searches are used when inspecting objects with constant shapes. The objects are measured using a registered measurement pattern called a model.
Features
The position of the object (X, Y) and the degree of conformity (called the correlation) with the model can be calculated.
The part of the input image that most corresponds to the model is found.
Model
Search
— Filter/Pickup —
Page 63
3-3SectionMeasurement Methods
56
The extent of conformity with the model is shown as the correlation value. The OK/NG judgement is determined by comparing the correlation value and the position with an evaluation criteria.
OK if the correlation value for the model is within the specified range.
OK if the position is within the specified range.
Procedure
1. Select the color pickup number to be measured (*). (For Color Pickup Mode only)
2. Register a model.
3. Set the search range.
4. Set the evaluation criteria.
Note 1. The search processing selected here is for object measurement. Separate
search processing can be set for position compensation. Refer to
3-2-3 Searches
p. 40
2. Measurement methods are changed and cleared in the Region Settings Win­dow.
Refer to
3-3-1 Measurement Regions
p. 50
Selecting Color Pickup Numbers for Measurement (Color Pickup Mode Only)
Select a color for measurement from the registered pickup colors. Up to 8 colors can be registered with the F400.
Page 64
3-3SectionMeasurement Methods
57
Refer to
3-1-4 Picking Up Measurement Colors.
p. 28
Pickup color number currently displayed.
Color selection
Color 0
←→:Change
1. Move the cursor to
Color no.
and press the ENT Key. The Pickup Color Selection
Window will be displayed.
1
Color no.
Model registration Search region Conditions
Search
2. Use the Left and Right Keys to display the measurement color on the screen. The color displayed on the screen will change as the selected pickup number changes. Confirm the measurement color on the screen.
2
Pickup color 0
Pickup color 1
Pickup color 7
Color selection
Color 0
←→:Change
Page 65
3-3SectionMeasurement Methods
58
3. Once the correct color has been displayed, press the ENT Key. The measure­ment pickup color will be selected and the display will return to the screen shown in step 1.
Registering a Model
Sections to be inspected are registered as models. Models can be of any size.
Model
Registered drawing number
Cursor position coordinates
Up to three figures can be drawn in combination.
Draw figure
[0]
285,271
1. Move the cursor to
Model registration
and press the ENT Key. The Draw Figure
Window will be displayed.
Color Filter Mode Color Pickup Mode
Search Search
1
Model registration
Search region Conditions
1
Color no.
Model registration
Search region Conditions
2. Move the cursor to New and press the ENT Key. The Drawing Selection Window will be displayed.
3. Select the shape to be drawn. A list of drawing methods will be displayed.
4. Select OR or NOT. The model drawing cursor will be displayed.
2
3
4
Box
Ellipse Circle Circumference Polygon
OR
NOT
New
5. Draw the shape in the region to be registered as the model. When one drawing has been completed, a message to confirm whether or not another drawing is to be added will be displayed.
Page 66
3-3SectionMeasurement Methods
59
Refer to
2-1-5 Drawing Measurement Regions
. p. 12
6. Move the cursor to
Add
if a drawing is to be added and press the ENT Key.
Repeat steps 3 to 5.
6
Draw figure
Add
7. When all drawings have been completed press the ESC Key . The cursor will be displayed.
8. Move the cursor to the point where coordinates (X, Y) are output as a search position and press the ENT Key. The coordinates will be set, the model will be saved, and the display will return to the window shown in step 1.
Move the cursor to the point where coordinates are output.
Note After three drawings have been made the
Add
message will not appear.
Page 67
3-3SectionMeasurement Methods
60
Changing and Clearing Drawings
Drawings are cleared in the Draw Figure Window.
1. Use the Up and Down Keys to select the drawing to be changed or cleared. The selected drawing will be displayed in solid lines.
Drawing number and registered drawings The selected drawing will be appear in solid
lines and other drawings will be shown in dotted lines.
Draw figure
↑↓Switch
[0]
Add
2. Press the ENT Key. The processing options will be displayed.
3. Select
Correct
or
Clear
and press the ENT Key.
Correct
The drawing cursor will be displayed. Correct the drawing.
Clear
The drawing will be cleared.
3
Correct
Clear
Page 68
3-3SectionMeasurement Methods
61
Setting Search Region
Set the region to search for the model. The search can be made on the whole input screen. However, the search region can be limited to reduce the processing time and increase the accuracy.
The model is displayed in solid lines.
Cursor position coordinates
Search region
Search region is displayed in dotted lines.
285,271
1. Move the cursor to
Search region
and press the ENT Key . The cursor for draw-
ing search regions will be displayed.
Color Filter Mode Color Pickup Mode Search Search
1
Model registration
Search region
Conditions
1
Color no. Model registration
Search region
Conditions
2. Draw the search region for the model. Exit the drawing to return to the window shown in step 1.
Page 69
3-3SectionMeasurement Methods
62
Setting Evaluation Criteria
Evaluation criteria are set for the correlation with the model and the coordinates where the model was found. Set upper and lower limits for an OK result for both the model correlation and model coordinates.
Correlation range for OK evaluation (0 to 100) (60*:100*)
X-axis movement range of measurement object for OK evaluation (–9999.999 to 9999.999)
Search speed
Slow
Fast
The measurement result for the displayed image (calibrated values) is shown before the parentheses ([ ]). Use these as a reference for upper and lower limit settings.
Default settings are indicated by an asterisk (*).
Correlation set to 70:100
X and Y Axes
Image 0 Image 1 Image 2 Image 3
Correlation Judgement
Y-axis upper limit
Y-axis lower limit
X-axis lower limit
X-axis upper limit
Correlation: 79 [60 : 100] Position X : 180.000
[0.000 : 511.000]
Position Y : 250.000
[0.000 : 483.000]
Speed : 2B
End
Y-axis movement range of measurement object for OK evaluation (–9999.999 to 9999.999)
LOW
1 2 3
HIGH
*
1. Move the cursor to
Conditions
and press the ENT Key. The Condition Settings
Window will be displayed.
Color Filter Mode Color Pickup Mode Search Search
1
Model registration Search region
Conditions
1
Color no. Model registration Search region
Conditions
2. Change the evaluation criteria. Input numeric values in the brackets ([ ]). Refer to
2-1-4 Inputting Values
. p. 10
3. When the evaluation criteria have been set, move the cursor to
End
and press the ENT Key. The evaluation criteria will be saved and the display will return to the window shown in step 1.
2
3
Correlation: 79 [60 : 100] Position X : 180.000
[0.000 : 511.000]
Position Y : 250.000
[0.000 : 483.000]
Speed : 2B
End
Page 70
3-3SectionMeasurement Methods
63
3-3-4 Edge Processing
With edge processing, the position where the color of the measurement object chan­ges (the edge) is found, the position, width, or other values for the measurement object are determined, and measurements are performed. The direction for the edge search and the color changes can be set for each region.
Finding Edge Positions
When finding coordinates of this edge
Measurement region
Direction: Color: Light to Dark
Finding Width
The absolute value of the difference between these coordinates is calculated.
The expression is set in the
SET/
Expression
settings.
Measurement region 0
Measurement region 1
Direction: Direction: Color: Light to dark Color: Light to dark
— Filter/Pickup —
Page 71
3-3SectionMeasurement Methods
64
Procedure
1. Select the color pickup number to be measured (*). (For Color Pickup Mode only)
2. Draw the measurement region.
3. Set the edge detection conditions and evaluation criteria.
Note 1. The edge processing selected here is for object measurement. Separate edge
processing can be set for position compensation. Refer to
3-2-4 Position Compensation Using Edges
. p. 43
2. Measurement methods are changed and cleared in the Region Settings Win­dow.
Refer to
3-3-1Measurement Regions
p. 50
Selecting Color Pickup Numbers for Measurement (Color Pickup Mode Only)
Select the colors to be used in measurement from the registered pickup colors. Up to 8 colors can be registered in the F400.
Refer to
3-1-4 Picking Up Measurement Colors
. p. 28
Color selection
←→:Change
Color 0
Pickup color number currently displayed.
1. Move the cursor to
Color no.
and press the ENT Key. The Pickup Color Selection
Window will be displayed.
Edge
1
Color no.
Region Conditions
Page 72
3-3SectionMeasurement Methods
65
2. Use the Left and Right Keys to display the measurement color on the screen. The color displayed on the screen will change as the selected pickup number changes. Confirm the measurement color on the screen. Use the Left and Right Keys to move through pickup colors 0 to 7 in order.
2
Pickup color 0
Pickup color 1
Pickup color 7
Color selection
←→:Change
Color 0
3. Once the color is displayed, press the ENT Key. The pickup color for measure­ment will be selected and the display will return to the window shown in step 1.
Drawing Measurement Regions
Draw a measurement region. Draw one box for one region to include the edges.
OK Wrong
Edge detection in Y axis
Edge detection for X axis
Detection is not possible unless the edges are within the measurement region. Determine the size and position of the region considering the move­ment range of a measurement object.
1. Move the cursor to
Region
and press the ENT Key. The Draw Figure Window will
be displayed.
Color Filter Mode Color Pickup Mode
Edge
1
Color no.
Region
Conditions
Edge
1
Region
Conditions
Page 73
3-3SectionMeasurement Methods
66
2. Draw the edge measurement region. Refer to
2-1-5 Drawing Measurement Regions
for information on drawing meth-
ods for measurement regions.
p. 12
When the drawing has been completed, the display will return to the screen shown in step 1. The registered drawing will be displayed in solid lines.
Setting Edge Detection Condition and Evaluation Criteria
Set the evaluation criteria for edges.
Direction for edge detection
Edge evaluation method
OK range for edge position (–9999.999 to 9999.999)
The measurement result for the displayed image (calibrated values) is shown before the parentheses ([ ]). Use these as a reference for upper and lower limit settings.
The Y-coordinate value will be output when an up o r down direction is selected.
The origin and coordinate system will change depending on the calibration settings.
The X coordinates will be output when a left or right direction is selected.
Levels of Density Change for Edge Detection
Edge level (0 to 100) (50*) Set the level of density change for the edge.
Refer to the
Glossary
for details about condition settings. p. 140
Note Default settings are indicated by an asterisk (*).
Direction : B Color : LightDarkB Edge level : [50]% Noise level: [0] Position : 0.000
[0.000 : 511.000]
End
Level for determining whether edge exists or not. Color filter mode: (0 to 255) (20*) Color pickup mode: (0 to 100%) (20*) If below the set level, no edges are considered to exist.
↑ ↓ →*
Light Dark * Dark Light
+
+
Page 74
3-3SectionMeasurement Methods
67
1. Move the cursor to
Conditions
and press the ENT Key. The Evaluation Criteria
Settings Window will be displayed.
Color Filter Mode Color Pickup Mode
Edge
1
Color no. Region
Conditions
Edge
1
Region
Conditions
2. Move the cursor to the desired item and change the evaluation criteria. Items with a B mark have further options available. Input numeric values for items with brackets ([ ]).
Refer to
2-1-4 Inputting Values
. p. 10
3
2
Direction : B Color : LightDarkB Edge level : [50]% Noise level: [20] Position : 0.000
[0.000 : 511.000]
End
3. When the evaluation criteria changes have been completed, move the cursor to
End
and press the ENT Key. The evaluation criteria will be saved and the display
will return to the window shown in step 1.
3-3-5 Area and Center of Gravity, and Center of Gravity and Axis
Angle
Density images with 256 gradations are read by the Camera. Binary processing involves separating these density images into black pixels (picture elements) (0) and white pixels (1). The F400 uses the white pixels to measure the object.
Area and Center of Gravity
The area and center of gravity of white pixels is found.
Measurement region
Center of gravity of white pixels
Area of white pixels
— Filter/Pickup —
Page 75
3-3SectionMeasurement Methods
68
Center of Gravity and Axis Angle
The center of gravity and axis angle for the white pixels is found. Finding the axis angle increases processing time. Select the area and center of gravity method when the axis angle is not required.
Measurement region
Axis angle for white pixels
Center of gravity for white pixels
Area of white pixels
Procedure
Color Filter Mode Color Pickup Mode
1. Set the binary level. 1. Select the color pickup number
2. Draw the measurement region.
3. Set the evaluation criteria.
or
Note 1. The area and center of gravity, or the center of gravity and axis angle processing
selected here is for object measurement. Separate processing can be set for position compensation.
Refer to
3-2-5 Area and Center of Gravity , and Center of Gravity and Axis Angle
.
p. 46
2. Measurement methods are changed and cleared in the Region Settings Win­dow.
Refer to
3-3-1 Measurement Regions
p. 50
Page 76
3-3SectionMeasurement Methods
69
Setting Binary Levels (Color Filter Mode Only)
Set the level for processing gray images with 256 gradations into binary images. Since the F400 uses the white pixels to measure the object, adjust the binary level so that the measurement object turns into white pixels.
OK: The measurement object is converted to white pixels.
Binary level settings
Lower limit
Upper limit
Upper limit of binary level Lower limit of binary level
Move the cursor to
Reverse
and press the ENT Key to reverse black and white pixel display.
Move the cursor to
Auto
to have binary
levels set automatically by the F400.
Wrong
The binary level can also be set so that only the intermediate density becomes the sub­ject for measurement. However, the level cannot be set to exclude this intermediate level.
Binary level
Upper [255] Lower [128]
Reverse
Auto
OK
↑↓:Move←→:Change
Binary level
Upper [255] Lower [128]
Reverse
Auto
OK
↑↓:Move←→:Change
WrongOK
White (for measurement)
Density
Black
1. Move the cursor to
Binary
and press the ENT Key. The Binary Level Settings
Window will be displayed.
Area and center of gravity
1
Binary
Region Conditions
2. Move the cursor to the upper limit and use the Left and Right Keys to change the numeric value.
Page 77
3-3SectionMeasurement Methods
70
3. Change the lower limit the same way.
2
3
4
Binary level
↑↓:Move←→:Change
Upper [255] Lower [128]
Reverse
Auto
OK
4. Move the cursor to OK and press the ENT Key. The binary levels will be set and the display will return to the window shown in step 1.
Selecting Color Pickup Numbers (Color Pickup Mode Only)
Select the colors to be used in measurement from the registered pickup colors. Up to 8 colors can be registered in the F400.
Refer to
3-1-4 Picking Up Measurement Colors
. p. 28
Pickup color number currently displayed.
Color selection
←→:Change
Color 0
1. Move the cursor to
Color no.
and press the ENT Key. The Pickup Color Selection
Window will be displayed.
1
Color no.
Region Conditions
Page 78
3-3SectionMeasurement Methods
71
2. Use the Left and Right Keys to display the measurement color on the screen. The color displayed on the screen will change as the selected pickup number changes. Confirm the measurement color on the screen. Use the Left and Right Keys to move through pickup colors 0 to 7 in order.
2
Pickup color 0
Pickup color 1
Pickup color 7
Color selection
←→:Change
Color 0
3. Once the color is displayed, press the ENT Key. The pickup color for measure­ment will be selected and the display will return to the window shown in step 1.
Drawing Measurement Regions
The center of gravity and axis angle of the white pixels in the region will be found.
Shape and Number of Drawings
A combination of three figures can be drawn.
Measurement object
Registered draw­ing number
Cursor position coordinates
Set the region based on the range of move­ment for the mea­surement object.
Draw figure
[0]
255,211
Page 79
3-3SectionMeasurement Methods
72
1. Move the cursor to
Region
and press the ENT Key. The window for drawing fig-
ures will be displayed.
Color Filter Mode Color Pickup Mode
1
Color no.
Region Conditions
1
Binary
Region
Conditions
2. Move the cursor to
New
and press the ENT Key . A list of drawing shapes will be
displayed.
3. Select the shape to be drawn. A list of drawing methods will be displayed.
4. Select OR or NOT. The region drawing cursor will be displayed.
2
3
4
Box
Ellipse Circle Circumference Polygon
OR
NOT
New
5. Draw the measurement region. When one drawing has been completed, a mes­sage to confirm whether or not another drawing is to be added will be displayed.
Refer to
2-1-5 Drawing Measurement Regions
. p. 12
5
Draw figure [0]
355,321
6. Move the cursor to
Add
if a drawing is to be added and press the ENT Key.
Repeat steps 3 to 5.
6
Draw figure
Add
7. When all drawings have been completed, press the ESC Key. The measurement regions will be saved and the display will return to the window shown in step 1.
Note After three drawings have been made, the
Add
message will not appear.
Correcting and Clearing Drawings
Drawings are cleared in the Draw Figure Window.
Page 80
3-3SectionMeasurement Methods
73
1. Use the Up and Down Keys to display the drawing to be changed or cleared. The selected drawing will be displayed in solid lines.
Drawing number and registered drawings The selected drawing will be appear in solid lines
and other drawings will be shown in dotted lines.
Draw figure
↑↓ Switch
Add
2. Press the ENT Key. The processing options will be displayed.
3. Select
Correct
or
Clear
and press the ENT Key.
Correct
The drawing cursor will be displayed. Correct the drawing.
Clear
The drawing will be cleared and the display will return to the one in the above step 1.
3
Correct
Clear
Setting Evaluation Criteria
Set the area and center of gravity, or the center of gravity and axis angle evaluation criteria.
Area and Center of Gravity
Area range for OK result (0 to 9999999.999)
X-axis range for OK result (–9999.999 to 9999.999) Y-axis range for OK result (–9999.999 to 9999.999)
The measurement result for the displayed image (calibrated values) is shown before the parentheses ([ ]). Use these as a reference for upper and lower limit settings.
Area : 20.000
[1.000 : 247808.000]
Gravity X : 180.000
[0.000 : 511.000]
Gravity Y : 250.000
[0.000 : 483.000]
End
OK if the center of gravity is within a range between the upper and lower limits.
OK if the area is within a range between the upper and lower limits.
Page 81
3-3SectionMeasurement Methods
74
Center of Gravity and Axis Angle
Area range for OK result (0 to 9999999.999) X-axis range for OK result (–9999.999 to 9999.999) Y-axis range for OK result (–9999.999 to 9999.999)
The measurement result for the displayed image (calibrated values) is shown before the parentheses ([ ]). Use these as a reference for upper and lower limit settings.
Axis angle range for OK result (–180.000 to 180.000)
OK if the axis angle is within a range between the upper and lower limits.
OK if the center of gravity is within a range between the upper and lower limits.
OK if the area is within a range between the upper and lower limits.
Area : 20.000
[1.000 : 247808.000]
Gravity X : 180.000
[0.000 : 511.000]
Gravity Y : 250.000
[0.000 : 483.000]
Axis : 28.000
[–180.000 : 180.000]
End
Example
Axis Angle
Measurement: 10.00 Measurement: –10
For an OK result, set the evaluation criteria as follows:
[–10.00: 10.00]
1. Move the cursor to
Conditions
and press the ENT Key. The Condition Settings
Window will be displayed.
Color Filter Mode Color Pickup Mode
1
Color no. Region
Conditions
1
Binary Region
Conditions
2. Change the evaluation criteria. Input numeric values in the brackets ([ ]). Refer to
2-1-4 Inputting Values
. p. 10
2
3
2
3
Area and gravity Gravity and axis
Area : 20.000
[1.000 : 247808.000]
Gravity X : 180.000
[0.000 : 511.000]
Gravity Y : 250.000
[0.000 : 483.000]
End
Area : 20.000
[1.000 : 247808.000]
Gravity X : 180.000
[0.000 : 511.000]
Gravity Y : 250.000
[0.000 : 483.000]
Axis : 28.000
[–180.000 : 180.000]
End
3. When the evaluation criteria changes have been completed, move the cursor to
End
and press the ENT Key. The evaluation criteria will be saved and the display
will return to the window shown in step 1.
Page 82
3-4SectionExpressions
75
3-4 Expressions
Outputs to external devices via the terminal blocks or RS-232C can be set. Even if the expression is not used, overall evaluation of drawn regions will be output to the OR terminal of the terminal block.
Terminal Block Outputs
Evaluation results for each region can be output.
Measurement values for each region can be calculated and OK/NG judgement for
the calculation results can be made.
Output number 16 expressions (judgement output 0 to 15) can be set.
Calculation result for displayed image.
Expression The OK/NG judgement
for the calculation results is output to the terminal block.
Evaluation criteria The evaluation criteria
for the expression are set. (–9999999.999 to
9999999.999)
Judge0.
↑↓:Move ENT:Change
[R0.JG ]
Measurement: 28.195 Upper: [ 35.000] Lower: [ 25.000]
RS-232C Outputs
Measurement values can be output.
Calculation results can be output.
The information output for output numbers 0 to 7 can be set. Information is output in order starting from output #0.
Calculation results of displayed image
Expression
Output number 8 expressions (data 0 to 7) can be set.
Data0.
ENT:Change
[R0.JG ]
Measurement: 28.195
— Filter/Pickup —
Page 83
3-4SectionExpressions
76
Note For information on output formats, refer to
6-1-1 I/O Format
under
Terminal
Blocks
. p. 112
and
6-2-4 I/O Format
under
RS-232C
. p. 123
Setting Items
Region number . (R0 to R15: Measurement regions. P0 and P1: Position compensation regions.) Sub-menus will differ depending on the set measuring method. (*1)
Functions (*2) Other calculation results can be used. (*3) Use this
feature when a long expression that will not fit between the parentheses is required. A list of output numbers will be displayed if this item is selected.
DEL: Deletes the item after the cursor. BS: Deletes the item before the cursor.
Deletes items.
Constants from 0 to 999.999 can be set.
Moves the cursor.
R0 R7 R14 + ABS ANGL R1 R8 R15 – MAX ATAN R2 R9 P0 * MIN DIST R3 R10 P1 / , SQRT R4 R11 ( ) Judge R5 R12 Const Data R6 R13 ←→DEL BS OK
Expression to be used is determined.
Sub-menus (*1)
Submenus when R0 to R15 or P0 to P1 is selected are as shown in the following tables.
Surface Defect Measurements
Measurement item Meaning
Judge: JG Evaluation result Defect: F Measured defect Density MAX: GA Maximum density inside measurement region Density MIN: GI Minimum density inside measurement region
Edge Measurements
Measurement item Meaning
Judge: JG Measurement result Edge position: EG Measured edge position coordinates Reference position: RE Coordinates for drawn region Displacement: DE Difference between coordinates for measurement and
reference values
Search Measurements
Measurement item Meaning
Judge: JG Evaluation result Search position: X X coordinate of found model position Search position: Y Y coordinate of found model position Reference position: RX X coordinate of registered model position Reference position: RY Y coordinate of registered model position Displacement: DX Difference between X coordinates for measurement and
reference values
Displacement: DY Difference between Y coordinates for measurement and
reference values
Correlation: CR Correlation with model
Page 84
3-4SectionExpressions
77
Area and Center of Gravity or Center of Gravity and Axis Angle Measurements
Measurement item Meaning
Judge: JG Evaluation result Gravity: X Gravity coordinate X of measurement result Gravity: Y Gravity coordinate Y of measurement result Reference: RX X coordinate when measurement region drawn Reference: RY Y coordinate when measurement region drawn Displacement: DX Difference between X coordinates for measurement and
reference values
Displacement: DY Difference between Y coordinates for measurement and
reference values Area: MA Area of measurement result Reference area: RM Area when measurement region drawn Differential area: DM Difference between measured area and reference area Inverted area: VM Difference between measurement region and measurement
area Axis angle: AG* Axis angle of measurement result Reference axis: RA* Axis angle for drawn measurement region Differential axis: DA* Difference between measured and reference axis angles
Note Items indicated with an asterisk (*) are shown only for center of gravity and axis angle
measurements.
Judge JG
When “JG” is set for a judgement output expression, the following two levels of judge­ment are made.
1. Judgement is made according to the evaluation criteria set for each region. Either “0.000” or “–1.000” will be output as a measurement value.
Page 85
3-4SectionExpressions
78
2. Judgement is made on the measurement value obtained above according to the upper and lower limits of the judgement item set by the “JG.” Judgement results will be output to external devices.
Judge0. [R0.JG ]
Measurement: 0.000 Upper: [ 0.000] Lower: [ 0.000]
0.000: OK –1.000: NG Value set according to evaluation criteria established when the region 0 is drawn.
Set 0.000 to both the upper limit and lower limit so that only 0.000 is judged to be OK.
When “JG” is set for a judgement output expression, the first judgement shown above is made. If OK, “0.000” will be output to external devices. If NG, “–1.000” will be output to external devices.
Judge0. [R0.JG+R1.JG ]
Measurement: 0.000 Upper: [ 0.000] Lower: [ 0.000]
(Application Example) When finding an overall judgement for the regions 0 and 1
Judgement will be as shown below if both the upper and lower limits are set to “0.000.”
Judgement results for region 0 are output to judgement output 0.
(Example)
If both are OK, measurement value of “0.000” will be judged OK. If either one is NG, measurement value of “–1.000” will be judged NG. If both are NG, measurement value of “–2.000” will be judged NG.
Functions (*2)
Function Meaning Argu-
ments
ABS Gives the absolute value.
ABS(
argument
)
1
MAX Gives the larger of two arguments.
MAX(
argument 1, argument 2
)
2
MIN Gives the smaller of two arguments.
MIN(
argument 1,argument 2
)
2
SQRT Calculates the square root. If the argument is negative, the calculation result will be 0
and the judgement will be NG. SQRT(
argument
)
1
Page 86
3-4SectionExpressions
79
Function Argu-
ments
Meaning
ANGL Calculates the angle between two straight lines joining two points,
such as the center of gravity or the center of a model. The angle from a horizontal line is calculated. The result will be in
the range of –180° and 180°.
ANGL(
Y component, X component
)
Example: Set the following to calculate the angle between straight lines joining the center of gravity for region 0 and the center of grav­ity for region 1.
ANGL(R1.Y–R0.Y,R1.X–R0.X)
If both arguments are 0, the result will also be 0 and the judgement will be NG.
First point
Second point
Horizontal line
2
ATAN Calculates the arc tangent for the Y component/X component. The result is given as
a radian of –π to π. ATAN(
Y component, X componen
t)
Example: Set the following to calculate the angle between a straight line joining the center of gravity for region 0 and the center of gravity for region 1 and a horizontal line.
ATAN(R1.Y–R0.Y,R1.X–R0.X) If both arguments are 0, the calculation result will also be 0 and the judgement will be
NG.
2
DIST Calculates the distance between two points, such as the center of gravity or the
center of the model. DIST(
X coordinate of first point, Y coordinate of first point, X coordinate of second
point,Y coordinate of second point
)
Example: Set the following to calculate the distance between the center of gravity for region 0 and center of gravity for region 1.
DIST(R0.X,R0.Y,R1.X,R1.Y)
The following calculation is performed internally.
(R1.X–R0.X)
2
+(R1.Y–R0.Y)
2
4
Using Other Expression Values (*3)
Other expression values can be used for evaluation by selecting
Judge
and
Data
. Use this function if the expression does not fit within the range set by the brackets ([ ]). Judge 0 to 15 are displayed as “PR.0 to PR.15” and Data 0 to 7 as “RS.0 to RS.7.”
Region 0
Region 1
Set as follows for Judge 0 and Judge 1 respectively.
Example 1: Obtain the length of a straight line connecting two points and add 120.25 to that value.
Judge 0. [DIST(R0.X,R0.Y,R1.X,R1.Y) ]
Judge 1. [PR.0+120.25 ]
Constant 120.25 cannot be set because the number of digits is excessive
Constant 120.25 is added to the calculation result of Judge 0.
Page 87
3-4SectionExpressions
80
Note When using PR.j or RS.j in the expressions, use the larger output number. Since
the calculation is made according to the following procedure, the previous calculation result will be substituted if PR.j or RS.j is used in the smaller output number.
Data 0
Data 1
Data 7
Judge 0
Judge 1
Judge 15
If the above example is reversely set
Judge 0. [PR.0+120.25 ]
Judge 1. [DIST(R0.X,R0.Y,R1.X,R1.Y) ]
Since Judge 0 will be calculated before Judge 1, the previous calculation result will be substituted for PR.1.
Example 2: Output the number of measurements
Set an expression for the Expression/Data to output values.
Data 0. [RS.0+1 ]
Since RS.0 becomes “0” when the power is turned OFF or when set to the Set mode, the number of measurements is also reset.
1. Move the cursor to
Judge
or
Data
of the
SET/Expression.
1
When Judge is selected
Expressions are displayed at numbers for which settings have been completed.
Only the beginning of the expression will be dis­played for long expressions.
Use the Up and Down Keys to scroll from 0 to 15.
Judge
Data
Expression
0.R0.JG
1.R0.JG
2.R0.X+R1.
3.
4.
5.
6.
7.
0.R0.JG
1.R0.JG
2.R0.X+R1.
3.
4.
5.
6.
7.
When Data is selected
Page 88
3-4SectionExpressions
81
2. Move the cursor to the number for which an expression will be set and press the ENT Key. The Edit Expressions Window will be displayed.
3. Move the cursor to the brackets ([ ]) where the expression is to be input and press the ENT Key. A list of items will be displayed.
3
Example: Judge is selected Judge 0.
[]
4. Select the desired item and press the ENT Key. The selected item will be set in the expression and displayed in the brackets ([ ]).
Example Judge 0.
[I ]
Judge 0. [R0. JG ]
Select an item.
The selected item is set as the expression.
R0 R7 R14 + ABS ANGL
R1 R8 R15 MAX ATAN R2 R9 P0 * MIN DIST R3 R10 P1 / , SQRT R4 R11 ( ) Judge R5 R12 Const Data R6 R13 ←→DEL BS OK
Judge JG
Defect F Density MAX GA Density MIN GI
R0 R7 R14 + ABS ANGL
R1 R8 R15 – MAX ATAN R2 R9 P0 * MIN DIST R3 R10 P1 / , SQRT R4 R11 ( ) Judge R5 R12 Const Data R6 R13 ←→DEL BS OK
Press ENT Key.
5. Repeat step 4 to set the next item.
6. Once the expression settings have been completed, move the cursor to
OK
and
press the ENT Key. The expression will be saved.
Page 89
3-4SectionExpressions
82
7. When
Judge
has been selected, the evaluation criteria for OK/NG judgements
must be set. Input numeric values in the brackets ([ ]).
Set upper and lower limits
for OK judgement. Refer to
2-1-4 Inputting Values.
p. 10
7
Judge0.
↑↓:Move ENT:Change
[R0.X-R1.X ]
Measurement: 5789018.955 Upper: [5500000.000] Lower: [6000000.000]
8. When all settings have been completed, press the ESC Key to exit the Edit Expressions Window . The expressions will be saved and the display will return to the window shown in step 1.
Page 90
83
SECTION 4
Checking and Executing Measurements
This section describes how to monitor if correct measurements are being performed with the set measurement conditions. It also describes how to perform measurements.
4-1 Checking Measurements 84. . . . . . . . . . . . . . . . . . . . . . . .
4-1-1 Adjusting Evaluation Criteria while
Viewing Measurements 85. . . . . . . . . . . . . . . . . . . . . . .
4-2 Measuring 92. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-2-1 Adjusting Evaluation Criteria during Measurement 93. .
Page 91
4-1SectionChecking Measurements
84
4-1 Checking Measurements
This section explains how to check if measurements can be correctly performed for the displayed scene using the set measurement conditions.
Measurement commands can be input from an external device via the terminal blocks or RS-232C but the measurement results cannot be output back to the device; they can only be checked on-screen. When performing measurement on a through image, stop the measurement object first. If measurement is performed on a moving image, the image input timing will be delayed, and a proper image will not be obtained.
1. Move the cursor to the operating mode in the main window (
SET
in this example) and press the ENT Key. The Operation Mode Selection Window will be dis­played.
2
1
---- --ms
Color thr
Scn 0BSETB
SET
MON
RUN SYS SAVE
2. Move the cursor to
MON
and press the ENT Key. The F400 is now in Monitor mode. Monitor mode is automatically started immediately after exiting from Set mode.
3. Press the TRIG Key or input a measurement command from an external device. The measurement will be executed and the measurement results displayed.
— Filter/Pickup —
Page 92
4-1SectionChecking Measurements
85
4-1-1 Adjusting Evaluation Criteria while Viewing Measurements
This section explains how to adjust evaluation criteria in Monitor mode while display­ing measurement results and referring to the measurement values. Press the SHIFT
+ ESC Keys, go to
Display image
and select the items to be displayed.
5-4-1
Measurement Screen Settings
p. 100
Contents of displayed measurement results
Overall judgement The overall judgement will be NG if there is even just one
NG evaluation in the measurement regions or expressions.
Measurement time
Measurement region
Judgement/measurement results
NG 67ms
Pickup frz
Scn 0BMONB Individual region
0.Search Judge : NG
Correlation: 10 Position X : 220.000 Position Y : 180.000
+
↑↓:Switch
Note 1. Press the SHIFT + Up/Down Keys to switch the display image.
2. To store a measurement image to memory, press SHIFT + ESC. The relevant settings window will be displayed.
5-4-1 Measurement Screen Settings
p. 100
3. To perform measurement for the still image or memory image currently being dis­played, press the SHIFT + TRIG Keys. Measurement will be performed and the measurement results will be displayed.
4. After all measurement results have been displayed, input the next STEP signal or press the TRIG Key. If the next STEP signal is input or the TRIG Key is pressed while measurement results are still being displayed, the display will be inter­rupted and the next measurement will be performed.
Page 93
4-1SectionChecking Measurements
86
Displaying Measurement Results on the Screen
None
If set to
None
, only the overall judgement will be displayed.
Pickup frz
Scn 0BMONB
Position Compensation
The results for position displacement compensation can be displayed. There are 4 screens: 2 for the measurement results of each position compensation region and 2 for the displacement distances (distanced scrolled) of the regions. Use the Up and Down Keys to switch between the screens. The image displayed is the image after filtering and background suppression for position displacement compensation.
Pickup frz
Scn 0BMONB Position compensation
0.Search
Judge : OK Correlation : 85 Position X : 202.000 Position Y : 245.000
↑↓:Switch
Scn 0BMONB Position compensation
0.Distance
Pickup frz
↑↓:Switch
Position compensation region 0,1 Displacement distance 0, 1 (difference
between the reference position and the measurement position) “1.Distance” is only displayed when Edge Priority mode is set. (First and second dis­placement distances are displayed.)
Position com­pensation region is displayed.
The arrow cursor is at the measurement position.
If the judgement for position displacement compensation is NG, the screen will not be scrolled and so all of these values will be 0.
If the SHIFT + ENT Keys are pressed while the screen for the individual region is displayed, the screen for changing conditions will be displayed, and the evaluation criteria can be changed while monitoring the measurement values. However, while this screen is displayed, measurement will not be performed, even if a trigger or a STEP signal is input.
Page 94
4-1SectionChecking Measurements
87
Note The measurement results that are displayed can also be set in
SYS/Display set-
tings
.
5-4-1 Measurement Screen Settings
p. 100
All Results of Regions
Position compensation and judgements for all the regions are displayed in one list.
Scn 0BMONB All results of regions
Press the SHIFT + Left/Right Keys to switch the background (clear filled).
5-4-1 Measurement Screen
Settings
p. 100
P0, P1: Judgements for position compensation 0 to 15: Judgements for measurement regions
Pickup frz
All Positions of Regions
Outlines of all the set measurement regions are displayed.
Pickup frz
Scn 0BMONB All positions of regions
Position compensation regions are displayed with dotted lines.
Measurement regions are displayed with bold lines.
Page 95
4-1SectionChecking Measurements
88
Individual Region
The measurement values for each region are displayed separately. If the SHIFT + ENT Keys are pressed from this screen, the screen for changing conditions will be
displayed, and the evaluation criteria can be changed while monitoring the measure­ment values. However, while this screen is displayed, measurement will not be per­formed, even if a trigger or a STEP signal is input.
Pickup frz
Scn 0BMONB Individual region
0.Search
Judge : NG Correlation: 45 Position X : 202.000 Position Y : 256.000
↑↓:Switch
Switch regions with the Up/Down Keys.
Inverted display is used for NG items.
All Judges
Judgement results for the judge output expressions are displayed in one list.
Pickup frz
Scn 0BMONB All judges
Pressing SHIFT + Left/Right Keys to switch the background (clear filled).
5-4-1 Measurement
Screen Settings
p. 100
Page 96
4-1SectionChecking Measurements
89
All Data
Measurement results for the data output expressions are displayed in one list.
Pickup frz
Scn 0BMONB All data
Pressing SHIFT + Left/Right Keys to switch the background (clear fil­led).
5-4-1 Measurement Screen
Settings
p. 100
Individual Judge, Individual Data
Calculation results for the each of the output expressions are displayed individually. If the SHIFT + ENT Keys are pressed while this screen is displayed, the screen for changing conditions will be displayed, and the evaluation criteria can be changed while monitoring the calculation results. However, while this screen is displayed, measurement will not be performed, even if a trigger or a STEP signal is input.
Pickup frz
Scn 0BMONB Individual judge
Judge0.
Expression:
R0.X-R1.X
Measurement: 24.652
Switch the displayed item using the Up/Down Keys. Individual judge (0 to 15) Individual data (0 to 7)
Page 97
4-1SectionChecking Measurements
90
I/O Monitor
Contents of output from the F400 to an external device, or input from an external device to the F400 are displayed. The list displayed is read-only.
RS-232C (3 lines max.): I/O data is displayed unedited as character strings. When a measurement is performed, the rows displayed will scroll upwards.
Terminal block (always 2 lines): Data is displayed in binary format. (0: OFF, 1: ON)
Pickup frz
Scn 0BMONB
Contents of most recent RS-232C I/O
Pressing SHIFT + Left/Right Keys to switch the background (clear filled).
p. 100
Terminal block I/O contents [DI]: input [DO]: output
RS-232C I/O contents [SI]: input [SO]: output
I/O monitor
Page 98
4-1SectionChecking Measurements
91
Display Order for Measurement Values
If the items in the square parentheses ([ ]) are selected, display images can be switched in the orders indicated by using the Up/Down Keys.
[Region] [Judge] [Data] [All]
All results of regions
All positions of regions
Position compensation region 0
Position compensation displacement 0
Position compensation region 1
Position compensation displacement 1
Individual region (0)
Individual region (15)
All judges
Individual judge (0)
Individual judge (15)
All data
Individual data (0)
Individual data (7)
All results of regions
All positions of regions
Position compensation region 0 Position compensation displacement 0
Position compensation region 1
Position compensation displacement 1
Individual region (0)
Individual region (15)
All judges Individual judge (0)
Individual judge (15) All data Individual data (0)
Individual data (7)
Note By allocating
Individual/All
to a console key combination in
System/Set key opera-
tion
, it is possible to jump between individual data and combined lists.
5-5 Key
Allocation
p. 106
Example: If
Individual/All
is allocated to SHIFT+ENT:
Individual region (6) Individual region (7) Individual region (8)
SHIFT + ENT
All results of regions
Page 99
4-2SectionMeasuring
92
4-2 Measuring
This section explains how to perform measurement under the conditions set for the displayed scene and how to output measurement results to an external device. When performing measurement on a through image, stop the measurement object first. If measurement is performed on a moving image, the image input timing will be delayed, and a proper image will not be obtained.
1. Move the cursor to the operating mode in the main window (
MON
in this exam­ple) and press the ENT Key. The Operating Mode Selection Window will be dis­played.
2
1
---- --ms
Pickup frz
Scn 0BMONB
SET MON
RUN
SYS SAVE
2. Move the cursor to
RUN
and press the ENT Key . The F400 will enter Run mode.
3. Press the TRIG Key or input a STEP signal. A measurement will be executed. The overall judgement will be displayed and the measurement results output to an external device. In addition to triggers and STEP signals, there are various other commands that can be input from external devices. Refer to
Section 6
Communications with External Devices
. p. 111
— Filter/Pickup —
Page 100
4-2SectionMeasuring
93
4-2-1 Adjusting Evaluation Criteria during Measurement
This section explains how to adjust evaluation criteria in Run mode while displaying measurement results and referring to the measurement values.
The operations that can be performed and values that can be displayed are the same as for Monitor mode. Refer to
4-1-1 Adjusting Evaluation Criteria while Viewing Mea-
surements
p. 85
Contents of displayed measurement results
Overall judgement The overall judgement will be NG if there is even just one
NG evaluation in the measurement regions or expressions.
Measurement time
Measurement region
Judgement/measurement results
NG 67ms
Pickup frz
Scn 0BMONB Individual region
0.Search Judge : NG
Correlation: 10 Position X : 220.000 Position Y : 180.000
+
↑↓:Switch
Note 1. Press the SHIFT + Up/Down Keys to switch the display image.
2. To store a measurement image to memory, press SHIFT + ESC. The relevant settings window will be displayed.
5-4-1 Measurement Screen Settings
p. 100
3. To perform measurement for the still image or memory image currently being dis­played, press the SHIFT + TRIG Keys. Measurement will be performed and the measurement results will be displayed.
4. After all measurement results have been displayed, input the next STEP signal or press the TRIG Key. If the next STEP signal is input or the TRIG Key is pressed while measurement results are still being displayed, the display will be inter­rupted and the next measurement will be performed.
Loading...