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 December 11th, 2007, 08:50 AM   #1
dennisc
Member
United States

dennisc is offline
 
Join Date: Dec 2007
Location: home
Posts: 19
I need help with simple ladder logic.

This is an assignment for class. I'm about to pull my hair out on this one. All the others have been very easy using timers and counters, but I'm not having much luck with using only comparison statements. I can use one master timer and comparison statements on this assignment. It is a program about a traffic light. I think I got the program pretty well figured out, other than I keep getting double red lights at the beginning of the program (TON 0-50). According to the instructions, both red lights must come on for a period of 5 seconds at the intial start up of the program. It would be a lot of easier if I could use a start up timer, but I can't. I've tried to use the jmp. and lbl. but can't becuse the timers are in parallel. I'm trying to figure out how to advance the TON4:0 ahead by using the "MOV" command. Is it possibe to advance the timer by 50 to avoid the double red lights at the beginning of the program?
I'm trying to download a picture with the instructions to give a clearer view but my file size is 704 kb. I would greatly appreciate any advice or ideas.
Thanks Dennis
  Reply With Quote
Old December 11th, 2007, 09:13 AM   #2
kolyur
Lifetime Supporting Member + Moderator
United States

kolyur is offline
 
kolyur's Avatar
 
Join Date: Oct 2004
Location: Wooster, Ohio
Posts: 1,588
I'm not quite sure I understand your problem. You seem to contradict yourself by saying
Quote:
According to the instructions, both red lights must come on for a period of 5 seconds at the intial start up of the program.
but then saying
Quote:
Is it possibe to advance the timer by 50 to avoid the double red lights at the beginning of the program?
If you post some more detail you'll probably get more help. I would also suggest posting the ladder logic you have so far. I think I can answer one of your questions, about advancing the timer by a specified amount. Try this:

Last edited by kolyur; December 11th, 2007 at 09:15 AM.
  Reply With Quote
Old December 11th, 2007, 09:37 AM   #3
dennisc
Member
United States

dennisc is offline
 
Join Date: Dec 2007
Location: home
Posts: 19
Does anyone have any tips on how to get the file small enough so it will let me attach it on this message board. Mine is 703 Kb. and it won't allow anything over 300 kb.
Thanks Dennis
  Reply With Quote
Old December 11th, 2007, 09:43 AM   #4
magicsmoke
Member
United States

magicsmoke is offline
 
magicsmoke's Avatar
 
Join Date: Aug 2007
Location: Minnesota
Posts: 110
zip-it.
  Reply With Quote
Old December 11th, 2007, 09:44 AM   #5
kolyur
Lifetime Supporting Member + Moderator
United States

kolyur is offline
 
kolyur's Avatar
 
Join Date: Oct 2004
Location: Wooster, Ohio
Posts: 1,588
Use the Print Screen key to copy the whole screen image to the clipboard, then paste it into Paint or some other program. Even without cropping it the file should be under 300k.
  Reply With Quote
Old December 11th, 2007, 10:44 AM   #6
dennisc
Member
United States

dennisc is offline
 
Join Date: Dec 2007
Location: home
Posts: 19
I tried the print screen thing but it only gets half the picture. Any other suggestions?
Thanks Dennis
  Reply With Quote
Old December 11th, 2007, 10:58 AM   #7
harryting
Lifetime Supporting Member
United States

harryting is offline
 
harryting's Avatar
 
Join Date: May 2002
Location: Puget Sound
Posts: 2,557
You can use one of the many free picture hosting site on the internet, like Flicker.com.

Sounds like you want to skip the double red light after the first scan, right? Well then, make something that track if the double-red happened or not.
  Reply With Quote
Old December 11th, 2007, 11:04 AM   #8
kolyur
Lifetime Supporting Member + Moderator
United States

kolyur is offline
 
kolyur's Avatar
 
Join Date: Oct 2004
Location: Wooster, Ohio
Posts: 1,588
Quote:
I tried the print screen thing but it only gets half the picture.
I don't see how this could happen. Print Screen should always include everything that's displayed on your screen. If you're opening it in Paint you may need to scroll around to see everything.

You could always zip the file as suggested by magicsmoke and post it that way.
  Reply With Quote
Old December 11th, 2007, 11:26 AM   #9
dennisc
Member
United States

dennisc is offline
 
Join Date: Dec 2007
Location: home
Posts: 19
The reason its only showing half of the program is because only half of the LogixPro program is being displayed on the screen at the time. You have to scroll down to see all the rungs. Whats a good free zip program?
Thanks Dennis
  Reply With Quote
Old December 11th, 2007, 11:32 AM   #10
George Graziano
Lifetime Supporting Member
United States

George Graziano is offline
 
Join Date: Jul 2004
Location: NY
Posts: 434
Google 7zip it will do the job.


George
  Reply With Quote
Old December 11th, 2007, 11:49 AM   #11
dennisc
Member
United States

dennisc is offline
 
Join Date: Dec 2007
Location: home
Posts: 19
Hopefully this is readable! Since then I have added a rung with a XIC T4:0/13 then the add at the end, but still not having any luck advancing the timer. Dennis
Attached Files
File Type: doc Traffic_Light___3.doc (227.0 KB, 115 views)

Last edited by dennisc; December 11th, 2007 at 12:19 PM.
  Reply With Quote
Old December 11th, 2007, 01:24 PM   #12
dennisc
Member
United States

dennisc is offline
 
Join Date: Dec 2007
Location: home
Posts: 19
Quote:
Originally Posted by kolyur
I'm not quite sure I understand your problem. You seem to contradict yourself by saying

but then saying

If you post some more detail you'll probably get more help. I would also suggest posting the ladder logic you have so far. I think I can answer one of your questions, about advancing the timer by a specified amount. Try this:
I tried adding a rung at the bottom with a XIC T4:0/13 then this add at the end. I don't know if this is what you meant to try or not. Any suggestions?
Thanks Dennis
  Reply With Quote
Old December 11th, 2007, 01:54 PM   #13
kolyur
Lifetime Supporting Member + Moderator
United States

kolyur is offline
 
kolyur's Avatar
 
Join Date: Oct 2004
Location: Wooster, Ohio
Posts: 1,588
OK I have looked at your program and the way you're doing it seems fine to me, considering that you are only allowed to use one timer. If I understand this right, you need to do the 5-second double-red thing only on the first timing cycle, then after the timer rolls over it should immediately start at the 5-second point from then on.

If that's true then you'll probably need an internal bit to keep track of whether that first timing cycle is in progress. Pick a bit and have it latch on as soon as the timer is done for the first time. So whenever this bit is off, it indicates that you are still in the first timing cycle. You can then use this bit and another comparison statement to trigger the ADD instruction.
  Reply With Quote
Old December 11th, 2007, 01:59 PM   #14
kolyur
Lifetime Supporting Member + Moderator
United States

kolyur is offline
 
kolyur's Avatar
 
Join Date: Oct 2004
Location: Wooster, Ohio
Posts: 1,588
An alternative method that would nix the need for an internal bit would be to force the timer accumulated value to 5 seconds every time it reaches its preset. Then you'd be bypassing the first five seconds during every timer cycle except the first. You may have to modify your logic somewhat because the XIO contact in rung 001 would prevent any other rungs from seeing that the timer is done.
  Reply With Quote
Old December 11th, 2007, 05:05 PM   #15
dennisc
Member
United States

dennisc is offline
 
Join Date: Dec 2007
Location: home
Posts: 19
Quote:
Originally Posted by kolyur
OK I have looked at your program and the way you're doing it seems fine to me, considering that you are only allowed to use one timer. If I understand this right, you need to do the 5-second double-red thing only on the first timing cycle, then after the timer rolls over it should immediately start at the 5-second point from then on.

If that's true then you'll probably need an internal bit to keep track of whether that first timing cycle is in progress. Pick a bit and have it latch on as soon as the timer is done for the first time. So whenever this bit is off, it indicates that you are still in the first timing cycle. You can then use this bit and another comparison statement to trigger the ADD instruction.
This all sounds very confusing.........lol.
So your saying use a internal bit like B:3/3, latch it on after the timer is done T4:0/13, then use the internal bit B:3/3 to turn on (which statement) a comparison statement? Then do you come off the comparison with a add instruction? Say if I latch on bit B:3/3 after the T4:0/13 then when would I unlatch it? Thanks for the help.
Dennis
p.s. it would be nice to advance the timer to 50 after the first time though, but I'm clueless on that too.

Last edited by dennisc; December 11th, 2007 at 05:17 PM.
  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
Viewing STEP5 in Ladder logic: Software edward4444 LIVE PLC Questions And Answers 6 May 19th, 2006 06:57 AM
Need help with ladder logic problem RickGilbert LIVE PLC Questions And Answers 10 June 5th, 2005 02:38 PM
Simple ladder logic question RickGilbert LIVE PLC Questions And Answers 12 June 4th, 2005 04:24 AM
ONLINE Changing ladder logic for a redundant PLC5 ckchew666 LIVE PLC Questions And Answers 3 June 26th, 2004 10:09 AM
Ladder Logic Editor Shafiq LIVE PLC Questions And Answers 4 May 19th, 2003 12:44 PM


All times are GMT -4. The time now is 09:48 AM.


.