“Number of variable elements” function

Index group: IdxGrp = 0x122300 + Channel ID

Index offset: IdxOffs = 0x44

Number of
variable entries

This function supplies the number of existing variable entries for the selected variable type. If no variable type is specified, the total number of all available variables V.E + V.G + V.A is returned. The “Variable description by index” function requests the variable description in each case.

Transfer parameter (here with stream offset specified):

0

Variable type identifier

where

Contents

Type

Size

Variable type identifier
with zero termination

STRING
“V.G” - Global variables
“V.E“ - External Variable
“V.A“ - Axis-specific
Variables

variable, max. 256 bytes

=> stream length max. 256 bytes

Return value (here with stream offset specified):

0

Number of existing variable entries

where

Contents

Type

Size

Number of existing variable entries

UNS32

fixed, max. 4 bytes

=> streaming length max. 4 bytes

Notice

notice

The variable type identifier, e.g. V.E, may not be followed by a dot.

Application examples

Transfer parameters:

V.E

0

V.E identifier of variable type: V.E

0 zero termination

Return values:

123

123 V.E. variables are parameterised in Channel 1.