Siemens SINUMERIK 840D sl Commissioning Manual page 752

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

Advertisement

Graphic and logic elements
7.2 Defining an array
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:
134
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
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents