Siemens SINUMERIK 840D sl Commissioning Manual page 667

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

Advertisement

Variables
5.1
Defining variables
Variable value
The most basic property of a variable is its value.
The value of variables can be assigned by means of:
● Default settings when defining variables
● Assignment to a system or user variable
● A method
Programming
Syntax:
Description:
Parameters:
Example:
Variable status
The "Variable status" property can be used to scan a variable for valid content during
runtime. This property can be read and written with the value FALSE = 0.
Programming
Syntax:
Description:
Parameters:
Example:
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1
Identifier.val = Variable value
Identifier = Variable value
Variable value val (value)
Identifier:
Name of the variable
Variable value:
Value of variable
VAR3 = VAR4 + SIN(VAR5)
VAR3.VAL = VAR4 + SIN(VAR5)
Identifier.vld
Variable status vld (validation)
Identifier:
Name of the variable
The result of the scan can be:
FALSE =
invalid value
TRUE =
valid value
IF VAR1.VLD == FALSE
VAR1 = 84
ENDIF
5
49

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents