String Operations - Siemens sinumerik 840d Programming Manual

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

Flexible NC Programming
1

1.10 String operations

840D
840D
NCU 571
NCU 572
NCU 573
1.10

String operations

Overview
In addition to the classic operations "assignment" and
"comparison" described in this section, the following further
string manipulations are possible:
Explanation
Type conversion to STRING:
STRING_ERG = <<bel._Typ
STRING_ERG = AXSTRING (AXIS)
Type conversion from STRING:
BOOL_ERG = ISNUMBER (STRING)
REAL_ERG = NUMBER (STRING)
AXIS_ERG = AXNAME (STRING)
Chaining of strings:
1)
bel._Typ
<< bel. Typ
Conversion to lower/upper case:
STRING_ERG = TOUPPER (STRING)
STRING_ERG = TOLOWER (STRING)
Length of string:
INT_ERG = STRLEN (STRING)
Search for character/string in string:
INT_ERG = INDEX (STRING, CHAR)
INT_ERG = RINDEX (STRING, CHAR)
INT_ERG = MINDEX (STRING, STRING)
INT_ERG = MATCH (STRING, STRING)
Selection of a substring:
STRING_ERG = SUBSTR (STRING, INT)
STRING_ERG = SUBSTR (STRING, INT, INT)
Selection of a single character:
CHAR_ERG = STRINGVAR [IDX]
CHAR_ERG = STRINGFIELD [IDX_FIELD, IDX_CHAR]
1)
"bel._Typ" stands for variable types INT, REAL, CHAR, STRING and BOOL.
1-46
FM-NC
810D
840Di
1)
1)
Result type: STRING
Result type: STRING
Result type: BOOL
Result type: REAL
Result type: AXIS
Result type: STRING
Result type: STRING
Result type: STRING
Result type: INT
Result type: INT
Result type: INT
Result type: INT
Result type: INT
Result type: INT
Result type: INT
Result type: CHAR
Result type: CHAR
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
04.00
1
 Siemens AG 2000. All rights reserved

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents