Siemens SINUMERIK 840D sl Programming Manual page 80

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

Advertisement

Flexible NC programming
1.9 String operations
Meaning
NUMBER
<string>
<REAL_ERG>
ISNUMBER
<BOOL_ERG>
AXNAME
<AXIS_ERG>
Example
Program code
DEF BOOL BOOL_ERG
DEF REAL REAL_ERG
DEF AXIS AXIS_ERG
BOOL_ERG=ISNUMBER("1234.9876Ex-7")
BOOL_ERG=ISNUMBER("1234XYZ")
REAL_ERG=NUMBER("1234.9876Ex-7")
AXIS_ERG=AXNAME("X")
80
:
The
NUMBER
REAL value.
:
Type STRING variable to be converted
:
Variable for the result of the type conversion with
Type:
REAL
:
The
ISNUMBER
be converted into a valid number.
:
Variable for the result of the interrogation with
Type:
BOOL
Value:
TRUE
FALSE
:
The
AXNAME
identifier.
Note:
If the
<string>
initiated.
:
Variable for the result of the type conversion with
Type:
AXIS
command returns the number represented by the
command can be used to check whether the
ISNUMBER
<string>
compliance with the language rules.
If
ISNUMBER
calling
NUMBER
is initiated.
command converts the specified
cannot be assigned a configured axis identifier, an alarm is
Comment
; BOOL_ERG == TRUE
; BOOL_ERG == FALSE
; REAL_ERG == 1234.9876Ex-7
; AXIS_ERG == X
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
NUMBER
ISNUMBER
supplies the value TRUE, if the
represents a valid REAL number in
supplies the value FALSE, when
with the same
<string>
into an axis
<string>
AXNAME
as
<string>
can
<string>
, an alarm
Job Planning

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents