1.1.14
Explicit data type conversions (AXTOINT, INTTOAX)
Function
The data type of an axis variable can be converted explicitly with the predefined functions
AXTOINT and INTTOAX.
Type conversion AXIS → INT
Syntax:
<result>=AXTOINT(<value>)
Meaning:
<result>
AXTOINT
<value>
Type conversion INT → AXIS
Syntax:
<result>=INTTOAX(<value>)
<result>
INTTOAX
<value>
Example
See example of GETVARDFT at "Read attribute values / data type (GETVARPHU,
GETVARAP, GETVARLIM, GETVARDFT, GETVARTYP) (Page 56)".
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
:
INT representation of the axis variables (≙ axis index <n>)
In case of fault
= 7
NO_AXIS, i.e. <value> contains the value "no axis"
= -1
<value> is not an axis name of type AXIS
:
AXTOINT converts the data type of a axis variable from AXIS to INT
:
Geometry axis name (MD20060 $MC_AXCONF_GEOAX_NAME_TAB[<n>])
or
Channel axis name (MD20080 $MC_AXCONF_CHANAX_NAME_TAB[<n>])
or
Machine axis name (MD10000 $MN_AXCONF_MACHAX_NAME_TAB[<n>])
Data type:
AXIS
:
AXIS representation of the axis variables (≙ axis name)
In case of fault
= NO_AXIS
= -1
:
INTTOAX converts the data type of a axis variable from INT to AXIS
:
INT value of the axis variables
Range of
values:
<value> contains the value "no axis"?
<value> is an INT value for which there is no axis name of type
AXIS?
0 - 32
Flexible NC programming
1.1 Variables
53