Making Statements with Structured Text

<< Click to Display Table of Contents >>

Navigation:  Project > Scripts > ST language >

Making Statements with Structured Text

Previous pageReturn to chapter overviewNext page

So, Structured Text consists of statements. But what is statements?A statement is you telling the TeslaSCADA2 what to do. Let’s take the first statement as an example:

bool x;

The compiler will read this as one statement, because when it reaches the semicolon, it knows that this is the end of that statement. Remember, statements are separated by semicolons. That’s the main syntax rule of this language. In this statement you are telling the TeslaSCADA2 to create a variable called X and that variable should be a BOOL type. By default value of the variable is false.