Siemens SINUMERIK 840D sl Programming Manual page 430

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Work preparation
3.1 Flexible NC programming
Meaning:
<result>:
GETVARDIM:
<name>:
<Index>:
Example:
Program code
N5 DEF REAL myReal[5,4]
N10 R1=GETVARDIM("myReal",1)
N15 R2=GETVARDIM("myReal",2)
Read default value
Syntax:
<Status>=GETVARDFT(<Name>,<Result>[,<Index_1>,<Index_2>, <Index_3>])
Meaning:
<Status>:
GETVARDFT:
430
Size of the dimension specified by the parameter <Index>
Data type:
INT
Reading the size of the first, second or third dimension of the field of a system/user
variable
Name of the system/user variables
Data type:
STRING
Array index
Data type:
INT
Range of val‐
1 ... 3
ues:
1
2
3
Comment
; Determine the size of the first dimension of the
field.
; Result: R1 = 5
; Determine the size of the second dimension of
the field.
; Result: R2 = 4
Function status
Data type:
INT
Range of val‐
1
OK
ues:
-1
No default value available
(e.g. because the data type definition of the result variables
does not match the data type of the system/user variables).
-2
The specified variable name has not been assigned to a
system parameter or a user variable.
-3
Incorrect value for parameter <Index_1>, dimension smaller
than one (⇒ no field but scalar variable)
-4
Incorrect value for the parameter <Index_2>
-5
Incorrect value for the parameter <Index_3>
Reading of the default value of a system/user variable
Index for first Dimension of the field
Index for 2nd Dimension of the field
Index for third Dimension of the field
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents