Siemens SINUMERIK 840D sl Commissioning Manual page 107

Commissioning cnc part 2 (hmi)
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

08/2005
Example:
DEF VAR01
DEF VAR02
LOAD
VAR01="HELLO/WORLD"
VAR02=LEFT(VAR01,5)
END_LOAD
Substring from right
Syntax:
RIGHT(string, length)
Parameter:
string
length
Function:
RIGHT returns a string containing the specified number of characters starting from
the right-hand side of a string.
Example:
DEF VAR01
DEF VAR02
LOAD
VAR01="HELLO/WORLD"
VAR02=RIGHT(VAR01,4)
END_LOAD
Substring from mid-string
Syntax:
MIDS(string, start [, length])
Parameter:
string
start
length
Function:
MIDS returns a string containing the specified number of characters starting at the
specified position in the string.
© Siemens AG, 2005. All rights reserved
SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
Character string or variable with the string to be
processed
Number of characters that are to be read out
Character string or variable with the string to be
processed
Start from where characters are to be read in the string
Number of characters that are to be read out (optional)
If length is not specified, then the string is transferred up to the
end.
Expanding the Operator Interface (BE1)
;Result = "HELLO"
;Result = "WORLD"
3 Syntax
BE1/3-101

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 810dSinumerik 840diSinumerik 840d

Table of Contents