background image

Vision Sensor Setting Guide (Spreadsheet)

-VS70M-600
-VS70M-600-R
-VS70M-800
-VS70M-800-R
-VS70M-802
-VS70M-802-R
-VS70C-600-R
-VS70C-800-R
-VS70C-802-R
-VS80M-100
-VS80M-200
-VS80M-200-R
-VS80M-400
-VS80M-400-R
-VS80M-202
-VS80M-202-R
-VS80M-402
-VS80M-402-R
-VS80C-100
-VS80C-200-R
-VS80C-400-R
-VS80C-202-R
-VS80C-402-R

This product is designed and manufactured by Cognex Corporation. 
*Note that the warranty and general specifications of this product 

differ from that of programmable controller products.

Summary of Contents for MELSENSOR VS80C-200-R

Page 1: ... R VS80M 100 VS80M 200 VS80M 200 R VS80M 400 VS80M 400 R VS80M 202 VS80M 202 R VS80M 402 VS80M 402 R VS80C 100 VS80C 200 R VS80C 400 R VS80C 202 R VS80C 402 R This product is designed and manufactured by Cognex Corporation Note that the warranty and general specifications of this product differ from that of programmable controller products ...

Page 2: ......

Page 3: ... body Otherwise damage or faulty operation of the vision sensor may occur Be sure to install an I O connector module to the main module If not installed dust or water proof performance may not be obtained CAUTION IP protection rating is guaranteed only when all the connectors are connected with cables or sealed with sealing caps The cable is designed to connect with its key aligned with the keyway...

Page 4: ...up and Maintenance Precautions CAUTION Do not clean the vision sensor with highly irritating or corrosive solvent such as caustic alkali solution methyl ethyl ketone MEK and gasoline Doing so may cause a fault ...

Page 5: ...3 PRECAUTIONS FOR USE For details on the precautions for use refer to the following Vision Sensor VS70 User s Manual Vision Sensor VS80 User s Manual ...

Page 6: ...ision sensor in Nuclear Power Plants and any other power plants operated by Power companies and or any other cases in which the public could be affected if any problem or fault occurs in the vision sensor Railway companies or Public service purposes and or any other cases in which establishment of a special quality assurance system is required by the Purchaser or End User Aircraft or Aerospace Med...

Page 7: ...le To establish communication between a programmable controller and a vision sensor by configuring communication settings registering a profile to an engineering tool is required A profile is data that stores information of a connected device such as a model name By registering the profile of a vision sensor to an engineering tool the vision sensor is added in the Ethernet Configuration window or ...

Page 8: ...tuses Enable Disable 24 2 5 Using Functions 26 Using the PatMax pattern function 26 Synchronizing a region to feature position 31 2 6 Debugging a Spreadsheet 32 Checking cell dependency 32 Checking an execution time of each function 36 2 7 Setting an Interface 39 Displaying a custom view 39 2 8 Establishing Communication 40 In CC Link IE Field Network Basic 40 In SLMP scanner 50 In I Os 59 CHAPTER...

Page 9: ... slave communication 126 Appendix 2 Commonly Used Functions 130 Blobs 130 Edges 130 SurfaceFlaw 130 Histogram 130 Edge analysis 130 Image 130 Identification 131 Character recognition 131 Patterns 131 Geometry and measure 131 Graphics and plot 131 Math and logic 131 Text 131 Calibration 132 I O and communication 132 Others 132 REVISIONS 133 TRADEMARKS 134 ...

Page 10: ... using a spreadsheet in In Sight Explorer e Manual PDF Vision Sensor VS Series Setting Guide BCN P5999 1065 Functions of In Sight Explorer and procedures for creating and executing a job etc e Manual PDF Vision Sensor Connection Guide BCN P5999 0861 Procedures for connecting a vision sensor to a MELSEC programmable controller to control a vision system through a CC Link IE Field Network Basic conn...

Page 11: ...ramming interface of In Sight Explorer that maximizes the functions of a vision sensor A job can be created according to the application steps in EasyBuilder whereas in a spreadsheet a job can be created by placing functions A job which is created in a spreadsheet uses less memories compared to a job created in EasyBuilder therefore it is suitable for creating a multi functional job ...

Page 12: ...10 1 OVERVIEW 1 1 Screen Configuration 1 1 Screen Configuration The following shows the screen configuration on a spreadsheet 1 Menu bar 2 Toolbar 3 Spreadsheet 4 Palette window 1 2 3 4 ...

Page 13: ...ions The execution order of functions on a spreadsheet is automatically optimized When creating a job the execution order is not needed to be considered For the method for checking execution order refer to the following section Page 36 Checking an execution time of each function ...

Page 14: ...ADSHEET 2 1 Spreadsheet Switching EasyBuilder to a spreadsheet The following shows the procedure for switching EasyBuilder to a spreadsheet Operating procedure Select View Spreadsheet Precautions For a model which does not support the spreadsheet function the menu will be grayed out ...

Page 15: ...where a job created in EasyBuilder is placed is protected and therefore the Property Sheet screen is not displayed The Property Sheet screen can be displayed by selecting File Unprotect Job Creating a new job for a spreadsheet A new job can be created in a spreadsheet by selecting File New Job ...

Page 16: ...ADSHEET 2 1 Spreadsheet Displaying a spreadsheet in default A spreadsheet can be displayed in default by setting an option Operating procedure Select the checkbox of Make Spreadsheet View the Default View in System Options Job View ...

