EasyManuals Logo

Siemens SINUMERIK ONE MCP 2400.4c Programming Manual

Siemens SINUMERIK ONE MCP 2400.4c
1334 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #449 background imageLoading...
Page #449 background image
<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

Table of Contents

Other manuals for Siemens SINUMERIK ONE MCP 2400.4c

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK ONE MCP 2400.4c and is the answer not in the manual?

Siemens SINUMERIK ONE MCP 2400.4c Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK ONE MCP 2400.4c
CategoryControl Systems
LanguageEnglish

Related product manuals