Accessing The Value Of An Array Element - Siemens SINUMERIK 828D Commissioning Manual

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Graphic and logic elements
7.2 Defining an array
Programming
Syntax:
Description:
Parameters:
Example
//A(Thread)
(0.3 / 0.075 / 0.202)
(0.4 / 0.1
(0.5 / 0.125 / 0.338)
(0.6 / 0.15
(0.8 / 0.2
(1.0 / 0.25
(1.2 / 0.25
(1.4 / 0.3
(1.7 / 0.35
//END
7.2.1

Accessing the value of an array element

Description
The value of an array access operation can be transferred with property Value (identifier.val).
The line index (line number of the array) and the column index (column number of the array)
each begin at 0. If a line index or column index is outside the array, the value 0 or a blank
string is output and the ERR variable is set to TRUE. Variable ERR is also set to TRUE if a
search concept cannot be found.
Programming
Syntax:
Description:
166
(Identifier)
//A
(a/b...)
(c/d...)
...
//END
Defines array
Identifier
a, b, c, d
; Size/lead/core diameter
/ 0.270)
/ 0.406)
/ 0.540)
/ 0.676)
/ 0.676)
/ 1.010)
/ 1.246)
Identifier [Z,[M[,C]]].val or
Identifier [Z,[M[,C]]]
Access to one-dimensional array with only one column
Name of array
Values of array
Values of the STRING type must be enclosed in double quo‐
tation marks.
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
SINUMERIK Integrate Run MyScreens

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents