Siemens SINUMERIK Commissioning Manual page 451

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

Advertisement

Example
DEF VAR01
DEF VAR02
LOAD
VAR01="HELLO/WORLD"
VAR02=INST(1,"/",VAR01)
END_LOAD
LEFT Function: String from left
Syntax:
Description:
Parameters:
Example
DEF VAR01
DEF VAR02
LOAD
VAR01="HELLO/WORLD"
VAR02=LEFT(VAR01,5)
END_LOAD
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
String2
Chain of characters in which the search is being
made
Direction (optional) Direction in which the search is being made
0: From left to right (default setting)
1: From right to left
0 is returned if string1 does not occur in string2.
(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 string to be
processed
length
Number of characters that are to be read out
;
Result = 6
; Result = "HELLO"
Programming
2.7 Functions
2-101

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents