Siemens SINUMERIK 840DE sl Commissioning Manual page 1183

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

Advertisement

7.2.1
Accessing the value of an array element
Description
The value of an array access operation can be transferred with property Value (identifier.val).
The line index (line number of the array) and the column index (column number of the array)
each begin at 0. If a line index or column index is outside the array, the value 0 or a blank
string is output and the ERR variable is set to TRUE. Variable ERR is also set to TRUE if a
search concept cannot be found.
Programming
Syntax:
Description:
Syntax:
Description:
Syntax:
Description:
Parameters:
Example:
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
Identifier [Z,[M[,C]]].val or
Identifier [Z,[M[,C]]]
Access to one-dimensional array with only one column
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:
Name of array
Z:
Line value (line index or search concept)
S:
Column value (column index or search concept)
M:
Access mode
C:
Compare mode
VAR1 = MET_G[REG[3],1,0].VAL
0
Direct
1
Searches the line, column directly
2
Searches the column, line directly
3
Searches
4
Searches line index
5
Searches column index
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
Graphic and logic elements
7.2 Defining an array
197

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents