TConnolly
Lifetime Supporting Member
I've been working on cleaning up a Modicon 984LL program off and on for quite some time. It is not a program that I wrote but one which I have inherited to maintain.
The original programmer was quite "efficient" at packing every network as much as he possibly could, IMO, to the extreme detriment of program readability.
Here is one network that I was looking at a few minutes ago. You can see that there are three rungs of logic embedded in this network. The first employs some creative branching to get enough logical ORs fit in and the second steps into free space nested below the first rungs output, and the third is upside down (for lack of a better description) to fit it into the remaining free space of the network. Some networks in this program employ several vertical and horizontal shorts to stair step into a blank space in the network just to nest in a little more logic. Sometimes free space will be employed from a network that is far from related logic in the program, resulting is a badly spaghetti-fied program.
So I'm wondering, do many other Modicon programmers pack the networks like this, is it a common practice?
The original programmer was quite "efficient" at packing every network as much as he possibly could, IMO, to the extreme detriment of program readability.
Here is one network that I was looking at a few minutes ago. You can see that there are three rungs of logic embedded in this network. The first employs some creative branching to get enough logical ORs fit in and the second steps into free space nested below the first rungs output, and the third is upside down (for lack of a better description) to fit it into the remaining free space of the network. Some networks in this program employ several vertical and horizontal shorts to stair step into a blank space in the network just to nest in a little more logic. Sometimes free space will be employed from a network that is far from related logic in the program, resulting is a badly spaghetti-fied program.
So I'm wondering, do many other Modicon programmers pack the networks like this, is it a common practice?
Last edited: