Siemens SINUMERIK Commissioning Manual page 396

Sinumerik 840di sl/840d sl/840dbase software and hmi advanced
Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

Programming
2.4 Complex dialog elements
Examples
● Access mode example 1:
● Access mode example 2:
● Access mode example 3:
● Access mode example 4:
● Access mode example 5:
2-46
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. 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
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
Expanding the user interface

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents