- HMI Model: MT8092XE
- EasyBuilder Pro Version: 6.08.01.350
- Serial Number or supplier:
Can you please get me pointed in the right direction…I would like to record when the time and date stamp when anytime there is a successful log in and time stamp only when there is a log out. I have the system set to automatically logout the user after 15 minutes. I am using the Login by Index (screen 70) to log in and a UAC command=3 (on a push button) to log out. I’m just not sure the best way to create the logic and chart the data. Any suggestions and or links would be appreciated.
I would recommend that you use the “Operation Log” to meet this requirement. To implement this feature within your project, please perform the following:
- Within the “Data/History” tab click on “Operation Log”:
- Within the following popup click “Enable operation log function”:
- At the top, enable the operation log for “User login/logout”:
- Configure the control address and any other desired functions:
- Click “Ok” when finished.
- If you would like, create an “Operation log view” object to view updates to the log:
- The view object display user login and logout actions:
Note: At 14:27:02 I logged in as Admin and at 14:28:04 I was logged out automatically.
For more information about the operation log, please see the “Operation Log” demo project: Link
Thank you for the quick reply…I can’t locate a Global folder anywhere in my list as you show…see attached:
I tried experimenting and used window 70 variables but have several issues. User ID never is displayed (recorded)…I assumed it to be variable OL_0 in window 70? I know I’m close and would appreciate your comments.
I have been experimenting with the Operation Log link you supplied an basically get the similar results as I do on my HMI. It never records the User Name at log in but does record the User name at log out. If you log the User in twice in a row or after logging in press the Log In button again it will then record the User name (see second picture below). Something else I found with the original Operation Log in the link (and on my HMI too) when condensed, does show the column for User if you scroll over, but when expanded there is no User column displayed even when you scroll all the way to the right…Thanks
Also, if I have the system set to do an automatic logout after a period of time, I don’t believe that would record the User as being logged out.
Just to point out information about the “User login/ logout” option within the operation log.
This feature was added to EasyBuilder Pro V6.07.02 for CMT/CMT-X units. It is not available for non-CMT units, such as MT8092X (our legacy unit)
EasyBuilder Pro V6.07.02.226
User login / logout activities can be recorded
Understood, and that is why I was asking Weintek a possible way to achieve my goal (before I started) to log (record) User Login & Logout. I stated which HMI model I was using and it was recommended that I use the Operation Log. So now that you have stated that it can’t be achieved by using the Operation Log will you suggest another way to solve this challenge or are you saying that it can’t be done? Thanks
My apologies, as @TimWusa mentioned the feature that I described is available on cMT and cMT-X HMIs. To perform a similar function on an MT8092XE you may need to utilize the “Event (Alarm) Log”. I will post an example shortly unless someone else responds before me.
In your case, it can’t be achieved by using operation log, but an alternative method is to utilize Event Log and System tag LW-10754 along with PLC Control objects and macros.
For more information, please look at this demo project Demo
To check if a user is logged in using the “Event (Alarm) Log”, please perform the following:
- Create an event to monitor the status of LW-9222. To determine if a user has been logged in please configure the following condition:
- Click on the “message” tab and change the “Multi-watch” value to ‘1’:
- Within the “Multi-watch” settings, configure the following:
- Click “Ok” when finished and use the “Multi-watch” syntax to define the following message:
Note: The syntax %(WATCH#)s is the the multi-watch syntax for string values. Where the # should be replaced with the multi watch value.
- Click “Ok” when finished.
- Create a copy of this alarm with the following configuration:
- Change the message to indicate a logout:
- Click “Ok” when finished and navigate to the “Login & Logout” window:
- Replace the drop-down list with an ASCII object with the following configuration:
- Reconfigure the command value within the “Login” button to ‘1’:
Note: In order for this solution to work, each user must have a security class (i.e. Class A) enabled or a “login” will not be detected.
That worked perfect even with the automatic sign-out…Outstanding support as always!
Just saw this response now Tim. I have downloaded and reviewing now…thank you!
A perfect solution, all working. I like that you can still use the Drop Down User List and display the Login/Logout events separate from the alarms (at least for this application). Thank so much.