Programming
2.7 Functions
Expanding the user interface
2-98
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2.7.25
Search Forward, Search Backward (SF, SB)
Description
The SF, SB (Search Forward, Search Backward) function is used to search for a string from
the current cursor position in the NC program currently selected in the Editor and to output
its value.
Programming
Syntax:
SF
("String")
Identifiers:
Search Forward: Search forward from the current cursor position
Syntax:
SB
("String")
Identifiers:
Search Backward: Search backward from the current cursor position
Parameters:
String
Text to be found
Rules governing text search
● A blank must be inserted before and after the search concept unit, consisting of search
string and its value, in the currently selected NC program.
● The system does not search for concepts within comment text or other strings.
● The value to be output must be a numerical expression. Expressions in the form of
"X1=4+5" are not recognized.
● The system recognizes hexadecimal constants in the form of X1='HFFFF', binary
constants in the form of X1='B10010' and exponential components in the form of X1='-
.5EX-4'.
● The value of a string can be output if it contains the following between string and value:
– Nothing
– Blanks
– Equality sign
Example
The following notations are possible:
X100 Y200
Abc = SB("Y")
;
The variable Abc is assigned the value 200
X100 Y 200
Abc = SB("Y")
;
The variable Abc is assigned the value 200
X100 Y=200
Abc = SB("Y")
;
The variable Abc is assigned the value 200
Содержание 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 ...