Technical Forum

SIMATIC WinCC flexible

WinCC Flex 2008 Proper Execution of ArchiveLogFile Function

Thread Starter: horsman   Started: 3/27/2012 2:01 AM   Replies: 1

« Previous thread Next thread »
Page 1 of 1 (2 items)
  3/27/2012, 2:01 AM
Joined 9/19/2006
Last visit: 5/22/2013
Posts: 27
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,

I have some questions about the proper execution of commands to archive a data log using the ArchiveLogFile system function.

1) In the Help for the ArchiveLogFile function an example shows a Function List of CloseAllLogs, ArchiveLogFile, OpenAllLogs. However, the CloseAllLogs function says that a log must be stopped before it is closed. Are there any implications if you do not stop a log before closing it to archive?

2) Do the CloseAllLogs, ArchiveLogFile, and OpenAllLogs functions execute synchronously or  asynchronously? The manual states that system functions with longer runtimes operate asychronously. If I have ArchiveLogFile in a Function List followed by OpenAllLogs will the system wait until the ArchiveLogFile function is complete before trying to OpenAllLogs. Also, if the ArchiveLogFile function is preceeded by the CloseAllLogs function in a Function List, will the system wait until the logs are closed before trying to Archive?  

3) Are the functions above executed any differently with the Scheduler than with an Event?


Thanks
Top
  3/27/2012, 3:20 PM
Joined 9/5/2011
Last visit: 5/23/2013
Posts: 2587
Rating:
Rated: Outstanding [3.83 out of 5 / rated 132 time(s)]. (132) 
Users with special expertise supervising conferences
Rated: Outstanding [4 out of 5 / rated 1 time(s)]. (1) 
horsman wrote:
Hi,

I have some questions about the proper execution of commands to archive a data log using the ArchiveLogFile system function.

1) In the Help for the ArchiveLogFile function an example shows a Function List of CloseAllLogs, ArchiveLogFile, OpenAllLogs. However, the CloseAllLogs function says that a log must be stopped before it is closed. Are there any implications if you do not stop a log before closing it to archive?

You should stop the archiving with the function "StopLogging" and then you should use the function "CloseAllLogs".

horsman wrote:

2) Do the CloseAllLogs, ArchiveLogFile, and OpenAllLogs functions execute synchronously or  asynchronously? The manual states that system functions with longer runtimes operate asychronously. If I have ArchiveLogFile in a Function List followed by OpenAllLogs will the system wait until the ArchiveLogFile function is complete before trying to OpenAllLogs. Also, if the ArchiveLogFile function is preceeded by the CloseAllLogs function in a Function List, will the system wait until the logs are closed before trying to Archive?  

You can create a button with these functions CloseAllLogs, ArchiveLogFile, and OpenAllLogs under the event click. The functions wait for each other until the previous function is ended.

horsman wrote:

3) Are the functions above executed any differently with the Scheduler than with an Event?

Thanks

There are no difference whether you use an event on a button or you use an event of the scheduler.
How are tags and alarms logged in WinCC flexible?

How do you do long-term archiving with WinCC flexible?

Tweety
Top
Page 1 of 1 (2 items)
Actions