● 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] ;VAR1 has the value 2
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] ;VAR1 has the value 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.
7.2.3 Scanning the status of an array element
Description
The Status property can be used to run a scan to find out whether an array access operation
is supplying a valid value.
Programming
Syntax:
Identifier [Z, S, [M[,C]]]
.vld
Description: Status is a read-only property.
Parameters: Identifier Name of array
Return Value: FALSE =
TRUE =
invalid value
valid value
Example
DEF MPIT = (R///"MPIT",,"MPIT",""/wr3)
DEF PIT = (R///"PIT",,"PIT",""/wr3)
PRESS(VS1)
MPIT = 0.6
IF MET_G[MPIT,0,4,1].VLD == TRUE
PIT = MET_G[MPIT,1,0].VAL
REG[4] = PIT
REG[1] = "OK"
ELSE
REG[1] = "ERROR"
Graphic and logic elements
7.2 Defining an array
SINUMERIK Integrate Run MyScreens (BE2)
200 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1