Siemens SINUMERIK 840DE sl Commissioning Manual page 1085

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

Advertisement

Valid INTEGER type specifications:
IH
IHDU
IHWU
IHBU
VARIANT variable type
The VARIANT variable type is determined by the data type of the last value assignment. If the
assigned or entered value starts with '-', '+', '.' or a number ('0'-'9'), then the value is interpreted
as numeric. In all other cases as a string.
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:
Parameter:
Syntax:
Parameter:
Example:
The display mode of variables can be changed:
● For INTEGER, the display type can be changed.
B
D
H
unsigned
With the addition of U for Unsigned
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
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
Binary
Decimal signed
Hexadecimal
5.11 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
99

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents