Skip to Main Content
Cognex Support Hub
Logo

Test TCP/IP Communication with In-Sight Vision Suite on Easy Builder

Step by step to make a TCP/IP connection using Easy Builder on In-Sight Vision Suite

16.04.2025

Question

How do I test if the In-Sight camera is sending messages using TCP/IP Communication in Easy Builder?

Answer

Material required:

  1. In-Sight Vision Suite installed
  2. In-Sight camera that could be programmed by In-Sight Vision Suite software
  3. Hercules software installed

 

In-Sight Camera programming

  1. Connect the camera and access it using In-Sight Vision Suite.
  2. With a new Easy Builder Job, go into Communication settings.

    Placeholder
  3. In the communication settings, find the Write TCP/IP section and select Yes on the Enabled option.

    Placeholder
  4. Define if camera will work as Client or Server:
    1. Work as client: Select the option TCP Client on Mode, then on Host name submit the IP address of the server and Port number where information needs to be sent. 

      Placeholder
    2. Work as server: Select the option TCP Server on Mode, working on this mode Host name will be unbaled, define the Port number where information needs to be sent.

      Placeholder
  5. Once you define to work as Server or Client, click Format String.

    Placeholder
  6. In the new window, you can define the Leading Text, Trailing Text, Terminators and Delimeters. 
    This is not a required information, but you need to double check if these are expected on the external device.

    Placeholder
  7. With Add, define all the Arguments that need to be sent. Easy Builder will help to show all the possible arguments that could be included.
    You can also define the Data Type for each element.

    Placeholder
  8. Place the camera in Online mode

    Placeholder

We have completed the steps for the camera programming.

 

Verify Communication

Test camera as server

  1. Select TCP Client tab and fill the information for Module IP and Port.

    Placeholder
  2. Click Ping to check if camera IP is OK.

    Placeholder
  3. Click Connect. The software will display that it is connected to the camera.

    Placeholder
  4. Send a trigger to the camera. For each trigger that camera receives, new information will be displayed on the Received/Sed Data window.

    Placeholder

 

Test camera as Client

  1. Select TCP Server tab and indicate the Port number. This number must be the same as the port declared on In-Sight Vision Suite software.

    Placeholder
  2. Click Listen.

    Placeholder
  3. The software is ready to receive all the information from the camera.

    Placeholder
  4. Send a trigger to the camera. For each trigger that camera gets, new information will be displayed on the Received Data window.

    Placeholder

Verwandte Materialien