Friday, April 1, 2011

Password Using PLC Allen Bradley




PLC Type 1761 MicroLogix 1000,
Name Input / Output PLC :


INPUT PLC :
I:0/0 ; Numeric 0 from KeyPad
I:0/1 ; Numeric 1 from KeyPad
I:0/2 ; Numeric 2 from KeyPad
I:0/3 ; Numeric 3 from KeyPad
I:0/4 ; Numeric 4 from KeyPad
I:0/5 ; Numeric 5 from KeyPad
I:0/6 ; Numeric 6 from KeyPad
I:0/7 ; Numeric 7 from KeyPad
I:0/8 ; Numeric 8 from KeyPad
I:0/9 ; Numeric 9 from KeyPad
I:0/10 ; ENTER Key from KeyPad

OUTPUT PLC :
O:0/0 ; Output to Green Light for Correct Password
O:0/1 ; Output to RRed Light for Wrong Password


Download PDF File:
password using plc allen bradley(.pdf)


Reading Ladder PLC Programming for Password using PLC Allen Bradley :

Step 1 :
Password Data using N7:20
a.N7:20 = 5500 (can be modified and 4 Digits Decimal)

Step 2 :
Numeric 0 to 9 is pressed
Using N7:0 for temporary data storage
a.If I:0/0 = ON (Numeric 0) Then OSR B3:0/0 = ON AND N7:0 = 0
b.If I:0/1 = ON (Numeric 1) Then OSR B3:0/0 = ON AND N7:0 = 1
c.If I:0/2 = ON (Numeric 2) Then OSR B3:0/0 = ON AND N7:0 = 2
d.If I:0/3 = ON (Numeric 3) Then OSR B3:0/0 = ON AND N7:0 = 3
e.If I:0/4 = ON (Numeric 4) Then OSR B3:0/0 = ON AND N7:0 = 4
f.If I:0/5 = ON (Numeric 5) Then OSR B3:0/0 = ON AND N7:0 = 5
g.If I:0/6 = ON (Numeric 6) Then OSR B3:0/0 = ON AND N7:0 = 6
h.If I:0/7 = ON (Numeric 7) Then OSR B3:0/0 = ON AND N7:0 = 7
i.If I:0/8 = ON (Numeric 8) Then OSR B3:0/0 = ON AND N7:0 = 8
j.If I:0/9 = ON (Numeric 9) Then OSR B3:0/0 = ON AND N7:0 = 9
Note : OSR = One Shot Rising

Step 3 :
Count the number keypad is pressed
Using Counter C5:0 for Count data
a.If B3:0/0 = ON Then Counter C5:0 = ON (Count Up = ON)

Step 4 :
Enter Released for Reset Counter C5:0 (Count data RESET)
a.If I:0/10 = OFF (ENTER key is Released) AND OSR B3:0/1 = ON Then RES C5:0 = ON (C5:0.ACC = 0)

Step 5 :
Password from the KeyPad
Using N7:12 for Password from the KeyPad
a.Keypad is pressed first, multiplied by 1000
If B3:0/0 = ON AND C5:0.ACC = 1 then N7:0 MUL 1000 = N7:1
b.Keypad is pressed second, multiplied by 100
If B3:0/0 = ON AND C5:0.ACC = 2 then N7:0 MUL 100 = N7:2
c.Keypad is pressed three, multiplied by 10
If B3:0/0 = ON AND C5:0.ACC = 3 then N7:0 MUL 10 = N7:3
d.Keypad is pressed four, multiplied by 1
If B3:0/0 = ON AND C5:0.ACC = 4 then N7:0 MUL 1 = N7:4
e.Sum all the data
N7:1 ADD N7:2 = N7:10
N7:10 ADD N7:3 = N7:11
N7:11 ADD N7:4 =N7:12

Example :
Keypad is pressed :
first : Numeric 5 => 9 multiplied by 1000 = 5000
second : Numeric 5 => 6 multiplied by 100 = 500
three : Numeric 0 => 5 multiplied by 10 = 00
four : Numeric 0 => 7 multiplied by 1 = 0
Sum all the data = 5000 + 500 + 00 + 0 = 5500
So,Password from the keypad is 5500

Step 6 :
Check the number of digits
a.If C5:0.ACC = 4 (4 times the keypad is pressed) Then B3:0/2 = ON

Step 7 :
Correct Password
a.If I:0/10 = ON (ENTER key is pressed) AND B3:0/2 = ON AND Value(N7:20 = N7:12) Then OTL B3:0/3 = ON
b.If B3:0/3 = ON Then O:0/0 = ON (Correct Lamp)

Step 8 :
Wrong Password and Not 4 digits
a.If I:0/10 = ON (ENTER key is pressed) AND B3:0/2 = ON AND Value(N7:20 not same N7:12) Then OTL B3:0/4 = ON
b.If I:0/10 = ON (ENTER key is pressed) AND B3:0/2 = OFF AND B3:0/3 = OFF AND B3:0/4 = OFF Then OTL B3:0/5 = ON (Not 4 digits)
c.If B3:0/4 = ON OR B3:0/5 = ON Then O:0/1 = ON (Wrong Lamp)

Step 9 :
Green Light = OFF OR Red Light = OFF
a.If B3:0/0 = ON AND B3:0/3 = ON OR B3:0/4 = ON OR B3:0/5 = ON Then OTU B3:0/3 (B3:0/3 = OFF) AND OTU B3:0/4 (B3:0/4 = OFF) AND OTU B3:0/5 (B3:0/5 = OFF)

Please Download Programming for RSLogix Micro Starter Lite :
Password Using PLC Allen Bradley

See : Password PLC


Labels:


Newer Post Older Post Home

You may also like these ebook:

Get Free PLC eBook directly sent to your email,
and email subscription to program-plc.blogspot.com




We hate SPAM. Your information is never sold or shared with anyone.

Your Email Will Be 100% Secured !

Your email is stored safely on Google FeedBurner