Enertex® EibStudio
P.
126 of 349
Statements
Statement block
Line break
Statements are:
●
Definition of variables, see page 158,
●
Function calls, see page 170,
●
if statements, see page 161.
Comments, enclosed by /* and */ character (C-syntax)
Possible comments:
[EibPC]
/* Super, this comment */ c=$$
z= 1 // a variable was defined
/* Super, a comment also with semicolon */; c2=$$
// comment again
/* my first if-statement */ if /* caution condition is 1b01 */ EIN /* and now the then-path */ then
{
c=elog()
/* a comment without semicolon */
/* also without semicolon */
} endif
if AUS then {
// also possible
z=4;
// finished
} endif
If two or more statements are executed as a block, they can be combined into a block of statements.
These instructions are to be separated by a semicolon.
There is no semicolon after the last statement.
This is the same for a statement block:
It may not interrupted by a newline (“RETURN“). If you want a line break for improved readability, the
line must be finished by a double backslash “\\“ and can subsequently continued in the next line of
the statement block. In if-statements, you can alternatively work with curly brackets ({}; see example
on page 38).
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]