WinCC Flexible 2007 - Event Triggered Logging

Manglemender

Member
Join Date
Jul 2007
Location
Lancashire
Posts
1,288
Greetings Forum,

One of my colleagues is planning an application on an MP377 where he would like to log tags on an event e.g. an error signal to record all the machine settings at the moment of the error.

Does anyone know if this can be done and how?

Nick
 
There are a number of constraints that means you cannot set it up with system functions only.
You will have to do this via a script.
There are already a number of threads about logging data via scripts, also on a CE panel.
 
hey

I wrote something like that in a panel and with vb-script.

It copies a bunch of positions (tags) into a TXT or CSV file.

I took the example from the siemens site

this link: http://support.automation.siemens.com/WW/view/en/26106418


Manglemender said:
Greetings Forum,

One of my colleagues is planning an application on an MP377 where he would like to log tags on an event e.g. an error signal to record all the machine settings at the moment of the error.

Does anyone know if this can be done and how?

Nick
 
script in an OP277

This is my code for saving positiondata in a CSV file.

Code:
 Dim f, path
path = "\Storage Card MMC\Posities_Kant_Rechts.csv"

On Error Resume Next

Set f = CreateObject("FileCtl.File")

If Err.Number <> 0 Then
 ShowSystemAlarm "Error #" & CStr(Err.Number) & " " & Err.Description
 Err.Clear
 Exit Sub
End If

f.open path , 2 

If Err.Number <> 0 Then
 ShowSystemAlarm "Error #" & CStr(Err.Number) & " " & Err.Description
 Err.Clear
 Exit Sub
End If

f.LinePrint("Positie Aanvoer Pneg; " & Pos_A_neg & ";")
f.LinePrint("Positie Aanvoer P0; " & Pos_A_0 & ";")
f.LinePrint("Positie Aanvoer P1; " & Pos_A_1 & ";")
f.LinePrint("Positie Aanvoer P2; " & Pos_A_2 & ";")
f.LinePrint("Positie Aanvoer P3; " & Pos_A_3 & ";")
f.LinePrint("Positie Aanvoer P4; " & Pos_A_4 & ";")
f.LinePrint("Positie Aanvoer P5; " & Pos_A_5 & ";")
f.LinePrint("Positie Aanvoer P6; " & Pos_A_6 & ";")
f.LinePrint("Positie Aanvoer P7; " & Pos_A_7 & ";")
f.LinePrint("Positie Aanvoer P8; " & Pos_A_8 & ";")
f.LinePrint("Positie Aanvoer P9; " & Pos_A_9 & ";")
f.LinePrint("Positie Aanvoer P10; " & Pos_A_10 & ";")
f.LinePrint("Positie Aanvoer P11; " & Pos_A_11 & ";")
f.LinePrint("Positie Aanvoer P12; " & Pos_A_12 & ";")
f.LinePrint("Positie Aanvoer P13; " & Pos_A_13 & ";")
f.LinePrint("Positie Aanvoer P14; " & Pos_A_14 & ";")
f.LinePrint("Positie Aanvoer P15; " & Pos_A_15 & ";")
f.LinePrint("Positie Aanvoer P16; " & Pos_A_16 & ";")
f.LinePrint("Positie Aanvoer P17; " & Pos_A_17 & ";")
f.LinePrint("Positie Aanvoer P18; " & Pos_A_18 & ";")

f.LinePrint("Positie Ponsbank P1; " & Pos_P_1 & ";")
f.LinePrint("Positie Ponsbank P2; " & Pos_P_2 & ";")
f.LinePrint("Positie Ponsbank P3; " & Pos_P_3 & ";")

f.LinePrint("Positie Afvoer Pneg; " & Pos_F_neg & ";")
f.LinePrint("Positie Afvoer P0; " & Pos_F_0 & ";")
f.LinePrint("Positie Afvoer P1; " & Pos_F_1 & ";")
f.LinePrint("Positie Afvoer P2; " & Pos_F_2 & ";")
f.LinePrint("Positie Afvoer P3; " & Pos_F_3 & ";")
f.LinePrint("Positie Afvoer P4; " & Pos_F_4 & ";")
f.LinePrint("Positie Afvoer P5; " & Pos_F_5 & ";")
f.LinePrint("Positie Afvoer P6; " & Pos_F_6 & ";")
f.LinePrint("Positie Afvoer P7; " & Pos_F_7 & ";")
f.LinePrint("Positie Afvoer P8; " & Pos_F_8 & ";")
f.LinePrint("Positie Afvoer P9; " & Pos_F_9 & ";")
f.LinePrint("Positie Afvoer P10; " & Pos_F_10 & ";")
f.LinePrint("Positie Afvoer P11; " & Pos_F_11 & ";")
f.LinePrint("Positie Afvoer P12; " & Pos_F_12 & ";")

f.Close
Set f = Nothing

ShowSystemAlarm "Storage of the data was successful!"
 

Similar Topics

Hey guys, I am trying to write a vb script in wincc 2007 flexible. Basically I need to have a button which is on my overview on every screen...
Replies
1
Views
1,589
I have created a faceplate like the example says, but I'm not capable to drag it from my library into my screen. I'm only having the "stop"-sign...
Replies
0
Views
2,831
Hi, I am using WinCC Flexible 2007 Hotfix 4. I have problem downloading to a TP177A touch panel. When tranferring to the device it goes through...
Replies
13
Views
5,737
Hi everyone, thank you for reading my HelpMe post. I found this site by google. //Description of the problem: I've been trying to change screens...
Replies
5
Views
2,896
Dear All, I have an application and there is a pushbutton that access on specific screen, but i want to add a password when anyone press that...
Replies
2
Views
2,454
Back
Top Bottom