Syntax
<STRING_ERG> = << <any_type>
<STRING_ERG> = AXSTRING(<axis identifier>)
Significance
<STRING_ERG>
<any_type>
AXSTRING
<axis identifier>
Note
FRAME variables cannot be converted.
Examples
Example 1:
MSG("Position:"<<$AA_IM[X])
Example 2: AXSTRING
Program code
DEF STRING[32] STRING_ERG
STRING_ERG=AXSTRING(X)
1.9.2
Type conversion from STRING (NUMBER, ISNUMBER, AXNAME)
Function
A conversion is made from STRING to REAL using the
converted can be checked using the
A string is converted into the axis data type using the
Syntax
<REAL_ERG>=NUMBER("<string>")
<BOOL_ERG>=ISNUMBER("<string>")
<AXIS_ERG>=AXNAME("<string>")
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
:
Variable for the result of the type conversion
Type:
:
Variable types INT, REAL, CHAR, STRING and BOOL
:
The
string.
:
Variable for axis identifier
Type:
STRING
command supplies the specified axis identifier as
AXSTRING
AXIS
Comments
; STRING_ERG == "X"
NUMBER
command.
ISNUMBER
AXNAME
Flexible NC programming
1.9 String operations
command. The ability to be
command.
79