Sunday, June 20, 2010

Timer Countdown with PLC Mitsubishi




PLC Type FX-Mitsubishi , Name Input / Output PLC :

INPUT PLC :
X000 ; Toggle Switch ( ON - OFF ).

OUTPUT PLC :
Y000 ; OUT0 or Seven Segment A of Digit 1.
Y001 ; OUT1 or Seven Segment B of Digit 1.
Y002 ; OUT2 or Seven Segment C of Digit 1.
Y003 ; OUT3 or Seven Segment D of Digit 1.
Y004 ; OUT4 or Seven Segment E of Digit 1.
Y005 ; OUT5 or Seven Segment F of Digit 1.
Y006 ; OUT6 or Seven Segment G of Digit 1.
Y007 ; OUT7 or Seven Segment A of Digit 2.
Y010 ; OUT8 or Seven Segment B of Digit 2.
Y011 ; OUT9 or Seven Segment C of Digit 2.
Y012 ; OUT10 or Seven Segment D of Digit 2.
Y013 ; OUT11 or Seven Segment E of Digit 2.
Y014 ; OUT12 or Seven Segment F of Digit 2.
Y015 ; OUT12 or Seven Segment G of Digit 2.
Y016 ; Lamp to signal countdown completion.


Download PDF File:
Timer Countdown using PLC Mitsubishi(.pdf)


Reading Ladder PLC Programming for Timer Countdown with PLC Mitsubishi :

Step 1 :
Setting Timer T0 = 1 Second
Decrements the memory data specified by the operand by 1
a.If X000 = ON And M32 = OFF And T0 = ON Then Decrement D0 ( DECP / Decrement Pulse).

Step 2 :
a.If X000 = OFF Then D0 = 30 ( MOV K30 D0 ).
b.If D0 = 0 Then M32 = ON And Y016 = ON.

Step 3 : Determine digit1 and digit2
Digit1 : 0 -- 1 -- 2 -- 3 -- 4 -- 5 -- 6 -- 7 -- 8 -- 9
Digit2 : 00 -- 10 -- 20 -- 30 -- 40 -- 50 -- 60 -- 70 -- 80 -- 90
a.Convert to BCD (BCD D0 D100) --> AND with Hexa 000F (WAND D100 H0F D101) --> Convert to Binary (BIN D101 D1)
b.Convert to BCD (BCD D0 D103) --> AND with Hexa 0F0 (WAND D103 H0F0 D104) --> Convert to Binary (BIN D104 D2)

Example : Value D0 = 29
-->If D0 = 29 Then D1 = 9 And D2 = 20.

Step 4 : digit1
a.If D1 = 0 Then M0 = ON.
b.If D1 = 1 Then M1 = ON.
c.If D1 = 2 Then M2 = ON.
d.If D1 = 3 Then M3 = ON.
e.If D1 = 4 Then M4 = ON.
f.If D1 = 5 Then M5 = ON.
g.If D1 = 6 Then M6 = ON.
h.If D1 = 7 Then M7 = ON.
i.If D1 = 8 Then M8 = ON.
j.If D1 = 9 Then M9 = ON.

Step 5 : digit2
a.If D2 = 00 Then M10 = ON.
b.If D2 = 10 Then M11 = ON.
c.If D2 = 20 Then M12 = ON.
d.If D2 = 30 Then M13 = ON.
e.If D2 = 40 Then M14 = ON.
f.If D2 = 50 Then M15 = ON.
g.If D2 = 60 Then M16 = ON.
h.If D2 = 70 Then M17 = ON.
i.If D2 = 80 Then M18 = ON.
j.If D2 = 90 Then M19 = ON.

Step 6 : Output digit1
a.If M0 = ON Then Y000= ON And Y001 = ON And Y002 = ON And Y003 = ON And Y004 = ON And Y005 = ON.
b.If M1 = ON Then Y001 = ON And Y002 = ON.
c.If M2 = ON Then Y000= ON And Y001 = ON And Y003 = ON And Y004 = ON And Y006 = ON.
d.If M3 = ON Then Y000= ON And Y001 = ON And Y002 = ON And Y003 = ON And Y006 = ON.
e.If M4 = ON Then Y001 = ON And Y002 = ON And Y005 = ON And Y006 = ON.
f.If M5 = ON Then Y000= ON And Y002 = ON And Y003 = ON And Y005 = ON And Y006 = ON.
g.If M6 = ON Then Y000= ON And Y002 = ON And Y003 = ON And Y004 = ON And Y005 = ON And Y006 = ON.
h.If M7 = ON Then Y000= ON And Y001 = ON And Y002 = ON.
i.If M8 = ON Then Y000= ON And Y001 = ON And Y002 = ON And Y003 = ON And Y004 = ON And Y005 = ON And Y006 = ON.
j.If M9 = ON Then Y000= ON And Y001 = ON And Y002 = ON And Y003 = ON And Y005 = ON And Y006 = ON.

Step 7 : Output digit2
a.If M10 = ON Then Y007 = ON And Y010 = ON And Y011 = ON And Y012 = ON And Y013 = ON And Y014 = ON.
b.If M11 = ON Then Y010 = ON And Y011 = ON.
c.If M12 = ON Then Y007 = ON And Y010 = ON And Y012 = ON And Y013 = ON And Y015 = ON.
d.If M13 = ON Then Y007 = ON And Y010 = ON And Y011 = ON And Y012 = ON And Y015 = ON.
e.If M14 = ON Then Y010 = ON And Y011 = ON And Y014 = ON And Y015 = ON.
f.If M15 = ON Then Y007 = ON And Y011 = ON And Y012 = ON And Y014 = ON And Y015 = ON.
g.If M16 = ON Then Y007 = ON And Y011 = ON And Y012 = ON And Y013 = ON And Y014 = ON And Y015 = ON.
h.If M17 = ON Then Y007 = ON And Y010 = ON And Y011 = ON.
i.If M18 = ON Then Y007 = ON And Y010 = ON And Y011 = ON And Y012 = ON And Y013 = ON And Y014 = ON And Y015 = ON.
j.If M19 = ON Then Y007 = ON And Y010 = ON And Y011 = ON And Y012 = ON And Y014 = ON And Y015 = ON.

Please Download Programming for GX Developer :
Timer Countdown with PLC Mitsubishi

See : Timer Countdown


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 !