Siemens SINUMERIK Commissioning Manual page 448

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

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents