Is SCL almost = ST (structure text) ?

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
I have learned ST @ school a little bit, but never used it in real life...

Does anyone has a tutorial or manual how to program SCL or ST in PLC's... ?

And when is it used mostly instead of STL, LAD, FBD, GRAPH... ?

I know that simotion can be programmed in ST, why is that ?
 
Hello Combo;



Manuals:http://support.automation.siemens.com/WW/llisapi.dll?query=SCL+manuals&func=cslib.cssearch&content=skm%2Fmain.asp&lang=en&siteid=cseus&objaction=cssearch&searchinprim=0&nodeid0=4000024
(You should know how to look in the Siemens website by now, shouldn't you? I'll let you look for ST [Siemens calls it STL]).

SCL is closer to PASCAL programming, and much easier to understand by a user. We used it to program math functions that required much processing (harder to do in LAD/FBD, almost inscrutable in STL).


Hope this helps,
Daniel Chartier
 
I

I still feel myself als a basic beginner if I reed this, I never worked with arrays and the math that I'm using is something from the childgarden
 
But

But, I've red 2 versions now,

one telling me it's the same SCL = ST

other one SCL = Pascal
 
SCL conforms exactly to IEC1131-3 ST.
SCL is "similar" but not the same as Pascal.

One wonders which brainhead at Siemens decided to call it SCL, when it really really is ST.
 
Simply put?

STL is like:

A I 0.0
AN M20.0
= Q 0.1

SCL is like:

If I0.0 and NOT M20.0 then
Q 0.1 = true
else Q 0.1 = false

Note that I have no experience in SCL, only seen a few source-files so above syntax might not be 100% correct.
But it should give you an idea of how the 2 differ.
 
Jesper,
One wonders which brainhead at Siemens decided to call it SCL, when it really really is ST
I think it's all down to politics! You have to ask which came first, SCL or ST? I think Siemens had a very early language they implemented in some of their non-PLC controllers which they called SCL. This was before IEC61131-3, so when the IEC Working Party decided to call this language ST, Siemens decided to stick with their name for it, SCL. The same thing happened with Graph 5 which existed before the IEC defined SFC. When S7 was launched, the equivalent language was somehow named S7 Graph (why not Graph 7? who knows)and Siemens stuck with their name for the product despite the IEC saying it should be SFC. And what about good old IL (in IEC terms) which Siemens insists on calling by their own name, STL, because that's what it was called before 61131-3.

I'm sure if Siemens had their way in the IEC working party we would all be talking about SCL and STL rather than ST and IL!

Regards

Ken
 
Aha, I didnt know that Siemens SCL and GRAPH preceeded IEC ST and SFC.

But I think that it is a good thing that Siemens STL has a different name from IEC IL. These two are not the same.
 
Hello guys;

Just for the anecdotal value of the thing...
named S7 Graph (why not Graph 7? who knows

Grafcet is the original name of SFC programming, developed by the french AFCET in the early 90s, well before IEC61131-3. Since 7 is "sept" in fFrench, pronounced "set", Siemens probably wanted to avoid any confusion (or liability) for their implementation.
Regards,
Daniel Chartier
 
Last edited:

Similar Topics

Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
268
Hi everyone, I am new to this amazing world of PLC, well... I mean, in practice, since I already knew electronics, programming languages, IT, and...
Replies
7
Views
610
Hi all, This is my first post; I am new to PLC Controls stuff and English is not my native language, so I apologize in advance if something is...
Replies
4
Views
490
Hi! I am working on a project were we will be replacing an 300 CPU with a 1500 CPU and we are working on migrating / converting code. There is a...
Replies
9
Views
1,026
Hello everyone, friends. I need help with something related to SCL. In a FB, I need to copy the value in the DB to the DB at another address. I...
Replies
3
Views
1,350
Back
Top Bottom