Skip to main content
7-Bedrock
February 11, 2026
Solved

S7 PLC TIME OF DAY/datetime/time tag datatype issue

  • February 11, 2026
  • 2 replies
  • 93 views

Not able to read correct/exact data of siemens S7-300 PLC tags, datatype is TIME OF DAY/datetime/time.
Thingworx Kepware Server v6.16.217.0

Best answer by MKhatri

Greetings!!

ThingWorx Kepware Server v6.16.217.0 when reading Siemens S7‑300 time‑based datatypes such as:

 

TIME_OF_DAY (TOD)
DATE_AND_TIME (DT)
TIME

 

The Siemens S7 family uses non-standard binary and BCD‑encoded formats for time values, 
which do not automatically map to Kepware’s OPC UA native Date/Time types.


Workaround Resolution:-
Convert Time Struct to STRING in the PLC
Read the Raw Bytes in Kepware and Decode in ThingWorx
Decode DATE_AND_TIME / TIME_OF_DAY Inside the PLC
Avoid mapping Siemens TIME/TOD/DT directly in Kepware

 

Regards,
Mohit

2 replies

7-Bedrock
February 11, 2026

Please ignore:
Screenshot 2026-02-11 103023.png

MKhatri15-MoonstoneAnswer
15-Moonstone
February 20, 2026

Greetings!!

ThingWorx Kepware Server v6.16.217.0 when reading Siemens S7‑300 time‑based datatypes such as:

 

TIME_OF_DAY (TOD)
DATE_AND_TIME (DT)
TIME

 

The Siemens S7 family uses non-standard binary and BCD‑encoded formats for time values, 
which do not automatically map to Kepware’s OPC UA native Date/Time types.


Workaround Resolution:-
Convert Time Struct to STRING in the PLC
Read the Raw Bytes in Kepware and Decode in ThingWorx
Decode DATE_AND_TIME / TIME_OF_DAY Inside the PLC
Avoid mapping Siemens TIME/TOD/DT directly in Kepware

 

Regards,
Mohit