ProTool, WinCC flexible, WinCC, PP/OP/TP/TD/MP
-
PLC_ITA
- Posts: 263
- Joined: Sat May 27, 2006 6:46 am
- Location: Europe
Post
by PLC_ITA » Thu Nov 01, 2007 10:46 pm
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: 48
- Joined: Fri Oct 19, 2007 6:35 am
- Location: romania
Post
by dante » Fri Nov 02, 2007 7:47 am
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: 263
- Joined: Sat May 27, 2006 6:46 am
- Location: Europe
Post
by PLC_ITA » Sat Nov 03, 2007 8:16 am
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: 48
- Joined: Fri Oct 19, 2007 6:35 am
- Location: romania
Post
by dante » Mon Nov 05, 2007 11:07 am
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: 263
- Joined: Sat May 27, 2006 6:46 am
- Location: Europe
Post
by PLC_ITA » Tue Nov 06, 2007 10:38 pm
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: 48
- Joined: Fri Oct 19, 2007 6:35 am
- Location: romania
Post
by dante » Wed Nov 07, 2007 7:38 am
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: 48
- Joined: Fri Oct 19, 2007 6:35 am
- Location: romania
Post
by dante » Wed Nov 07, 2007 7:40 am
...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: 263
- Joined: Sat May 27, 2006 6:46 am
- Location: Europe
Post
by PLC_ITA » Sat Nov 10, 2007 12:48 am
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 » Sat Nov 10, 2007 2:19 pm
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..