Industry Online Support
Technical Forum
4/7/2009 1:05 PM | |
Joined: 9/27/2006 Last visit: 6/3/2024 Posts: 12259 Rating: (2670)
|
Hello Memoli; First, a link to Siemens' SCL manual, that explains the syntax quite well: http://support.automation.siemens.com/WW/view/en/5581793 Of course, you could look up specialized books , such as Automating with Step 7 in STL and SCL: http://books.publicis-erlangen.de/cms/website.php?id=/en/produkte/automatisierungstechnik.htm&action=detail&pid=29523&pages=1 Basiocally, the SCL format corresponds to Pascal, using expressions, control statements ( IF...then...else, While...do, For..., Case...of), functions and (Step 7 requirement) block calls. So, in the case of: IndInt := READ_CLK(CDT:=DB100.test1.DateTime); The INT variable Indint is assigned the resut of the function READ_CLOCK's current date and time as it is taken from DB100. Reak_CLK is a System function (SFC1) of Step 7, CDT (current date & time) is one of it's parameters. Hope this helps, Daniel Chartier |
4/8/2009 9:41 AM | |
Posts: 2348 Rating: (263) |
Date and time is put .into DB100.test1.DateTime (CDT variable), integer stores status, showing is SFC executed without errors. |
4/8/2009 11:33 PM | |
Posts: 15 Rating: (0) |
Thanks; I did understand now |
Follow us on