Programming
2.3 Variables
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2-25
Valid INTEGER type specifications:
IB
Integer variable 32 bits in binary notation
IBD
Integer variable 32 bits in binary notation
IBW
Integer variable 16 bits in binary notation
IBB
Integer variable 8 bits in binary notation
I
Integer variable 32 bits in decimal notation signed
IDD
Integer variable 32 bits in decimal notation signed
IDW
Integer variable 16 bits in decimal notation signed
IDB
Integer variable 8 bits in decimal notation signed
IDDU
Integer variable 32 bits in decimal notation unsigned
IDWU
Integer variable 16 bits in decimal notation unsigned
IDBU
Integer variable 8 bits in decimal notation unsigned
IH
Integer variable 32 bits in hexadecimal notation
IHDU
Integer variable 32 bits in hexadecimal notation
IHWU
Integer variable 16 bits in hexadecimal notation
IHBU
Integer variable 8 bits in hexadecimal notation
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:
ISNUM
(VAR)
Parameters:
VAR
Name of the variable whose data type is to be checked.
FALSE =
TRUE =
The result of the scan can be:
not a numerical variable (data type = STRING)
numerical variable (data type = REAL)
Syntax:
ISSTR
(VAR)
Parameters:
VAR
Name of the variable whose data type is to be checked.
FALSE =
TRUE =
The result of the scan can be:
numerical variable (data type = REAL)
not a numerical variable (data type = STRING)
Example
IF ISNUM(VAR1) == TRUE
IF ISSTR(REG[4]+2) == TRUE
Содержание SINUMERIK
Страница 6: ...Preface Base software and HMI Advanced 6 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 24: ...Introduction 1 5 Limits of data management HMI Advanced IM4 18 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 96: ......
Страница 338: ...List of Abbreviations B 1 Abbreviations HMI Advanced IM4 332 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 464: ...Programming 2 8 Operators Expanding the user interface 2 114 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 562: ...Index Expanding the user interface Index 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 566: ...Table of contents Online Help HE1 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 598: ...Online Help HE1 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 36 ...
Страница 638: ...References for text generation Generating target language texts TX2 40 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 672: ...Commissioning a system 1 4 BIOS settings PCU Basesoftware IM8 32 Commissioning Manual 03 2009 6FC5397 1DP10 4BA0 ...