Siemens SINUMERIK 840D sl Commissioning Manual page 669

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

5.2
Application examples
Help variables
Help variables are internal arithmetic variables. Arithmetic variables are defined like other
variables, but have no other properties apart from variable value and status, i.e. Help
variables are not visible in the dialog. Help variables are of the VARIANT type.
Programming
Syntax:
Description:
Parameters:
Example:
Syntax:
Description:
Parameters:
Example:
LOAD
OTTO = "Test"
END_LOAD
LOAD
OTTO = REG[9].VAL
END_LOAD
Calculation with variables
Variables are calculated every time you exit an IO field (by pressing the ENTER or TOGGLE
key). The calculation is configured in a CHANGE method that is processed every time the
value changes.
You can scan the variable status to ascertain the validity of the value of the variable, e.g.,
IF VAR1.VLD == FALSE
ENDIF
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1
Identifier
DEF
Internal arithmetic variables of the VARIANT type
Identifier:
DEF OTTO
Identifier.val =
Identifier =
A value is assigned to a Help variable in a method.
Identifier:
Help variable value:
; The value "Test"
; The value of the register is assigned to help variable Otto
VAR1 = 84
Name of Help variables
;Definition of a Help variable
Help variable value
Help variable value
Name of help variables
Content of the Help variables
is assigned to help variable Otto.
Variables
5.2 Application examples
51

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents