Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - yovanino

Pages: [1]
1
Support Questions / Re: Error trying to WriteUDT with array
« on: November 06, 2019, 09:59:21 PM »
I try this and works fine

for (i = 0; i < 5; i++)
   {
     Fill Orders(i) ==>>>>> Call Procedure to fill Order
     DriverAB.WriteUDT("Orders_Pool[" + i + "]", Orders);
    }


2
Support Questions / Re: Error trying to WriteUDT with array
« on: November 05, 2019, 11:47:21 AM »
Im using 3.99y beta 34

3
Support Questions / Re: Error trying to WriteUDT with array
« on: November 04, 2019, 07:30:29 PM »
I asign the values from a DB, no nulls.
But allways get the same error.

Ive read that maybe is the length of the string but idont know.

4
Support Questions / Error trying to WriteUDT with array
« on: November 04, 2019, 06:05:35 PM »
Im getting an error when try to write a UDT

C# side

public struct Order_Info
        {
            public Int32 Id;
            public string Name;
            public Int32 Plan_Qty;
            public Int32 Time_Est;
        }

Order_Info[] Orders = new Order_Info[5];

DriverAB.WriteUDT("Orders_Pool", Orders);

I Get      "Not Enough Data"

PLC side

Order_Pool
       Order_Pool[0].ID    DINT
       Order_Pool[0].Name    STRING
       Order_Pool[0].Plan_QTY    DINT
       Order_Pool[0].Time_Est    DINT

Thanks

Pages: [1]