Application Examples - Siemens SINUMERIK 828D Commissioning Manual

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

Advertisement

Variables

5.2 Application examples

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:
Parameter:
Example:
Syntax:
Description:
Parameter:
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
62
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:
VAR1 = 84
Name of the Help variable
;Definition of a Help variable
Help variable value
Help variable value
Name of the Help variable
Content of the Help variables
; The value "Test"
is assigned to help variable Otto.
; The value of the register is assigned to help variable
Otto
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
SINUMERIK Integrate Run MyScreens

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents