Factory Talk View SE - Button only for Engineers

saeqsae

Member
Join Date
Jul 2019
Location
Concepcion
Posts
45
Hi all, i tried to created a button which is visible only when the user "Engineer" is logged.

First, i created a macro with the following expression "If CurrentUserName( ) == Engineer Then &Set LOGIN_USER_INGE 1 Else &Set LOGIN_USER_INGE 0 Endif"

After that i created the tag called "LOGIN_USER_INGE" and i used this tag for the visibility.

Finally i put the macro of the startup of my display with the button, but i have some problems with the expression. The button doesnt appear maybe the tag is always off. There is another way to do this or my macro have syntax problems?

Thanks for your help
 
It's been some time since I used FT, however What I did some years ago I believe was that level entry gave a number representing the level entry i.e. operator = 1 engineer = 2 etc. I used the tag in the plc to equal a bit for each level for processing some code and this could be read back in the HMI to enable a visible object, also can you not set the button only to be active at certain levels? even if it's visible all the time.
 
In FT View SE, each user is assigned access to various areas, in the security set up, designated by Letters such as A, B, C.

Then you would use this: CurrentUserHasCode( E )
in your Animation

I used E for Engineer but it could be any letter defined in your security.
 
Yeah you are adding an extra layer of complexity with the use of a tag.

You can base the visibility directly on the user name or on a security code. I always prefer to use a security code as it would make future changes much easier.

Be aware that the user name is a string. So the case must match and it must be in quotes. "Engineer" is different from "ENGINEER". Your visibility could be set up as:

CurrentUserName( ) == "Engineer"

or

CurrrentUserHasCode(E) or CurrrentUserHasCode(ABCDE) if multiple codes

OG
 

Similar Topics

Hi all, Attached below is an example of what is happening to our existing SCADA. It seems after patching some Rockwell Software that I thought...
Replies
9
Views
263
The client has an application that when communication between the PLC and the Factory Talk VIEW supervisory fails, the object in the supervisory...
Replies
5
Views
226
Hello all, I am looking for a way to have a user get logged out after an X amount of time because to default so that user privilages are no...
Replies
4
Views
507
Hello everybody. I was wondering if there is a way in FTVIEW Studio to close ) view after x min without interaction . My issue is the following...
Replies
2
Views
330
Is there a way to choose the base font in ME. Text in the Arial Unicode MS which is the default font on my FTVS doesnt show up properly on a...
Replies
1
Views
620
Back
Top Bottom