08/2005 Expanding the Operator Interface (BE1)
3 Syntax
© Siemens AG, 2005. All rights reserved
SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
BE1/3-87
LOAD
...
LB("PROG1") ;Load block
...
END_LOAD
CHANGE()
...
CALL("UP1") ;Call and execute subprogram
...
END_CHANGE
...
//END
Aborting the current subprogram (RETURN)
The RETURN function can be used to prematurely terminate execution of the
current subprogram and to return to the branch point of the last CALL command. If
no RETURN command is configured in the subprogram, the branch point is not
reached again until the end of the current subprogram.
RETURN
//B(PROG1) ;Block start
SUB(UP2) ;Subprogram start
IF VAR1.val=="Otto"
VAR1.val="Hans"
RETURN ;If the variable value = Otto,
;the value Hans is assigned to the
;variable and the subprogram
;is terminated at this point
ENDIF
VAR1.val="Otto" ;If the variable value ≠Otto,
;the value Otto is assigned to the
;variable
END_SUB ;Subprogram end
//END ;Block end
3.6.5 REFRESH function
The function has no parameters. It can be called in any block (e.g., PRESS ...
END_PRESS).
Activation
1. All active variable content (input/output fields) in the display range are output
again with the background and foreground.
2. All active and visible short description texts, graphic texts and unit texts are
output again without clearing the text background first.