5/27/2010 2:07 PM | |
Posts: 6 Rating: (0) |
I want to write function blocks in C language. Is there any C programming toolkit for Siemens? |
5/27/2010 2:26 PM | |
Posts: 378 Rating: (47) |
Hello b.ahmad, i don´t know much about your problem, but maybe this thread could be helpful for you. Can S7 Progmamed with C Language. Best regards Bilao |
5/27/2010 3:03 PM | |
Posts: 147 Rating: (34) |
Hi Maybe you are aware of SCL, which is a high level language, similar to PASCAL. SCL is not C, but it can help you to avoid STL/LAD/FBD. Hope this helps |
5/27/2010 7:05 PM | |||||
Joined: 9/27/2006 Last visit: 6/17/2024 Posts: 12260 Rating: (2671)
|
Hello b,ahmad; As stated in earlier posts, there is no C/C++ programming packages in Step 7. The closest you can get to that is the SCL language (Structured Control Language, of Structured Text as it is known in IEC 61131-3); it is loosely related to PASCAL, so the environment would not be too difficult to master, and the integrated debugger helps a lot (although I have heard C programmers express a sense of loss and abandonment....). In any case, here is some documentation that you might find interesting in evaluating the SCL package: S7-SCL manual:http://support.automation.siemens.com/WW/view/en/5581793 Link to various Siemens documents on SCL: https://support.automation.siemens.com/WW/llisapi.dll?func=cslib.csinfo&objId=10805400&objaction=csopen&siteid=cseus&lang=en&skm= Description of S7-SCL (from the A&D Mall): S7-SCL § Integrated user interface with editor, compiler and debugger § Symbolic linking in the debugger § Language elements known from high-level language programming, such as serial loops, alternative branching and branch distributors § Language extensions typical for PLCs, such as addressing of inputs and outputs or start and querying of timers and counters § Elementary and self-defined data types for clearly structured PLC programs Symbols and comments further enhance understanding § Source concept that supports symbols-only programming and storage of the entire program in a source file § Generation of optimized code with low compilation effort § Display of cross-references § High-level language test of user programs is possible (as known from other PLC languages) § Link to project-wide documentation system (DOCPRO) SCL is not an integral part of Step 7, so you will need to purchase it individually:
Daniel Chartier |
||||
Last edited by: dchartier at: 5/27/2010 7:21 PM |
|||||
5/28/2010 11:07 AM | |
Posts: 6 Rating: (0) |
Thank you very much for your reply. I will try SCL now. |
Follow us on