# Script in VBS

**URL:** <https://forum.inductiveautomation.com/t/script-in-vbs/8256>\
**Category:** Archived Topics\
**Created:** [April 3, 2014, 6:35am UTC](https://forum.inductiveautomation.com/t/script-in-vbs/8256 "2014-04-03T06:35:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GBury](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GBury](https://forum.inductiveautomation.com/u/GBury)\
**Post date:** [April 3, 2014, 6:35am UTC](https://forum.inductiveautomation.com/t/script-in-vbs/8256/1 "2014-04-03T06:35:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [April 3, 2014, 2:00pm UTC](https://forum.inductiveautomation.com/t/script-in-vbs/8256/2 "2014-04-03T14:00:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [April 3, 2014, 6:44pm UTC](https://forum.inductiveautomation.com/t/script-in-vbs/8256/3 "2014-04-03T18:44:13Z")

</div>

[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.
