EasyManuals Logo
Home>Siemens>Control Unit>SINUMERIK

Siemens SINUMERIK Commissioning Manual

Siemens SINUMERIK
736 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #448 background imageLoading...
Page #448 background image
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

Table of Contents

Other manuals for Siemens SINUMERIK

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK and is the answer not in the manual?

Siemens SINUMERIK Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK
CategoryControl Unit
LanguageEnglish

Related product manuals