Programming
2.3 Variables
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2-41
CP("D:\source.mpf","E:\target.mpf")
VAR5 = "All OK"
; If no errors have occurred in CP (or GC),
"All OK" is output
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:
FOC
Description:
The variable can be read and written.
Return Value:
Read
The result is the name of the variable to which the
FOC function 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 will be assigned to Variable 1.
FOC = 3
; The input focus will be assigned to the 3rd
dialog element with WR
≥
2.
Summary of Contents for SINUMERIK
Page 6: ...Preface Base software and HMI Advanced 6 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Page 96: ......
Page 562: ...Index Expanding the user interface Index 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Page 566: ...Table of contents Online Help HE1 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Page 598: ...Online Help HE1 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 36 ...