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.
Содержание SINUMERIK
Страница 6: ...Preface Base software and HMI Advanced 6 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 24: ...Introduction 1 5 Limits of data management HMI Advanced IM4 18 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 96: ......
Страница 338: ...List of Abbreviations B 1 Abbreviations HMI Advanced IM4 332 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 464: ...Programming 2 8 Operators Expanding the user interface 2 114 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 562: ...Index Expanding the user interface Index 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 566: ...Table of contents Online Help HE1 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 598: ...Online Help HE1 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 36 ...
Страница 638: ...References for text generation Generating target language texts TX2 40 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 672: ...Commissioning a system 1 4 BIOS settings PCU Basesoftware IM8 32 Commissioning Manual 03 2009 6FC5397 1DP10 4BA0 ...