Siemens SINUMERIK 828D Commissioning Manual page 1083

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

VAR01="HALLO/WELT"
VAR02=INST(1,"/",VAR01)
END_LOAD
LEFT Function: String from left
Syntax:
Description:
Parameters:
Example
DEF VAR01
DEF VAR02
LOAD
VAR01="HALLO/WELT"
VAR02=LEFT(VAR01,5)
END_LOAD
RIGHT function: String from right
Syntax:
Description:
Parameters:
Example
DEF VAR01
DEF VAR02
LOAD
VAR01="HALLO/WELT"
VAR02=LEFT(VAR01,4)
END_LOAD
SINUMERIK Integrate Run MyScreens
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
; Result = 6
(string, length)
LEFT
LEFT returns a string containing the specified number of characters starting from
the left-hand side of a string.
string
Character string or variable with the character string to be
processed
length
Number of characters that are to be read out
; Result = "HELLO"
(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 character string to be
processed
length
Number of characters that are to be read out
; Result = "WORLD"
Programming commands
6.3 Functions
153

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents