10/20/2015 11:37 AM | |
Posts: 223 Rating: (0) |
Hello guys, I want to use the GMT time in a script. For that, I found this thread, but I don't understand it fully. Can anyone help me? Thanks in advance |
10/20/2015 1:05 PM | |
Joined: 9/3/2008 Last visit: 4/25/2024 Posts: 920 Rating: (156) |
Hi, Have a look at: https://support.industry.siemens.com/cs/ww/en/view/7802886
It shows how to read the UTC time from Windows and write it to the PLC using a c-script.
|
Michael |
|
This contribution was helpful to1 thankful Users |
10/20/2015 2:25 PM | |
Posts: 223 Rating: (0) |
Another question: The GetSystemFunction() return something in WORD. But does it return the full timestamp? (JJJJ-MM-DD HH:MM:SS) Or something else? |
10/21/2015 8:46 AM | |
Posts: 223 Rating: (0) |
Ok, it took a while, but I understand it nowx. Thank you! :) |
10/21/2015 10:20 AM | |
Posts: 223 Rating: (0) |
I get an error with the code. See attachment. How can I solve this? I followed the steps in the support page. + another question: I don't find the function 'fprints' in WinCC help. Can anyone help me? Thanks in advance :) AttachmentSTEP7.doc (192 Downloads) |
Last edited by: ToVerm at: 10/21/2015 10:36:07 AM |
|
10/21/2015 11:00 AM | |
Posts: 223 Rating: (0) |
Thanks for replying! :) I will surely do. The function you suggested to me to print the timestamp in string-format, don't you mean the 'sprintf'-function? |
Follow us on