Details About Variant Variable Type; Changing The Type Of A Variable - Siemens SINUMERIK 840D sl Commissioning Manual

Commissioning cnc part 2 (hmi)
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Expanding the Operator Interface (BE1)
3 Syntax
3.3.5

Details about Variant variable type

Variable parameter group 1)
The Variant variable type is determined by the data type of the last value
assignment. Currently, it can be scanned using the ISNUM or ISSTR functions.
The display mode can be changed for the type property of a variable, see
Subsection 3.3.6.
ISNUM (VAR), where:
VAR
ISSTR (VAR), where:
VAR
3.3.6

Changing the type of a variable

Variable parameter group 1)
Variable type
The display mode can be changed for the type property of a variable.
For integer variables this is display type:
B = binary
D = decimal signed
H = hexadecimal
unsigned
+ U for Unsigned
For Real, only the number of places after the decimal point can be changed.
Changing the basic type is illegal and generates an error message in file error.com.
Parameterization example:
Var1.typ = "IBW"
Var2.typ = "R3"
BE1/3-38
SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
Name of the variable whose data type must be checked
The result of the scan can be:
FALSE = not a numerical variable (data type = String)
TRUE = numerical variable (data type = Real) or
Name of the variable whose data type must be checked
The result of the scan can be:
FALSE = numerical variable (data type = Real)
TRUE = not a numerical variable (data type = String)
The Variant field type is primarily suitable either for
writing variable names or numerical values to the NC
code.
IF ISNUM(VAR1) == TRUE
IF ISSTR(REG[4]+2) == TRUE
© Siemens AG, 2005. All rights reserved
08/2005

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 810dSinumerik 840diSinumerik 840d

Table of Contents