Siemens S7/WinCC/TIA v18: Customised error Msg when user login incorrect...

Mas01

Member
Join Date
Oct 2020
Location
Leicester, England
Posts
1,109
Hi, At the moment, If the user fails to provide a valid username/password, the image attached appears "Invalid password or user name. Logon has failed." (see pic).

This *seems* to be the HMI (KTP1200) default error message for Login Failure, but it only appears for 1-2 seconds - barely long enough to read it - before returning to the login screen.

I would like to create a text box on the login screen e.g. "Username/Password Invalid: Please try again", but I'm not sure how to do this.
This message box would be visible only when a login attempt was unsuccessful.

I do have a tag called UserGroupNumber, which is:
0=nobody is logged in
1=Operator logged in
2=Technician logged in
3=Admin logged in

Maybe I could use this?

Or is there a "built-in" tag which is e.g. 1=Login successful, 0=Login unsuccessful?

Thanks.

IMG_20230928_121713.jpg
 
Last edited:
EDIT: I noticed in my photo that the system error code is 260000.

I looked this up in the spec (see pic) and yes it means 'user login unsuccessful'.

Is there any way I can assign that error code to a Boolean tag in the code?

Thanks

error code 260000.png
 
You can then find the 'system events' tab under HMI alarms (*).
Find system event 26000, and add the desired function or script to the event 'incoming'.

*: I think that in previous versions of TIA you had to specify in the TIA settings that system events should be displayed. Maybe that is not necessary any more.
 
You can then find the 'system events' tab under HMI alarms (*).
Find system event 26000, and add the desired function or script to the event 'incoming'.

*: I think that in previous versions of TIA you had to specify in the TIA settings that system events should be displayed. Maybe that is not necessary any more.
Thanks for this.
I had to import the System Events (I just had a blank table initially).

I don't quite understand your sentence in bold.

Thanks

system events.png
 
You need to look in system events, but on a basic panel you can't (or I don't know how) assign anything other than the following triggers.

image_2023-09-28_163009428.png
 
Ah, yes, that's definitely an option!
As long as the alarm is displayed for long enough for it to be read, that's a pragmatic solution.
Good idea.


Yeah, I don't know why 2s is the default, it's a dumb amount of time.


The other option is to display the Alarm Buffer instead of Pending Alarms in the alarm view. This will show the last XXX alarms on the screen (varies according to tech specs).
 
The other option is to display the Alarm Buffer instead of Pending Alarms in the alarm view. This will show the last XXX alarms on the screen (varies according to tech specs).

That's another good idea...you mean like a dedicated "scrolling ribbon" of errors/alarms at the foot of screen? Unfortunately space is limited in this application, but I've seen that sort of thing on other HMI screens.
 

Similar Topics

I thought I was nearly finished on this TIA Portal/s7-1212C project (famous last words)... Up until now, I'd developed the PLC/HMI such that the...
Replies
10
Views
1,556
Hi, I have a HMI which is a KTP1200 Basic. Let's suppose USER03 is logged in. How do I create a simple "Lock Screen" that appears if the screen...
Replies
2
Views
673
On my HMI (KTP1200), I've got this button "Generate Report", which generates a report (CSV) when it's pressed. (see pic) While it's being...
Replies
1
Views
546
I’m a bit stuck on HMI (KTP-1200) programming… See the picture attached. The PASS or FAIL box should only appear when the toggle switch is...
Replies
7
Views
1,074
More help again please... See the picture. I want to make the rectangle visible when Mr_Zr_ToggleSwitch is 1, and make it invisible when 0...
Replies
5
Views
2,479
Back
Top Bottom