Siemens SINUMERIK 840D sl Commissioning Manual page 755

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

Advertisement

Examples
● Access mode example 1:
● Access mode example 2:
● Access mode example 3:
● Access mode example 4:
● Access mode example 5:
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1
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.
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.
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.
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.
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.
;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
137

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents