Skip to content

GRANT 0.2 ETH(or BTC equivalent) - Writing to plc takes long #208

@friko16

Description

@friko16

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions