Configuration : PLC Siemens 1500, OPC UA communication .
I love the possibilities of the native OPC UA in the siemens and ignition. But when a great tool, we always try to do more and I came across a problem: I can't write in an array of data type. I have the following error : "Bad_EncodingError: Encoding halted because of invalid data in the objects being serialized."
I couldn't find the documentation for "org.eclipse.milo.opcua.stack.core.UaSerializationException", nor any information about the "unknown builtin type: -1" fault.
Any ideas ? Thanks in advance !!
Thanks for taking the time to look. If it works it will allow me to compensate that currently it is not possible to create an array of UDTs in another UDT : array-of-udt-inside-another-udt
In the parent UDT I have to recreate a child UDT per instance but everyone uses the same source with the PLC.
Especially since I keep the source tag of the parent because it's much faster to loop in the Json of it than to do a "system.tag.readBlocking()" on the parent tag. The time ranges from a few milliseconds to several seconds.
It seems you have not parameterized your inner UDT in sufficient detail and uniqueness to implement this correctly. Share your UDT json if you want more focused advice from the crowd here on the forum.
Excuse me pturnel for confusing you with the "array of udt inside another udt" part (my previous post) and the explanations that go with it.
I have no problem with this part. This was just to explain the purpose and use of my first question.