Page 17: ... Adjusting transparency To make an image clear increase the brightness of the spreadsheet Conversely by decreasing the brightness the image will be blurry The default transparency of a spreadsheet is 25 It can be adjusted in the menu or icon on the toolbar ...

Page 18: ...en The degree of the transparency can be checked by pressing the key Adjusting transparency using the icon on the toolbar Operating procedure Click on the toolbar Icon Description To increase the transparency of the spreadsheet As the spreadsheet becomes transparent the image becomes clearly visible To decrease the transparency of the spreadsheet As the spreadsheet becomes opaque the image becomes...

Page 19: ...1 Spreadsheet 17 2 Hiding a spreadsheet temporarily Bring an image to front by temporarily hiding a spreadsheet using the menu or icon on the toolbar In the following screen the spreadsheet is hidden Operating procedure Select View Overlay ...

Page 20: ...The cell will be overwritten with the vision data access function 1 therefore avoid placing the function close to another data 1 Vision data access function acquires data from a structure Dragging and dropping a function from the Palette window Operating procedure 1 Drag and drop a function from the Functions tab in the Palette window to a spreadsheet 2 Configure the function The Property Sheet sc...

Page 21: ... details of the items 2 Click the OK button The function is placed to the spreadsheet A vision data access function 1 is automatically added 1 Information such as status measurement result value or its label and parameters of a vision data access function 1 Placed function 2 A vision data access function that is automatically added 1 2 ...

Page 22: ...ASIC OPERATIONS FOR SPREADSHEET 2 2 Placing a Function When arguments can be entered Operating procedure Enter arguments By placing the mouse cursor the description of the function is displayed on the tooltip ...

Page 23: ... is entered the Property Sheet screen appears Alternatively arguments can be entered If incorrect function name is entered the incorrect letter and subsequent letters are displayed in red By pressing the key in the middle of entering a function name a function list appears and the cursor moves to a function name start with the entered letter A function can be selected by pressing the key or key ...

Page 24: ... column and row number Reference type Result of the source cell after the destination cell is moved Examples of the source cell placed in the destination cell 1 Before Destination cell C18 After Destination cell D19 Relative reference Both the column and the row are changed according to the distance the number of columns and rows from the original cell B4 C5 Absolute reference The source cell is n...

Page 25: ... cell The appearance of the cursor is changed for a cell reference 3 To insert a relative reference click a cell To insert an absolute reference click a cell while holding down the key A reference can also be inserted by clicking the icon on the toolbar absolute reference relative reference after a cell where a reference is to be inserted is selected Take A4 cell for example A 4 is inserted as an ...

Page 26: ...ion and making a cell of the TrainPatMaxPattern function enable 1 without opening the Property Sheet screen 1 The TrainPatMaxPattern function makes the cell automatically disable after a model is trained and the Property Sheet screen is closed Without disabling the cell a new model will be trained every time when the spreadsheet is updated Operating procedure 1 Enter Button in a blank cell Alterna...

Page 27: ...ction is placed and press the key 6 Select another image than the one trained when the TrainPatMaxPattern function was placed and click the cell of the Button function placed in the step 1 A model is newly trained A model trained when the TrainPatMaxPattern function was placed A model newly trained By clicking the cell where the TrainPatMaxPattern function is placed a green border appears around t...

Page 28: ...work using the PatMax pattern function 1 Place the TrainPatMaxPattern function and train a model to be searched Page 26 Placing the TrainPatMaxPattern function 2 Place the FindPatMaxPatterns function and specify a search region Page 28 Placing the FindPatMaxPatterns function Placing the TrainPatMaxPattern function Operating procedure 1 Select Functions tab Vision Tools Pattern Match TrainPatMaxPat...

Page 29: ...rn by dragging the mouse and press the key Alternatively click the icon on the toolbar 4 A model is trained Check that a green border appears around the trained region After the completion of the training 1 000 is displayed in a cell of the GetTrained vision data access function which was automatically added to the TrainPatMaxPattern function ...

Page 30: ...edure 1 Select Functions tab Vision Tools Pattern Match FindPatMaxPatterns in the Palette window and drag and drop it to a spreadsheet 2 Double click 1 Pattern in the Property Sheet screen Alternatively select Pattern and click the icon 1 By double clicking Pattern a cell can be selected as an absolute reference ...

Page 31: ...axPattern is placed and press the key 4 Double click Find Region in the Property Sheet screen Alternatively select Find Region and click the icon 5 Select an area where the pattern of a detection target will appear by dragging the mouse and press the key Alternatively click the icon on the toolbar ...

Page 32: ...the detection target or installation environment of a vision sensor For details refer to Help in the Property Sheet screen The items are displayed in the spreadsheet as follows When using a coordinate detected in the FindPatMaxPatterns function as a fixture for another function apply values of row column and angle of a vision data access function A fixture detects the feature of an object and focu...

Page 33: ... Operating procedure 1 Double click a function to be synchronized to display the Property Sheet screen 2 Double click Row Col and Angle and then specify a cell where a coordinate output from a function used for locationing is entered Example A coordinate value output from the FindPatMaxPatterns function can be used as a fixture by specifying the cells row column and angle of a vision data access f...

Page 34: ...rce cell precedent cell and the destination cell dependent cell are indicated by lines by using a job auditing function therefore the cell dependency can be visually checked when an error occurred in the target cell caused by the error occurred in another cell Operating procedure 1 Select a cell to check the dependency 2 Select View Job Auditing Increase Dependency Levels Reference lines are displ...

Page 35: ...e Dependency Levels Decreasing dependency levels The number of arrows decreases one level at a time Operating procedure Select View Job Auditing Decrease Dependency Levels The cell dependency can be changed using the icons on the toolbar Increase the dependency level Decrease the dependency level Reset the dependency level Display dependency which includes error red or yellow lines only Move the c...

Page 36: ...ne precedent and one dependent A small circle at the end of the arrow indicates the precedent cell and the part of the arrow indicates the destination cell Blue Normal precedents Red Precedents in error Green Normal dependents Yellow Dependents in error 1 Precedent cell 1 Precedent cell with error 1 Dependent cell 1 Dependent cell with error 1 1 1 1 ...

Page 37: ...hing the cell status enable disable of a dependent cell the part of the arrow In the following example A3 cell is set to enable disable the cell status of B2 cell 1 1 The following shows the setting of cell status in B2 cell 1 Conditionally Enabled is selected 2 A3 cell is selected for Cell Reference By doing so the cell status of B2 cell is enabled when the value of A3 cell is 1 or more 1 2 ...

Page 38: ...educe its execution time Operating procedure 1 Select Sensor Profile Job 2 Click the Acquire button The functions are executed in the displayed order After the execution is completed values are displayed in the Result and Time ms column Each execution time can easily be checked by changing the order in the Profile Job screen Page 37 Sorting functions by execution time Page 37 Executing profile fun...

Page 39: ... Operating procedure Click Time ms Clicking the header of each column can sort items Executing profile functions in a part of job Only the job of cells which have dependency can be executed without acquiring an image The execution status can be checked on the same image condition and can be obtained while opening an image file Operating procedure Select the cell of a job to be executed and click t...

Page 40: ...HEET 2 6 Debugging a Spreadsheet Displaying cells including a structure The execution time of the main processing can be checked by displaying only cells containing a structure Operating procedure Select the checkbox of Structure Only ...

Page 41: ...reated in a spreadsheet using values and a control function The screen which is suitable to monitor in In Sight Explorer and VisionView can be configured and displayed For details on the control function and the custom view refer to the help of In Sight Explorer Operating procedure 1 Select Edit Custom View Settings 2 Click the Select Cells button 3 Select cells to display in the custom view 4 Sel...

Page 42: ... Field Network Basic CC Link IE Field Network Basic is a factory automation network using standard Ethernet A programmable controller with a built in Ethernet port will be the master station and communicates with slave stations This section shows the procedure for connecting with CC Link IE Field Network Basic to input and out data in the following configuration MELSEC iQ R series programmable con...

Page 43: ...ield Network Basic Operating procedure 1 Select Sensor Network Settings in In Sight Explorer 2 In the Network Settings screen select CC Link IE Field Basic in Industrial Ethernet Protocols 3 Click the OK button When the following message appears click the Yes button to restart the vision system ...

Page 44: ...ess To Use or Not to Use CC Link IEF Basic Setting Enable Configure the CC Link IEF Basic configuration Select Parameter module name Module Parameter in the Navigation window and set the following items in Basic Settings CC Link IEF Basic Settings Network Configuration Settings Detailed Setting Click the Detect Now button to configure the settings For details on the automatic detection function of...

Page 45: ...ing For details on the remote I O signals refer to the following Vision Sensor Connection Guide 5 Write the parameters to a programmable controller 6 Select Diagnostics CC Link IEF Basic Diagnostics in GX Works3 Check that the CC Link IE Field Network Basic works properly Link side CPU side Device name Target Device name Points Start End RX Specify Device M 64 1008 1071 RY Specify Device M 64 1104...

Page 46: ...controller to control the triggers of a vision sensor 9 Make a vision sensor online 10 Select Online Monitor Device Buffer Memory Batch Monitor in GX Works3 Perform the following operations Turn ON Trigger Enable M1104 of remote output RY Check that Trigger Ready M1008 of remote input RX is turned ON Turn ON Trigger M1105 of remote output RY After the trigger is started executing Inspection Comple...

Page 47: ...tOutputBuffer screen and double click a cell where a value to be output is entered Select one cell for each value When multiple cells are selected simultaneously they are added as one data and therefore the intended data may not be obtained 3 Select Functions tab Input Output Network WriteResultsBuffer in the Palette window and drag and drop it to the spreadsheet 4 Set the items in the Property Sh...

Page 48: ...Monitor Device Buffer Memory Batch Monitor in GX Works3 Perform the following operations to check the output operations Turn ON Trigger Enable M1104 of remote output RY Turn ON Trigger M1105 of remote output RY The data from the vision sensor is displayed in Inspection Results D1005 to D1013 of a remote register RWr ...

Page 49: ...ler to a vision sensor Operating procedure 1 Select Functions tab Input Output FormatInputBuffer in the Palette window and drag and drop it to a spreadsheet 2 Click the Add button in the FormatInputBuffer screen to add storage destination for the number of units of data 3 Select a data type in Data Type according to the data ...

Page 50: ...ea 6 Select Functions tab Vision Data Access Input Output GetBufferData in the Palette window and drag and drop it to the spreadsheet The GetBufferData function that displays data in a programmable controller is placed in the spreadsheet 7 Set the function as follows GetBufferData ReadBuffer index For ReadBuffer specify the cell where the ReadUserDataBuffer function is placed For Index specify a v...

Page 51: ...Y Check that Set User Data Ack M1024 of remote input RX is turned ON Turn OFF Set User Data M1120 of remote output RY 11 Make a vision sensor online 12 Select Online Monitor Device Buffer Memory Batch Monitor in GX Works3 Perform the following operations to check the input operations Turn ON Trigger Enable M1104 of remote output RY Check that Trigger Ready M1008 of remote input RX is turned ON Tur...

Page 52: ...ure for connecting with SLMP scanner to input and out data in the following configuration MELSEC iQ R series programmable controller GX Works3 Vision sensor VS70 In Sight Explorer Connecting SLMP scanner Operating procedure 1 Select Parameter module name Module Parameter in the Navigation window of GX Works3 and set the following items in Basic Settings Own Node Settings IP Address Enable Disable ...

Page 53: ... Ethernet Protocols 5 Select the Settings button under Industrial Ethernet Protocols 6 Set the following items in the Settings tab in the SLMP Scanner Settings screen Controller Type PLC series of the programmable controller IP Address IP address of the programmable controller Host Port Port number of the programmable controller Poll Interval Applicable value 100 ms in the following screen ...

Page 54: ... 8 Click the OK button When the following message appears click the Yes button to restart the vision system 9 Select Sensor Network Settings 10 Check that SLMP Scanner is selected in the Industrial Ethernet Protocols in the Network Settings screen click the Settings button Name Selected device Offset Number of devices Control D Data Register 0 Status D Data Register 2 Input Block D Data Register 1...

Page 55: ... cell AcquireImage function 13 Set Industrial Ethernet for Trigger in the Property Sheet screen The setting above enables the programmable controller to control the triggers of a vision sensor 14 Make a vision sensor online 15 Select Online Monitor Device Buffer Memory Batch Monitor in GX Works3 Perform the following operations Turn ON Trigger Enable D0 0 of a control bit block Check that Trigger ...

Page 56: ...output is entered Select one cell for each value When multiple cells are selected simultaneously they are added as one data and therefore the intended data may not be obtained The maximum length of output data varies depending on programmable controller series selected by Controller Type in the Settings tab in the SLMP Scanner Settings screen iQ R Q L series iQ F series 1920 bytes FX series 128 by...

Page 57: ... cell where the FormatOutputBuffer function is placed in the step 1 Protocol SLMP protocol scanner 5 Make a vision sensor online 6 Select Online Monitor Device Buffer Memory Batch Monitor in GX Works3 Perform the following operations to check the output operations Turn ON Trigger Enable D0 0 of a control bit block Turn ON Trigger D0 1 of a control bit block The data from the vision sensor is displ...

Page 58: ...er to a vision sensor Operating procedure 1 Select Functions tab Input Output FormatInputBuffer in the Palette window and drag and drop it to a spreadsheet 2 Click the Add button in the FormatInputBuffer screen to add storage destination for the number of units of data 3 Select a data type in Data Type according to the data ...

Page 59: ... Select Functions tab Vision Data Access Input Output GetBufferData in the Palette window and drag and drop it to the spreadsheet The GetBufferData function that displays data in a programmable controller is placed in the spreadsheet 7 Set the function as follows GetBufferData ReadBuffer index For ReadBuffer specify the cell where the ReadUserDataBuffer function is placed For Index specify a value...

Page 60: ...or in GX Works3 and perform the following operations Turn ON Set User Data D1 0 of a control bit block Check that Set User Data Ack D3 0 of the status bit block is turned ON Turn OFF Set User Data D1 0 of a control bit block 11 Make a vision sensor online 12 Select Online Monitor Device Buffer Memory Batch Monitor in GX Works3 Perform the following operations to check the input operations Turn ON ...

Page 61: ... the vision sensor used Vision Sensor VS70 User s Manual Vision Sensor VS80 User s Manual This section shows the procedure for controlling a vision sensor by the inputs and outputs of a built in I O using the following device and application Vision sensor VS70 In Sight Explorer I O Control Input to a vision sensor Event driven in a spreadsheet Job switching by a job ID number Online or offline con...

Page 62: ...n In Sight Explorer 2 Set the items according to the actual wiring in the Discrete I O Settings screen A built in I O line in a vision sensor VS70 contains some common lines used for inputs and outputs Input 2 and output 2 Input 3 and output 3 When using an extension I O module Click the I O Module button and select an extension I O module to be connected ...

Page 63: ...lt in I O 4 Select Programmed for Signal Type in the row of 1 in Output Data can be output depending on the execution result of a function in the spreadsheet The details of an output signal can be set in the screen displayed after clicking the Details button Depending on the signal type items that can be set differ For the setting items for each signal type refer to the help of In Sight Explorer ...

Page 64: ... each input of a built in I O A cell where the DetectBlobs function is placed is used as an example Operating procedure 1 Select Functions tab Vision Tools Blob DetectBlobs in the Palette window and drag and drop it to the A8 cell in the spreadsheet 2 Select Functions tab Input Output Discrete ReadDiscrete in the Palette window and drag and drop it to a blank cell in the spreadsheet example A10 ...

Page 65: ... the MultiStatus function for visualizing input statuses is placed as well 4 Right click the A8 cell and select Cell State in the shortcut menu 5 Select Conditionally Enabled in the Cell State screen 6 Click the Select Cell button select the cell where the ReadDiscrete function is placed and press the key At this point the DetectBlobs function is disabled as the vision sensor is offline and there ...

Page 66: ... a signal to the input 1 9 Input a trigger The value of the ReadDiscrete function is changed from 0 000 to 1 000 in the spreadsheet and at the same time the color of the lamp for the MultiStatus function is changed from yellow to red 1 1 In the default the color of a lamp is displayed as follows Yellow The bit is 0 Red The bit is 1 ...

Page 67: ...perating procedure 1 Enter the following formulas in each cell A13 ErrFree H8 1 2 A14 If A13 30000 If A13 0 0 1 0 3 A15 If A13 30000 1 0 4 1 Select Functions tab Mathematics Lookup ErrFree in the Palette window and drag and drop it to the H8 cell in the spreadsheet 2 Blob dimension 3 A formula for the output 0 4 A formula for the output 1 Blob dimension Output 0 Output 1 Less than 30000 pixels Out...

Page 68: ...ue in the H8 cell In that case when the H8 cell is directly specified the error affects the WriteDiscrete function the A14 cell and A15 cell By using the ErrFree function the error propagation can be prevented The formula in the step 1 prevents error propagation by replacing the cell where a blob dimension is referenced from H8 to A13 ...

Page 69: ... Communication 67 2 2 Select Functions tab Input Output Discrete WriteDiscrete in the Palette window and drag and drop it to the B14 cell in the spreadsheet 3 Set the items in the Property Sheet screen as follows Start Bit 0 Number of Bits 1 Value A 14 ...

Page 70: ...drop it to the B15 cell in the spreadsheet 5 Set the items in the Property Sheet screen as follows Start Bit 1 Number of Bits 1 Value A 15 When the WriteDiscrete function is placed the MultiStatus function for visualizing output statuses is placed as well At this point the DetectBlobs function is disabled as the vision sensor is offline and there is no data input ...

Page 71: ...yed in the spreadsheet as follows When inputting a trigger the WriteDiscrete function and MultiStatus function are changed When the blob dimension is 30000 pixels or larger the inspection result is as follows When the blob dimension is less than 30000 pixels the inspection result is as follows When a blob is not detected the inspection result is as follows ...

Page 72: ...mage AcquireImage function is predefined in the A0 cell of a spreadsheet It cannot be deleted and moved When a function which requires an image structure is added in the spreadsheet the A0 cell is automatically referenced from the function This means that an image captured by a vision sensor can be utilized The following shows an example for the reference when an image filtering function is added ...

Page 73: ...re Page 71 Selecting a rectangular region Page 73 Setting a complex region Selecting a rectangular region The following shows the procedure for selecting a rectangular region Operating procedure 1 Double click the cell where a function is placed to display the Property Sheet screen 2 Double click Pattern Region Model Region or Region Alternatively select Pattern Region Model Region or Region and c...

Page 74: ...72 3 CREATING JOBS 3 2 Setting Regions To resize the region drag a size handle on the four corners To bend the region drag the curve handle To rotate the region drag the rotation handle ...

Page 75: ...work of an inspection target which compose a complex figure using a vision tool function In this section the procedure for selecting regions on the complex figure as shown below is described Operating procedure 1 Select Functions tab Graphics Controls EditCompositeRegion in the Palette window and drag and drop it to a spreadsheet ...

Page 76: ...s 2 Check the items in the Property Sheet screen and click the OK button 3 Click the button in the cell where the EditCompositeRegion function is placed to make the region selectable In the default a region is selected in rectangular shape ...

Page 77: ...menu A region that will be subtracted 1 is added 1 A region which is not used for the function 5 Drag and drop the region to the position in the following figure 6 Right click the region and select Subregion Operation Add in the shortcut menu The region for subtract is changed to add 1 1 A region which is used for the function ...

Page 78: ...u To exclude the hole included in the region add a sub region to the circle 8 Move the sub region and adjust its size to match the hole 9 Right click any space in the screen and select Add Subregion Circle in the shortcut menu Add a region to the right side of the feature as well A new region is added to the center of the region ...

Page 79: ...nd select Subregion Operation Add in the shortcut menu The region for subtract is changed to add 12 Right click any space in the screen and select Add Subregion Circle in the shortcut menu To exclude the hole included in the region add a sub region to the circle 13 Move the sub region and adjust its size to match the hole ...

Page 80: ...ed 15 Press the key to complete the setting 16 When using the region using the EditCompositeRegion function for a vision tool function specify the cell where the EditCompositeRegion function is placed for External Region in the Property Sheet screen The region set in a vision tool function is disabled and the region set in the EditCompositeRegion function is applied ...

Page 81: ...n Before performing a calibration The setup of a vision sensor and lens and the physical relationship between the sensor and the scene being acquired must be the same for both the calibration and run time operation If any of these items is altered the system must be re calibrated Place the calibration grid on the same plane as the object being inspected When examining the top of the 3D object the ...

Page 82: ...he following section Page 84 Dot grid and checkerboard Lens models To correct barrel distortion of a lens set Radial for Lens Model When a vision sensor is inclined against the measuring surface set Projection for Lens Model Grid printing By clicking the Print Grid button a grid to which the grid type grid spacing and grid units set in the screen are applied can be printed on a paper A high precis...

Page 83: ...3 CREATING JOBS 3 3 Performing Calibration 81 3 3 Select Pose in the tree on the left side of the Property Sheet screen ...

Page 84: ...ibration 4 Click the Live Video button or Trigger button to acquire an image to be calibrated Adjust the position of the calibration plate while checking the captured image The calibration pattern is applied and feature points are detected ...

Page 85: ...3 CREATING JOBS 3 3 Performing Calibration 83 3 5 Click the Calibrate button The result is displayed ...

Page 86: ... placed Dot grid and checkerboard The differences between dot grid and checkerboard are as follows Dot grid Relatively high accuracy up to 0 05 1 20 pixels Tolerates up to 30 perspective distortion Excellent tolerance to noise and inconsistent lighting Each dot must be between 10 and 50 pixels in diameter dots of 15 pixels or greater will yield more accurate results Checkerboard The highest degree...

Page 87: ... using calibration result Page 79 Performing a calibration Operating procedure 1 Select Functions tab Coordinate Transforms Calibrate TransformImage in the Palette window and drag and drop it to a spreadsheet 2 Specify the cell where a calibration structure is placed Page 79 Performing a calibration for Calibration in the Property Sheet screen ...

Page 88: ...An image structure and a calibration structure is generated in the spreadsheet For the image structure an image which is calibrated by the CaribrateGrid function will be stored 1 Image taken by a camera 2 Image with no distortion by calibration 1 2 ...

Page 89: ...Tools Pattern Match TrainPatMaxPattern in the Palette window and drag and drop it to a spreadsheet 2 Set the items in the Property Sheet screen as follows Image Specify the cell where an image structure of the TransformImage function is placed Page 85 Generating a calibrated image Pattern Region Double click Pattern Region enclose a pattern to be trained and press the key ...

Page 90: ...ll where an image structure of the TransformImage function is placed Page 85 Generating a calibrated image Pattern Specify the cell where the TrainPatMaxPattern function is placed in the step 1 The contents of the vision data access function such as a row column angle scale and score are placed in the spreadsheet 5 Select Functions tab Coordinate Transforms Calibrate TransPatternsToWorld in the Pa...

Page 91: ...y a cell on the right side of the TransformImage function a cell where Calib is displayed Page 85 Generating a calibrated image Pattern Select the cell where the FindPatMaxPatterns function is placed in the step 3 A pattern structure after the conversion and a vision data access function are placed in the spreadsheet ...

Page 92: ...ion ExtractBlobs function Page 92 Edge inspection BeadFind function BeadInspect function Page 96 OCV OCR OCRMax function Blob detection ExtractBlobs function This function detects a work which has an irregular form and measures the dimension of a feature by detecting a blob Operating procedure 1 Select Functions tab Vision Tools Blobs ExtractBlobs in the Palette window and drag and drop it to a sp...

Page 93: ...ns 91 3 2 Select Region in the Property Sheet screen and click the icon The entire image is targeted as a blob detection area 3 Set black for Color Blob 4 Change the values in Area Limit Min and Area Limit Max according to the size of the feature A blob is detected ...

Page 94: ...he BeadFind function and inspecting it using the BeadInspect function 1 A line of glue connecting parts Operating procedure 1 Load the image of a non defective work or acquire an image from a vision sensor 2 Select Functions tab Vision Tools InspectEdge BeadFind in the Palette window and drag and drop it to the spreadsheet 3 Double click Bead Sample Location in the Property Sheet screen 4 Specify ...

Page 95: ... 93 3 5 Click the Find Bead Paths button to detect a bead feature When a bead path is detected a blue line appears on the path 6 Check that the bead path is recognized as intended and click the Train Bead Path button After the training the path is displayed in green ...

Page 96: ...on Tools InspectEdge BeadInspect in the Palette window and drag and drop it to the spreadsheet 8 Double click BeadFind in the Property Sheet screen 9 Select a cell where a bead structure of the BeadFind function is placed and press the key A vision data access function is placed in the spreadsheet ...

Page 97: ...check if a defective part can be detected load the image of a defective work or acquire an image When a defective is detected the defective part is enclosed with a line and a number appear in the image The information regarding the detective part is displayed in the spreadsheet ...

Page 98: ...pection region Characters which are illegible corrupted or inclined by a print can also be read using the OCRMax function Operating procedure 1 Select Functions tab Vision Tools OCV OCR OCRMax in the Palette window and drag and drop it to a spreadsheet 2 Double click Region in the Property Sheet screen 3 Enclose characters to be read ...

Page 99: ...Procedure for Setting Commonly Used Functions 97 3 4 Click the Auto Tune button in the Property Sheet screen 5 In the Auto Tune screen enter the characters to be read in Text and click the Fix Segmentation Automatic button ...

Page 100: ...read two or more results will be displayed Select an appropriate result and click the OK button The characters read by the OCRMax function are displayed as follows A vision data access function is placed in the spreadsheet To refer to the read character from another function refer to the right side of the cell where the OCRMax function is placed or use the GetString function ...

Page 101: ... using the prepared snippet FindPatMaxFeatures cxd FindPatMaxFeatures cxd contains the TrainPatMaxPattern function and the FindPatMaxPatterns function and can train a model and detect a model trained Operating procedure 1 Select Snippets tab PatMax FindPatMaxFeatures cxd in the Palette window 2 Drag and drop a snippet to the spreadsheet Alternatively select a cell and double click a snippet to be ...

Page 102: ...d and the coordinate can be acquired Depending on the work a rotation angle and scale change amount can be set Some snippets can be set without opening the Property Sheet screen Some controls in a snippet are controlled by a mathematical formula to set each item easily 1 EditRegion function for defining model region 2 EditRegion function for defining search region 3 Button for training models 4 Pa...

Page 103: ...ws a difference in applicable settings between EasyBuilder and spreadsheet Some parameters are explained in detail Model training TrainPatMaxPattern Parameter EasyBuilder Spreadsheet Pattern origin Not applicable The center of a specified region is an origin Applicable to set a pattern origin Elasticity Not applicable No tolerance Applicable within 0 000 to 10 000 Coarse granularity Not applicable...

Page 104: ...ty value is changed With high elasticity high execution result score is maintained even with some parts of the character missing This parameter does not affect the execution speed of PatMax Figure 1 Difference in scores for pattern matching according to the setting values of elasticity 1 Without elasticity setting value 0 00 2 With elasticity setting value 0 01 to 10 00 1 2 ...

Page 105: ...ed purpose Searching FindPatMaxPatterns Figure 2 Coarse and fine granularity parameters Parameter EasyBuilder Spreadsheet Number to Find Maximum 10 The upper limit value varies depending on the tool Maximum 1024 Angle The same value in the is set for staring and ending angles Example 30 to 30 are set when the setting value is 30 Starting and ending angles can be set individually within 180 to 180 ...

Page 106: ...etecting all overlapping works Expected scene Sample program Display content of spreadsheet Program contents 1 A2 TrainPatMaxPattern 2 A5 FindPatMaxPatterns Figure 3 PatMax pattern search target 1 Detection target 2 Captured image 1 2 1 2 ...

Page 107: ... model trained Specify a cell of the TrainPatMaxPattern function for Pattern Specify the number of works to be detected simultaneously in Number to Find Additionally select the checkbox of Clutter in Score to adjust XY Overlap to detect overlapping works In this example set 6 for Number to Find and 95 for XY Overlap When the angle of the works is not determined set the Angle Start and Angle End of...

Page 108: ...106 APPX Appendix 1 Sample Program Execution result example Figure 6 Search result of overlapping works according to PatMax pattern ...

Page 109: ...r image The PatMaxRedLineColor function can detect a pattern including not only a shape but also a color of a work Expected scene Sample program Display content of spreadsheet Program contents 1 A2 TrainPatMaxRedLineColor 2 A5 FindPatMaxRedLineColor 1 Detection target 2 Captured image 2 1 1 2 ...

Page 110: ...ores based on the color therefore a pattern including the color information is detected A color can be specified by clicking on the screen with the mouse Figure 7 TrainPatMaxRedLineColor function property sheet Figure 8 Selecting colors for pattern Before selecting color After selecting color When selecting a color the tolerance can be changed By clicking a color for training the TrainPatMaxRedLin...

Page 111: ...or Pattern Specify the number of works to be detected simultaneously in Number to Find In this example set 4 for Number to Find Figure 9 Additionally set a value in Accept Threshold Color as necessary If the color score is lower than the acceptance threshold value the result will not be output Execution result example Figure 9 FindPatMaxRedLineColor function property sheet ...

Page 112: ...ws an example of detecting only rectangle blobs by using ExtractBlobs and FindBlobs functions Figure 10 indicates the execution result of ExtractBlobs function for blobs with different shapes The elongation parameters of the star blob Number 0 and the circular blob Number 1 are 0 000 while the rectangular blob Number 2 is 0 217 Setting the elongation parameters to 0 2 for Elongation 1 0 for Range ...

Page 113: ...APPX Appendix 1 Sample Program 111 A Figure 11 Elongation parameter settings in the FindBlobs function property sheet Figure 12 Extracting only specified blobs by using FindBlobs function parameters ...

Page 114: ...th different length Expected scene Find a long screw among screws with different length Sample program Display content of spreadsheet Program contents 1 A6 ExtractBlobs 2 A10 FindBlobs A 6 Figure 13 Expected scene image diagram A short screw A long screw detection target 1 2 ...

Page 115: ...ion Figure 14 2 Use the FindBlobs function to detect only the long screw Set a value which is appropriate for screws to be detected for Elongation in the FindBlobs function property sheet Additionally screws can be detected with focusing on only elongation by setting 100 for Weight of the elongation and 0 for Weight of the other parameters Figure 14 Detecting the screw part Figure 15 FindBlobs fun...

Page 116: ...114 APPX Appendix 1 Sample Program Execution result example Figure 16 Detecting only the long screw ...

Page 117: ...scratches and recessed or raised surfaces By doing so emboss like markings and scratches on a metal surface can be detected easily To use the SurfaceFX function lights from four different directions are required Therefore a VS70 with integrated lights an externally controlled 4ch power supply or a 4ch power supply that supports parallel input is required for illumination Figure 17 Normal image Fig...

Page 118: ...116 APPX Appendix 1 Sample Program Figure 19 Procedure for generating an image using SurfaceFX function Images captured with lightening from four different directions are processed by SurfaceFX function ...

Page 119: ...s embossed on a plastic Expected scene Inspect the accuracy of characters embossed on a plastic by using VS70 with integrated lights Figure 20 Captured image of characters scribed on a plastic Character recognition of the image captured normally is difficult ...

Page 120: ... 1 A4 Count A 0 3 0 0 2 A5 If A4 0 0 1 3 A6 SetEvent 32 4 A10 EditRegion 5 A14 If A 4 1 1 0 6 A15 If A 4 2 1 0 7 A16 If A 4 3 1 0 8 A17 If A 4 0 1 0 9 B14 IntegratedLightControl 10 D14 LatchImage 11 D15 LatchImage 12 D16 LatchImage 13 D17 LatchImage 14 A20 SurfaceFX 2 3 4 1 6 7 5 8 9 11 12 10 13 14 ...

Page 121: ...e right click menu and the image is captured four times The SetEvent function is executed after sequential processing is executed 4 Use the EditRegion function to set an inspection region 5 to 8 The control codes for light and latch image control The codes refer to 1 and switch between 0 and 1 according to the number of capturing image 9 Use the IntegratedLightControl function to control integrate...

Page 122: ...re latched using 10 to 13 on the property sheet Set other parameters as necessary Additionally refer to 8 in the Cell State on the right click menu to make SurfaceFX function executed at the timing when capturing the fourth image is completed Figure 22 IntegratedLightControl function property sheet Figure 23 Cell State of LatchImage function in D14 cell ...

Page 123: ...APPX Appendix 1 Sample Program 121 A Execution result example Figure 24 SurfaceFX function property sheet Figure 25 Images before and after applying SurfaceFX ...

Page 124: ...tion is prepared in a spreadsheet By using this function a region setting based on the other tool results can be set dynamically Therefore an appropriate region can be specified for works with different shapes and sizes Figure 26 Figure 26 When a region is generated based on information of a detected blob ...

Page 125: ...Blobs 2 B6 GetMinRow A 3 C6 GetMinCol A 3 D6 GetHigh A 3 E6 GetWide A 3 3 B8 Region Program description 1 Use the ExtractBlobs function to extract inspection target works In this example a setting for detecting three works at once is set Figure 27 2 Use the data access functions to acquire required information for setting a region The region setting information required in this example and functio...

Page 126: ... structure Index High of Blobs Region function High GetWide Blobs structure Index Wide of Blobs Region function Wide 3 Use the Region function to specify a region Refer to the information of 2 which corresponds to X Y High and Wide respectively in the property sheet of Region function Figure 28 Execution result Figure 28 Region function property sheet Figure 29 Execution result 1 ...

Page 127: ...APPX Appendix 1 Sample Program 125 A Figure 30 Execution result 2 Figure 31 Execution result 3 ...

Page 128: ...uire information obtained in a slave Therefore information can be aggregated into the master when performing inspection using multiple vision sensors for capturing a large work and verifying data acquired from multiple works Verifying characters using two vision sensors Expected scene Aggregate characters recognized in each vision and verifying characters by using two vision sensors Ethernet Progr...

Page 129: ...r in the AcquireImage function property sheet Set the following parameters Master ON select the checkbox Master Name An arbitrary network trigger name Use the network trigger name which is set in the property sheet in a slave side In this example master is set 2 Use the OCRMax function to recognize characters within a specified region 3 Use the GetString function to acquire characters recognized i...

Page 130: ...ult function to acquire read information on a slave side 6 Use the Exact function to compare the recognized characters between a master and slave and judges whether the characters are matched completely or are mismatched Sample program slave side Display content of spreadsheet Program contents 1 A0 AcquireImage 2 A4 OCRMax 3 B4 GetString A 4 4 A7 WriteResult A 0 B 4 1 2 4 3 ...

Page 131: ...aster Name A network trigger to be synchronized In this example master is set 2 Use the OCRMax function to recognize characters within a specified region 3 Use the GetString function to acquire characters recognized in OCRMax function 4 Use the WriteResult function to write information to a master side Specify A0 as the first argument and specify the information to be written as the second argumen...

Page 132: ...a scratch nick or tear on the object or part being inspected Function Description ExtractHistogram To collect statistics of a pixel value in a specified region and calculate optimal binary threshold contrast total number of bright count and dark count and an average pixel value in the region HistMax To output the most prevalent pixel value that occurs in the histogram by referring to the ExtractHi...

Page 133: ...nce between two points Function Description Button To insert a labeled push button control into the spreadsheet A button press can be configured to signal an event trigger CheckBox To insert a labeled checkbox control into the spreadsheet EditRegion To insert an interactive graphical region control into the spreadsheet When the control is clicked the display switches to Interactive Graphics Mode w...

Page 134: ... structure that is transmitted in a single communication packet ReadDevice To receive data from another host on the network using a TCP IP or UDP connection ReadMC To receive specified device data from a programmable controller or robot controllers by SLMP communication ReadUserDataBuffer To read data contained in the User Data field of a communication frame TCPDevice To define a spreadsheet cell ...

Page 135: ...st 2019 BCN P5999 1072 B Added or modified parts APPENDIX January 2020 BCN P5999 1072 C Added or modified parts INTRODUCTION RELEVANT MANUAL Appendix 1 This manual confers no industrial property rights of any other kind nor does it confer any patent licenses Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result ...

Page 136: ...nView are either registered trademarks or trademarks of Cognex Corporation The company names system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies In some cases trademark symbols such as or are not specified in this manual ...

Page 137: ......

Page 138: ...out notice When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 CHOME HIGASHI KU NAGOYA JAPAN ...

Reviews: