5.21 FOC variable
Description
With the variable FOC, the input focus (current active input/output field) is controlled in a dialog.
The reaction of the cursor left, right, up, down as well as PGUP, PGDN are predefined.
Note
The FOC function must not be initiated as a result of a navigation event. The cursor position
may only be changed in softkey PRESS methods, CHANGE methods, etc.
The FOC function cannot be applied to variables with input mode wr = 0 and wr = 4 or to Help
variables.
Programming
Syntax: FOC
Description: The variable can be read and written.
Return value:
Read The result is the name of the variable to which the FOC func‐
tion has been applied.
Write 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.
Example
IF FOC == "Var1" ; Read focus
REG[1] = Var1
ELSE
REG[1] = Var2
ENDIF
FOC = "Var1" ; The input focus is assigned to variable 1.
FOC = 3 ; The input focus is assigned to the 3rd dialog ele-
ment with WR ≥ 2.
See also
FOCUS (Page 129)
Variables
5.21 FOC variable
SINUMERIK Integrate Run MyScreens (BE2)
114 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1