EasyManuals Logo
Home>Siemens>Control Unit>SINUMERIK

Siemens SINUMERIK Commissioning Manual

Siemens SINUMERIK
736 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 #450 background imageLoading...
Page #450 background image
Programming
2.7 Functions
Expanding the user interface
2-100 Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2.7.27 STRING functions
Overview
The following functions enable strings to be processed:
Determine length of string
Find a character in a string
Extract substring from left
Extract substring from right
Extract substring from mid-string
Replace substring
LEN function: Length of a string
Syntax: LEN
(string | varname)
Description: Determines the number of characters in a string
Parameters: string Every valid string expression. NULL is output if
string is blank.
varname Any valid declared variable name
Only one of the two parameters is allowed.
Example
DEF VAR01
DEF VAR02
LOAD
VAR01="HALLO"
VAR02=LEN(VAR01) ; Result = 5
END_LOAD
INSTR function: Search for character in string
Syntax: INSTR
(Start, String1, String2 [,Direction])
Description: Searches for characters
Parameters: Start Starting position for searching from string1 into
string2. Enter 0 to start searching at the
beginning of string2.
String1 Character that is being searched for.

Table of Contents

Other manuals for Siemens SINUMERIK

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens SINUMERIK Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK
CategoryControl Unit
LanguageEnglish

Related product manuals