Check Availability Of A Variable (Isvar) - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Flexible NC programming
1.1 Variables
1.1.15

Check availability of a variable (ISVAR)

Function
The predefined ISVAR function can be used to check whether a system/user variable (e.g.
machine data, setting data, system variable, general variables such as GUD) is known in the
NCK.
Syntax
<Result>=ISVAR(<variable>)
The transfer parameter
 Undimensioned $ variable:
 One-dimensional $ variable without array index:
 One-dimensional $ variable with array index:
 Two-dimensional $ variable without array index:
 Two-dimensional $ variable with array index:
Meaning
<result>
ISVAR
<identifier>
<n>
<m>
The following checks are made in accordance with the transfer parameter:
● Does the identifier exist
● Is it a 1- or 2-dimensional array
● Is the array index permitted
Only if all these checks have a positive result will TRUE (1) be returned. If a check has a
negative result or if a syntax error has occurred, it will return FALSE (0).
54
<variable>
:
:
:
:
:
can be set up as follows:
Return value
Data type:
BOOL
Range of values:
1
0
Checks whether system/user variable is known in the NCK
Name of the system/user variables
Data type:
STRING
Array index for first dimension
Data type:
INT
Array index for second dimension
Data type:
INT
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
$<identifier>
$<identifier>[ ]
$<identifier>[<n>]
$<identifier>[,]
$<identifier>[<n>,<m>]
Variable available
Variable unknown
Job Planning

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents