Siemens SINUMERIK 840D sl Programming Manual page 431

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

Advertisement

<name>:
<result>:
<index_1>:
<index_2>:
<index_3>:
Example:
Program code
DEF INT state=0
DEF REAL resultR=0
DEF FRAME resultF=0
IF (GETVARTYP("$MA_MAX_AX_VELO") <> 4) GOTOF error
state=GETVARDFT("$MA_MAX_AX_VELO",resultR, AXTOINT(X))
IF (result < 0) GOTOF error
IF (GETVARTYP("$TC_TP8") <> 3) GOTOF error
state=GETVARDFT("$TC_TP8", resultR)
IF (GETVARTYP("$P_UBFR")
state=GETVARDFT("$P_UBFR", resultF )
Read data type
Syntax:
<Result>=GETVARTYP(<name>)
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Name of the system/user variables
Data type:
Return of the default value
Data type:
Index for first dimension of the field (optional)
Data type:
Not programmed means = 0
Index for 2nd dimension of the field (optional)
Data type:
Not programmed means = 0
Index for third dimension of the field (optional)
Data type:
Not programmed means = 0
<> 7) GOTOF error
STRING
VAR REAL
(when reading the default value of variables of the types INT, RE‐
AL, BOOL, AXIS)
VAR STRING
(when reading the default value of variables of the types STRING
and CHAR)
VAR FRAME
(when reading the default value of variables of the type FRAME)
INT
INT
INT
Comment
; Variable to accept the default values of
the types INT, REAL, BOOL, AXIS.
; Variable to accept the default values of
the type FRAME
; Determine the default value of the "X"
axis.
Work preparation
3.1 Flexible NC programming
431

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents