Download presentation
Presentation is loading. Please wait.
1
Getting Started Exercise
Part 2
2
Profiles related to the exercise
When starting use profile: GettingStarted_Part1Final.zip The fully completed profile: GettingStarted_Part2Final.zip SL c Getting Started Exercise Part 2
3
Objectives Extend the Object present verification system to include a dimension control system and learning the following: Understand the Scorpion reference system Do measurements using the RadialArcFinder tool Optimising analysis time Establish control criteria based on measurements Adding and configuring the graphic presentation of results Use RS232 communication to send measurement data How to use the ”Guard” function Automatic logging of data SL c Getting Started Exercise Part 2
4
Find Inner Radius The task is to find and measure the inner radius
Add RadialArcFinder toll and name it ”FindInnerRadius” SL c Getting Started Exercise Part 2
5
Using another Tool as a Reference
Using a another tool as a reference is a very strong feature In Part 1 scaling was used as a reference to convert pixel to mm Here we use the tool ”FindObject” The result is that centre X,Y now is identical to centre of gravity of the blob Check that the pointer info show 0,0 at the centre of the blob SL c Getting Started Exercise Part 2
6
RadialArcFinder - Setup
Set angle step to 10 – search line for each 10 degrees Inner radius to 0 – search lines start from centre Outer radius to 8 – search lines stop at 8 mm SL c Getting Started Exercise Part 2
7
RadialArcFinder - Visualisation
Click on visualisation and mark the following: Circle FittedPoints ROI TraceLines SL c Getting Started Exercise Part 2
8
RadialArcFinder Advanced
In advanced a number of different parameters can be set We will focus on Edge Detection – some of the other parameters will be explained later in the course or please refer to the help function Set the polarity to ”LightToDark” SL c Getting Started Exercise Part 2
9
RadialArcFinderResults
Under the result you will find the measure of the radius. Since the basic reference here is the tool scaling, the result is in millimetres. To add the unit, mark the radius, left click, select unit and write mm SL c Getting Started Exercise Part 2
10
Analysis time In the tool box you will find a column for Analysis time (adjust the columns if necessary) Read the analysis time for the FindInnerRadius tool SL c Getting Started Exercise Part 2
11
Increasing number of trace lines
Open the FindInnerRadius tool and adjust the angle step to 1. This means that there is a search line for each degree – 10 times more search lines Observe the change in analysis time When inspection time is critical, this feature can be used to optimise the tool SL c Getting Started Exercise Part 2
12
Inner radius - classification criteria
To establish the criteria use a logic tool and name it ”InnerRadiusOK” SL c Getting Started Exercise Part 2
13
Setting the criteria conditions
Find the tool and the parameter that should be tested Tool = FindInnerRadius Parameter = Radius Click OK and Apply. The parameter value and check the result SL c Getting Started Exercise Part 2
14
Create FindOuterRadius by copying
Mark ”FindInnerRadius” tool, right click and select copy Mark the last tool in the tool box, right click and select paste Change the name to FindOuterRadius SL c Getting Started Exercise Part 2
15
Setting parameters All the parameters copied and must be changed to find the outer radius Enter the following Inner Radius = 7 Outer Radius = 15 Edge detection = DarktoLight SL c Getting Started Exercise Part 2
16
Final result SL c Getting Started Exercise Part 2
17
Setting criteria for outer radius OK
Create a the logic tool for classification of the outer radius result either by copying or by New. Remember to find the right tool, parameter Set the conditions to min = 9.7 and max = 9.9 SL c Getting Started Exercise Part 2
18
Radius OK Finally we want to create a logical classification called RadiusOK It combines inner and outer radius classifications. This tool is true (value =1) when both inner and outer radius is OK Remember to check that ”AND” is marked. If ”OR” is marked the logical value of the tool will be true if only one of the conditions are true SL c Getting Started Exercise Part 2
19
Modifying the OK condition
To include the Radius OK condition in the OK condition under Settings – do the following: Open the OK condition Click on New and add the RadiusOK parameter Check that AND is marked Now OK only will occur when both the object is present and the radius is OK SL c Getting Started Exercise Part 2
20
Adding a Radius Fault condition
Copy the OK condition and name it ”FAULT” We can use the RadiusOK classification to define the Fault condition by inverting the result Fault will now only occur when both the object is present and one or more radius is fault Remember to select background colour RED SL c Getting Started Exercise Part 2
21
Check all conditions Tip: Change the colour for the No Object condition to yellow to differentiate from the red Fault condition SL c Getting Started Exercise Part 2
22
Displaying measurement values
Any results from any tool can be displayed in the result panel We want to display the inner and outer radius Position the mouse inside the result panel and right click, select ”General”, ”No of measumentvalues” and enter 2 for 2 values Check the result panel SL c Getting Started Exercise Part 2
23
Selecting parameters to be displayed
Position the mouse over Tagvalue 1 and right click, select Measured Values, Parameter. In the new dialog box click the ”..” button. In the new dialog box you can select the tool and the parameter you want Select the tool FindInnerRadius and the parameter Radius SL c Getting Started Exercise Part 2
24
Add name and unit to the value
Position the mouse over Tag Value 1, right click, select Measured Values and Caption. Enter the name ”Inner Radius” Through the same procedure you can add unit (mm) and change the number of decimals Repeat the procedure for displaying the outer radius as Tag Value 2 and name it ”Outer Radius” SL c Getting Started Exercise Part 2
25
Displaying sub results
The sub result from logical classification in the tool box can be displayed on the Indicator panel First you have to activate the Indicator Panel under ”General” Position the mouse over the panel and right click, select ”General” and No of Columns” We want to display the sub results from testing the inner and outer diameter, therefore enter 2 (columns) SL c Getting Started Exercise Part 2
26
Final result and indicator panel
Using the technique described before enter names and related parameters for both indicator panels You can also change colours for the different conditions SL c Getting Started Exercise Part 2
27
Modifying the Send Status RS232
In part 1 we configured the SendStatus command to be sent after every inspection (1 = object present and 0 = object absent) We know want to change the status to a 2 bit code XY X = Object presence (1) or absence (0) Y = OK = 1 and FAULT = 0 using the Radius OK logical classification Remember to separate the two parameters with a comma SL c Getting Started Exercise Part 2
28
Checking the communication
SL c Getting Started Exercise Part 2
29
Sending measured data to an external system
The measured data (inner and outer radius) can also be sent i.e. over the RS232 to an external system This can easily be implemented adding a new RS232 command under the event ”Inspection” SL c Getting Started Exercise Part 2
30
Using the Guard function
In this case we only want to send data when the condition is OK, since data in the FAULT and NoObject conditions will disturb the statistics Using the Guard function a command or a tool only will be active when the guard is true In this case we can use the logical classification ObjectPresent as a guard Therefore only when ObjectPresent is true the data will be sent SL c Getting Started Exercise Part 2
31
Testing communication with the Guard function
When the first status bit is 0 (Object absent), no data is sent. SL c Getting Started Exercise Part 2
32
Logging Data You can add as many parameters to be logged.
All data will be saved in a file Set up the system to log the inner radius and outer radius SL c Getting Started Exercise Part 2
33
Configure data logging
Click on ”Setup” and you can configure the logging: File name Folder Operator input Remember to Activate the logging function SL c Getting Started Exercise Part 2
34
Exercise Summary Understand the Scorpion reference system
Do measurements using the RadialArcFinder tool Optimising analysis time Establish control criteria based on measurements Adding and configuring the graphic presentation of results Use RS232 communication to send measurement data Use the ”Guard” function Automatic logging of data SL c Getting Started Exercise Part 2
35
Related Tools Try to investigate the following advanced tools
MultiArcFinder SL c Getting Started Exercise Part 2
36
Congratulations! You have made your second Vision system using
End of Part 2 Congratulations! You have made your second Vision system using Scorpion Vision Software SL c Getting Started Exercise Part 2
37
SL-2003-015-c Getting Started Exercise Part 2
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.