Ladder Rungs Per Routine

keshik

Lifetime Supporting Member
Join Date
Jun 2011
Location
Portland, OR
Posts
408
I've just opened a Logix program for a large plant and am looking through it for a few things that I need to modify. I'm finding that routines are typically 50-100 rungs long which means there's a ton to go through. My question is if there are any "good practice" rules of thumb for lengths of routines? What do you guys normally do for the longer programs?
 
The simple answer is NO.

But best practice, and people differ on this subject, is to break the application into "manageable" chunks. Obviously definition of manageable will vary.

I would suggest you try to think as you write your routines that they may be useful in another application, so limit the routine to a basic function.

Of course, with the Add-On Instruction, this has taken over the concept of subroutine files being "function-blocks", but the idea of making each routine deal with a specific part of the whole does tend to make it easier to understand.

And it doesn't matter how many routines you have, the less they do, the more you can forget about when troubleshooting, and the easier they are to give a sensible name to...
 
Keshik,

My rule of thumb is to make PLC routines like a woman's skirt: short to keep it interesting, but long enough to cover the subject.
 
Keshik,

My rule of thumb is to make PLC routines like a woman's skirt: short to keep it interesting, but long enough to cover the subject.

:p one way to put it, i hope our female members take no offense, lol
 
:p one way to put it, i hope our female members take no offense, lol
I don't think so, because most women are well aware of that rule.:sick:

It was a female high-school English teacher who first told me that rule in answer to my question about how long a paper had to be.
 
Keshik,

My rule of thumb is to make PLC routines like a woman's skirt: short to keep it interesting, but long enough to cover the subject.

Ha Ha !! Class !!

As a general rule of thumb, I like to keep Functions (I'm a Siemens guy) less than 24 Networks. If it's more than that then it's likely you can split it into 2 Functions (not always - but most of the time).

(But after saying that, I prefer Lancie's answer!)
 

Similar Topics

Hello all, I want to immitate couple of rungs of the ladder on the panelview for troubleshooting purposes. Right now i have block transfers b/w...
Replies
4
Views
2,599
On GE VersaPro what is the instruction to use to run the ladder logic 20 rungs only instead of the entire 100 Rungs program? In Koyo PLC’s you...
Replies
1
Views
3,904
I got my PanelView Plus 7 working with a Micrologix 1500. How would I connect my laptop to the PanelView to view the ladder logic while operating...
Replies
6
Views
121
please help me . I have to make this ladder diagram and I can’t figure it out :(
Replies
12
Views
344
Hello, I am trying to replicate a piece of logic on the PLC5 onto an SEL RTAC. I am using ladder on SEL and FBD. I am having issue on the ladder...
Replies
13
Views
230
Back
Top Bottom