Programming
2.7 Functions
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2-101
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.
Example
DEF VAR01
DEF VAR02
LOAD
VAR01="HELLO/WORLD"
VAR02=INST(1,"/",VAR01)
;
Result = 6
END_LOAD
LEFT Function: String from left
Syntax:
LEFT
(string, length)
Description:
LEFT returns a string containing the specified number of characters
starting from the left-hand side of a string.
Parameters:
string
Character string or variable with the string to be
processed
length
Number of characters that are to be read out
Example
DEF VAR01
DEF VAR02
LOAD
VAR01="HELLO/WORLD"
VAR02=LEFT(VAR01,5)
; Result = "HELLO"
END_LOAD
Содержание SINUMERIK
Страница 6: ...Preface Base software and HMI Advanced 6 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 24: ...Introduction 1 5 Limits of data management HMI Advanced IM4 18 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 96: ......
Страница 338: ...List of Abbreviations B 1 Abbreviations HMI Advanced IM4 332 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Страница 464: ...Programming 2 8 Operators Expanding the user interface 2 114 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 562: ...Index Expanding the user interface Index 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 566: ...Table of contents Online Help HE1 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 598: ...Online Help HE1 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 36 ...
Страница 638: ...References for text generation Generating target language texts TX2 40 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Страница 672: ...Commissioning a system 1 4 BIOS settings PCU Basesoftware IM8 32 Commissioning Manual 03 2009 6FC5397 1DP10 4BA0 ...