![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#1 |
Member
![]() ![]() Join Date: Feb 2009
Location: Murfreesboro TN
Posts: 9
|
Timers, Counters, Comparing, a simple program_need advice
Hi. I am working on my 6th assignment. I have a better understanding of timers, counters, compare and the limit command but I am having trouble getting them to talk to each other.
Here is my program ------------------------- Basically there are 3 process that need to run for a specified time, turn off and the next one start, repeat 4 times and stop and reset everything at the end. Button one ( I:1/0) starts the process. Filling = 3 secs O:2/0 Heating = 5 secs O:2/1 Draining = 4 secs O:2/2 Rules I can use the comparison instructions and only one timer in the program. Also Only one counter can be used but not the counter DN bit. Here is what I have so far. I know I need something on RUNG 6 but i dont know what. What am I missing to complete the program? Any advice is appreciated! ![]() |
![]() |
![]() |
#2 |
Member
![]() ![]() Join Date: Jul 2008
Location: Scotland
Posts: 250
|
First of all, remove the counter and the counter reset on rungs 1 and 6. Before youre timer reset put a compare >= 1201 with T4:1.acc, this will reset the timer once draining is complete. Last of all, increase your timer value to 1250 or summit.
Just a tip, i would use a retentive timer for T4:1 so that if the PLC is put into stop or in the real world an error occurs, then ot wont start trying to fill if it failed in the draining stage. Hope this help. |
![]() |
![]() |
#3 |
Lifetime Supporting Member + Moderator
|
1. Rung 0 - place a NC (XIO) of C5:0/DN on the rung to reset it once the counter is done.
2. Rung 1 - Place a NO (XIC) of I:1/0 on the rung to reset the counter while the button is being pressed. 3. Rung 2 - Place a NC (XIO) of I:1/0 in the rung to prevent the timer starting until the button is released 4. Rung 6 - Place a NO (XIC) of T4:1/DN on the rung to trigger the counter as the timer finishes
__________________
Controlling outputs is the PLC's way of getting its inputs to change. |
![]() |
![]() |
#4 |
Member
![]() ![]() Join Date: Jan 2009
Location: KY
Posts: 17
|
1)Need NO operands before CTU and RES in order for them to work properly. Wthout operands the count will count once and reset once per scan thus not retaining a value.
2)Add a NC CTU.dn to the start rung to stop operation when count is done. |
![]() |
![]() |
#5 |
Member
![]() ![]() Join Date: Feb 2009
Location: Murfreesboro TN
Posts: 9
|
thanks, ill make some changes and do some testing and post something later.
|
![]() |
![]() |
#6 |
Member
![]() ![]() Join Date: Nov 2004
Location: Seattle Wa. USA
Posts: 3,680
|
It is somewhat unrelated to your assignment I admit
BUT Since I forgot to design how to stop a machine and embarassed myself (only once I think ??) I believe it is a good part of design to have a stop function. Since you say Button one ( I:1/0) starts the process. and appears to be a momentary I would add a NC stop button in the start circuit. As another post points out how is the process going to know where to restart if it is interrupted? This is a real world concern and may be beyond the intent of the lesson but you will need to think about this stuff in the future so you may as well start now. Maybe you will even get extra credit. Dan Bentler |
![]() |
![]() |
#7 |
Member
![]() ![]() Join Date: Jul 2008
Location: NC
Posts: 276
|
In my opinion, you are not really helping this guy out, by just telling him what to change. He needs to figure it out for himself. What would be better is to tell him that a specific rung is wrong and let him find the mistake or if he has a specific question about how something works. After all, he might be working for you someday.
|
![]() |
![]() |
#8 |
Member
![]() ![]() Join Date: Feb 2009
Location: Murfreesboro TN
Posts: 9
|
I understand your point, but with all due respect, I am spending hours trying to write these programs. In our class and in the book there are NO examples problems we can look at and study to better understand the commands and how to use them. In this particular problem I understand the logic ( what needs to be done and where to put it) I just don't have any experience with these new commands yet and know how to get them to talk to one another. Looking at other people's programs seems to help the most I think.
thanks |
![]() |
![]() |
#9 |
Member
![]() ![]() Join Date: Jan 2007
Location: Other
Posts: 1,430
|
Well, since you are not allowed to use the DN bit of the Counter, you need to understand what the DN bit is.
The DN bit is true if the Accumulator (ACC) is greater than or equal to the Preset (PRE). Using this you can rig yourself up a Bit that does the exact same thing as the DN bit. |
![]() |
![]() |
#10 | |
Member
![]() ![]() Join Date: Dec 2008
Location: Hunter Valley
Posts: 173
|
Quote:
If the OP had just asked for information on how to do it without trying it himself, I would agree with you.
__________________
---- Chris Watts Electrical Engineer |
|
![]() |
![]() |
#11 | |
Member
|
Quote:
How about this then? http://www.plctalk.net/qanda/showthr...beginner+cycle Or this one? http://www.plctalk.net/qanda/showthr...beginner+cycle This does not match you specs but there is some good stuff here. http://www.plctalk.net/qanda/showthread.php?t=25856
__________________
Vaughn If you can read this, thank a teacher. |
|
![]() |
![]() |
#12 | |
Member
![]() ![]() Join Date: Jul 2008
Location: NC
Posts: 276
|
Quote:
|
|
![]() |
![]() |
#13 | |
Member
![]() ![]() Join Date: Nov 2004
Location: Seattle Wa. USA
Posts: 3,680
|
Quote:
|
|
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
TOYOPUC Timers & Counters | richxie | LIVE PLC Questions And Answers | 3 | January 27th, 2007 09:56 PM |
s7 300 timers and counters | sparkysliderz | LIVE PLC Questions And Answers | 11 | June 13th, 2005 08:18 AM |
reseting counters and timers in rs 5000 | darrenj | LIVE PLC Questions And Answers | 4 | February 23rd, 2005 06:29 PM |
Using Timers & Counters in WinCC | Rusty_K | LIVE PLC Questions And Answers | 0 | April 26th, 2004 12:06 PM |
Advice on simple starter PLC | delunn | LIVE PLC Questions And Answers | 5 | April 29th, 2003 09:48 AM |