Siemens SINUMERIK 840D sl Commissioning Manual page 106

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

Advertisement

Expanding the Operator Interface (BE1)
3 Syntax
Find a character
Syntax:
INSTR(start, string1, string2 [,direction])
Parameter:
start
string1
string2
direction
Function:
INSTR returns the position of the first occurrence of a specified character in a
string.
Note:
0 is returned if string1 does not occur in string2.
Example:
DEF VAR01
DEF VAR02
LOAD
VAR01="HELLO/WORLD"
VAR02=INST(1,"/",VAR01)
END_LOAD
Substring from left
Syntax:
LEFT(string, length)
Parameter:
string
length
Function:
LEFT returns a string containing the specified number of characters starting from
the left-hand side of a string.
BE1/3-100
SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
Number, position from which string1 is searched for in string2.
This parameter defines the start position for the search. Enter 0
to start searching at the beginning of string2.
Character that is being searched for.
Chain of characters in which the search is being made
Optional. Defines the search direction.
0: From the left to the right,
1: From the right to the left.
If not specified, then direction = 0
Character string or variable with the string to be
processed
Number of characters that are to be read out
;Result = 6
© Siemens AG, 2005. All rights reserved
08/2005

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 810dSinumerik 840diSinumerik 840d

Table of Contents