EasyManua.ls Logo

Siemens SINUMERIK

Siemens SINUMERIK
736 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Programming
2.6 Methods
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2-63
Example
DEF VAR1=(S//////"DB20.DBB1") ; A system variable is assigned to Var1
CHANGE(VAR1)
IF VAR1.Val <> 1
VAR1.st="Tool OK!" ; If the value of the system variable 1,
the short text of the variable states:
Tool OK!
otto=1
ELSE
VAR1.st="Attention: Error!" ; If the value of the system variable = 1,
the short text of the variable states:
Attention: Error!
otto=2
ENDIF
VAR2.Var=2
END_CHANGE
"Global" programming
Syntax: CHANGE()
...
END_CHANGE
Description: Changes any variable value
Parameters: - None -
Example
CHANGE()
EXIT ; If any of the variable values change, the dialog will
be terminated.
END_CHANGE

Table of Contents

Other manuals for Siemens SINUMERIK

Related product manuals