Siemens SINUMERIK Commissioning Manual page 375

Sinumerik 840di sl/840d sl/840dbase software and hmi advanced
Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

Valid INTEGER type specifications:
IB
IBD
IBW
IBB
I
IDD
IDW
IDB
IDDU
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
write either variable names or numerical values to the NC code.
Programming
The data type of variables can be checked:
Syntax:
Parameters:
Syntax:
Parameters:
Example
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
Integer variable 32 bits in binary notation
Integer variable 32 bits in binary notation
Integer variable 16 bits in binary notation
Integer variable 8 bits in binary notation
Integer variable 32 bits in decimal notation signed
Integer variable 32 bits in decimal notation signed
Integer variable 16 bits in decimal notation signed
Integer variable 8 bits in decimal notation signed
Integer variable 32 bits in decimal notation unsigned
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
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)
IF ISNUM(VAR1) == TRUE
IF ISSTR(REG[4]+2) == TRUE
Programming
2.3 Variables
2-25

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents