Example:
Program code
DEF INT result=0
DEF STRING name="R"
result=GETVARTYP(name)
IF (result < 0) GOTOF error
The value 4 is returned as result. This corresponds to the REAL data type.
1.2
Indirect programming
1.2.1
Indirectly programming addresses
Function
When indirectly programming addresses, the extended address (<index>) is replaced by a
variable with a suitable type.
Note
It is not possible the indirectly program addresses for:
N (block number)
L (subprogram)
Settable addresses
Syntax
<ADDRESS>[<Index>]
Meaning
Element
<ADDRESS>[...]
<index>
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
(e.g. X[1] instead of X1 is not permissible)
Description
:
Fixed address with extension (index)
:
Variable, e.g. for spindle number, axis, ....
Comment
; Determine the type of the R parameter.
Flexible NC programming
1.2 Indirect programming
61