Siemens SINUMERIK Commissioning Manual page 452

Sinumerik 840di sl/840d sl/840dbase software and hmi advanced
Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents