8/1/2024 2:34 PM | |
Joined: 12/8/2017 Last visit: 8/8/2024 Posts: 4 Rating: (0) |
Hi,
I have just tried this and my PLC tag doesn't get populated. I am using a MTP1200 and V19up2. Has this been tried by anyone else? Thank you! ------------------------------------------------------------------------------------------ |
Last edited by: Moderator_Lan at: 08/02/2024 14:19:34New subject after splitting Last edited by: Moderator_Lan at: 08/07/2024 13:10:07Citation added |
|
8/4/2024 10:02 PM | |
Joined: 1/21/2013 Last visit: 11/19/2024 Posts: 3291 Rating: (512)
|
Hi, I have not tested the example provided by user rdoliveira, but it seems to me that he has made some mistakes. The script only checks if the username is one of the three hardcoded usernames. And it will not work in a scheduled task because "@UserName" is a local system tag. However, to check whether a user is in a particular role, you can use the "HasUserRole" method. Kind regards |
This contribution was helpful to1 thankful Users |
Follow us on