[?]: i need to have a event logging into Wincc

ProTool, WinCC flexible, WinCC, PP/OP/TP/TD/MP
PLC_ITA
Posts: 265
Joined: Sat May 27, 2006 6:46 am
Location: Europe

[?]: i need to have a event logging into Wincc

Post by PLC_ITA »

Hi friends, i need to have a event logging into Wincc.
Any operations and/or modification from the operator i need to trace

I haven't a idea how to do !

Anyone have a idea or suggest ?

Thank you
dante
Posts: 47
Joined: Fri Oct 19, 2007 6:35 am
Location: romania

Post by dante »

It's very easy. Assign a script to any button the operator can press; the script must run "on button down" for example. That script have to write (as APPEND) infos in a log file (like: date, hour, button number, logged user etc).
PLC_ITA
Posts: 265
Joined: Sat May 27, 2006 6:46 am
Location: Europe

Post by PLC_ITA »

Hi, Mr Dante, I understand, but i want view this log, same alarm logging.

In every button i can add a script, but how i can do to write a string with data-hour-text ecc into a file compatible whit alarm logging or similar

thank you
dante
Posts: 47
Joined: Fri Oct 19, 2007 6:35 am
Location: romania

Post by dante »

If U want alarm logging, my first ideea is to assign an alarm bit for any event U want to trace and activate that bit with the button script.
PLC_ITA
Posts: 265
Joined: Sat May 27, 2006 6:46 am
Location: Europe

Post by PLC_ITA »

Your idea, is a possible solution. For now i haven't another idea.

If is possible, is better to have a script into a pushbutton, which i write directly into alarm logging database , whitout have a bit every message, and relative text into alarm logging

do you know if is possible ?

Another question ?
do you know how PCS7 system realize the event logging ?

bye
dante
Posts: 47
Joined: Fri Oct 19, 2007 6:35 am
Location: romania

Post by dante »

Don't know if possible, I think not, but the "normal way" to log alarms and warnigs is to activate a bit, I think (not 100% sure) U can define & use internal tags (means that bits are not into the PLC, they are only WinCC internal).
Have no ideea about PCS.
dante
Posts: 47
Joined: Fri Oct 19, 2007 6:35 am
Location: romania

Post by dante »

...another point: you can define & use only one alarm (if you want to) for many buttons, so writing the text will be not so time consuming.
PLC_ITA
Posts: 265
Joined: Sat May 27, 2006 6:46 am
Location: Europe

Post by PLC_ITA »

thanks Dante, for now i use your method.

Many thank again for your idea

Fabio
Galli
Posts: 38
Joined: Sat Jun 30, 2007 5:36 am

Post by Galli »

PLC_ITA wrote:thanks Dante, for now i use your method.

Many thank again for your idea

Fabio
Hi PLC_ITA ..
I'm still learning WinCC..
Can you post the sample script, - how to do it ..
Thank you..