08/2005 Expanding the Operator Interface (BE1)
3 Syntax
© Siemens AG, 2005. All rights reserved
SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
BE1/3-97
VAR1.VAL = SQRT(2)
Table 3-13
Constants
PI
3.14159265358979323846
FALSE
0
TRUE
1
VAR1.VAL = PI
Table 3-14
Comparison operators
==
Equal to
<>
Not equal to
>
Greater than
<
Less than
>=
Greater than or equal to
<=
Less than or equal to
IF VAR1.VAL == 1
VAR2.VAL = TRUE
ENDIF
3.6.10 Conditions
Condition with a command:
IF
...
ENDIF
Condition with two commands:
IF
...
ELSE
...
ENDIF
The nesting depth is unlimited.