how to be a Professional Siemens PLC STL programmer

you lazy, didn comment to everyone not as good as you :D

Code:
     L     L#0 //long dec 0 ->accu1
      L     #N  //accu1 -> accu2 #N ->accu1
T:    TAK       //accu1 -> accu2, accu2 -> accu1 
      +D        //accu1 + accu2, accu2 unchanged result to accu1
      TAK       //accu1 -> accu2, accu2 -> accu1
      LOOP  T   //decrement accu1 by one, jump to T
      TAK       //accu1 -> accu2, accu2 -> accu1
      T     #RET_VAL  //accu1 to ret_val


LMAO..the code with comments looks just as cryptic as the non commented version... o_O
 
yeah, well but as ld said, it is not really "commented", its instructions written to as comments.

then on the other hand after you have learned what that means, it is much easier to proceed.

accus are something that lad/fbd programmer will never even bumb into with siemens. but then, you miss lot of its power.
 
yeah, well but as ld said, it is not really "commented", its instructions written to as comments.

then on the other hand after you have learned what that means, it is much easier to proceed.

accus are something that lad/fbd programmer will never even bumb into with siemens. but then, you miss lot of its power.

I agree completely. STL lets you do so many things you can not do with ladder and it is definatly something to learn if you want the full power of an S7-300 or S7-400.

Just make sure you have lots of time to devote to it. It is definnatly not a language for the weak at heart.

My suggestion and it is something I do is write in STL and try to convert to ladder. Do simple things like OR's, AND's etc...

Once you get that break out a manual and look up a function. Play with it until you get it and move to the next one. THis has helped me understand alot.
 
Which plc ? i tested this in a 317-2DP. Doesn't work in the simulator though as it executes with 4 accumulators.
 
Last edited:
I agree completely. STL lets you do so many things you can not do with ladder and it is definatly something to learn if you want the full power of an S7-300 or S7-400.

Just make sure you have lots of time to devote to it. It is definnatly not a language for the weak at heart.

My suggestion and it is something I do is write in STL and try to convert to ladder. Do simple things like OR's, AND's etc...

Once you get that break out a manual and look up a function. Play with it until you get it and move to the next one. THis has helped me understand alot.

Any examples of what you can do with stl that you can't do in ladder?
 

Similar Topics

We just got the link to download and install Siemens Step 7 Pro, v17, and WinCC Comfort v17. My needs usually involve using earlier versions for...
Replies
11
Views
5,272
Does any one have a link to download WinCC RT Professional v15 + Crack???
Replies
19
Views
8,183
Hello, I'm working on TIA Portal v15, and Wincc RT Professional. My Pc works on Windows 10 Pro, and I have installed SQL server 2019. The...
Replies
3
Views
2,748
Are there any problem to use S7 professional 12/2002 version for PLC program development? Also, $700 that I bought this software with single...
Replies
7
Views
3,427
Hello to everyone, I need to comunicate With a Modbus gateway(TCP-RTU)connected throught Modbus TCP/Ip on wincc v7.5 or professional; i will...
Replies
0
Views
266
Back
Top Bottom