Siemens SINUMERIK 840D sl Programming Manual page 58

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Flexible NC programming
1.1 Variables
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
58
:
Function status
Data type:
Range of
values:
:
Reading of the lower/upper limit value of a system/user variables
:
Name of the system/user variables
Data type:
:
specifies which limit value should be read out
Data type:
Range of
values:
:
Return of the limit value
Data type:
INT
1
OK
-1
No limit value defined
(for variables of type AXIS, STRING, FRAME)
-2
The specified
<name>
parameter or a user variable.
-3
Incorrect value for
STRING
CHAR
: = lower limit value
"L"
: = upper limit value
"U"
VAR REAL
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
has not been assigned to a system
<limit value>
Comment
; Determine the lower limit
value for MD32000
$MA_MAX_AX_VELO.
Job Planning

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents