Syntax:
Description:
Syntax:
Description:
Parameters:
Example:
Access mode
● "Direct" access mode
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.
● "Search" access mode
In the case of access mode M = 1, 2 or 3, the search always commences in line 0 or column
0.
Mode M
SINUMERIK Integrate Run MyScreens
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
Identifier [S,[M[,C]]].val] or
Identifier [S,[M[,C]]] or
Access to one-dimensional array with only one line
Identifier [Z,S,[M[,C]]].val or
Identifier [Z,S,[M[,C]]]
Access to two-dimensional array
Identifier:
VAR1 = MET_G[REG[3],1,0].VAL
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
Name of array
Z:
Line value (line index or search concept)
S:
Column value (column index or search concept)
M:
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
C:
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.
;Assign Var1 a value from
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
Graphic and logic elements
7.2 Defining an array
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
167