RichBlunt said:Yes good structure and convention will make any language shine. It is AMAZING what some people will do to a simple ladder logic rung.
We should have a hall of fame on here for bad logic, would be good for some laughs.
PontEL said:I work as an maintenance electrician in an industry, and have some PLC experiance. Have done some small programs etc. Mostly in Siemens.
My opinion is that if i is possible you should use LAD/FBD. My first thougt when I see a new program on our machine where almost everything is written in STL, is that maby this person can write advanced programs. But he is NOT a good programmer!
You should not program a fancy program and just deliver it to somemone. It should also be easy to search for fault in it. Most electrcians are not expert programmers...
Of course it should not go into exaggeration, thats not what I meant.Combo said:Hmm, what you say is true, but you only think for your situation now. Calculations, scaling of analogue values, etc..., I don't think it's a good idea to write everything in LAD.
Btw, programmers that work for other company's do have the time pressure, deadline's, when we calculated 150 houres to program code, then I will not write in LAD just because the electriciens should be able to figure it a little out.
I'm a bad programmer
PontEL said:Too bad you decide the language, and not the customer...
cwininger said:I am going through the same issues. Our machine was built in Italy and programmed with S7 in stl, everyone here knows Ladder and this cannot be translated to ladder, do you know of any 3rd party software to translate the S7 stl to ladder as Greysoft did in the early 90's?