2/16/2022 7:27 AM | |
Joined: 11/22/2018 Last visit: 11/14/2024 Posts: 23 Rating:
|
Good afternoon! I use a script that generates a report in a csv file. This file saves certain data during the day. At the end of the day, a new file is created and the data is written to it. Now the file counts the day for the period from 24:00:00 of the current day to 24:00:00 of the next. Please tell me how you can do to save the file counting the day from 08:00:00 in the morning to 08:00:00 in the morning. I am using WinCC RT Professional v 16. AttachmentCode.txt (292 Downloads) |
2/17/2022 4:50 AM | |
Joined: 11/22/2018 Last visit: 11/14/2024 Posts: 23 Rating:
|
Thanks for the advice! Does anyone have any other ideas? I would be very grateful. |
2/18/2022 6:23 AM | |
Joined: 11/22/2018 Last visit: 11/14/2024 Posts: 23 Rating:
|
Hi, thanks for the advice! This method is not suitable for my task, as you advise me, the script will be executed only once at the specified time, respectively, every day. I will explain the essence of obtaining data: certain types of accidents from equipment in production are recorded in this file, when an emergency situation occurs, a script is executed that saves the message to a csv file. SCADA collects and forms data into a file continuously. At the end of the day and the onset of a new day, a new file is created and data continues to be collected into it and so on. Next, the file is processed by a third-party program. I need to form a file and take into account the accidents that occurred during the shift from 08:00 to 08:00, respectively, events should get into the file, for example 08:10 18.02.2021, 23: 59 18.02.2021, 00:00 18.02.2021 etc. until 08:00. And at 08:00 on 02/19/2021, a new file is created and the cycle continues.
AttachmentHistory Alarm_17.2.2022 — 18.2.2022.xlsx (268 Downloads) |
Last edited by: Ant0n at: 02/18/2022 06:42:34 |
|
2/18/2022 6:44 AM | |
Joined: 11/22/2018 Last visit: 11/14/2024 Posts: 23 Rating:
|
Now I get the file format in the attachment
AttachmentHistory Alarm_17.2.2022.xlsx (293 Downloads) |
Follow us on