Selection Of A Substring - Siemens sinumerik 840d Programming Manual

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

Advertisement

04.00
1
840D
840D
NCU 571
NCU 572
NCU 573

1.10.6 Selection of a substring

This functionality makes it possible to separate a
substring from a string. For this purpose, the index of
the first character and the desired string length (if
applicable) are specified. If no length information is
specified, then the string data refers to the remaining
string.
STRING_ERG = SUBSTR
STRING_ERG = SUBSTR
Semantics:
In the first case, the substring from the position
defined by the first parameter up to the end of the
string is returned.
In the second case, the result string is limited to the
maximum length as defined by the third parameter.
If the start position is after the string end, then the
empty string ("") is returned.
If the start position or the length is negative, then an
alarm is output.
Example:
DEF STRING [29] ERG
ERG = SUBSTR ("ACKNOWLEDGMENT: 10 to 99",
10, 2)
 Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
FM-NC
810D
840Di
(STRING,INT, INT)
Flexible NC Programming
1.10 String operations
Result type: INT
Result type: INT
; ERG therefore == "10"
1
1-53

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents