Home / FactoryTalk Optix / Security
Description
User management in FactoryTalk Optix.
Learn how to tell the PLC which user and group is logged in FT Optix.
Contributed by Xavier Florensa – YouTube – LinkedIn – GitHub
Transcript
(00:01) hi everybody in this video I will show you a use case working with uh users in Factory tol Optics uh in some cases you make the user management and you would like the PC to know which user is logged so let’s make a little demo here we have the user interface here in Factory T Optics and here we have the PLC with our user and the group which is belonging to so as soon as I lock for example I choose user two I login and I update so as we can see the user and the group are updated on the PLC same way if I change of user and I log in as soon as
(00:56) I update you see the new values here let’s see how to do this and I hide also the PLC uh first of all you have to introduce a login form like this one in your main page this is done easily if you follow these instructions like creating a loin form a login form following the steps you will be able to build it and on the other hand you have to create on security uh your users and groups as we have seen on the example then you you can also prepare your communication drivers to the PLC taxs as we have seen on the PLC user and
(01:59) group and also you need for example for instance a button you click this button you’re executing uh a method just to update let’s look at this example uh I have added uh runtime net Logics so this will be done in C if we open making click here we open the code and we see the application where first of all we see the the user in the session can uh be obtain it this way and then you also have the group the group you can get with this sentence okay then I also use
(03:04) two labels like label two and label four in order to fill in with the user and group information this is done here for example when you start when you start there are no group because the anonymous user has no group but then each time you hit on the button to make the update this um routine like ATA is executed again uh getting the user filling the username in label two and filling the user group in label four and since we have label two and label four um well we have the variables like like PLC user and PLC group we have these
(04:06) [Music] variables uh linked this one link to the PLC tax and this is how it’s done you can find the code in GitHub you will see on the comments of this video so this is all thank you very much
Tutorial List
