EasyManuals Logo

Siemens SINUMERIK 840DE SL Commissioning Manual

Siemens SINUMERIK 840DE SL
1734 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1068 background imageLoading...
Page #1068 background image
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: DEF
Identifier
Description: Internal arithmetic variables of the VARIANT type
Parameter:
Identifier: Name of the Help variable
Example: DEF OTTO ;Definition of a Help variable
Syntax: Identifier.val =
Help variable value
Identifier =
Help variable value
Description: A value is assigned to a Help variable in a method.
Parameter:
Identifier: Name of the Help variable
Help variable value: Content of the Help variables
Example:
LOAD
OTTO = "Test"
END_LOAD
; The value "Test" is assigned to help variable Otto.
LOAD
OTTO = REG[9].VAL
END_LOAD
; The value of the register is assigned to help variable
Otto
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
VAR1 = 84
ENDIF
Variables
5.2 Application examples
SINUMERIK Integrate Run MyScreens (BE2)
82 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1

Table of Contents

Other manuals for Siemens SINUMERIK 840DE SL

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 840DE SL and is the answer not in the manual?

Siemens SINUMERIK 840DE SL Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 840DE SL
CategoryControl Systems
LanguageEnglish

Related product manuals