plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Copy and move archives with WinCC Comfort/WinCC Advanced

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIEMENS SIMATIC HMI
View previous topic :: View next topic  
Author Message
kellog
Junior 2
Junior 2


Joined: 03 Aug 2015
Posts: 32

PostPosted: 03/01/2018 14:35    Post subject: Copy and move archives with WinCC Comfort/WinCC Advanced Reply with quote

How do you safely copy and move archives with WinCC Comfort/WinCC Advanced?
https://support.industry.siemens.com/cs/document/63042926/
The following sequence of system function calls in the WinCC Advanced V14 SP1 manual is recommended for copying/moving archives:
CloseAllArchives
ArchiveLogFile
OpenAllArchives
(See also "WinCC Advanced V14 SP1 > Visualize processes > Working with System Functions and Runtime Scripting > Reference > Function List > System Functions > Archives > ArchiveLogFile". )
However, with this procedure it might happen that the next function starts before the previous function has finished. This leads to data loss.
To avoid this happening and ensure a step by step sequence of the system functions, you can use system messages that are generated after the termination of each system function. One of these messages has to be received before the next step is triggered.
Note
This method does not work with a segmented archive, because the "ArchiveLogFile" function only copies a file and not segments.

Copy or move an archive
1. Close All Archives
Configure the "CloseAllArchives" function for the "Release" event of a button, for example.
2. Archive Log File
If the "CloseAllArchives" function is completed successfully, the system message number 80019 is output.
Configure the "ArchiveLogFile" function for the "Arrived" event of this system message.
3. Open All Archives
After the "ArchiveLogFile" function is completed successfully, the system message number 80048 is output.
Configure the "OpenAllArchives" function for the "Arrived" event of this system message.

Copy or move multiple archives

1. Close All Archives
Configure the "CloseAllArchives" function for the "Release" event of a button, for example.
2. Archive Log File
If the "CloseAllArchives" function is completed successfully, the system message number 80019 is output.
Configure the script below for the "Arrived" event of this system message.
The example shows the copying of 5 archives.
Copy and move archives with WinCC Comfort/WinCC Advanced Copy and move archives with WinCC Comfort/WinCC Advanced
3. Open All Archives
After the "ArchiveLogFile" function is completed successfully, the system message number 80048 is output once for each log file.
Configure the script below for the "Arrived" event of this system message.

Copy and move archives with WinCC Comfort/WinCC Advanced Copy and move archives with WinCC Comfort/WinCC Advanced
Function of the script
This system message 80048 appears once for each copied or moved archive. The number of system messages 80048 is counted by the internal "Counter" tag. Once all the archives have been copied/moved (5 in this example), the "IF query" has been fulfilled and the "OpenAllArchives" function is executed.
The internal "Counter" tag starts with the value 0.
Change the two scripts in Fig. 01 and Fig. 02 to suit your requirements.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIEMENS SIMATIC HMI All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro