Script in VBS

Hello everybody,

I work on a big supervision in WinCC Scada, and I’ve to store my variable’s values in case of the plc crash…

So I would like to create a VB-Script in WinCC to do 4 thinks :

  1. Recover all the tagname of the different object in the view
  2. Check wich bloc type is called by the object
  3. When the bloc type parameter is found take out the parameters that interest me
  4. Store the data in a .csv file

In avance thanks all

In that case I think the best thing to do would be replace WinCC with Ignition and write your script in Python.

There’s plenty of people on this forum who would show you how to write a Python script to store needed data to a CSV file.

[quote=“GBury”]Hello everybody,

I work on a big supervision in WinCC Scada, and I’ve to store my variable’s values in case of the plc crash…

So I would like to create a VB-Script in WinCC to do 4 thinks :

  1. Recover all the tagname of the different object in the view
  2. Check wich bloc type is called by the object
  3. When the bloc type parameter is found take out the parameters that interest me
  4. Store the data in a .csv file

In avance thanks all[/quote]

I agree with Nick. Moving to Ignition is a great idea. For your parameters, instead of storing to CSV, you can store it to a database. You can easily loop through components on a screen and save/restore values with ease.