VBS problem

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
I wrote:


Historian
'Schrijf vorige batch weg naar de csv historian
'Wegschrijven van de vorige omdat eventueel gewijzigde parameters (correcties)
'opgeslagen moeten worden
SetDataRecordToPLC "Batches", SmartTags("Record"), hmiOn, Null
DeleteDataRecord "Batches", SmartTags("Record"), hmiOn, hmiOn, Null



Historian = script for archiving.

Normally historian has to write tags to a csv and after the logging the new recipe may be loaded.

Problem is, it's like the historian is don after the SetDataRecordToPLC ... ?

It logs the new activated recipe instead of the previous one that I want
 

Similar Topics

Dim i, a(10) For i = 0 To 9 Step 1 a(i) = SmartTags("visuf")(i) Next For i = 10 To 2 Step -1 a(i)= a(i-1) a(0)= SmartTags("valuetag")...
Replies
6
Views
5,504
Hello, I just started learning WinCC V8.0 3 days ago, so I'm still new to how everything works in this program. I've created a pop-up with a...
Replies
2
Views
707
Hello. I am trying to do some basic file operations (move file from one folder to another, rename file in the new folder etc) and usually I just...
Replies
1
Views
2,204
Hello everyone. I'm trying to export data to excel from Wincc. My code is global action that executed every second that create excel filer per...
Replies
1
Views
5,749
Hi all. I am trying to write vbs code to copy data SQL from one server to another . i can write data to blockdata, but i cannot copy data from...
Replies
0
Views
1,671
Back
Top Bottom