Type Conversion From String (Number, Isnumber, Axname) - Siemens Sinumerik 840D sl Programming Manual

Job planning
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

1.9.2

Type conversion from STRING (NUMBER, ISNUMBER, AXNAME)

Function
A conversion is made from STRING to REAL using the NUMBER command. The ability to be
converted can be checked using the ISNUMBER command.
A string is converted into the axis data type using the AXNAME command.
Syntax
<REAL_ERG>=NUMBER("<string>")
<BOOL_ERG>=ISNUMBER("<string>")
<AXIS_ERG>=AXNAME("<string>")
Significance
NUMBER:
<string>:
<REAL_ERG>:
ISNUMBER:
<BOOL_ERG>:
AXNAME:
<AXIS_ERG>:
Job planning
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
The NUMBER command returns the number represented by the
<string> as REAL value.
Type STRING variable to be converted
Variable for the result of the type conversion with NUMBER
Type:
REAL
The ISNUMBER command can be used to check whether the <string>
can be converted into a valid number.
Variable for the result of the interrogation with ISNUMBER
Type:
BOOL
Value: TRUE
FALSE 
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 initiated.
Variable for the result of the type conversion with AXNAME
Type:
AXIS
Flexible NC programming
ISNUMBER supplies the value TRUE, if the
<string> represents a valid REAL number in
compliance with the language rules.
If ISNUMBER supplies the value FALSE, when
calling NUMBER with the same <string>, an
alarm is initiated.
1.9 String operations
77

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents