Siemens SINUMERIK 840D sl Commissioning Manual page 90

Commissioning cnc part 2 (hmi)
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Expanding the Operator Interface (BE1)
3 Syntax
ELSE
DLGL ("VAR1 and VAR2 are not OK")
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
With HMI Advanced
For HT6
DLGL ("String")
where:
String
(notated according to 1.4)
IF Var1 > Var2
DLGL("Value too high!")
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
VAR1=(S)
VAR2=(S)
VAR3=(S)
VAR4=(S)
CHANGE()
REG[7] = EVAL("VAR"<<REG[5])
END_CHANGE
Conventional configuring of the above function would be performed as follows:
VAR1=(S)
VAR2=(S)
VAR3=(S)
VAR4=(S)
CHANGE()
BE1/3-84
SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
;If the content of VAR1 and VAR2 are incorrect,
;"VAR1 and VAR2 are not OK" appears in the
;dialog line (see DLGL function)
approximately 50 characters in the dialog line
approximately 100 characters in the dialog line
approximately 48 characters in the dialog line
Text, which is displayed in the dialog line
;The text "Value too high!" appears
;in the dialog line if variable1 > variable2.
;Logical expression to be evaluated
;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)
© Siemens AG, 2005. All rights reserved
08/2005

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 810dSinumerik 840diSinumerik 840d

Table of Contents