You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old February 24th, 2009, 12:25 AM   #1
neokeelo
Member
United States

neokeelo is offline
 
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!

  Reply With Quote
Old February 24th, 2009, 02:29 AM   #2
Longhorn
Member
United Kingdom

Longhorn is offline
 
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.
  Reply With Quote
Old February 24th, 2009, 09:16 AM   #3
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 6,397
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.
  Reply With Quote
Old February 24th, 2009, 10:20 AM   #4
Mfleming
Member
United States

Mfleming is offline
 
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.
  Reply With Quote
Old February 24th, 2009, 11:46 AM   #5
neokeelo
Member
United States

neokeelo is offline
 
Join Date: Feb 2009
Location: Murfreesboro TN
Posts: 9
thanks, ill make some changes and do some testing and post something later.
  Reply With Quote
Old February 24th, 2009, 03:13 PM   #6
leitmotif
Member
United States

leitmotif is offline
 
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
  Reply With Quote
Old February 24th, 2009, 03:52 PM   #7
ATU
Member
United States

ATU is offline
 
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.
  Reply With Quote
Old February 24th, 2009, 06:10 PM   #8
neokeelo
Member
United States

neokeelo is offline
 
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
  Reply With Quote
Old February 24th, 2009, 06:15 PM   #9
Tharon
Member
United States

Tharon is offline
 
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.
  Reply With Quote
Old February 24th, 2009, 06:44 PM   #10
zankorel
Member
Australia

zankorel is offline
 
Join Date: Dec 2008
Location: Hunter Valley
Posts: 173
Quote:
Originally Posted by ATU View Post
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.
I think it is fine for people to give their opinions on how he could improve it as it is obvious that the OP has attempted it to start with. Any feedback is only going to improve his understanding of PLC's because he has done the groundwork already.

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
  Reply With Quote
Old February 24th, 2009, 07:31 PM   #11
milldrone
Member
United States

milldrone is offline
 
milldrone's Avatar
 
Join Date: Mar 2005
Location: in the dog house
Posts: 1,327
Quote:
Originally Posted by neokeelo View Post
Looking at other people's programs seems to help the most I think.
thanks
Ahh!!

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.
  Reply With Quote
Old February 24th, 2009, 08:15 PM   #12
ATU
Member
United States

ATU is offline
 
Join Date: Jul 2008
Location: NC
Posts: 276
Quote:
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
If you don't understand something, post a question and I am pretty sure you'll get 10 answers within a few hours with examples.
  Reply With Quote
Old February 24th, 2009, 09:33 PM   #13
leitmotif
Member
United States

leitmotif is offline
 
Join Date: Nov 2004
Location: Seattle Wa. USA
Posts: 3,680
Quote:
Originally Posted by neokeelo View Post
I understand your point, but with all due respect, I am spending hours trying to write these programs.
REPLY So did we. So do we -- still.

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.
REPLY That is going to be an ongoing problem. Therein lies the challenge.

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.
REPLY Again there is the challenge. There are numerous posts in this site on just this issue.

Looking at other people's programs seems to help the most I think.
REPLY Well it is the quickest I agree. But will you remember it next week if it is handed to you?

thanks
REPLY You are welcome.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
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


All times are GMT -4. The time now is 05:30 AM.


.