Siemens SINUMERIK 840D sl Commissioning Manual page 744

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Programming commands
6.3 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
126
(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 
 p rocessed
length
Number of characters that are to be read out
; Result = "WORLD"
(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 
 p rocessed
start
Start from where characters are to be read in the string
length
Number of characters that are to be read out
; Result = "LO/W"
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents