Need to add passwords

stangman2

Member
Join Date
Sep 2018
Location
VA
Posts
6
So I need to be able to give 10 people passwords to the machine and I need to make a log of when they are used. It's a Rockwell l71 processor and the program is in logix 5000. I know how I could do this in Siemens but trying to figure out how to do it in Rockwell.

I was thinking data type of string for the user name and an array for passwords. I need to store when the passwords are used for x amount of time or cycles

Looking for ideas
 
Password and user management systems are usually implemented in the HMI, or in conjunction with the PLC (like with WinCC/Step7), rather than being implemented entirely in the PLC itself.

What sort of user interface do you have ?

Do you need to administer the usernames and passwords centrally, like with a Windows authentication server ?
 
Password and user management systems are usually implemented in the HMI, or in conjunction with the PLC (like with WinCC/Step7), rather than being implemented entirely in the PLC itself.

What sort of user interface do you have ?

Do you need to administer the usernames and passwords centrally, like with a Windows authentication server ?

Noting that complicated. Basically just have a table of passwords stored in the PLC. If a password is entered that matches one of them enable a bit for x amount of time so they can open a door or something while it's enabled. That's the only thing this password will do. But I need to log the password used and the time

Interface is a RedLion HMI
 
Last edited:
So I need to be able to give 10 people passwords to the machine and I need to make a log of when they are used.
...
I need to store when the passwords are used for x amount of time or cycles

Yes, you can do password management in the PLC if you really want to. We had to do that back in the ancient days, when an MMI was a really dumb terminal, acting as remote I/O even, with no connection to the outside world.

You could create a string array (or type of string -- say limited to 10 chars) or DINT (if you want a PIN type password). Better make it 50 long so that it's future-proof.

Use the FSC instruction to find if the password entered matches one in the list. RES the FSC's control word when your ready to search. If the .FD bit gets set but the .DN is not, it means the instruction found a match. .POS gives the location in the array of which password was a hit.

The "logging" thing needs more design decisions, I think. It may be that instead of creating a string array, you create an array of a UDT that includes password, a timer, and a counter and perhaps some sort of "active" bit. When the FSC.FD bit is set, it latches the active bit, which enables logic for tracking the time / cycles the user has. When those are done, the active bit gets reset.

Or by "log" you want a history of which password was used when? Building a timestamp string in the PLC is easy. Storing thousands of records (UDT array of {Password, Timestamp} is again doable, but PLCs have fixed memory, so just how far back do you need to keep these records? Better to use a historian for that.

How you want to manage the passwords is a whole separate kettle of fish. Perhaps you're happy getting into the PLC to edit the array every time someone is hired, fired, or their password known so that they're getting blamed when someone else erred while using their credentials.

Ideally, each user would manage his/her own password, but that would imply adding a user name to the UDT so that the person knows it their password.

Do you have multiple HMIs so that two people can be logged on at the same time? If so, how do you enable features on HMI #1 when one user is logged onto it, but no one is on HMI #2 and so the features should be disabled there?

And so on.
 

Similar Topics

We are trying to poll data coming from a PLC for remote monitoring we have the IP address of the PLC and the default port number and the path is...
Replies
25
Views
580
I need to be able to add a + and - to the front of the position I type in see Picture like -135426 and +245680 I tried but couldn't get them to...
Replies
0
Views
1,070
Hello guys, PLC 5 guy here who recently took a course through automationtraining.ca for some basic understanding on how to navigate through...
Replies
4
Views
2,411
I need to add a servo motor to an existing system and do some electronic gearing. I have a Logix 5572 processor currently installed and I also...
Replies
27
Views
6,585
I am using a PLC5 with AI software, i have inputs in slots 0-6 and outputs in slots7,10,11&14. I need to add an input card but i am not sure...
Replies
7
Views
5,808
Back
Top Bottom