Saturday, April 23, 2011

Lock Unlock Door Using Mitsubishi PLC




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
X013 ; Door closure Sensor
X014 ; Door Exit Button

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


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


Reading Ladder PLC Programming for Lock Unlock Door using Mitsubishi PLC :

Step 1 :
Password Data using D20
a.If M500 = OFF (Always ON) Then D20 = 5214 (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) -> (= K1 D30) -> (MUL K1000 D0 D1)
b.Keypad is pressed second, multiplied by 100
(M0 = ON) -> (= K2 D30) -> (MUL K100 D0 D2)
c.Keypad is pressed three, multiplied by 10
(M0 = ON) -> (= K3 D30) -> (MUL K10 D0 D3)
d.Keypad is pressed four, multiplied by 1
(M0 = ON) -> (= K4 D30) -> (MUL K1 D0 D4)
e.Sum all the data
(M0 = ON) -> (ADD D1 D2 D10)
(M0 = ON) -> (ADD D10 D3 D11)
(M0 = ON) -> (ADD D11 D4 D12)

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 D30 = 4 (4 times the keypad is pressed) Then M2 = ON

Step 7 :
Correct Password And UnLock Door
7.1. Correct Password
a.If X012 = ON (ENTER key is pressed) Then PLS M4 = ON (ENTER Down)
b.If M4 = ON (ENTER Down) AND M2 = ON AND Value(D12 = D20) Then SET M3 = ON
7.2. UnLock Door by Correct Password
c.If M3 = ON AND M7 = OFF AND T0 = OFF Then M6 = ON (Hold UnLock)
7.3. UnLock Door by Door Exit Button
d.If X014 = ON (Door Exit Button) AND M7 = OFF AND T0 = OFF Then M6 = ON (Hold UnLock)
7.3. UnLock Door
e.If M6 = ON Then Y000 = ON (UnLock Door)

Step 8 :
Lock Door by Door position
a.If X013 = ON (Door Closure Sensor) Then PLS M7 = ON
b.If M7 = ON Then M6 = OFF
c.If M6 = OFF Then Y000 = OFF (Lock Door)

Step 9 :
Lock Door by Timer
a.If Y000 = ON AND X013 = ON (Door Closure Sensor) Then Activate the Timer T0
b.If T0 = ON Then M6 = OFF
c.If M6 = OFF Then Y000 = OFF (Lock Door)

Step 10 :
a.If M0 = ON AND M3 = ON (Correct Password) Then RST M3 (M3 = OFF)
b.If M7 = ON AND M3 = ON (Correct Password) Then RST M3 (M3 = OFF)
c.If T0 = ON AND M3 = ON (Correct Password) Then RST M3 (M3 = OFF)

Please Download Programming for GX Developer :
Lock Unlock Door Using Mitsubishi 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 !