02.09.2014 Views

ISPSoft User Manual

ISPSoft User Manual

ISPSoft User Manual

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.

<strong>ISPSoft</strong> <strong>User</strong> <strong>Manual</strong><br />

11.1 Knowing Structured Texts<br />

A structured text is a high level language that is syntactically resembles C or Pascal. It is composed<br />

of text. Compared with instruction lists, structured texts are more readable. A structured text is very<br />

flexible and intuitive for writing control algorithms. People who are trained in programming<br />

languages often find it the easiest language to use for programming control logic. Besides,<br />

structured texts provide a familiar programming environment for programmers who are familiar with<br />

the C language.<br />

11.1.1 Basic Structure of a Structured Text<br />

The structured text shown below is a basic structured text. It has the same function as the ladder<br />

diagram under it. The structure of the structured text is similar to the syntax of human language. A<br />

structured text is composed of statements.<br />

The structure of the structured text above is shown below.<br />

* In a structured text, “:=” means “to assign”, and “=” means “to be equal to”.<br />

11.1.2 Statement<br />

The statement is a basic unit. It represents a complete task which can be executed. A complete<br />

statement may not be represented by a single line, but it always ends with a semicolon.<br />

11-2

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

Saved successfully!

Ooh no, something went wrong!