Expanding the Operator Interface (BE1) 08/2005
3 Syntax
© Siemens AG, 2005. All rights reserved
BE1/3-72 SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
3.5.3 UNLOAD method
The UNLOAD method is executed before a screen form is unloaded.
UNLOAD
...
END_UNLOAD
UNLOAD
REG[1] = VAR1 ;Place variable in register
END_UNLOAD
3.5.4 CHANGE method
CHANGE methods are executed if a variable value changes, i.e., variable
calculations that are performed as soon as a variable value changes are
configured within a CHANGE method.
There are two types of CHANGE method, i.e., element-specific and global.
The element-specific CHANGE method is executed if the value of a specified
variable changes.
CHANGE(identifier)
...
END_CHANGE
where:
Identifier Name of variable
If a system or user variable is assigned to a variable, cyclic updating of the variable
value can be configured in a CHANGE method.
DEF VAR1=(S//////"DB20.DBB1") ;A system variable is assigned
;to Var1
CHANGE(VAR1)
IF VAR1.Val <> 1
VAR1.st=”Tool OK!” ;If the system variable value ≠ 1,
;then the short text of the variable:
;Tool OK!
otto=1
ELSE
VAR1.st="Caution Error!" ;If the system variable value = 1,
;then the short text of the variable:
;Caution Error!
otto=2
ENDIF
VAR2.Var=2
END_CHANGE
The global CHANGE method is executed if the value of any variable changes and
no element-specific CHANGE method has been configured.
CHANGE()
...
END_CHANGE