Siemens SINUMERIK 840D sl Commissioning Manual page 679

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

Advertisement

Valid INTEGER type specifications:
IDWU
IDBU
IH
IHDU
IHWU
IHBU
VARIANT variable type
The VARIANT variable type is determined by the data type of the last value assignment. It
can be scanned using the ISNUM or ISSTR functions. The VARIANT type is mainly suited to
the purpose of writing either variable names or numerical values to the NC code.
Programming
The data type of variables can be checked:
Syntax:
Parameters:
Syntax:
Parameters:
Example:
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1
Integer variable 16 bits in decimal notation unsigned
Integer variable 8 bits in decimal notation unsigned
Integer variable 32 bits in hexadecimal notation
Integer variable 32 bits in hexadecimal notation
Integer variable 16 bits in hexadecimal notation
Integer variable 8 bits in hexadecimal notation
(VAR)
ISNUM
VAR
Name of the variable whose data type is to be checked.
The result of the scan can be:
FALSE =
not a numerical variable (data type = STRING)
TRUE =
numerical variable (data type = REAL)
(VAR)
ISSTR
VAR
IF ISNUM(VAR1) == TRUE
IF ISSTR(REG[4]+2) == TRUE
5.8 Details on the variable type
Name of the variable whose data type is to
be checked.
The result of the scan can be:
FALSE =
numerical variable (data type = REAL)
TRUE =
not a numerical variable (data type =
STRING)
Variables
61

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents