Skip to content

PLC variable of type LDATE_AND_TIME is returned as wrong Datatype #9

Description

@danskorka

When making a gRPC request to read a variable from the PLC that has a datatype of LDATE_AND_TIME, the response indicates that the variable has datatype of DT_INT64. The value returned is correct, assuming one knows how convert the value into a date and time.

However, there is also a definition for

/// <summary>IEC type: LDATE_AND_TIME, LDT [int64]</summary>

DT_IecDateTime64 = 39;

which should be used in this case.

Code on the gRPC client side must know the correct datatype in order to be able to use the variable value correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions