hit counter script

Siemens SINUMERIK 828D Commissioning Manual page 1099

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

//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.
● Access mode example 4:
The search concept is in Z. S contains the column index of the column in which concept is
being searched for. The line index of the concept found is output:
VAR1 = Thread[0.125,1,4]
Explanation:
Search for value 0.125 in column 1 of array "Thread" and transfer the line index of the value
found to VAR1.
● Access mode example 5:
Z contains the line index of line in which concept is being searched for. The search concept
is in S. The column index of the concept found is output:
VAR1 = Thread[4,0.2,5,1]
Explanation:
Search in line 4 of the "Thread" array for the value 0.2 and transfer the column index of the
value found to VAR1. Comparison mode 1 was selected because the values of line 4 are
not sorted in ascending order.
SINUMERIK Integrate Run MyScreens
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
(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
;VAR1 has the value 2
;VAR1 has the value 1
Graphic and logic elements
7.2 Defining an array
1.010 )
1.246 )
169

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents

Save PDF