Send User Info To PLC

kylebg

Member
Join Date
Apr 2016
Location
Sault Sainte Marie, MI
Posts
2
I am currently using FactoryTalk View Studio and RSLogix5000 for a college PLC project and am wondering if there is a way to send information from FactoryTalk to the PLC telling it what user is logged into the PanelView.

I have a push button I would only like to work if certain user groups are logged in and am stumped as to how I can make this work.

Thanks

Kyle
 
Last edited:
Sorry, I should have been a little more specific. I do know how to use the visibility to only display buttons on PanelView for certain user groups, however the push button I am trying to restrict is on a physical control panel. Basically, the button starts an automatic process, and you have to be logged in to start the process.

I was hoping there was a way to tell the PLC what user is logged into the system and update a bit based on it, and make it a condition for the process to start.
 
One method that I have seen is to look at a password/numeric input that was entered, and compare it to a valid number to allow your process to start in the PLC
 
You can run a macro when a user logs in or out. That might be a good place to start looking. It's been a while since I used that functionality, so I can't remember if you can assign a unique macro for each user, or if you can only assign one macro to run when any user logs in or out. If you can assign unique macro's - easy. You can write a different code to the PLC for each user, and you'll know straight away who's logged in. If not, you're going to have to get a bit more creative. Perhaps on login you can use a macro to write the username to a PLC tag. Or perhaps you can use the macro to conditionally set a bit based on user access - e.g. if CurrentUserHasCode(a) then set a bit in the PLC, otherwise do nothing. And then a macro to reset that bit when the user logs out.

It's been a while since I played around in that area, but you might be able to make something work that way.
 
I do something similar on Factory Talk SE, when a user puts a valve or piece of equipment into manual i write the username to the PLC tag.

Using a button:
Code:
&Set {[SIM]#1.Mode} 1;&Set {[SIM]#1.Manual_ChangedBy} CurrentUserName(  )

You could do something similar when the user opens the page or use on the button to set temporary start bit, then check the username & set the actual start bit if ok?
 
We do it similar to ASF.

First set up a macro for each user level. In our case we have "default" plus two other levels with greater access. Each macro can set a PLC tag e.g. {[PLC]user} is 0, for default then 1, 2 etc. for higher level access.

Secondly in Runtime Security add user Ids which run login and logout macros. All logouts run the "default" macro and each login runs the relevant user level macro.
 

Similar Topics

So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
427
can the slc500 5/05 send a email and text over Ethernet ?
Replies
3
Views
185
Hello Friends I have took the sample program from AB webpage and modified, but I can only send 127 chars...
Replies
1
Views
180
I have followed the videos & still having issues getting the email out. Does anyone have knowledge or has sent an email notification via gp pro ex?
Replies
0
Views
193
Hi there! I have a question to a (maybe) simple issue that I hope some of you can help me with. I''ve made an FC containing the TCON, TDISCON...
Replies
13
Views
3,189
Back
Top Bottom