WinCC flex: log user administration

lauwerstim

Member
Join Date
Apr 2006
Location
Kontich
Posts
93
Is it possible to log the user administration in WinCC flexible.

I would like to know when a user logs in and out and also wich user logs in.
 
This can be achieved 2 ways.

1-Activate system alarms and log these, among all other system alarms you will find logins, failed logins, and logouts. User name and user grp will be displayed.

2-Scheduler > Event = User change.
Function 1 = TraceUserChange
Function 2 = GetUserName (tagOut is a string) This will output the username to a tag which you can log.
Function 3 = GetGroupNumber (TagOut is a int) This will output a number correspondant to the group the user is in. This is optional, but can be used to see if a user is locked.

Hope this helps.


EDIT: If you use the second method you can also display the current logged in user and his usergroup. Which is always nice to have.
 
Last edited:
Jeebs said:
This can be achieved 2 ways.

1-Activate system alarms and log these, among all other system alarms you will find logins, failed logins, and logouts. User name and user grp will be displayed.

2-Scheduler > Event = User change.
Function 1 = TraceUserChange
Function 2 = GetUserName (tagOut is a string) This will output the username to a tag which you can log.
Function 3 = GetGroupNumber (TagOut is a int) This will output a number correspondant to the group the user is in. This is optional, but can be used to see if a user is locked.

Hope this helps.

I would like to use your first solution, but it doesn't seem to work.

In the list I can see the passwordlist is imported succesfully but I don't see anything when I log on/off

Is there something else I need to do?

In ieder geval hartelijk dank voor de hulp ;)
 
JesperMP said:
You will have to add the function TraceUserChange to the User Change scheduler event. Only in this way is a user change included in the system alarms.

Works like a charm. Thanks a lot, both of you.

I really love this forum :p
 
JesperMP said:
You will have to add the function TraceUserChange to the User Change scheduler event. Only in this way is a user change included in the system alarms.

You beat me to it.

We use both methods, one for logging and one for username display on panel. So I never knew it really needed the TraceUserChange. Until now, when I built a test project form scratch to make it work.

Good to hear it's working...:D
 

Similar Topics

I have two HMI’s; one an MP277 10” touch and the other an older MP270 10” key. I am trying to get the alarm log (history of alarms) to display...
Replies
9
Views
7,669
Hello, I am currently in the middle of a project and looking to read data from a .csv file on a server. I need to read this data and get it...
Replies
5
Views
6,977
Ok, I think I have missed something. I thought an MP270 was able to log alarms to a PC hard drive. I thought I read it had been done before but...
Replies
1
Views
4,062
I'm logging on an MMC. But, from time to time I want to be able to copy (on button event) the logs to USB... Problem is, path = \\ or...
Replies
2
Views
4,209
ES: WinCC Flex 2005 Advanced / HMI: MP270B 6" TOUCH Log Name: is it filename ? or have file some secred name ? Storage location: Just 'File', no...
Replies
2
Views
6,346
Back
Top Bottom