Saturday, May 7, 2011

Lock Unlock Door Using Allen Bradley PLC




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
I:0/11 ; Door closure Sensor
I:0/12 ; Door Exit Button

OUTPUT PLC :
O:0/0 ; Output to Relay Coil (Used for Electromagetic Lock and Green LED)


Download PDF File:
Lock Unlock Door Using Allen Bradley PLC(.pdf)


Reading Ladder PLC Programming for Lock Unlock Door using Allen Bradley PLC :

Step 1 :
Password Data using N7:20
a.N7:20 = 5214 (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 C5:0 for Count data storage
a.If B3:0/0 = ON Then Counter C5:0/CU = ON (Count Up)

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 pressed -> 5 multiplied by 1000 = 5000
second : Numeric 2 pressed -> 2 multiplied by 100 = 200
three : Numeric 1 pressed -> 1 multiplied by 10 = 10
four : Numeric 4 pressed -> 4 multiplied by 1 = 4
Sum all the data : 5000 + 200 + 10 + 4 = 5214
So,Password from the keypad is 5214

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 And UnLock Door
7.1. Correct Password
a.If I:0/10 = ON (ENTER key is pressed) AND OSR B3:31/14 = ON Then B3:0/4 = ON (ENTER Down with One Shot Rising)
b.If B3:0/4 = ON AND B3:0/2 = ON AND Value(N7:20 = N7:12) Then OTL B3:0/3 = ON (correct password)
7.2. UnLock Door by Correct Password
c.If B3:0/3 = ON AND B3:0/7 = OFF AND T4:0/DN = OFF Then B3:0/6 = ON (Hold UnLock)
7.3. UnLock Door by Door Exit Button
d.If I:0/12 = ON (Door Exit Button) AND B3:0/7 = OFF AND T4:0/DN = OFF Then B3:0/6 = ON (Hold UnLock)
7.3. UnLock Door
e.If B3:0/6 = ON (Unlock) Then O:0/0 = ON (Relay for Lock)

Step 8 :
Lock Door by Door position
a.If I:0/11 = ON (Door Closure Sensor) Then OSR B3:0/7 = ON
b.If B3:0/7 = ON Then B3:0/6 = OFF (Unlock)
c.If B3:0/6 = OFF (Unlock) Then O:0/0 = OFF (Relay for Lock)

Step 9 :
Lock Door by Timer
a.If O:0/0 = ON AND I:0/11 = ON (Door Closure Sensor) Then Activate the Timer T4:0
b.If T4:0/DN = ON Then B3:0/6 = OFF (Unlock)
c.If B3:0/6 = OFF (Unlock) Then O:0/0 = OFF (Lock Door)

Step 10 :
a.If B3:0/0 = ON AND B3:0/3 = ON (Correct Password) Then OTU B3:0/3 (B3:0/3 = OFF)
b.If B3:0/7 = ON AND B3:0/3 = ON (Correct Password) Then OTU B3:0/3 (B3:0/3 = OFF)
c.If T4:0/DN = ON AND B3:0/3 = ON (Correct Password) Then OTU B3:0/3 (B3:0/3 = OFF)

Please Download Programming for RSLogix Micro Starter Lite :
Lock Unlock Door Using Allen Bradley PLC

See : Lock Unlock Door


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