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.
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
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.