Sunday, March 20, 2011

Password Using PLC Omron




PLC Type CP1L, Name Input / Output PLC :

INPUT PLC :
0.00 ; Numeric 0 from KeyPad
0.01 ; Numeric 1 from KeyPad
0.02 ; Numeric 2 from KeyPad
0.03 ; Numeric 3 from KeyPad
0.04 ; Numeric 4 from KeyPad
0.05 ; Numeric 5 from KeyPad
0.06 ; Numeric 6 from KeyPad
0.07 ; Numeric 7 from KeyPad
0.08 ; Numeric 8 from KeyPad
0.09 ; Numeric 9 from KeyPad
0.10 ; ENTER Key from KeyPad

OUTPUT PLC :
100.00 ; Output to Green Light for Correct Password
100.01 ; Output to RRed Light for Wrong Password


Download PDF File:
password using plc omron(.pdf)


Reading Ladder PLC Programming for Password using PLC Omron :

Step 1 :
Password Data using D20
a.If 11.00 = OFF (Always ON) Then D20 = 5500 (can be modified and 4 Digits Decimal)

Step 2 :
Numeric 0 to 9 is pressed
Using D0 for temporary data storage
a.If 0.00 = ON (Numeric 0) Then DIFU 10.00 = ON AND D0 = 0
b.If 0.01 = ON (Numeric 1) Then DIFU 10.00 = ON AND D0 = 1
c.If 0.02 = ON (Numeric 2) Then DIFU 10.00 = ON AND D0 = 2
d.If 0.03 = ON (Numeric 3) Then DIFU 10.00 = ON AND D0 = 3
e.If 0.04 = ON (Numeric 4) Then DIFU 10.00 = ON AND D0 = 4
f.If 0.05 = ON (Numeric 5) Then DIFU 10.00 = ON AND D0 = 5
g.If 0.06 = ON (Numeric 6) Then DIFU 10.00 = ON AND D0 = 6
h.If 0.07 = ON (Numeric 7) Then DIFU 10.00 = ON AND D0 = 7
i.If 0.08 = ON (Numeric 8) Then DIFU 10.00 = ON AND D0 = 8
j.If 0.09 = ON (Numeric 9) Then DIFU 10.00 = ON AND D0 = 9
Note : DIFU = Single-scan of target relay ON at rising edge of previous state

Step 3 :
Count the number keypad is pressed
Using D30 for Count data storage
a.If 10.00 = ON Then ++(590) D30 (Binary Increment)

Step 4 :
Enter Released for Value D30 = 0 (Count data RESET)
a.If 0.10 = ON (ENTER key is pressed) Then DIFD 10.01 = ON (Single-scan of target relay ON at falling edge of previous state)
b.If 10.01 = ON Then Value D30 = 0

Step 5 :
Password from the KeyPad
Using D12 for Password from the KeyPad
a.Keypad is pressed first, multiplied by 1000
(10.00 = ON) AND (= &1 D30) AND (*U &1000 D0 D1)
b.Keypad is pressed second, multiplied by 100
(10.00 = ON) AND (= &2 D30) AND (*U &100 D0 D2)
c.Keypad is pressed three, multiplied by 10
(10.00 = ON) AND (= &3 D30) AND (*U &10 D0 D3)
d.Keypad is pressed four, multiplied by 1
(10.00 = ON) AND (= &4 D30) AND (*U &1 D0 D4)
e.Sum all the data
(10.00 = ON) AND (+ D1 D2 D10)
(10.00 = ON) AND (+ D10 D3 D11)
(10.00 = ON) AND (+ D11 D4 D12)

Example :
Keypad is pressed :
first : Numeric 4 => 4 multiplied by 1000 = 4000
second : Numeric 4 => 4 multiplied by 100 = 400
three : Numeric 2 => 2 multiplied by 10 = 20
four : Numeric 2 => 2 multiplied by 1 = 2
Sum all the data = 4000 + 400 + 20 + 2 = 4422
So,Password from the keypad is 4422

Step 6 :
Check the number of digits
a.If D30 = 4 (4 times the keypad is pressed) Then 10.02 = ON

Step 7 :
Correct Password
a.If 0.10 = ON (ENTER key is pressed) AND 10.02 = ON AND Value(D12 = D20) Then SET 10.03 = ON
b.If 10.03 = ON Then 100.00 = ON (Correct Lamp)

Step 8 :
Wrong Password and Not 4 digits
a.If 0.10 = ON (ENTER key is pressed) AND 10.02 = ON AND Value(D12 not same D20) Then SET 10.04 = ON
b.If 0.10 = ON (ENTER key is pressed) AND 10.02 = OFF AND 10.03 = OFF AND 10.04 = OFF Then SET 10.05 = ON (Not 4 digits)
c.If 10.04 = ON OR 10.05 = ON Then 100.01 = ON (Wrong Lamp)

Step 9 :
Green Light = OFF OR Red Light = OFF
a.If 10.00 = ON AND 10.03 = ON OR 10.04 = ON OR 10.05 = ON Then RSET 10.03 (10.03 = OFF) AND RSET 10.04 (10.04 = OFF) AND RSET 10.05 (10.05 = OFF)

Please Download Programming for CX-Programmer version 9.1 :
Password Using PLC Omron

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