Siemens SINUMERIK 840D sl Programming Manual page 82

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

Advertisement

Flexible NC programming
1.9 String operations
<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")
82
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
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.
Comments
; BOOL_ERG == TRUE
; BOOL_ERG == FALSE
; REAL_ERG == 1234.9876Ex-7
; AXIS_ERG == X
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents