How to Configure Cognex and Tulip
  • 30 Sep 2022
  • 3 Minutes to read
  • Contributors

How to Configure Cognex and Tulip


Article summary

How to Configure Cognex and Tulip

This guide will walk you through setting up communication between the Cognex InSight Explorer and Tulip.

Tulip can integrate with Cognex devices that use the InSight Explorer software. This guide will walk you through setting up this integration.

This integration has been tested extensively on the Cognex InSight 2000 and should be similar from model to model.

Getting Started

All changes to the Cognex can only be done in the offline mode. Make sure the camera is put back in the online mode after configuration for actual use.

How to Configure Cognex and Tulip_151526511.png

Setting up a Job

  1. This is where you set up the image of what a successful image looks like for the job. Make sure that the Cognex is mounted in its final position, and place the successfully assembled parts under the Cognex. Make sure that you can reliably place all future parts in the same place, so that the job can pass all successfully assembled parts.

a. Click "Set up image"
b. Take a picture of the successful part by clicking "trigger"
c. Set Type to "Manual"

How to Configure Cognex and Tulip_151526728.png

  1. Define the pass/fail criteria for your image:

a. Click on "Locate part" to set up the location tool
    b. Select the "pattern" tool

How to Configure Cognex and Tulip_151526852.png

c. The green rectangle is the area of inspection.The purple rectangle is the pattern tool - it can be resized and rotated.

How to Configure Cognex and Tulip_78297190.png

d. Move the pattern and adjust the size to the area you want to inspect. The Cognex will check the image within the purple rectangle and compare pixel by pixel. If it is similar enough, the job passes.

If not, the job fails. In this example, the job will be to check the stepper motor, contained inside the purple rectangle in the below picture.

How to Configure Cognex and Tulip_78297287.png

e. After you have placed the purple pattern rectangle, click "OK". This Edit Tool window appears next:
        i. Adjust the tolerance based on how much variation is allowed in this location.

ii. Multiple locations can have different tolerances.

How to Configure Cognex and Tulip_151527283.png

  1. Set up the Inputs/Outputs as follows:
        a. Green LED - Job Pass
        b. Red LED - Job Fail

How to Configure Cognex and Tulip_151527474.png

  1. Set up the Connections to have the correct TCP/IP settings:

a. Click on "Communication" then "Edit"

How to Configure Cognex and Tulip_151527620.png

  1. Set Device to "Other"
  2. Set Protocol to "TCP/IP"

How to Configure Cognex and Tulip_78299665.png

  1. Click on "Edit Device" then Format Output String tab, then Format String.

How to Configure Cognex and Tulip_151527800.png

  1. Set up as seen below:
        a. Leading Text: "tulip: " (There is a single space after the colon; this is important.)
        b. Check "Use Delimiter"
        c. Click "Add" - another window (Select Output Data) should pop up.
        d. In the Select Output Data window, click Job and select Job.Pass. Click "OK".
        e. In the original Format String window, type in  Label: "Pass " (There is a single space after the word; this is important.)
        f. Click "Include Label"

How to Configure Cognex and Tulip_78299223.png

How to Configure Cognex and Tulip_78299282.png

  1. Click "OK" to exit the FormatString window, and select "Save Job" as seen below:
        a. Check "Start the Sensor in Online Mode"
        b. "Save As", type the job name you prefer
        c. Select your job in the Startup Job drop down

How to Configure Cognex and Tulip_78299521.png

  1. Put the Camera in the online mode. Run the job, and make sure it passes and fails correctly. You can also run the job by pressing the "TRIG" button directly on the Cognex camera.

How to Configure Cognex and Tulip_151527942.png

  1. Enable the Cognex Insight 2000 Driver in the Gateway Portal

How to Configure Cognex and Tulip_105315349.png

To load a particular job from your Cognex, you can set up a trigger to load your job by the name you've given it. You can have this trigger set up in a variety of ways. For example, if you want a job to load when a step is opened, you can set up a trigger such as here:

How to Configure Cognex and Tulip_181025720.png


Was this article helpful?