Skip to content

How to write to UDT #116

Open
Open
@ramezanifar

Description

@ramezanifar

Hi. I have few questions:
Q1)
Can you please provide an example how to write to a tag of type UDT having the values as an array of bytes?
There is an example how to read from a timer. I used it to read from a UDT and then tried to write it back to the same tag with the value I got from read (ret.Value) but it throws an error.

Q2)
In one of your examples you mention if the data type is provided, read and write become faster.
If I read from a tag of type UDT, what type should I use? I tried 163= SINT and 160= STRUCT
but it failed.

Q3) When reading from a UDT tag, the number of bytes returned are two more than that of UDT definition. Is this expected?

Thank you in advance

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions