Siemens SINUMERIK Commissioning Manual page 391

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

Advertisement

CP("D:\source.mpf","E:\target.mpf")
ENDIF
2.3.19
FOC variable
Description
The FOC variable can be used to control the input focus (the current active input/output field)
in a dialog. Responses to cursor left, right, up and down movements, as well as PGUP,
PGDN, are predefined and cannot be modified.
Note
The FOC function may not be initiated as a result of a navigation event. The cursor position
may only be changed in softkey PRESS blocks, CHANGE blocks, etc.
The FOC function cannot be applied to variables with input mode wr = 0 and wr = 4 or to
Help variables.
Programming
Syntax:
Description:
Return Value:
Example
IF FOC == "Var1"
REG[1] = Var1
ELSE
REG[1] = Var2
ENDIF
FOC = "Var1"
FOC = 3
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
VAR5 = "All OK"
FOC
The variable can be read and written.
Read
Write
;
If no errors have occurred in CP (or GC),
"All OK" is output
The result is the name of the variable to which the
FOC function has been applied.
It is possible to assign either a string or a numerical
value.A string is interpreted as a variable name and a
numerical value as a variable index.
;
Read focus
;
The input focus will be assigned to Variable 1.
;
The input focus will be assigned to the 3rd
dialog element with WR ≥ 2.
Programming
2.3 Variables
2-41

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents