Maximum array size
Moderator: uaexpert
-
- Jr. Member
- Posts: 1
- Joined: 07 May 2014, 22:08
Maximum array size
I have a three dimensional array of type INT32. The size of the array is [50,50,50]. The DA client is unable to recognize this structure. What are the limits of the client for the maximum array size? I have two other larger arrays that do display and are recognized properly. One is size [999] the other is size [99,99].
- Support Team
- Hero Member
- Posts: 3072
- Joined: 18 Mar 2011, 15:09
Re: Maximum array size
Hello acuningham,
the client and server side UAStacks have configured encoding limits that specify e.g. max array size, max message size and so on.
Since a matrix is send over the network as an array you need to multiply the array dimensions to calculate the overall array size on the network.
In your case the matrx [50,50,50] has 125000 element while the default limit for arrays is 65536.
The [99,99] has 9801 elements which is smaller than the encoding limit of 65536.
Unfortunatly for that error the server does not send a BadEncodingError to the client but instead the client runs into a timeout.
We add an issue for that and will improve that behaviour in a future version so that the client gets a correct error code.
Best Regards
Unified Automation Support Team
the client and server side UAStacks have configured encoding limits that specify e.g. max array size, max message size and so on.
Since a matrix is send over the network as an array you need to multiply the array dimensions to calculate the overall array size on the network.
In your case the matrx [50,50,50] has 125000 element while the default limit for arrays is 65536.
The [99,99] has 9801 elements which is smaller than the encoding limit of 65536.
Unfortunatly for that error the server does not send a BadEncodingError to the client but instead the client runs into a timeout.
We add an issue for that and will improve that behaviour in a future version so that the client gets a correct error code.
Best Regards
Unified Automation Support Team