Foc Variable - Siemens SINUMERIK 828D Commissioning Manual

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Example
CP("D:\source.mpf","E:\target.mpf")
IF FILE_ERR > 0
ELSE
ENDIF
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:
Description:
SINUMERIK Integrate Run MyScreens
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
IF FILE_ERR == 1
VAR5 = "Drive/path not available"
ELSE
IF FILE_ERR == 2
VAR5 = "Path/file access error"
ELSE
IF FILE_ERR == 3
VAR5 = "incorrect file name"
ENDIF
ENDIF
ENDIF
VAR5 = "All OK"
FOC
The variable can be read and written.
5.21 FOC variable
; Copy from source.mpf to E:\tar-
get.mpf
; Query whether error has occurred
; Query specific error numbers and
output associated error text
; If no errors have occurred in CP
(or GC), "All OK" is output
Variables
85

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents