8/17/2009 3:03 PM | |
Joined: 12/29/2007 Last visit: 1/18/2021 Posts: 9 Rating:
|
Hi, Does anybody know a solution to backup automaticly several PLC's (especially DB's) across the networks (e.g. a command line software called ina scheduled task) Thank's |
8/25/2009 9:55 AM | |
Joined: 7/17/2008 Last visit: 10/25/2013 Posts: 34 Rating:
|
ligeman, |
9/21/2009 8:31 PM | |
Joined: 12/22/2006 Last visit: 1/25/2022 Posts: 1742 Rating:
|
Hello, May be you could investigate to use the STEP7 command interface. The complete description of the STEP 7 command interface is available on the STEP 7 CD2 in the "_Manuals" directory. Some extracts of the manual: The collection "IS7OnlineBlocks" enumerates over all online blocks that are actually on the CPU assigned to the program. the OnlineBlocks collection also has the "Upload" method. With this method, all online blocks can be uploaded and copied to the offline-block container (upload to programming device) with one call. It is also possible with this collection to enumerate over all online blocks and to initiate the upload process in individual blocks. The reaction is set by means of the optional parameter Overwrite if the blocks to be uploaded exist already in the project.The following is an example to determine which blocks exist on the CPU: Sub Main() Dim S As Object Dim Prg As Object Dim Blk As Object Set S = New Simatic Set Prg = S.Projects("Online").Programs(1) MsgBox ("Existing blocks: " & Prg.OnlineBlocks.Count) For Each Blk In Prg.OnlineBlocks MsgBox (Blk) Next Set Blk = Nothing Set Prg = Nothing Set S = Nothing End Sub |
Best regards |
|
This contribution was helpful to
6 thankful Users |
9/22/2009 5:53 AM | |
Posts: 261 Rating:
|
Hi edr, It seems interesting. Thanks for the post. With best regards ddg |
9/28/2009 12:04 PM | |
Joined: 12/29/2007 Last visit: 1/18/2021 Posts: 9 Rating:
|
Thanks edr for your idea, I'll try to follow this way... The best would be to write a VBS script and call it with Windows scheduler. But i'm not really an expert in VBS scripting |
8/22/2010 3:13 AM | |
Posts: 20 Rating:
|
Dear Mr. jklm Thanks for the reply but I could not undrestand what it mean the below solution/example that you have suggested are some instruction or a sample program that needed to be called in some special way. Sub Main() Dim S As Object Dim Prg As Object Dim Blk As Object Set S = New Simatic Set Prg = S.Projects("Online").Programs(1) MsgBox ("Existing blocks: " & Prg.OnlineBlocks.Count) For Each Blk In Prg.OnlineBlocks MsgBox (Blk) Next Set Blk = Nothing Set Prg = Nothing Set S = Nothing End Sub |
9/21/2024 4:25 PM | |
Joined: 2/6/2015 Last visit: 11/22/2024 Posts: 132 Rating:
|
Hello, I was able to run thiss code. But what I want is to Upload complete station. Do you have a sample code for that? Couldn't find in the Command interface docu's. |
Follow us on