Skip to Main Content
Centre d’assistance Cognex
LogoLogo

How to Send More Than 250 Bytes Result Data From In-Sight Explorer Cameras Over Profinet

This article explains a possible solution if you need to send more than 250 bytes of result data from the camera over Profinet IO cyclic communication.

31/01/2025

Question

How can I send more result data than 250 bytes from the camera over Profinet IO cyclic communication?

Answer

The Profinet IO interface of In-Sight Explorer cameras allows to use a maximum size of 250 bytes Results module.

Placeholder

Following the below steps will make it possible to send more data on the same event from a Spreadsheet job.

  1. Split the results data into multiple pieces and use FormatOutputBuffer() function for each of them.
  2. Add separate WriteResultsBuffer() functions to refer to each buffer that was created previously.
  3. Set the Event property of each WriteResultsBuffer() function to the same, for example $A$0.
  4. Set the Result Code property of each WriteResultsBuffer() function to different values, this will identify each chunk of result data.
     

With the above solution, the split result messages will be sent in different Profinet packets on the same event, and the Result Code of each packet will identify each packet. Now, if Results Buffering is enabled from the PLC side, then the PLC can read each packet one by one and reassemble the original result data. The PLC sequence should follow the following steps:

  1. set Buffer Results Enable bit to TRUE
  2. wait for the Results Valid bit to become TRUE
  3. read the Inspection Results data and identify this chunk by reading the Inspection Result Code
  4. set the Inspection Results Ack bit to TRUE and wait until the Results Valid bit turns to FALSE
  5. clear the Inspection Results Ack bit
  6. repeat steps from 2 to 5 until all the chunks are read and the original message can be reassembled

Ressources connexes