Siemens SINUMERIK Commissioning Manual page 381

Sinumerik 840di sl/840d sl/840dbase software and hmi advanced
Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

Calculation with variables
Variables are calculated every time you exit an input/output field (by pressing the ENTER or
TOGGLE key). The calculation is configured in a CHANGE method that is processed every
time the value changes.
You can scan the variable status to ascertain the validity of the value of the variable, e.g.,
Var1 = Var5 + SIN(Var2)
Otto = PI * Var4
Addressing system variables indirectly
A system variable can also be addressed indirectly, i.e., as a function of another variable:
PRESS(HS1)
AXIS=AXIS+1
WEG.VAR="$AA_DTBW["<<AXIS<<"]"
variable
END_PRESS
Changing the softkey label
Example
HS3.st = "New Text"
2.3.9
Example 1: Assigning the Variable Type, Texts, Help, Colors properties
Example 1
Assigning the Variable Type, Texts, Help, Colors properties
DEF Var1 = (R///,"Actual value",,"mm"//"Var1.bmp"////8,2)
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
;Change softkey label
Variable Type:
Limits or toggle field entries:
Default:
Texts:
Long text:
Short text:
Graphic text:
Unit text:
Attributes:
Help display:
System or user variable:
Position of short text:
Position of input/output field:
;Address axis address via
REAL
none
none
None
Actual value
none
mm
none
Var1.bmp
none
No data, i.e., default position
No data, i.e., default position
Programming
2.3 Variables
2-31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents