TIA Portal v18: WinCC: NEXT button valid only when user logs in...

Mas01

Member
Join Date
Oct 2020
Location
Leicester, England
Posts
1,109
I've got this start screen where the user has to enter their username and password.

The username and password feature works fine.
However, I want to only allow the user to be able to select NEXT when the operator has successfully logged in.

How can I either "grey-out" or disable the NEXT button until after correct credentials have been entered?

I'm finding that the HMI/layout side of things is taking up quite a bit of my time, at the moment.

Thanks

LOGIN screen.png
 
Last edited:
Under the Security -> Runtime Security in the button properties, you can select what rights the user needs to be able to operate the button. Only works if you're using the built in user administration.


If you're rolling your own/doing it in the PLC, then you probably want to just make the button invisible with an animation.
 
Under the Security -> Runtime Security in the button properties, you can select what rights the user needs to be able to operate the button. Only works if you're using the built in user administration.


If you're rolling your own/doing it in the PLC, then you probably want to just make the button invisible with an animation.

Okay, mate - many thanks for this.
 
Okay, mate - many thanks for this.


🍻


Every so often, it's nice to answer a question with an answer like "oh yeah, use this check box over here" instead of typing out arcane instructions that involve a goat and a full moon and 2 laptops but it only works if one of them is yellow and no one knows why.
 
Under the Security -> Runtime Security in the button properties, you can select what rights the user needs to be able to operate the button. Only works if you're using the built in user administration.

Just a quick update, @mk42, to say this worked a treat.
Cheers
 
I used to manage visbility in WinCCFlexible by storing the user group in an variable. This was done by usung the scheduler (device settings). An action was set to excecute on change of user (logon or off) which fetched the groupnumber (GetGroupNumber) and stored it as an int.

I presume that you can still do somehting similar (I don't write much code these days)

Nick

Nick
 
I used to manage visbility in WinCCFlexible by storing the user group in an variable. This was done by usung the scheduler (device settings). An action was set to excecute on change of user (logon or off) which fetched the groupnumber (GetGroupNumber) and stored it as an int.

I presume that you can still do somehting similar (I don't write much code these days)

Nick

Nick

Interesting, I'll have a look into this.
GetGroupNumber is definitely in there - I've seen it when doing other tasks.
 
Interesting, I'll have a look into this.
GetGroupNumber is definitely in there - I've seen it when doing other tasks.

I had a quick play with TIA V17 and it is definately still there. Define an action in the scheduler to execute on change of user which is login or logout. In addition to getting the group, you can also get the username as a string to display somewhere as current user.

Nick
 

Similar Topics

hello every one. i'm new to tiaportal, i have created new project and HMI screen the program works fine with PLC-sim, but when i try to cntrol the...
Replies
9
Views
415
My PLC (S7-1200) and HMI (KTP-1200 Basic) has been delivered on-site to the customer. To be able to do "off-line" updates to the code, I am using...
Replies
4
Views
224
hi everyone. i hope you guys are doing great. i am trying to built communication between aveva intouch hmi 2023 and tia portal v18. i dont have...
Replies
1
Views
568
Hi, My PLC hardware has been delivered to customer site - many thanks for the invaluable help on this forum! I was looking into see if it's...
Replies
12
Views
2,512
Tia portal v18 issue,online icon greyed out but plc comms must be established as.blocks showing and no offline copy on laptop.
Replies
7
Views
1,107
Back
Top Bottom