Thank you both Kittydog42 and PLCMentor for your very valuable advices. Unfortunately I won't have the time enough to implement them as tonight I must hurry up with the programming (tomorrow our supervisor wants to see real results after all these last weeks that I've devoted to the development of this my first project)...
But in general lines the way your tips point out is clearly agreeable : keeping the plc program simple = functionality
So why to choose a modular programming line? Mainly because I'm specialized in a very concrete field of automation : water and sewage treatment plants...and all of them are quite alike. We have a general algorithm which works fine with the different kind of PLC's we work with, but still I'd like to customize it, or somehow "optimize" it over the basis of the particular strong points that each PLC offers, (let's say Siemens, AB...). For instance, when performing this project I've got to learn a lot about the complex wide range of possibilities (and therefore flexibility) which the PIDE block instructions does offer.
As novice programmer I'd say I'm going through a beginning stage of discovering, analyzing, understanding of new devices I hadn't ever worked before with ( I just did a quick vocational traning on Siemens PLC's, a year ago, and now I've straighly jumped to AB, and I feel quite comfortable with it)
Anyway, another topic..It's been really frustrating to me during this initial testing stage to find constanly problems because of that annoying "Warning: Duplicate Destructive Bit Reference Detected"...so that's when I moved to the latch/unlatching ...This was because of a deficient knowledge on some basic concepts. I've been dragging untill now those "small" mistakes which finally have turned into a big snow ball "in the going down" and , right now, I run out of time to change my initial program into a decent piece of code. It's a pity but with everything which I've got to learn I hope to make a more professional work for my next project. Being a self-learner on PLC's is the hard way, no doubt of it.
Anyway, this big speech arrives at its end
) ...have to go on with the programming again. A hard working night is waiting for me!
Thanks again to both!