How to read the timestamp of a datapoint in Ctrl?

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
svhsvh
Posts:6
Joined: Tue Sep 19, 2023 3:04 pm

How to read the timestamp of a datapoint in Ctrl?

Post by svhsvh »

Hi,

I want to read the timestamp of a specific datapoint in control script.
How can I do this?
In the documentation I found a lot of attributes to read with dpget, but I can't seem to find the timestamp of the last write to a datapoint.

Thanks in advance,
Stef

buec
Posts:28
Joined: Tue Dec 07, 2010 3:09 pm

Re: How to read the timestamp of a datapoint in Ctrl?

Post by buec »

You can read the timestamp from the _online.._stime attribute.

svhsvh
Posts:6
Joined: Tue Sep 19, 2023 3:04 pm

Re: How to read the timestamp of a datapoint in Ctrl?

Post by svhsvh »

Thank you very much for the answer, works perfectly.
I could not find the _stime attribute in the documentation:
https://www.winccoa.com/documentation/W ... dpGet.html

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: How to read the timestamp of a datapoint in Ctrl?

Post by leoknipp »

If you want to know which attributes a config has you can have a look at the Reference Tables in the WinCC OA Documentation:
https://www.winccoa.com/documentation/W ... nfigs.html

Best Regards
Leopold Knipp
Senior Support Specialist

4 posts • Page 1 of 1