Siemens SINUMERIK 840D sl Programming Manual page 429

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

Advertisement

Note
GETVARAP can be used, for example, to implement a checking program that checks the
access rights expected by the application.
Read limit values
Syntax:
<Status>=GETVARLIM(<name>,<limit value>,<result>)
Meaning:
<Status>:
GETVARLIM:
<name>:
<limit
value>:
<result>:
Example:
Program code
DEF INT state=0
DEF REAL result=0
state=GETVARLIM("$MA_MAX_AX_VELO","L",result)
IF (result < 0) GOTOF error
Read dimension value
Syntax:
<Result>=GETVARDIM(<Name>,<Index>)
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Function status
Data type:
INT
Range of val‐
1
OK
ues:
-1
No limit value defined
(for variables of type AXIS, STRING, FRAME)
-2
The specified variable name has not been assigned to a
system parameter or a user variable.
-3
Incorrect value for the parameter <limit value>
Reading of the lower/upper limit value of a system/user variable
Name of the system/user variables
Data type:
STRING
specifies which limit value should be read out
Data type:
CHAR
Range of val‐
"L" Lower limit value
ues:
Upper limit value
"U"
:
Return of the limit value
Data type:
VAR REAL
Work preparation
3.1 Flexible NC programming
Comment
; Determine the lower limit val-
ue for MD32000 $MA_MAX_AX_VELO.
429

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents