Siemens SINUMERIK 840D sl Commissioning Manual page 57

Commissioning cnc part 2 (hmi)
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

08/2005
Extract from file maske.com:
DEF Var2 = (S/*ARR5/"Out"/,"Toggle field")
PRESS(HS5)
LA("ARR5","arrayext.com")
arrayext.com
VAR2 = ARR5[0]
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]]]
Access to one-dimensional array with only one line:
Identifier [S,[M[,C]]]
Access to two-dimensional array:
Identifier [Z,S,[M[,C]]]
where:
Identifier
Z Line value (line index or search concept)
S Column value (column index or search concept)
M Access mode
C Compare mode
VAR1 = MET_G[REG[3],1,0].VAL
© Siemens AG, 2005. All rights reserved
SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
Or
Identifier [Z,[M[,C]]].val
Or
Identifier [S,[M[,C]]].val
Or
Identifier [Z,S,[M[,C]]].val
Name of array
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
0 = Search concept must be located in value range
of line or column
1 = Search concept must be located exactly
;Assign Var1 a value from array MET_G
Expanding the Operator Interface (BE1)
;Load array ARR5 from file
;"Above"/"Below"/"Right"/"Left"
;appears in VAR2 toggle field
;instead of "Out/In"
3 Syntax
BE1/3-51

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 810dSinumerik 840diSinumerik 840d

Table of Contents