Skip to content

Cameras Cognex (GSD DATAMAN)

I am trying to take the records from a camera (Cognex brand) communicated by profinet to an AXC F 1152 PLC, I was able to access some of its entries but seeing the examples they have with siemens they do not match.

I need to take the barcode that the camera captures and see it inside the plc

Has anyone worked with these devices?

 I'm waiting for your answers


Comments

  • 11
    edited April 2022

    From the screen shot I am guessing that the process data item named "Result Data" contains the barcode information. Is that not the case?

  • Exactly, after searching a little more I found the solution.
    I created a 64 byte array of data types and I was able to get the code in ascii(TYPE
        TEST_02 : ARRAY[0..63] OF BYTE;
    END_TYPE), now I just need to pass the bytes I need to string
    


  • The BUF_TO_STRING function block should help with that. The camera should return the number of characters in the buffer, which will also need to be passed to the function block instance.

Sign In or Register to comment.