Hi,
I have two real numbers that represent timestamp - see the attached screenshot. Is there codesys function or structure that converts 2 real numbers into appropriate timestamp in a resolution of mSec. If codesys has no build-in support for this, what is the better way to perform it in ST?
I had to play around with the byte order in the TIMESTAMP structure, depending on your platform, it might be different, I don't know. And the TIMESTAMPASHEX struct was just for information, you wouldn't really need it.
Hi,
I have two real numbers that represent timestamp - see the attached screenshot. Is there codesys function or structure that converts 2 real numbers into appropriate timestamp in a resolution of mSec. If codesys has no build-in support for this, what is the better way to perform it in ST?
Thanks
What about this?
I had to play around with the byte order in the TIMESTAMP structure, depending on your platform, it might be different, I don't know. And the TIMESTAMPASHEX struct was just for information, you wouldn't really need it.
Thanks.
I'll try it.