Siemens SINUMERIK Commissioning Manual page 394

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

Advertisement

Programming
2.4 Complex dialog elements
Example
Access mode
● "Direct" access mode
● "Search" access mode
Mode M
Compare mode
When compare mode C = 0 is used, the content of the search line or search column must be
sorted in ascending order. If the search concept is smaller than the first element or larger
than the last, the value 0 or a blank string is output and the error variable ERR is set to
TRUE.
2-44
M:
C:
VAR1 = MET_G[REG[3],1,0].VAL ;Assign Var1 a value from
With "Direct" access mode (M = 0), the array is accessed with the line index in Z and the
column index in S. Compare mode C is not evaluated.
In the case of access mode M = 1, 2 or 3, the search always commences in line 0 or
column 0.
Line value Z
0
Line index
1
Search concept:
Search in column 0
2
Line index of line from
which return value is read
3
Search concept:
Search in column 0
4
Search concept:
Search in column S
5
Line index of search line.
Access mode
0
Direct
1
Searches the line, column directly
2
Searches the column, line directly
3
Searches
4
Searches line index
5
Searches column index
Compare mode
0
Search concept must be located in the range of
values of the line or column.
1
Search concept must be located exactly.
array MET_G
Column value S
Column index
Column index of column
from which value is read
Search concept:
Search in line 0
Search concept:
Search in line 0
Column index of search
column
Search concept:
Search in line Z
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
Output value
Value from line Z and
column S
Value from line found and
column S
Value from line Z and
column found
Value from line and column
found
Line index
Column index
Expanding the user interface

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents