Hello guys, I need help, we got stuck in our project because of this.
I am offering some Ethereum tip.
My issue is that writing to plc takes too long time, around 2-3 seconds.
When writing less values, like 2-3, then it takes shorter around 50ms, so it's seems it's linear dependent on the number of values.
It blocks us.
pseudo-code ( giving you idea how I am doing it ):
WriteValue[] _writeValues = new WriteValue[20];
// initializing writeValues with primitive opcua values..... below just one example of initializing the first value.
writeValues[0] = new WriteValue( // just one example of initializing first value
new NodeId(PlcGateway.namespaceIdx = 3, "NodePath.node.someNumber"),
Attributes.Value,
null,
new DataValue(new Variant(new UnsignedLong(2))
);
SessionChannel sessionChannel; // initialized
sessionChannel.Write(writeValues);