EasyManuals Logo

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 #452 background imageLoading...
Page #452 background image
Programming
2.7 Functions
Expanding the user interface
2-102 Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
RIGHT function: String from right
Syntax: RIGHT
(string, length)
Description: RIGHT returns a string containing the specified number of characters
starting from the right-hand side of a string.
Parameters: string Character string or variable with the string to be
processed
length Number of characters that are to be read out
Example
DEF VAR01
DEF VAR02
LOAD
VAR01="HELLO/WORLD"
VAR02=LEFT(VAR01,4) ; Result = "WORLD"
END_LOAD
MIDS function: String from mid-string
Syntax: MIDS
(string, start [, length])
Description: MIDS returns a string containing the specified number of characters
starting at the specified position in the string.
Parameters: string Character string or variable with the string to be
processed
start Start from where characters are to be read in the
string
length Number of characters that are to be read out
Example
DEF VAR01
DEF VAR02
LOAD
VAR01="HELLO/WORLD"
VAR02=LEFT(VAR01,4,4) ; Result = "LO/W"
END_LOAD

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
InterfaceEthernet, PROFIBUS, PROFINET, USB
Programming LanguagesDIN/ISO
DisplayTFT color display
CompatibilitySiemens drives and motors
SoftwareSINUMERIK Operate
Control Unit TypeCNC (Computer Numerical Control)
Safety FunctionsIntegrated safety functions up to SIL 3/PLe

Related product manuals