<REAL_RES>: Variable for the result of the type conversion with NUMBER
Type: REAL
ISNUMBER: The ISNUMBER command checks whether the <string> can be converted into a
valid number.
<BOOL_RES>: Variable for the result of the interrogation with ISNUMBER
Type: BOOL
Value: TRUE ISNUMBER supplies the value TRUE, if the <string>
represents a valid REAL number in compliance with
the language rules.
FALSE If ISNUMBER supplies the value FALSE, when call‐
ing NUMBER with the same <string>, an alarm is
initiated.
AXNAME: The AXNAME command converts the specified <string> into an axis identifier.
Note:
If the <string> cannot be assigned a configured axis identifier, an alarm is initi‐
ated.
<AXIS_RES>: Variable for the result of the type conversion with AXNAME
Type: AXIS
Example
Program code Comment
DEF BOOL BOOL_RES
DEF REAL REAL_RES
DEF AXIS AXIS_RES
REAL_RES == 1234.9876Ex-7 ; BOOL_RES == TRUE
BOOL_RES=ISNUMBER("1234XYZ") ; BOOL_RES == FALSE
REAL_RES=NUMBER("1234.9876Ex-7") ; REAL_RES == 1234.9876Ex-7
AXIS_RES=AXNAME("X") ; AXIS_RES == X
3.1.4.3 Concatenation of strings (<<)
The function "concatenation strings" allows a string to be configured from individual
components.
The concatenation is realized using the operator "<<". This operator has STRING as the target
type for all combinations of basic types CHAR, BOOL, INT, REAL, and STRING. Any
conversion that may be required is carried out according to existing rules.
Syntax
<any_type> << <any_type>
Work preparation
3.1 Flexible NC programming
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 449