0% found this document useful (0 votes)
129 views

VisMth (Systech)

Herramienta sistema de vision systech

Uploaded by

DExTER
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
129 views

VisMth (Systech)

Herramienta sistema de vision systech

Uploaded by

DExTER
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 36

TIPS

Vision Tool Manuals

Math (MTH) Tool

Module Release Version Date

6.20.001 7/6/00
TIPS Vision Tool Manual
Math (MTH) Tool

SYSTECH International Information


This manual and any accompanying SYSTECH software are copyrighted by SYS-TECH SOLU-
TIONS, INCORPORATED. Any reproduction and/or distribution without prior written consent
from SYSTECH are strictly prohibited. Microsoft is a registered trademark of Microsoft Corpora-
tion. Windows is a trademark of Microsoft Corporation. All other products and product names
mentioned in this publication are trademarks or registered trademarks of their respective compa-
nies. Please refer to the license agreement for details.

The following are issued or pending trademarks of SYSTECH:

TIPS® SI2M™ ATRIX™ TIPS SENTRI™ TIPS ADVISOR™

Liability Disclaimer: SYSTECH’s TIPS System Software is warranted in accordance with the
product license. System configuration, the application being performed, operator control and
other related factors will affect product performance. TIPS System Software implementation
may vary among users.

The instructions in this manual do not claim to cover all details or variations in the equipment,
procedure, or process described, or to provide directions for meeting every possible contingency
during installation, operation, or maintenance. When additional information is required to satisfy
a problem not covered sufficiently for your purpose, please contact SYSTECH’s Customer Sup-
port Help Desk at 1-800-TIPS-HELP (800-847-7435).

Need help?
Call our Customer Support Help Desk for any SYSTECH product or service information at:
1-800-TIPS-HELP.

How are we doing?


Send any comments to the address, FAX number, or e-mail address (Attention: Customer Sup-
port) indicated at the bottom of this page.

Want to learn more?


We offer training courses on TIPS System Software and TIPS Vision Tools. We offer these
courses at SYSTECH or at your facility. Contact our Sales Department at 1-800-TIPS-123 for
more information.

2540 Route 130, Suite 128 • Cranbury, NJ 08512


PH: (609) 395-8400 • FAX: (609) 395-0064 • www.systech-tips.com

SYSTECH Information
ii
TIPS Vision Tool Manual
Math (MTH) Tool

Table of Contents
SYSTECH International Information ........................................................ ii

Math (MTH) Tool ........................................................................................ 1


1 Introduction ..........................................................................................................1
2 Terms Commonly Used with This Tool ..............................................................2
3 Tool Setup and Adjustment ................................................................................2
4 MTH Properties .....................................................................................................3
4.1 Setup Tab ................................................................................................................... 3
4.1.1 Label ................................................................................................................... 3
4.1.2 Formula ............................................................................................................... 3
4.1.3 Always Execute .................................................................................................. 3
4.1.4 Exec(ution) Order ................................................................................................ 4
4.2 Formula Editor ............................................................................................................ 4
4.2.1 Tool Name and Tool Property ............................................................................. 5
4.2.2 Current Result ..................................................................................................... 5
4.2.3 Paste ................................................................................................................... 5
4.2.4 Clear ................................................................................................................... 5
4.2.5 OK ....................................................................................................................... 5
4.2.6 Display ................................................................................................................ 5
4.2.7 Display Result ..................................................................................................... 5
4.2.8 Pass/Fail ............................................................................................................. 6
4.2.9 Pass Text and Fail Text ...................................................................................... 7
4.2.10 # Decimals ........................................................................................................ 7
4.2.11 Label ................................................................................................................. 7
4.2.12 Cancel ............................................................................................................... 7
4.3 Output Selection Tab .................................................................................................. 8
4.4 Set User Inputs Tab .................................................................................................... 9
4.5 Tool Info Tab ............................................................................................................ 10
4.5.1 Name ................................................................................................................ 10
4.5.2 Result Lines ...................................................................................................... 10
4.5.3 Location ............................................................................................................ 11
5 Tool Training ...................................................................................................... 11
6 Tool Execution Order ......................................................................................... 11
7 Display Graphics ................................................................................................ 12
8 Math Tool Property Information ........................................................................ 13
8.1 Performance Counts ................................................................................................. 13
8.2 Station Parameter Tags ............................................................................................ 13

:
iii
TIPS Vision Tool Manual
Math (MTH) Tool

9 Mathematical and Logical Operators ............................................................... 16


10 Math Tool Examples ........................................................................................ 18
10.1 Computing the Width (in inches) of a Label ........................................................... 18
10.2 Increment a Serial Number for an OCV Inspection ................................................ 20
11 Index .................................................................................................................. 25

Please read the Introduction to Vision Tools manual before preceding with this tool.

:
iv
TIPS Vision Tool Manual
Math (MTH) Tool

Math (MTH) Tool

1 Introduction

The Math tool provides the capability to use the properties of other vision tools in
mathematical, logical and bit wise operations. Formulas constructed in the Math tool
and the results of each formula can be assigned to a digital output line. A maximum of
four formulas can be constructed for each Math tool. Use multiple instances of the
Math tool as required.

The assignment of a digital output line to each formula is a powerful tool. It allows the results of
a formula to be communicated directly to Programmable Logic Controllers (PLC’s) to control
line operations or to conditionally control the execution of other tools. There are many other uses
for the tool including:

The MTH tool is used in calculating values and collecting the information within a database. For
example, calculating the width of a label based upon the results of two CPV tools. This informa-
tion can then be used to analyze and control the process.

Converting screen display information into readily understood values such as converting pixel
count values to inches using a constant.

Conducting a calculation to determine the conditional execution of other tools. For example, if a
Component Placement Verification (CPV tool passes, it executes an Optical Character Veri-
fication (OCV) tool; if it fails, it executes the Blob tool.

Setting properties of other tools based upon the results of a formula. For example, an OCV tool
match string could be incremented by one each time an inspection ran to enable it to inspect
serial numbers that continuously increased by 1.

Introduction:
1
TIPS Vision Tool Manual
Math (MTH) Tool

2 Terms Commonly Used with This Tool

Result 1, 2, 3 and 4 are properties used to store the values derived from each formula. Use
these values other formulas or tag them.

A Label is the editable name of a formula. It is a property of the Math tool.

A Formula is a mathematical, logical or bit wise expression consisting of tool and property val-
ues, operators and real numbers. It is a property of the Math tool.

Always Execute is a setting that forces the Math tool to execute regardless of the pass or fail
status of tools before it in the execution order.

A Region of Interest (ROI) is a rectangular area the tool displays its inspection results.

The Current Result is the name of a field that displays the current value of the formula or indi-
cates an improperly constructed formula.

The Input 1, 2, 3 or 4 is any floating-point number used as an input value in a formula. Input val-
ues can be used in multiple formulas and can be changed by the user without reconfiguring Math
tools by using a tag or an output selection.

3 Tool Setup and Adjustment

The tool is setup and adjusted in the Vision Edit (SENTRI Non-X-Series system software) or
Builder (ADVISOR X-Series, SENTRI X-Series, SENTRI BLISTER, and ADVISOR Non X-
Series system software) screens. Select the Math tool and draw a rectangle (ROI) anywhere
there is space available on the image. The size and positioning are not important, although the
tool should be large enough to display real time results if desired.

Double-click within the ROI of the tool, or select View then Properties, or right-click within the
tool’s ROI and click the Properties button to display the MTH Properties dialog box. Use this
dialog box to select or change tool properties to optimize the inspection.

Terms Commonly Used with This Tool:


2
TIPS Vision Tool Manual
Math (MTH) Tool

4 MTH Properties

4.1 Setup Tab

Ellipsis Button
(typical)

Note: All values shown in fields on the Setup tab in preceding picture are default values.

Use the Setup tab to enter formulas and arrange them in the order the proper execution order.

4.1.1 Label

A Label is the editable name of the formula. Editing the name is done using the Result n For-
mula Editor, where n is an integer between 1 and 4, by keying in the desired name in the Label
field. The Formula Editor section provides further details.

4.1.2 Formula

A Formula can be entered into each of the four boxes. Clicking on the Ellipsis button enters for-
mulas. The Formula Editor section provides further details.

4.1.3 Always Execute

Selecting this property will force the Math tool to run regardless if previous tools in the execution
order fail. This is useful in determining results even if a tool higher in the execution order failed.

MTH Properties: Setup Tab


3
TIPS Vision Tool Manual
Math (MTH) Tool

4.1.4 Exec(ution) Order

The order formulas are performed is always the order they are placed in the Formula fields from
top to bottom. Execution Order allows the user to change the order by clicking within a For-
mula field to select a formula and then use the up/down arrows to change its position within the
list. When the order is changed, the original Label (default Fn where n=1,2,3 or 4) remains
associated with the formula. See the Editing Tool Order section of the Introduction to Vision
Tools manual for details regarding execution order.

4.2 Formula Editor

Use the Formula Editor to enter or modify formulas, modify the default (F1, F2, F3 or F4) labels,
and set the results display. Enter the Resultn Formula Editor where n=1,2,3 or 4, by clicking
the Ellipsis button.

Tool Name Formula Field Tool Property

Note: The Resultn Formula Editor dialog box shown in the preceding picture shows default
values in all fields.

MTH Properties: Formula Editor


4
TIPS Vision Tool Manual
Math (MTH) Tool

4.2.1 Tool Name and Tool Property

Select a tool name followed by a property to appear in the formula using the dropdown list boxes.
Position the cursor in the formula where property is to be placed and then click Paste to enter
them into the Formula field. Click on an operator such as add (+). Continue to enter properties
and operators as necessary. There are no limits to formula length.

4.2.2 Current Result

This displays the current calculated value of the formula. This will read Invalid if the construction
of the formula is incorrect. Invalid will be displayed periodically while constructing a formula.
This is normal until construction of the formula is complete. After construction is complete, Cur-
rent Result should have a value. If it reads Invalid, then check the formula construction for
errors.

4.2.3 Paste

This property enters the selected tool/property into the Formula field. The Mathematical and
Logic Operators section provides definitions of each operator.

4.2.4 Clear

Click to erase the formula in the Formula field.

4.2.5 OK

This property closes the Formula Editor.

4.2.6 Display

The settings for the display of formula information are all located on the right side of the Formula
Editor screen.

4.2.7 Display Result

Checking this box displays the real time value of the formula in the format Label: xxx where
Label: is the name keyed in the Label field of the Formula Editor dialog box and xxx is the
value. The number of decimal places displayed is governed by the # Decimals property. Dese-
lecting this value eliminates the display of any results and disables all display properties in the
Display section of the Formula Editor dialog box except the Label field. Label is enabled to
name formulas on the setup tab. Define the color of the displayed typeface in the Pass or Fail
color selection in the Station Setup.

MTH Properties: Formula Editor


5
TIPS Vision Tool Manual
Math (MTH) Tool

The next picture shows a typical Math tool display.

4.2.8 Pass/Fail

Clicking this box displays the real time pass/fail results of the formula in the format Label: xxx
where Label: is the name keyed in the Label field of the Formula Editor dialog box and xxx is
the Pass Text or Fail Text editable caption. If the Pass/Fail option is selected, then the pass or
fail result of the equation is considered in determining the pass or fail digital output of the tool. A
Math tool passes if all the equations are constructed properly and all the pass/fail formulas pass.
Formulas that only compute values do not affect the pass or fail outcome of the tool. See the
Tool Info(rmation) tab for details. The next picture shows a typical display.

MTH Properties: Formula Editor


6
TIPS Vision Tool Manual
Math (MTH) Tool

4.2.9 Pass Text and Fail Text

The Math tool ROI displays the results caption when the Display Result and the Pass/Fail are
enabled and the Graphics display settings are set to either normal or maximum. Edit the cap-
tion to change it. The defaults are Pass and Fail.

4.2.10 # Decimals

This property sets the number of decimal places to the right of the decimal point used in the real
time display of values in the Math tool ROI. Select a number from the drop down list. The
default is 3. This provides the number in the format Y.ZZZ.

4.2.11 Label

This is the name of the formula. The defaults are F1: F2: F3: and F4:. Edit the name by entering
a new caption. Enter the label name exactly as it will appear on the display.

4.2.12 Cancel

Click this button to revert to the last saved Formula Edit properties.

MTH Properties: Formula Editor


7
TIPS Vision Tool Manual
Math (MTH) Tool

4.3 Output Selection Tab

Note: All values shown in fields of the Output Selection tab in the preceding picture are default
values.

Use this tab to assign the property of a tool to the Math Result1-4 properties. The property of
the tool selected will be set to the value of the Fn formula. The Setup Tab section provides
details. Use the dropdown boxes to select a tool and a property. A tool name or unassigned
must be selected for each Tool Instance. Select both a tool name and a property. The default is
unassigned for both Tool Instance and Tool Property. Unassigned in the Tool Instance field
disables this function.

MTH Properties: Output Selection Tab


8
TIPS Vision Tool Manual
Math (MTH) Tool

4.4 Set User Inputs Tab

The Set User Inputs tab is used to assign a constant value or value calculated from a formula to
a Math tool property. These input properties can then be used in other Math tool formulas or
tagged for display or inclusion in the History database.

The constant values entered into each field must be either an integer or floating point number.
Do not perform calculations in this field. The default is 0. Key in the desired values.

Since the input values are properties and the results of each formula can be assigned to an input
property, the value of an input property can change with each execution of a formula. The Out-
put Selection tab provides instructions about how to assign formula results to properties.

MTH Properties: Set User Inputs Tab


9
TIPS Vision Tool Manual
Math (MTH) Tool

4.5 Tool Info Tab

The Tool Info tab is shown below in default state except for Location data which will depend on
location and size of ROI.

4.5.1 Name

The system automatically names the tool MTH or MTH n where n is an integer number starting
with 1. Enter a new name by deleting the name and typing in a new name. If the name of the
tool is left blank, the name Tool will be assigned.

4.5.2 Result Lines

Use this property to report the results of the formulas using the digital output lines. One output
for each formula is available. Result1 is available on Output 1; Result2 is available on Output
2, etc. Click the Ellipsis button and select an output line number to which the inspection results
are reported. A Math tool passes if all the equations are constructed properly and all the pass/
fail formulas pass. Formulas that only compute values do not affect the pass or fail outcome of
the tool.

MTH Properties: Tool Info Tab


10
TIPS Vision Tool Manual
Math (MTH) Tool

4.5.3 Location

These properties define the position of the tool ROI.

X is the position in pixels from the extreme left limit of the image to the left bound-
ary of the ROI.

Y is the position in pixels from the extreme top limit of the image to the upper
boundary of the ROI.

W is the width of the ROI in pixels.

H is the height of the ROI in pixels.

5 Tool Training

The Math tool does not require training.

See the Tool Training section of the Introduction to Vision Tools manual for details regarding
tool training.

See the Statistical Training Considerations section of the Introduction to Vision Tools man-
ual for details regarding statistical tool training.

6 Tool Execution Order

The Math tool can take inputs and outputs from other vision tools making its placement in the
Execution Order critical. It is impossible to specify the position of the tool for each application.
The following provides execution order guidance.

The Math tool should run after tools providing inputs. For example, if two CPV tools are used to
find the position of the left and right edges of a label, then a Math tool calculating the width of the
label should be placed after both CPV tools.

If the Math tool is used to determine a condition such as if “A” inspection passes perform inspec-
tion “X”, or if “A” inspection fails conduct inspection “Y”, the Math tool should be positioned after
inspection “A” and before inspections “X” and “Y”.

See the Editing Tool Order section of the Introduction to Vision Tools manual for details
regarding execution order.

Tool Training: Tool Info Tab


11
TIPS Vision Tool Manual
Math (MTH) Tool

7 Display Graphics

The tool provides several different options for the real time display of inspection information. The
selections are:

None No graphics are shown.

Minimum Displays the ROI boundary in the pass or fail color selected in the camera sta-
Graphics tion setup. The default colors are green for passing and red for failing.

Normal Displays the labels and values of each formula in the upper left-hand corner
Graphics when Display Result is selected. Displays the Labels and the pass/fail result
of each formula in the upper left-hand corner when Display Result and Pass/
Fail are selected.

Maximum Displays the labels and values of each formula in the upper left-hand corner
Graphics when Display Result is selected. Displays the Labels and the pass/fail result
of each formula in the upper left-hand corner when Display Result and Pass/
Fail are selected.

Display Graphics: Tool Info Tab


12
TIPS Vision Tool Manual
Math (MTH) Tool

8 Math Tool Property Information

The characteristics in the following table can be tagged using Tag Editor in SENTRI Non X-
Series system software and Builder in ADVISOR X-Series, SENTRI X-Series, SENTRI BLIS-
TER, and ADVISOR Non X-Series system software.

8.1 Performance Counts

These tags can be displayed by clicking Performance on the Builder screen tool bar, View,
Counts tab, and MTH. The tags can also also be displayed on any screens using Screen Edit
feature.

Property Data Stored

Inspected The number of images inspected by the Math tool.

Passed Total number of passed Math tool inspections.

Failed Total number of failed Math tool inspections.

8.2 Station Parameter Tags

These tags can be displayed by clicking Performance on the Builder screen tool bar, View,
Counts tab, and MTH. The tags can also also be displayed on any screens using Screen Edit
feature.

Property Data Stored

Result The Boolean (0 or 1) result of the Math tool where 0=false and
1=true. The default is 0.

Input1 A numerical value corresponding to those keyed in the Input 1 field


of the Set User Inputs tab. See the Set User Inputs tab, Input 1.
The default is 0.0.

Input2 A numerical value corresponding to those keyed in the Input 2 field


of the Set User Inputs tab. See the Set User Inputs tab, Input 2.
The default is 0.0

Input3 A numerical value corresponding to those keyed in the Input 3 field


of the Set User Inputs tab. See the Set User Inputs tab, Input 3.
The default is 0.0

Math Tool Property Information: Performance Counts


13
TIPS Vision Tool Manual
Math (MTH) Tool

Property Data Stored

Input4 A numerical value corresponding to those keyed in the Input 4 field


of the Set User Inputs tab. See the Set User Inputs tab, Input 4.
The default is 0.0

Formula1 A string in the format Tool Name. Property corresponding to


those keyed in the Formula 1 field of the Setup tab. See the
Setup tab, Formula 1.

Formula2 A string in the format Tool Name. Property corresponding to


those keyed in the Formula 2 field of the Setup tab. See the
Setup tab, Formula 2.

Formula3 A string in the format Tool Name. Property corresponding to


those keyed in the Formula 3 field of the Setup tab. See the
Setup tab, Formula 3.

Formula4 A string in the format Tool Name. Property corresponding to


those keyed in the Formula 4 field of the Setup tab. See the
Setup tab, Formula 4.

Label1 A string corresponding to the Label name keyed in the Label field
of the Result 1 Formula Editor dialog box. See the Result 1 For-
mula Editor dialog box, Label 1. The default is F1.

Label2 A string corresponding to the Label name keyed in the Label field
of the Result 2 Formula Editor dialog box. See the Result 2 For-
mula Editor dialog box, Label 2. The default is F2.

Label3 A string corresponding to the Label name keyed in the Label field
of the Result 3 Formula Editor dialog box. See the Result 3 For-
mula Editor dialog box, Label 3. The default is F3.

Label4 A string corresponding to the Label name keyed in the Label field
of the Result 4 Formula Editor dialog box. See the Result 4 For-
mula Editor dialog box, Label 4. The default is F4.

Result1 The numerical result of the Formula in the Result 1 field. See the
Setup tab, Result 1 field. The default is 0.0.

Result2 The numerical result of the Formula in the Result 2 field. See the
Setup tab, Result 2 field. The default is 0.0.

Result3 The numerical result of the Formula in the Result 3 field. See the
Setup tab, Result 3 field. The default is 0.0.

Math Tool Property Information: Station Parameter Tags


14
TIPS Vision Tool Manual
Math (MTH) Tool

Property Data Stored

Result4 The numerical result of the Formula in the Result 4 field. See the
Setup tab, Result 4 field. The default is 0.0.

Passtext1 A string corresponding to the name keyed in the Passed Text field
of the Result 1 Formula Editor dialog box. See the Result 1 For-
mula Editor dialog box, Passed Text field. The default is Pass.

Passtext2 A string corresponding to the name keyed in the Passed Text field
of the Result 2 Formula Editor dialog box. See the Result 2 For-
mula Editor dialog box, Passed Text field. The default is Pass.

Passtext3 A string corresponding to the name keyed in the Passed Text field
of the Result 3 Formula Editor dialog box. See the Result 3 For-
mula Editor dialog box, Passed Text field. The default is Pass.

Passtext4 A string corresponding to the name keyed in the Passed Text field
of the Result 4 Formula Editor dialog box. See the Result 4 For-
mula Editor dialog box, Passed Text field. The default is Pass.

Failtext1 A string corresponding to the name keyed in the Failed Text field of
the Result 1 Formula Editor dialog box. See the Result 1 For-
mula Editor dialog box, Failed Text field. The default is Fail.

Failtext2 A string corresponding to the name keyed in the Failed Text field of
the Result 2 Formula Editor dialog box. See the Result 2 For-
mula Editor dialog box, Failed Text field. The default is Fail.

Failtext3 A string corresponding to the name keyed in the Failed Text field of
the Result 3 Formula Editor dialog box. See the Result 3 For-
mula Editor dialog box, Failed Text field. The default is Fail.

Failtext4 A string corresponding to the name keyed in the Failed Text field of
the Result 4 Formula Editor dialog box. See the Result 4 For-
mula Editor dialog box, Failed Text field. The default is Fail.

FormulaOutput1 This indicates the Tool Name and Property assigned to the Result
1 Output Line.

FormulaOutput2 This indicates the Tool Name and Property assigned to the Result
2 Output Line.

FormulaOutput3 This indicates the Tool Name and Property assigned to the Result
3 Output Line.

FormulaOutput4 This indicates the Tool Name and Property assigned to the Result
4 Output Line.

Math Tool Property Information: Station Parameter Tags


15
TIPS Vision Tool Manual
Math (MTH) Tool

9 Mathematical and Logical Operators

Formula Operators

Symbol Description

+ Add

- Subtract

* Multiply

/ Divide

AND Logical and

OR Logical or

NOT Logical not

& Bitwise and

| Bitwise or

^ Bitwise x or

~ Bitwise not

< Less than

> Greater than

= Equal to

MOD (X,Y) The modulo; the remainder of X divided


by Y

£ Less than or equal to

Š Greater than or equal to

<> Not equal to

[ Left bracket

] Right bracket

Mathematical and Logical Operators: Station Parameter Tags


16
TIPS Vision Tool Manual
Math (MTH) Tool

Formula Operators

Symbol Description

ABS The absolute value

INT The integer value (deletes fraction part


of #)

FRACT The Fractional value (deletes integer


part of #)

POW (X,Y) A power (X raised to the Y power)

SORT The square root

RANGE The range (X, Y, Z) where Y ≥ X and ≤


Z

SIN The Sine of X.

COS The Cosine of X.

TAN The Tangent of X

ARCSIN The angle whose Sine is X.

ARCCOS The angle whose Cosine is X.

ARCTAN The angle whose Tangent is X.

ARCTAN2 Arctan2 (O, A), the angle derived from


the opposite (O) and adjacent (A) side
values of a right triangle.

LINE REF Assigns the result of the line number


assigned to that formula in the Tool Info
Tab.

Mathematical and Logical Operators: Station Parameter Tags


17
TIPS Vision Tool Manual
Math (MTH) Tool

10 Math Tool Examples

10.1 Computing the Width (in inches) of a Label

In this example, use the Math tool to compute the width of a label in inches. Two CPV tools will
be used to find the left and right edges of the label while the Math tool will be used to compute
the distance between the label edges.

1. Set up two CPV tools to find the left and right edges of a label. The Component
Placement Verification (CPV) Vision Tool Manual provides detailed configuration
procedures for this tool.

2. Select and draw the ROI for a Math tool. Size the tool large enough to accommodate
displaying the value of the formula calculation.

3. Select Maximum Graphics.

4. Double click within the Math tool to select the MTH Properties box.

5. Select the Set User Inputs tab. In the Input 1 field, key in a value. In this example,
the width of a single pixel is .003 inch. Using an input value makes it a Math tool
property that can be used in a formula. It can later be tagged and displayed on a
screen as a read/write tag that can be changed by an operator without reconfiguring
the Math tool. It also permits the use of a single input constant in many formulas.

Math Tool Examples: Computing the Width (in inches) of a Label


18
TIPS Vision Tool Manual
Math (MTH) Tool

6. Select the Setup tab. Disable Always Execute. The Math tool will run only if both
edges are found.

7. Click the ellipsis button and the Result 1 Formula Editor box appears. Key in the
formula in the Formula 1 field by selecting a tool and property or an operator and
then clicking Paste. Continue this process until the formula is complete. The for-
mula in this example is [CPV2.FoundX – CPV.3FoundX] * MTH.Input1.

8. Select the number of decimal places by clicking on the arrow and selecting a value.

9. Click the Label field. Key in the word “Inches:”

10. Click OK to close the Formula Editor dialog box.

11. No result lines are required in this example. The width of the labels will be used as
part of a database for statistical process control.

12. Run the tool. The computed value of each label appears in the Math tool as shown.

Math Tool Examples: Computing the Width (in inches) of a Label


19
TIPS Vision Tool Manual
Math (MTH) Tool

10.2 Increment a Serial Number for an OCV Inspection

The Math tool can be used to change the integer Match String property of the OCV tool. In this
example, use the Math tool to increase the match string by 1 so it can conduct inspections of
serial numbers that continuously increase by 1.

1. Set up an OCV and Locate tool. Insure all integer numbers (0-9) have been trained
into the font set. The Optical Character Verification (OCV) Vision Tool manual
and the Locate (LOC) Vision Tool manual provide specific instructions for those
tools.

2. Select and place a Math tool on the image. Size the ROI large enough to display the
serial number.

Math Tool Examples: Increment a Serial Number for an OCV Inspection


20
TIPS Vision Tool Manual
Math (MTH) Tool

3. Double-click on the Math tool to display the MTH Properties dialog box.

4. Select Always Execute. This will force the tool to increment the serial number by 1
even if the Locate or OCV inspections fail.

5. Click the Ellipsis button to call the Results Formula Editor box.

Math Tool Examples: Increment a Serial Number for an OCV Inspection


21
TIPS Vision Tool Manual
Math (MTH) Tool

6. Key in the equation OCV.Match.String+1. Selecting the OCV tool and Match
String properties from the dropdown boxes and clicking Paste does this. Click the
add (+) button and Paste. Then key in the number 1.

7. Change the Label to New Match String: and insure Display Result is checked.

8. Set # of Decimals to 0.

Math Tool Examples: Increment a Serial Number for an OCV Inspection


22
TIPS Vision Tool Manual
Math (MTH) Tool

9. Click OK and return to the Setup tab shown in the following picture. It is now popu-
lated with the data from the Result1 Formula Editor dialog box.

10. Select the Output Selection tab. Select OCV and Match String for the Tool
Instance and Tool Property in the =Result1 fields. This will assign the value com-
puted in the equation to the OCV.MatchString property.

11. Run the inspection. The Math tool will increment the OCV Match String by 1 and
display it as shown below.

Math Tool Examples: Increment a Serial Number for an OCV Inspection


23
TIPS Vision Tool Manual
Math (MTH) Tool

This page intentionally left blank.

Math Tool Examples: Increment a Serial Number for an OCV Inspection


24
TIPS Vision Tool Manual
Math (MTH) Tool

11 Index

Symbols
# Decimals .....................................................................................................................................7

A
Adjustment .....................................................................................................................................2
ADVISOR Non X-Series
1 ...............................................................................................................................................2
2 .............................................................................................................................................13
ADVISOR X-Series
1 ...............................................................................................................................................2
2 .............................................................................................................................................13
Always Execute
1 ...............................................................................................................................................2
2 .............................................................................................................................................19

B
Blob ................................................................................................................................................1
Builder Screen
1 ...............................................................................................................................................2
2 .............................................................................................................................................13
Button
Ellipsis ......................................................................................................................................3

C
Cancel ............................................................................................................................................7
Clear ...............................................................................................................................................5
Component Placement Verification ...............................................................................................1
Counts ..........................................................................................................................................13
CPV
1 ...............................................................................................................................................1
2 .............................................................................................................................................11
Current Result
1 ...............................................................................................................................................2
2 ...............................................................................................................................................5

D
Decimals ........................................................................................................................................7
Dialog Box
MTH Properties ........................................................................................................................2
Resultn Formula Editor ............................................................................................................4
Digital Output Line .........................................................................................................................1
Display ...........................................................................................................................................5
Display Result

Index:
25
TIPS Vision Tool Manual
Math (MTH) Tool

1 ...............................................................................................................................................5
2 ...............................................................................................................................................7
3 .............................................................................................................................................12

E
Editor ..............................................................................................................................................4
Ellipsis Button ................................................................................................................................3
Execute ..........................................................................................................................................3
Execution Order
1 ...............................................................................................................................................4
2 .............................................................................................................................................11

F
Fail ..................................................................................................................................................6
Fail Text ....................................................................................................................................6, 7
Failed ............................................................................................................................................13
Failtext1 ........................................................................................................................................15
Failtext2 ........................................................................................................................................15
Failtext3 ........................................................................................................................................15
Failtext4 ........................................................................................................................................15
Field
Formula ....................................................................................................................................5
Label .........................................................................................................................................3
Formula
1 ...............................................................................................................................................2
2 ...............................................................................................................................................3
3 .............................................................................................................................................17
Information ...............................................................................................................................5
Formula Edit Properties .................................................................................................................7
Formula Editor
1 ...............................................................................................................................................4
2 ...............................................................................................................................................5
Formula Editor Dialog Box
1 ...............................................................................................................................................5
2 .............................................................................................................................................19
Formula Editor Screen ...................................................................................................................5
Formula Field .................................................................................................................................5
Formula Fields ...............................................................................................................................4
Formula1 ......................................................................................................................................14
Formula2 ......................................................................................................................................14
Formula3 ......................................................................................................................................14
Formula4 ......................................................................................................................................14
FormulaOutput1 ...........................................................................................................................15
FormulaOutput2 ...........................................................................................................................15
FormulaOutput3 ...........................................................................................................................15
FormulaOutput4 ...........................................................................................................................15
Formulas
1 ...............................................................................................................................................1

Index:
26
TIPS Vision Tool Manual
Math (MTH) Tool

2 .............................................................................................................................................10

G
Graphics .......................................................................................................................................12
Graphics Display ............................................................................................................................7

I
Incremented ...................................................................................................................................1
Input 1, 2, 3 or 4 .............................................................................................................................2
Input1 ...........................................................................................................................................13
Input2 ...........................................................................................................................................13
Input3 ...........................................................................................................................................13
Input4 ...........................................................................................................................................14
Inspected ......................................................................................................................................13
Invalid .............................................................................................................................................5

L
Label
1 ...............................................................................................................................................2
2 ...............................................................................................................................................3
3 ...............................................................................................................................................7
Label Field
1 ...............................................................................................................................................5
2 .............................................................................................................................................19
Label1 ..........................................................................................................................................14
Label2 ..........................................................................................................................................14
Label3 ..........................................................................................................................................14
Label4 ..........................................................................................................................................14
Lines .............................................................................................................................................10
Locate ...................................................................................................................................20, 21
Location ........................................................................................................................................11

M
Match String ...................................................................................................................................1
Math Result1-4 ...............................................................................................................................8
Mathematical and Logic Operators Section ..................................................................................5
Maximum Graphics
1 .............................................................................................................................................12
2 .............................................................................................................................................18
Minimum Graphics .......................................................................................................................12
MTH ................................................................................................................................................1
MTH n ..........................................................................................................................................10
MTH Properties ..............................................................................................................................3
MTH Properties Dialog Box ...........................................................................................................2

Index:
27
TIPS Vision Tool Manual
Math (MTH) Tool

N
Name
1 ...............................................................................................................................................5
2 .............................................................................................................................................10
Normal Graphics ..........................................................................................................................12

O
OCV
1 ...............................................................................................................................................1
2 ......................................................................................................................................20, 21
OK ..................................................................................................................................................5
Optical Character Verification ........................................................................................................1
Order
1 ...............................................................................................................................................4
2 .............................................................................................................................................11
Output 1 .......................................................................................................................................10

P
Parameter Tags ...........................................................................................................................13
Pass ...............................................................................................................................................6
Pass Text ..................................................................................................................................6, 7
Pass/Fail ......................................................................................................................................12
Passed .........................................................................................................................................13
Passtext1 .....................................................................................................................................15
Passtext2 .....................................................................................................................................15
Passtext3 .....................................................................................................................................15
Passtext4 .....................................................................................................................................15
Paste ..............................................................................................................................................5
Performance Counts ....................................................................................................................13
PLC’s ..............................................................................................................................................1
Programmable Logic Controllers ...................................................................................................1
Properties
1 ...............................................................................................................................................2
2 ...............................................................................................................................................3
Property ..........................................................................................................................................5
Property Information ....................................................................................................................13

R
Region of Interest ...........................................................................................................................2
Result
1 ...............................................................................................................................................5
2 ...............................................................................................................................................5
3 .............................................................................................................................................13
Result 1 Formula Editor Box ........................................................................................................19
Result 1, 2, 3 and 4 ........................................................................................................................2
Result Lines .................................................................................................................................10
Result1

Index:
28
TIPS Vision Tool Manual
Math (MTH) Tool

1 .............................................................................................................................................10
2 .............................................................................................................................................14
Result1-4 ........................................................................................................................................8
Result2 .........................................................................................................................................14
Result3 .........................................................................................................................................14
Result4 .........................................................................................................................................15
Resultn ...........................................................................................................................................4
Resultn Formula Editor Dialog Box ...............................................................................................4
ROI
1 ...............................................................................................................................................2
2 ...............................................................................................................................................7
3 .............................................................................................................................................11
4 .............................................................................................................................................12
5 .............................................................................................................................................18
Run
1 .............................................................................................................................................19
2 .............................................................................................................................................23

S
Screen
Formula Editor .........................................................................................................................5
Screen Edit ...................................................................................................................................13
SENTRI BLISTER
1 ...............................................................................................................................................2
2 .............................................................................................................................................13
SENTRI Non X-Series
1 ...............................................................................................................................................2
2 .............................................................................................................................................13
SENTRI X-Series
1 ...............................................................................................................................................2
2 .............................................................................................................................................13
Setup ..............................................................................................................................................2
Station Parameter Tags ...............................................................................................................13

T
Tag
1 ...............................................................................................................................................2
2 .............................................................................................................................................18
Tag Editor .....................................................................................................................................13
Tags .............................................................................................................................................13
Terms Commonly Used .................................................................................................................2
Tool Adjustment .............................................................................................................................2
Tool Instance .................................................................................................................................8
Tool Name ......................................................................................................................................5
Tool Property
1 ...............................................................................................................................................5
2 ...............................................................................................................................................8
Tool Property Information ............................................................................................................13

Index:
29
TIPS Vision Tool Manual
Math (MTH) Tool

Tool Setup ......................................................................................................................................2


Tool Training ................................................................................................................................11
Training ........................................................................................................................................11

U
Unassigned ....................................................................................................................................8

V
View ................................................................................................................................................2
Vision Edit Screen ..........................................................................................................................2

End of document.

Index:
30
TIPS Vision Tool Manual
Math (MTH) Tool

This page intentionally left blank.

Index:
31
SYSTECH International, Inc.
2540 Route 130, Suite 128
Cranbury, NJ 08512
Phone: (609) 395-8400 FAX: (609) 395-0064
www.systech-tips.com

You might also like