How can I add a user role in a variable?
Hi eneryone:
I have a dude with the PG2 tool. How can i put one user role in a toggle button that only the Engineering people in a admin or engineering account can put on, but the Operators in a operation account just can watch the status?
The toggle button force one variable in the logic, bypassing one PCC_threshold_ AND3 condition.
I hope you can help me.
Best regards.
Answers
I would try to solve this using OPC permission, not PG2.
If the PLC is AC 800M, the Property Attribute Overide aspect can be used to change a property's permission. This works, even for object types in protected libraries.
If the user does not have the permission required to write, the pushbutton will automatically become disabled in process graphics.
Another (to me less desirable option) would be to read the user's set of roles using the function made available in later 5.1 versions (google "abb aks user role pg2" and I hope you find a thread with more info) and use some string comparison on the button's enable property to enable if some specific role is found in the list of roles returned by the function.
Add new comment