logo elektroda
logo elektroda
X
logo elektroda

Difference Between Siemens SCL and STL Programming Languages in PLCs

kornik280 16089 6
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 14757403
    kornik280
    Level 18  
    Hello,

    What's the difference between SCL and STL?
  • ADVERTISEMENT
  • #2 14757520
    kosmos99
    Level 38  
    They are two different programming languages, just like you would ask yourself what is the difference between English and German.
  • ADVERTISEMENT
  • #3 14757607
    kornik280
    Level 18  
    I know that in the past (when I was still studying) simatic s7 was programmed in STL, and now after a few years I see that in the s7-1200 you program in SCL.
    When has it changed?
  • ADVERTISEMENT
  • #4 14757630
    kosmos99
    Level 38  
    SCL is also in other controllers, and STL is probably only in Siemens.
  • ADVERTISEMENT
  • #5 14764239
    jestam
    Automation specialist
    kornik280 wrote:
    What's the difference between SCL and STL?

    STL is an assembler. It exposes all the guts of the platform. For example, you have to deal with arithmetic operations on a stack of accumulators.
    SCL is a high-level language similar to the ST of the IEC (or Pascal) standard.

    kornik280 wrote:
    I know that in the past (...) simatic s7 was programmed in STL, and now after a few years I can see that in the s7-1200 you program in SCL.
    When has it changed?

    With the introduction of the S7-1200 to the market, Siemens began promoting SCL. In my opinion, that's good. Normal computers have not been programmed in assembly language for a quarter of a century, if not more, it's time for drivers ;)

    kosmos99 wrote:
    SCL is also in other drivers

    Ie. in which others? Apart from VIPA and others compatible with Siemens?
    ST from IEC standard is not the same as SCL.
  • #6 14813680
    frohme
    Level 21  
    The fact is that SCL is a "high" level language a bit like Pascal and you can program it (and you even need to have "complicated" numerical algorithms such as sorting) but some things cannot be done with it, or it is pointless. And then we switch to the old STL language that can do everything with a PLC.
  • #7 17417128
    mariusz.terebecki
    Level 2  
    kornik280 wrote:
    .... Normal computers have not been programmed in assembly language for a quarter of a century, if not more, it's time for drivers ;)


    And for a quarter of a century, if not more, software code has not been optimized ... And then that simple application slows down on C2D. Where's something like algorithmics? Optimization? However, this does not change the fact that Siemens "assembler" is more like writing hexadecimal machine instruction codes than a real mnemonic assembler.

Topic summary

SCL (Structured Control Language) and STL (Statement List) are two distinct programming languages used in PLC (Programmable Logic Controller) programming. SCL is a high-level language similar to Pascal, designed for more complex numerical algorithms and easier programming, while STL is a low-level assembler language that provides direct access to the hardware and requires detailed management of arithmetic operations. The transition from STL to SCL began with the introduction of the Siemens S7-1200 series, which promotes SCL for its user-friendly features. However, STL remains relevant for tasks that require low-level control and optimization. SCL is also utilized in other controllers beyond Siemens, while STL is primarily associated with Siemens products.
Summary generated by the language model.
ADVERTISEMENT