PLC Type KV-40 Keyence , Name Input / Output PLC :
INPUT PLC :
0000 ; Toggle Switch ( ON - OFF ).
OUTPUT PLC :
0500 ; OUT0 or Seven Segment A of Digit 1.
0501 ; OUT1 or Seven Segment B of Digit 1.
0502 ; OUT2 or Seven Segment C of Digit 1.
0503 ; OUT3 or Seven Segment D of Digit 1.
0504 ; OUT4 or Seven Segment E of Digit 1.
0505 ; OUT5 or Seven Segment F of Digit 1.
0506 ; OUT6 or Seven Segment G of Digit 1.
0507 ; OUT7 or Seven Segment A of Digit 2.
0508 ; OUT8 or Seven Segment B of Digit 2.
0509 ; OUT9 or Seven Segment C of Digit 2.
0510 ; OUT10 or Seven Segment D of Digit 2.
0511 ; OUT11 or Seven Segment E of Digit 2.
0512 ; OUT12 or Seven Segment F of Digit 2.
0513 ; OUT12 or Seven Segment G of Digit 2.
0514 ; Lamp to signal countdown completion.
Download PDF File:
timer countdown using plc keyence(.pdf)
Reading Ladder PLC Programming for Timer Countdown with PLC Keyence :
Step 1 :
Setting Timer T000 = 1 Second
Decrements the memory data specified by the operand by 1
a.If 0000 = ON And 1200 = OFF And T000 = ON Then Decrement DM0000 ( @DEC / Decrement diff.Up).
Step 2 :
a.If 0000 = OFF Then DM0000 = 30 ( DW #00030 DM0000 ).
b.If DM0000 = 0 Then 1200 = ON And 0514 = 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.Load DM0000 to Accumulator (LDA DM0000) --> Convert to BCD (TBCD) --> AND with Hexa 000F (ANDA $000F) --> Convert to Binary (TBIN) --> Store to DM0001.
b.Load DM0000 to Accumulator (LDA DM0000) --> Convert to BCD (TBCD) --> AND with Hexa 00F0 (ANDA $00F0) --> Convert to Binary (TBIN) --> Store to DM0002.
Example : Value DM0000 = 29
-->If DM0000 = 29 Then DM0001 = 9 And DM0002 = 20.
Step 4 : digit1
a.If DM0001 = 0 Then 1000 = ON.
b.If DM0001 = 1 Then 1001 = ON.
c.If DM0001 = 2 Then 1002 = ON.
d.If DM0001 = 3 Then 1003 = ON.
e.If DM0001 = 4 Then 1004 = ON.
f.If DM0001 = 5 Then 1005 = ON.
g.If DM0001 = 6 Then 1006 = ON.
h.If DM0001 = 7 Then 1007 = ON.
i.If DM0001 = 8 Then 1008 = ON.
j.If DM0001 = 9 Then 1009 = ON.
Step 5 : digit2
a.If DM0002 = 00 Then 1100 = ON.
b.If DM0002 = 10 Then 1101 = ON.
c.If DM0002 = 20 Then 1102 = ON.
d.If DM0002 = 30 Then 1103 = ON.
e.If DM0002 = 40 Then 1104 = ON.
f.If DM0002 = 50 Then 1105 = ON.
g.If DM0002 = 60 Then 1106 = ON.
h.If DM0002 = 70 Then 1107 = ON.
i.If DM0002 = 80 Then 1108 = ON.
j.If DM0002 = 90 Then 1109 = ON.
Step 6 : Output digit1
a.If 1000 = ON Then 0500 = ON And 0501 = ON And 0502 = ON And 0503 = ON And 0504 = ON And 0505 = ON.
b.If 1001 = ON Then 0501 = ON And 0502 = ON.
c.If 1002 = ON Then 0500 = ON And 0501 = ON And 0503 = ON And 0504 = ON And 0506 = ON.
d.If 1003 = ON Then 0500 = ON And 0501 = ON And 0502 = ON And 0503 = ON And 0506 = ON.
e.If 1004 = ON Then 0501 = ON And 0502 = ON And 0505 = ON And 0506 = ON.
f.If 1005 = ON Then 0500 = ON And 0502 = ON And 0503 = ON And 0505 = ON And 0506 = ON.
g.If 1006 = ON Then 0500 = ON And 0502 = ON And 0503 = ON And 0504 = ON And 0505 = ON And 0506 = ON.
h.If 1007 = ON Then 0500 = ON And 0501 = ON And 0502 = ON.
i.If 1008 = ON Then 0500 = ON And 0501 = ON And 0502 = ON And 0503 = ON And 0504 = ON And 0505 = ON And 0506 = ON.
j.If 1009 = ON Then 0500 = ON And 0501 = ON And 0502 = ON And 0503 = ON And 0505 = ON And 0506 = ON.
Step 7 : Output digit2
a.If 1100 = ON Then 0507 = ON And 0508 = ON And 0509 = ON And 0510 = ON And 0511 = ON And 0512 = ON.
b.If 1101 = ON Then 0508 = ON And 0509 = ON.
c.If 1102 = ON Then 0507 = ON And 0508 = ON And 0510 = ON And 0511 = ON And 0513 = ON.
d.If 1103 = ON Then 0507 = ON And 0508 = ON And 0509 = ON And 0510 = ON And 0513 = ON.
e.If 1104 = ON Then 0508 = ON And 0509 = ON And 0512 = ON And 0513 = ON.
f.If 1105 = ON Then 0507 = ON And 0509 = ON And 0510 = ON And 0512 = ON And 0513 = ON.
g.If 1106 = ON Then 0507 = ON And 0509 = ON And 0510 = ON And 0511 = ON And 0512 = ON And 0513 = ON.
h.If 1107 = ON Then 0507 = ON And 0508 = ON And 0509 = ON.
i.If 1108 = ON Then 0507 = ON And 0508 = ON And 0509 = ON And 0510 = ON And 0511 = ON And 0512 = ON And 0513 = ON.
j.If 1109 = ON Then 0507 = ON And 0508 = ON And 0509 = ON And 0510 = ON And 0512 = ON And 0513 = ON.
Please Download Programming for KV Builder :
Timer Countdown with PLC Keyence
See : Timer Countdown
INPUT PLC :
0000 ; Toggle Switch ( ON - OFF ).
OUTPUT PLC :
0500 ; OUT0 or Seven Segment A of Digit 1.
0501 ; OUT1 or Seven Segment B of Digit 1.
0502 ; OUT2 or Seven Segment C of Digit 1.
0503 ; OUT3 or Seven Segment D of Digit 1.
0504 ; OUT4 or Seven Segment E of Digit 1.
0505 ; OUT5 or Seven Segment F of Digit 1.
0506 ; OUT6 or Seven Segment G of Digit 1.
0507 ; OUT7 or Seven Segment A of Digit 2.
0508 ; OUT8 or Seven Segment B of Digit 2.
0509 ; OUT9 or Seven Segment C of Digit 2.
0510 ; OUT10 or Seven Segment D of Digit 2.
0511 ; OUT11 or Seven Segment E of Digit 2.
0512 ; OUT12 or Seven Segment F of Digit 2.
0513 ; OUT12 or Seven Segment G of Digit 2.
0514 ; Lamp to signal countdown completion.
Download PDF File:
timer countdown using plc keyence(.pdf)
Reading Ladder PLC Programming for Timer Countdown with PLC Keyence :
Step 1 :
Setting Timer T000 = 1 Second
Decrements the memory data specified by the operand by 1
a.If 0000 = ON And 1200 = OFF And T000 = ON Then Decrement DM0000 ( @DEC / Decrement diff.Up).
Step 2 :
a.If 0000 = OFF Then DM0000 = 30 ( DW #00030 DM0000 ).
b.If DM0000 = 0 Then 1200 = ON And 0514 = 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.Load DM0000 to Accumulator (LDA DM0000) --> Convert to BCD (TBCD) --> AND with Hexa 000F (ANDA $000F) --> Convert to Binary (TBIN) --> Store to DM0001.
b.Load DM0000 to Accumulator (LDA DM0000) --> Convert to BCD (TBCD) --> AND with Hexa 00F0 (ANDA $00F0) --> Convert to Binary (TBIN) --> Store to DM0002.
Example : Value DM0000 = 29
-->If DM0000 = 29 Then DM0001 = 9 And DM0002 = 20.
Step 4 : digit1
a.If DM0001 = 0 Then 1000 = ON.
b.If DM0001 = 1 Then 1001 = ON.
c.If DM0001 = 2 Then 1002 = ON.
d.If DM0001 = 3 Then 1003 = ON.
e.If DM0001 = 4 Then 1004 = ON.
f.If DM0001 = 5 Then 1005 = ON.
g.If DM0001 = 6 Then 1006 = ON.
h.If DM0001 = 7 Then 1007 = ON.
i.If DM0001 = 8 Then 1008 = ON.
j.If DM0001 = 9 Then 1009 = ON.
Step 5 : digit2
a.If DM0002 = 00 Then 1100 = ON.
b.If DM0002 = 10 Then 1101 = ON.
c.If DM0002 = 20 Then 1102 = ON.
d.If DM0002 = 30 Then 1103 = ON.
e.If DM0002 = 40 Then 1104 = ON.
f.If DM0002 = 50 Then 1105 = ON.
g.If DM0002 = 60 Then 1106 = ON.
h.If DM0002 = 70 Then 1107 = ON.
i.If DM0002 = 80 Then 1108 = ON.
j.If DM0002 = 90 Then 1109 = ON.
Step 6 : Output digit1
a.If 1000 = ON Then 0500 = ON And 0501 = ON And 0502 = ON And 0503 = ON And 0504 = ON And 0505 = ON.
b.If 1001 = ON Then 0501 = ON And 0502 = ON.
c.If 1002 = ON Then 0500 = ON And 0501 = ON And 0503 = ON And 0504 = ON And 0506 = ON.
d.If 1003 = ON Then 0500 = ON And 0501 = ON And 0502 = ON And 0503 = ON And 0506 = ON.
e.If 1004 = ON Then 0501 = ON And 0502 = ON And 0505 = ON And 0506 = ON.
f.If 1005 = ON Then 0500 = ON And 0502 = ON And 0503 = ON And 0505 = ON And 0506 = ON.
g.If 1006 = ON Then 0500 = ON And 0502 = ON And 0503 = ON And 0504 = ON And 0505 = ON And 0506 = ON.
h.If 1007 = ON Then 0500 = ON And 0501 = ON And 0502 = ON.
i.If 1008 = ON Then 0500 = ON And 0501 = ON And 0502 = ON And 0503 = ON And 0504 = ON And 0505 = ON And 0506 = ON.
j.If 1009 = ON Then 0500 = ON And 0501 = ON And 0502 = ON And 0503 = ON And 0505 = ON And 0506 = ON.
Step 7 : Output digit2
a.If 1100 = ON Then 0507 = ON And 0508 = ON And 0509 = ON And 0510 = ON And 0511 = ON And 0512 = ON.
b.If 1101 = ON Then 0508 = ON And 0509 = ON.
c.If 1102 = ON Then 0507 = ON And 0508 = ON And 0510 = ON And 0511 = ON And 0513 = ON.
d.If 1103 = ON Then 0507 = ON And 0508 = ON And 0509 = ON And 0510 = ON And 0513 = ON.
e.If 1104 = ON Then 0508 = ON And 0509 = ON And 0512 = ON And 0513 = ON.
f.If 1105 = ON Then 0507 = ON And 0509 = ON And 0510 = ON And 0512 = ON And 0513 = ON.
g.If 1106 = ON Then 0507 = ON And 0509 = ON And 0510 = ON And 0511 = ON And 0512 = ON And 0513 = ON.
h.If 1107 = ON Then 0507 = ON And 0508 = ON And 0509 = ON.
i.If 1108 = ON Then 0507 = ON And 0508 = ON And 0509 = ON And 0510 = ON And 0511 = ON And 0512 = ON And 0513 = ON.
j.If 1109 = ON Then 0507 = ON And 0508 = ON And 0509 = ON And 0510 = ON And 0512 = ON And 0513 = ON.
Please Download Programming for KV Builder :
Timer Countdown with PLC Keyence
See : Timer Countdown
Labels:
Timer Countdown with PLC
Timer Countdown with PLC