08/2005 Expanding the Operator Interface (BE1)
3 Syntax
© Siemens AG, 2005. All rights reserved
SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
BE1/3-51
Extract from file maske.com:
DEF Var2 = (S/*ARR5/"Out"/,"Toggle field")
PRESS(HS5)
LA("ARR5","arrayext.com") ;Load array ARR5 from file
arrayext.com
VAR2 = ARR5[0] ;"Above"/"Below"/"Right"/"Left"
;appears in VAR2 toggle field
;instead of "Out/In"
END_PRESS
//A(ARR5)
("Out"/"In")
//END
Extract from file arrayext.com:
//A(ARR5)
("Top"/"Bottom"/"Right"/"Left")
//END
Note
Please note that a valid value must be assigned to a variable after the LA function
has been used to assign another array to the toggle field of the variable.
Access
The value of an array access operation can be transferred with property Value
(identifier.val).
Access to one-dimensional array with only one column:
Identifier [Z,[M[,C]]] Or Identifier [Z,[M[,C]]].val
Access to one-dimensional array with only one line:
Identifier [S,[M[,C]]] Or Identifier [S,[M[,C]]].val
Access to two-dimensional array:
Identifier [Z,S,[M[,C]]] Or Identifier [Z,S,[M[,C]]].val
where:
Identifier Name of array
Z Line value (line index or search concept)
S Column value (column index or search concept)
M Access mode 0 = Direct
1 = searches the line, column directly
2 = line direct, search the column
3 = searching
4 = searches the line index
5 = searches the column index
C Compare mode 0 = Search concept must be located in value range
of line or column
1 = Search concept must be located exactly
VAR1 = MET_G[REG[3],1,0].VAL
;Assign Var1 a value from array MET_G