Siemens SINUMERIK 840D sl Commissioning Manual page 741

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

6.3.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")
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1
("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
Programming commands
6.3 Functions
123

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents