DLaty (Customer) asked a question.

Can't use instance of a UDS in the Ethernet adapter input/output arrays?

Hello Productivity users / support.

 

I have an issue using an instance of a UDS for this barcode reader. I have created the UDS to utilize the same code for 4X of these barcode readers. But when I try to populate the ethernet

adapter input array, it says the datatype is not correct. See the screenshots of the error.

I also included a screenshot that shows the array in my UDS is a 1D 138 col array of 8bit integers

 

When I create the exact same array 1D 138 columns of 8bit integer. then I can use that variable as the data array input just fine.

 


  • ADC Community_02 (Automationdirect.com)

    Thanks for reaching out! Unfortunately, 2D array tags aren't supported for EtherNet/IP.

     

    Here's why: in the TagDB, your barcode tag is set up as a 1D array, and then the UDS barcode tag is also an array. When you combine these, our software treats it as a 2D array, which isn't allowed in this case.

     

    The good news is there's an easy workaround — instead of using a single array, create four individual barcode tags (barcode1, barcode2, barcode3, barcode4), each using the barcode UDS. That way, each tag is 1D, and you'll be able to use them in your EtherNet/IP configuration without issue.

     

    image

    Expand Post
    Selected as Best
  • ADC Community_02 (Automationdirect.com)

    Could you connect online to the CPU, generate a system report, and send it to me via PM?

  • ADC Community_02 (Automationdirect.com)

    Thanks for sending your project. Unfortunately, this is a limitation of the software. You could use copy array (CPA) instruction to copy the valueimages from your Enet/IP to your uds .inbuffer array.

     

    Expand Post
  • DLaty (Customer)

    Thank you.

     

    I am aware I can create a tag for the barcode in buffer and copy it into my UDS.

    But the point of the UDS was that I can create many instances of this barcode logic. My application will need dozens of barcode readers and my hope was that I can create the UDS to simplify the implementation into existing software.

     

    Can you help me understand why this is a limitation of the software? If the datatype is matching, why can it not be part of a UDS?

    Expand Post
  • ADC Community_02 (Automationdirect.com)

    Thanks for reaching out! Unfortunately, 2D array tags aren't supported for EtherNet/IP.

     

    Here's why: in the TagDB, your barcode tag is set up as a 1D array, and then the UDS barcode tag is also an array. When you combine these, our software treats it as a 2D array, which isn't allowed in this case.

     

    The good news is there's an easy workaround — instead of using a single array, create four individual barcode tags (barcode1, barcode2, barcode3, barcode4), each using the barcode UDS. That way, each tag is 1D, and you'll be able to use them in your EtherNet/IP configuration without issue.

     

    image

    Expand Post
    Selected as Best