Friday, July 9, 2010

Timer Countdown with PLC Omron




PLC Type Series-CV Omron , Name Input / Output PLC :

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

OUTPUT PLC :
0005.00 ; OUT0 or Seven Segment A of Digit 1.
0005.01 ; OUT1 or Seven Segment B of Digit 1.
0005.02 ; OUT2 or Seven Segment C of Digit 1.
0005.03 ; OUT3 or Seven Segment D of Digit 1.
0005.04 ; OUT4 or Seven Segment E of Digit 1.
0005.05 ; OUT5 or Seven Segment F of Digit 1.
0005.06 ; OUT6 or Seven Segment G of Digit 1.
0005.07 ; OUT7 or Seven Segment A of Digit 2.
0005.08 ; OUT8 or Seven Segment B of Digit 2.
0005.09 ; OUT9 or Seven Segment C of Digit 2.
0005.10 ; OUT10 or Seven Segment D of Digit 2.
0005.11 ; OUT11 or Seven Segment E of Digit 2.
0005.12 ; OUT12 or Seven Segment F of Digit 2.
0005.13 ; OUT12 or Seven Segment G of Digit 2.
0005.14 ; Lamp to signal countdown completion.


Download PDF File:
timer countdown using PLC Omron(.pdf)


Reading Ladder PLC Programming for Timer Countdown with PLC Omron :

Step 1 :
Setting Timer T000 = 1 Second
Decrements the memory data specified by the operand by 1
a.If 0000.00 = ON And 0012.00 = OFF And T000 = ON Then Decrement D00000 ( Diff.up DEC / Decrement diff.Up).

Step 2 :
a.If 0000.00 = OFF Then D00000 = 30 ( MOV #0030 D00000 ).
b.If D00000 = 0 Then 0012.00 = ON And 0005.14 = 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.Binary to BCD ( BCD D00000 D00100 ) --> Logical AND with Decimal 15 ( ANDW D00100 #0015 D00101 ) --> BCD to Binary ( BIN D00101 D00001 )

b.Binary to BCD ( BCD D00000 D00103 ) --> Logical AND with Decimal 240 ( ANDW D00103 #240 D00104 ) --> BCD to Binary ( BIN D00104 D00002 )

Example : Value D00000 = 29
-->If D00000 = 29 Then D00001 = 9 And D00002 = 20.

Step 4 : digit1
a.If D00001 = 0 Then 0010.00 = ON.
b.If D00001 = 1 Then 0010.01 = ON.
c.If D00001 = 2 Then 0010.02 = ON.
d.If D00001 = 3 Then 0010.03 = ON.
e.If D00001 = 4 Then 0010.04 = ON.
f.If D00001 = 5 Then 0010.05 = ON.
g.If D00001 = 6 Then 0010.06 = ON.
h.If D00001 = 7 Then 0010.07 = ON.
i.If D00001 = 8 Then 0010.08 = ON.
j.If D00001 = 9 Then 0010.09 = ON.

Step 5 : digit2
a.If D00002 = 00 Then 0011.00 = ON.
b.If D00002 = 10 Then 0011.01 = ON.
c.If D00002 = 20 Then 0011.02 = ON.
d.If D00002 = 30 Then 0011.03 = ON.
e.If D00002 = 40 Then 0011.04 = ON.
f.If D00002 = 50 Then 0011.05 = ON.
g.If D00002 = 60 Then 0011.06 = ON.
h.If D00002 = 70 Then 0011.07 = ON.
i.If D00002 = 80 Then 0011.08 = ON.
j.If D00002 = 90 Then 0011.09 = ON.

Step 6 : Output digit1
a.If 0010.00 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON And 0005.03 = ON And 0005.04 = ON And 0005.05 = ON.
b.If 0010.01 = ON Then 0005.01 = ON And 0005.02 = ON.
c.If 0010.02 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.03 = ON And 0005.04 = ON And 0005.06 = ON.
d.If 0010.03 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON And 0005.03 = ON And 0005.06 = ON.
e.If 0010.04 = ON Then 0005.01 = ON And 0005.02 = ON And 0005.05 = ON And 0005.06 = ON.
f.If 0010.05 = ON Then 0005.00 = ON And 0005.02 = ON And 0005.03 = ON And 0005.05 = ON And 0005.06 = ON.
g.If 0010.06 = ON Then 0005.00 = ON And 0005.02 = ON And 0005.03 = ON And 0005.04 = ON And 0005.05 = ON And 0005.06 = ON.
h.If 0010.07 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON.
i.If 0010.08 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON And 0005.03 = ON And 0005.04 = ON And 0005.05 = ON And 0005.06 = ON.
j.If 0010.09 = ON Then 0005.00 = ON And 0005.01 = ON And 0005.02 = ON And 0005.03 = ON And 0005.05 = ON And 0005.06 = ON.

Step 7 : Output digit2
a.If 0011.00 = ON Then 0005.07 = ON And 0005.08 = ON And 0005.09 = ON And 0005.10 = ON And 0005.11 = ON And 0005.12 = ON.
b.If 0011.01 = ON Then 0005.08 = ON And 0005.09 = ON.
c.If 0011.02 = ON Then 0005.07 = ON And 0005.08 = ON And 0005.10 = ON And 0005.11 = ON And 0005.13 = ON.
d.If 0011.03 = ON Then 0005.07 = ON And 0005.08 = ON And 0005.09 = ON And 0005.10 = ON And 0005.13 = ON.
e.If 0011.04 = ON Then 0005.08 = ON And 0005.09 = ON And 0005.12 = ON And 0005.13 = ON.
f.If 0011.05 = ON Then 0005.07 = ON And 0005.09 = ON And 0005.10 = ON And 0005.12 = ON And 0005.13 = ON.
g.If 0011.06 = ON Then 0005.07 = ON And 0005.09 = ON And 0005.10 = ON And 0005.11 = ON And 0005.12 = ON And 0005.13 = ON.
h.If 0011.07 = ON Then 0005.07 = ON And 0005.08 = ON And 0005.09 = ON.
i.If 0011.08 = ON Then 0005.07 = ON And 0005.08 = ON And 0005.09 = ON And 0005.10 = ON And 0005.11 = ON And 0005.12 = ON And 0005.13 = ON.
j.If 0011.09 = ON Then 0005.07 = ON And 0005.08 = ON And 0005.09 = ON And 0005.10 = ON And 0005.12 = ON And 0005.13 = ON.

Please Download Programming for SYSWIN :
Timer Countdown with PLC Omron

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 !

Your email is stored safely on Google FeedBurner