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.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


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

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old November 8th, 2011, 04:54 PM   #1
James Mcquade
Member
United States

James Mcquade is offline
 
Join Date: Oct 2007
Location: TENNESSEE
Posts: 626
converting fifo

Hi everyone,

Several months ago, i asked for help in doing a fifo for a 12 station and 24 station machine in which we had an issue with our water utilities, and everyone came thru with flying colors. Thanks again !

The logic is complete and the software ran with the emulator with flying colors. Tomorrow i was to install the software and test it for our start of production next week.

HOLD Everything!!

Someone failed to tell me that the engineering study they did on the water utilities revealed that the utilities will be able to support two stations running at the same time, but not three and now they want to run two stations at the same time but not three. wished i had that information sooner.

Do any of you have a good suggestion / idea how to convert the fifo logic so i can run two stations at a time?

Management - wished they had to put up with the stuff we do, the left hand doesn't tell the right hand what its doing or what it wants.

Thanks in advance,
James
  Reply With Quote
Old November 8th, 2011, 04:57 PM   #2
OkiePC
Lifetime Supporting Member
United States

OkiePC is offline
 
OkiePC's Avatar
 
Join Date: Mar 2005
Location: ENE of Nowhere Oklahoma
Posts: 7,508
Can you post what you have? It might be pretty easy to modify or add something for this after seeing the existing structure you have followed.
__________________
It's not all the variables I am most concerned with, it's the undiscovered constants.

"You can lead a horse to water but if he's got his head up his as$ he may die of thirst anyway."
  Reply With Quote
Old November 9th, 2011, 07:32 AM   #3
James Mcquade
Member
United States

James Mcquade is offline
 
Join Date: Oct 2007
Location: TENNESSEE
Posts: 626
OkiePC,

i am working on posting it for you.
Company ploicy will not allow me to post the program, so i must make it look generic. Same result though.

Regards,
James
  Reply With Quote
Old November 9th, 2011, 03:28 PM   #4
James Mcquade
Member
United States

James Mcquade is offline
 
Join Date: Oct 2007
Location: TENNESSEE
Posts: 626
OkiePC,

here is my progeam, i have taken out a lot of the logic, but this is it.
regards,
james
Attached Files
File Type: zip FIFO.zip (57.1 KB, 9 views)
  Reply With Quote
Old November 9th, 2011, 04:38 PM   #5
OkiePC
Lifetime Supporting Member
United States

OkiePC is offline
 
OkiePC's Avatar
 
Join Date: Mar 2005
Location: ENE of Nowhere Oklahoma
Posts: 7,508
quick and dirty fix:

Search for N7:13.

It will let the fifo keep unloading as long as there are less than two bits set in the output word. This will allow requests to come in and be processed in order, and if later you decide to allow three at a time, it is easy enough to do that by only changing one LES instruction constant (or make it N7:14).

Paul
Attached Files
File Type: zip FIFO 11-09-2011.zip (42.7 KB, 2 views)
__________________
It's not all the variables I am most concerned with, it's the undiscovered constants.

"You can lead a horse to water but if he's got his head up his as$ he may die of thirst anyway."
  Reply With Quote
Old November 9th, 2011, 05:23 PM   #6
James Mcquade
Member
United States

James Mcquade is offline
 
Join Date: Oct 2007
Location: TENNESSEE
Posts: 626
OkiePC,
Thanks !!

i will study what you did.
always trying to learn!
james
  Reply With Quote
Old November 9th, 2011, 05:49 PM   #7
OkiePC
Lifetime Supporting Member
United States

OkiePC is offline
 
OkiePC's Avatar
 
Join Date: Mar 2005
Location: ENE of Nowhere Oklahoma
Posts: 7,508
it has a problem.
it'll clear the one already running bit.
just thought of this driving home...:








:o)
__________________
It's not all the variables I am most concerned with, it's the undiscovered constants.

"You can lead a horse to water but if he's got his head up his as$ he may die of thirst anyway."
  Reply With Quote
Old November 9th, 2011, 05:54 PM   #8
OkiePC
Lifetime Supporting Member
United States

OkiePC is offline
 
OkiePC's Avatar
 
Join Date: Mar 2005
Location: ENE of Nowhere Oklahoma
Posts: 7,508
we need to instead, only hmm. green light...

count stations actually running, so when one finishes, another can be FFUd

And ensure, that they seal in once permitted to start.
__________________
It's not all the variables I am most concerned with, it's the undiscovered constants.

"You can lead a horse to water but if he's got his head up his as$ he may die of thirst anyway."

Last edited by OkiePC; November 9th, 2011 at 06:00 PM.
  Reply With Quote
Old November 9th, 2011, 06:20 PM   #9
James Mcquade
Member
United States

James Mcquade is offline
 
Join Date: Oct 2007
Location: TENNESSEE
Posts: 626
Smile

OkiePC,

i started playing with it as soon as i downloaded the file
and found that same problem.

thanks for the follow up , BUT !!!
thanks for your help!!

thanks to this site!
many of us would be in the dark without everyone's help.

james

Last edited by James Mcquade; November 9th, 2011 at 06:22 PM. Reason: bad spelling
  Reply With Quote
Old November 16th, 2011, 02:47 PM   #10
Lancie1
Lifetime Supporting Member + Moderator
United States

Lancie1 is online now
 
Lancie1's Avatar
 
Join Date: Jul 2003
Location: Alabama
Posts: 7,253
James,

I see you run into a little problem. Unfortunately you did not take my suggestion and use "water fill" as the control for your FFU (FIFO UNLOAD). Instead, you tied your unload to the original start requests, simply unloading them in order without regard to the water AT ALL.

Now you have a problem. What can I say? Been there, done that. It would be nice if I could just convince a person that something has already been done, and a better way found. It rarely happens. We all have to learn the hard way - in the "school of hard knocks".

PS: I still have the original UNLOAD routine, if you need it. If you remember, I had 12 timers set up so that when the first running station signalled it had enough water, the next station could immediately start (the next FFU Unload would occur). With that method, it would be easy to start 2 or more stations together, by changing the Timer Done bits to whatever bit you want to use to signal the next start.

Last edited by Lancie1; November 16th, 2011 at 02:52 PM.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


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
fifo for 2 machines James Mcquade LIVE PLC Questions And Answers 64 September 14th, 2011 08:38 AM
FiFo data types coopdegrace LIVE PLC Questions And Answers 1 March 18th, 2009 02:21 AM
Use of FIFO / LIFO commands in RSLogix AusScott LIVE PLC Questions And Answers 9 September 26th, 2006 12:16 PM
Fifo ssrmr2 LIVE PLC Questions And Answers 3 April 19th, 2006 05:08 PM
FIFO Check The_Wanderer LIVE PLC Questions And Answers 1 October 15th, 2003 06:44 AM


All times are GMT -5. The time now is 12:39 AM.


.