Expanding the Operator Interface (BE1) 08/2005
3 Syntax
© Siemens AG, 2005. All rights reserved
BE1/3-84 SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
ELSE
DLGL (”VAR1 and VAR2 are not OK”)
;If the content of VAR1 and VAR2 are incorrect,
;"VAR1 and VAR2 are not OK" appears in the
;dialog line (see DLGL function)
ENDIF
Dialog line (DLGL)
It is possible to configure short texts (messages or input tips) for output in the
dialog line in response to certain situations.
If default font size is selected:
With HMI Embedded approximately 50 characters in the dialog line
With HMI Advanced approximately 100 characters in the dialog line
For HT6 approximately 48 characters in the dialog line
DLGL ("String")
where:
String Text, which is displayed in the dialog line
(notated according to 1.4)
IF Var1 > Var2
DLGL("Value too high!") ;The text "Value too high!" appears
;in the dialog line if variable1 > variable2.
ENDIF
Evaluate expression (EVAL)
The EVAL function evaluates a transferred expression and then executes it. With
this function, expressions can be programmed during runtime. This can be useful,
for example, for indexed access operations to variables.
EVAL(exp)
where:
exp ;Logical expression to be evaluated
VAR1=(S)
VAR2=(S)
VAR3=(S)
VAR4=(S)
CHANGE()
REG[7] = EVAL("VAR"<<REG[5]) ;The expression in parentheses
;is the value of VAR3 if the value of
;REG[5] equals 3. REG[7] is
;assigned the value of VAR3.
;(See Subsection 3.6.11)
END_CHANGE
Conventional configuring of the above function would be performed as follows:
VAR1=(S)
VAR2=(S)
VAR3=(S)
VAR4=(S)
CHANGE()