Hello,
I have trouble to find out correct set up for method that needs array of Int32 as an argument.
UA expert is showing error too many arguments.
This is object type in UA modeler:

I can see a method in UAExpert with arguments being the same as Input value of the FB.

Calling method will throw error BadTooManyArguments.
Thnak you for idea.
I’m not sure that the type in UaModeler is correct.
When I look at a one-dimensional array with 42 elements in UaExpert, the array has ONE dimension, with 42 elements in the first dimension:
Your screen shot from UaModeler suggests that it is expecting an array with 42 dimensions, which (unless the terminology is not used consistently) isn’t the same as a 1 dimensional array with 42 elements.
I’m not very familiar with UaModeler, but I hope this gives a clue.
Hmm, looking at this again, I don’t think my earlier comments were correct - I am not sure how one would define the array differently in UaModeler, so perhaps the array definitions in UaModeler and UaExpert are the same.
Hi Martin,
Thank you for your replay.
They are the same definition. However, is true that UaExpert is showing this definition in a really confusing way.
I am going to try to find and create the model with a different modeler.
I can write directly to the Input array and it is the same array as the Input argument in the Call method. It is weird.
I will also try to reproduce this.
The Nodeset (XML) file generated from the model may contain some clues.
If you want contact me on email and I can provide you with all files.
I will also try to reproduce this.</p>The Nodeset (XML) file generated from the model may contain some clues.</p>
I tried to create a structure with an array of Int32 and length 42. The XML model looks fine to me. (inputPowerArrayST)
But I found out that when I copy the model to OPC UA server and restart PLC the values ValueRank and ArrayDimensions (from 1 to -1 and from 42 to 0) in the UaExperts are not the same. Also, the datype is changed from int32 to Uint32.
We tried it also in python client and it is the same as UaExpert. So I guess it is not a problem in UaExpert but most likely in the OPC UA server.

Structures are not currently supported in custom information models for the OPC UA server in PLCnext Control devices. Trying to include a struct in a custom information model gives this “not supported” error in the Output.log file:
13.02.22 11:56:47.780 Arp.Services.OpcUAServer.OpcUAServerComponent INFO - Started OPC UA Server successfully.
13.02.22 11:56:47.782 Arp.Services.OpcUAServer.Internal.Security.SessionManager INFO - Applying configuration for client authentication to 1 endpoints: trustAll=true, checkCRLs=false, checkIssuerCRLs=false, ignoreValidity=false
13.02.22 11:56:47.802 root ERROR - Error UaNodesetXmlParser::getExtensionObjectValue extension object type ns=8;i=5002 not supported
13.02.22 11:56:47.811 Arp.Services.OpcUAServer.Internal.InformationModel.Xml.NodeSetManager INFO - Starting model 'http://yourorganisation.org/CustomType/' from'/Default/Services/OpcUA/NodeSets/customtype.xml' succeeded
Perhaps there is a similar problem with arrays - I will check.
OK, I have now had confirmation from one of the developers of the OPC UA server:
currently we do not support arrays as input or output parameters of a method. Unfortunately there is nothing we can do to make this work at the moment.
This feature may be included in a future version of the OPC UA server.
Sorry for the inconvenience.
OK, I have now had confirmation from one of the developers of the OPC UA server:</p>_currently we do not support arrays as input or output parameters of a method. </em></p>Unfortunately there is nothing we can do to make this work at the moment.</p>This feature may be included in a future version of the OPC UA server.</p>Sorry for the inconvenience.</p>
Thank you. That is unfortunate but I will deal with it. However, It would be nice to have this feature in near future.
Thank you, Martin.