Siemens SINUMERIK 840DE sl Commissioning Manual page 1185

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

Advertisement

//END
//A(Array2)
//END
Examples
● Access mode example 1:
The search concept is in Z. This key is always sought in column 0. The value from column
S is output with the line index of the concept found.
VAR1 = Thread[0.5,1,1]
Explanation:
Search for value 0.5 in column 0 of "Thread" array and output the value found in column 1
of the same line.
● Access mode example 2:
The search concept is in S. This concept is always searched for in line 0. The value from
line Z is output with the column index of the concept found:
VAR1 = ARRAY2[3,"PTCH",2]
Explanation:
Search for column containing "PTCH" in line 0 of array "Array2". Output the value from the
column found and the line with index 3.
● Access mode example 3:
A search concept is in each of Z and S. The line index is searched for in column 0 with the
concept in Z and the column index in line 0 with the concept in S. The value from the array
is output with the line index and column index found:
VAR1 = ARRAY2[0.6,"PTCH",3]
Explanation:
Search for the line with the content 0.6 in column 0 of array "Array2", search for the column
with the content "STG" in line 0 of Array2. Transfer the value from the line and column found
to VAR1.
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
(1.0 / 0.25
/ 0.676)
(1.2 / 0.25
/ 0.676)
(1.4 / 0.3
/ 1.010)
(1.7 / 0.35
/ 1.246)
("DES" /
"PTCH" /
(0.3 /
0.075 /
(0.4 /
0.1 /
(0.5 /
0.125 /
(0.6 /
0.15 /
(0.8 /
0.2 /
(1.0 /
0.25 /
(1.2 /
0.25 /
(1.4 /
0.3 /
(1.7 /
0.35 /
;VAR1 has the value 0.125
;VAR1 has the value 0.125
;VAR1 has the value 0.15
Graphic and logic elements
7.2 Defining an array
"CDM" )
0.202 )
0.270 )
0.338 )
0.406 )
0.540 )
0.676 )
0.676 )
1.010 )
1.246 )
199

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents