03.12.2012 Views

SIMATIC Industral Software - Tools for configuring and programming ...

SIMATIC Industral Software - Tools for configuring and programming ...

SIMATIC Industral Software - Tools for configuring and programming ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Engineering tools<br />

S7-SCL<br />

Programming complex algorithms<br />

S7-SCL corresponds to the textual high-level language ST<br />

(Structured Text) defined in the st<strong>and</strong>ard IEC 61131-3 <strong>and</strong><br />

fulfills base level <strong>and</strong> reusability level requirements acc. to<br />

PLCopen. S7-SCL is particularly suitable <strong>for</strong> <strong>programming</strong><br />

complex algorithms <strong>and</strong> arithmetic functions or <strong>for</strong> data<br />

processing tasks.<br />

Additional benefits compared with STEP 7 Basis:<br />

■ Simple <strong>and</strong> fast program development with low susceptibility<br />

to errors thanks to using powerful language constructs<br />

such as IF...THEN...ELSE.<br />

■ Easier to underst<strong>and</strong> thanks to better readability <strong>and</strong> more<br />

transparent structuring.<br />

■ Easier program test using a high-level language <strong>and</strong><br />

a debugger.<br />

The user can there<strong>for</strong>e <strong>for</strong>mulate solutions <strong>for</strong> all automation<br />

tasks in a time-saving <strong>and</strong> cost-effective manner.<br />

Declaration <strong>and</strong> instruction part of a function block<br />

Functions<br />

S7-SCL programs are programmed as ASCII sources. An exchange<br />

with other ASCII sources or targets is there<strong>for</strong>e<br />

possible. The S7-SCL editor offers various templates that only<br />

need to be filled in <strong>and</strong> inserted:<br />

■ Templates <strong>for</strong> blocks (e.g. function blocks, data blocks) <strong>and</strong><br />

their calls<br />

■ Templates <strong>for</strong> block comments, block parameters <strong>and</strong> constants<br />

■ Templates <strong>for</strong> control structures (IF, CASE, FOR, WHILE,<br />

REPEAT) that contain the exact syntax.<br />

These templates enable very efficient <strong>programming</strong>. S7-SCL<br />

offers the following functionalities:<br />

■ Language elements from <strong>programming</strong> in high-level languages,<br />

e.g. serial loops, alternative branches <strong>and</strong> branch<br />

distributors<br />

■ S7-SCL blocks can be used in other STEP 7 languages<br />

■ PLC-typical language extensions, e.g. addressing of inputs<br />

<strong>and</strong> outputs, or start <strong>and</strong> scanning of timers <strong>and</strong> counters<br />

■ Elementary <strong>and</strong> self-defined data types <strong>for</strong> a clear structuring<br />

of the user programs. Symbols <strong>and</strong> comments increase<br />

underst<strong>and</strong>ability as well.<br />

Engineering tools 11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!