“Variable handle by name” axis-specific function
Index group: IdxGrp = 0x122300 + Channel ID
Index offset: IdxOffs = 0x10004 for axis 1
= 0x20004 for axis 2
Handle by name | This function returns the handle for the specified variable name which belong to an axis assigned to this position (axis index). For this reason an exchange can change the variable value read by the handle. |
Transfer parameter (here with stream offset specified)::
0 |
Variable name |
where
Contents | Type | Size |
Variable name (without instance identifier) with zero termination. | STRING | variable, max. 256 bytes |
=> stream length max. 256 bytes
Return value (here with stream offset specified):
0 4 |
Handle on the variable |
where
Contents | Type | Size |
Handle on the variable | UNS32 | fixed, max. 4 bytes |
=> streaming length max. 4 bytes
Application examples
Example of reading a handle of an axis-specific variable.
The index offset is important here.
Transfer parameters:
Index offset: 0x20004
V.A.WCS | 0 |
V.A.WCS name of the variable (without instance identifier V.A.WCS.Y)
0 zero termination
Return values:
0x0102001b |
0x0102001b Handle of the variable, here the 2nd axis