Peter Nachtwey
Member
Indirect addressing for starters. There are a lot of examples of tricks that can only be done in STL in myAny examples of what you can do with stl that you can't do in ladder?
http://www.plctalk.net/qanda/showthread.php?t=47521
thread.
STL has a JL instruction that allows one to efficiently execute case statements. This is much more efficient that scanning the whole ladder or doing a compare for each case.
The example that L D [AR2,P#0.0] provide can't be done in LAD easily or efficiently.
HelloAll's goal is flawed. He should strive to be a better programmer and strive to learn algorithms, physics and the math required to understand them. The S7 is just a tool. When using another tool the special S7 knowledge will be of no use but the algorithms, phsysics and math will be.
Our second generation controller was programmed mostly in assembly language. Our third generation controller is programmed in C. Few if any tricks I used for the second generation controller are necessary now. Too much mental energy was spent on keeping track of what is in each register and how to address data when programming in assembly language. Now that is no longer important.