what are the steps to become a legend on STL ??
Sum:=0
For i = 1 to n
Sum := Sum + i
end_for
That piece of code is not STL (statement list) but structured text (SCL, I believe). It's like answering a question about assembly language by giving an example in Pascal or C.To master STL, code anything and everything in STL. Test it, single step it, re-code it using as many different instructions as possible.
Here's a simple algorithm to start with. Write a function that calculates the sum of the numbers from 1 to n.
n is an int and the function should return a dint
Code:Sum:=0 For i = 1 to n Sum := Sum + i end_for
how to be a Professional Siemens PLC STL programmer
anyone teach me how??
what are the steps to become a legend on STL ??
how to be a Professional Siemens PLC STL programmer
anyone teach me how??
what are the steps to become a legend on STL ??