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
● For REAL data types, only the number of places after the decimal point can be changed.
Changing the type is illegal and generates an error message in the easyscreen_log.txt. file.
Example:
Var1.typ = "IBW"
Var2.typ = "R3"
Numerical formats
Numbers can be represented in either binary, decimal, hexadecimal or exponential notation:
Binary
Decimal
Hexadecimal
exponential
Examples:
Note
When codes are generated with the "GC" function, only numerical values in decimal or
exponential notation are evaluated, but not those in binary or hexadecimal notation.
See also
Variable parameters (Page 69)
SINUMERIK Integrate Run MyScreens
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
(VAR)
ISSTR
VAR
IF ISNUM(VAR1) == TRUE
IF ISSTR(REG[4]+2) == TRUE
Binary
Decimal signed
Hexadecimal
B01110110
123.45
HF1A9
-1.23EX-3
VAR1 = HF1A9
REG[0]= B01110110
DEF VAR7 = (R//-1.23EX-3)
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
77