Saturday, March 5, 2011

Password Using PLC Mitsubishi




PLC Type FX, Name Input / Output PLC :

INPUT PLC :
X000 ; Numeric 0 from KeyPad
X001 ; Numeric 1 from KeyPad
X002 ; Numeric 2 from KeyPad
X003 ; Numeric 3 from KeyPad
X004 ; Numeric 4 from KeyPad
X005 ; Numeric 5 from KeyPad
X006 ; Numeric 6 from KeyPad
X007 ; Numeric 7 from KeyPad
X010 ; Numeric 8 from KeyPad
X011 ; Numeric 9 from KeyPad
X012 ; ENTER Key from KeyPad

OUTPUT PLC :
Y000 ; Output to Green Light for Correct Password
Y001 ; Output to RRed Light for Wrong Password


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


Reading Ladder PLC Programming for Password using PLC Mitsubishi :

Step 1 :
Password Data using D20
a.If M500 = 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 X000 = ON (Numeric 0) Then PLS M0 = ON AND D0 = 0
b.If X001 = ON (Numeric 1) Then PLS M0 = ON AND D0 = 1
c.If X002 = ON (Numeric 2) Then PLS M0 = ON AND D0 = 2
d.If X003 = ON (Numeric 3) Then PLS M0 = ON AND D0 = 3
e.If X004 = ON (Numeric 4) Then PLS M0 = ON AND D0 = 4
f.If X005 = ON (Numeric 5) Then PLS M0 = ON AND D0 = 5
g.If X006 = ON (Numeric 6) Then PLS M0 = ON AND D0 = 6
h.If X007 = ON (Numeric 7) Then PLS M0 = ON AND D0 = 7
i.If X010 = ON (Numeric 8) Then PLS M0 = ON AND D0 = 8
j.If X011 = ON (Numeric 9) Then PLS M0 = ON AND D0 = 9
Note : PLS = 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 M0 = ON Then INC D30 (Increment target device value)

Step 4 :
Enter Released for Value D30 = 0 (Count data RESET)
a.If X012 = ON (ENTER key is pressed) Then PLF M1 = ON (Single-scan of target relay ON at falling edge of previous state)
b.If M1 = 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
(M0 = ON) AND (= K1 D30) AND (MUL K1000 D0 D1)
b.Keypad is pressed second, multiplied by 100
(M0 = ON) AND (= K2 D30) AND (MUL K100 D0 D2)
c.Keypad is pressed three, multiplied by 10
(M0 = ON) AND (= K3 D30) AND (MUL K10 D0 D3)
d.Keypad is pressed four, multiplied by 1
(M0 = ON) AND (= K4 D30) AND (MUL K1 D0 D4)
e.Sum all the data
(M0 = ON) AND (ADD D1 D2 D10)
(M0 = ON) (ADD D10 D3 D11)
(M0 = ON) (ADD D11 D4 D12)

Example :
Keypad is pressed :
first : Numeric 5 => 5 multiplied by 1000 = 5000
second : Numeric 8 => 8 multiplied by 100 = 800
three : Numeric 3 => 3 multiplied by 10 = 30
four : Numeric 6 => 6 multiplied by 1 = 6
Sum all the data = 5000 + 800 + 30 + 6 = 5836
So,Password from the keypad is 5836

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

Step 7 :
Correct Password
a.If X012 = ON (ENTER key is pressed) AND M2 = ON AND Value(D12 = D20) Then SET M3 = ON
b.If M3 = ON Then Y000 = ON (Correct Lamp)

Step 8 :
Wrong Password and Not 4 digits
a.If X012 = ON (ENTER key is pressed) AND M2 = ON AND Value(D12 not same D20) Then SET M4 = ON
b.If X012 = ON (ENTER key is pressed) AND M2 = OFF AND M3 = OFF AND M4 = OFF Then SET M5 = ON (Not 4 digits)
c.If M4 = ON OR M5 = ON Then Y001 = ON (Wrong Lamp)

Step 9 :
Green Light = OFF OR Red Light = OFF
a.If M0 = ON AND M3 = ON OR M4 = ON OR M5 = ON Then RST M3 (M3 = OFF) AND RST M4 (M4 = OFF) AND RST M5 (M5 = OFF)

Please Download Programming for GX Developer :
Password Using PLC Mitsubishi

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