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