Definition of an axes configuration
With this NC command, a new axis configuration can be defined which replaces the existing axis configuration. This means, exactly the axes, which are programmed in NC command, form the new axes configuration of the NC channel.
# AX DEF <mode>] [NAM, NBR, IDX] [<axis_exchange_sequence> {,<options>} ]
{ [<axis_exchange_sequence > {,<options>} ] } (non-modal)
<mode> With/without request for axis positions from the interpolator and a position initialization of the NC channel during the exchange of the axes.
Mode | Replacement of axis in the NC channel |
---|---|
| Default setting: With request for set values from interpolator and and a position initialization of the NC channel. |
FAST | Without request for set values from the interpolator. Position initialization of the NC channel. |
OPT_FAST | Optional Fast. Has only an effect, if the fast program start also has been instructed. Otherwise the set values are requested. |
NAM, NBR, IDX Logic switches for the handling of conflicts.
ID | Significance |
NAM | Handling of redundant axes names |
NBR | Handling of redundant axes numbers |
IDX | Handling of redundant axes indices |
The logic switches can be programmed individual or in combination! |
<axis_exchange_sequence> consisting of:
<Axisname> For the axis name strings with the following initial letters are allowed: A, B, C, Q, U, V, W, X, Y and Z.
With conflicts within the programmed axis exchange sequence: |
< axis_number> The physical assignment of axes takes place through the logical axis number. Permissible are mathematical expressions.The logical axis number must be known in axes management.
With conflicts within the programmed axis exchange sequence: |
< axis_index> The axis index determines the location of the axis within the current axis group of the NC-channels. It defines the main and synchronous axes (see following table). Permissible are mathematic expressions, whose results are in the value range [0 ... Maximum axes number -1]. The axis index should not yet be allocated with an axis.
Index | Axes configuration |
---|---|
0 | 1. Main axis in the machining plane. |
1 | 2. Main axis in the machining plane. |
2 | 3. Main axis, generally, perpendicular to the machining plane. |
3 | 1. Synchronous axis |
... | ... |
n | (n-2). Synchronous axis. |
Notice | |
To simplify programming, it is possible to omit the entry of the axis index for coupled axes. In this case, the next free axis index from index 3 is then assigned automatically to this coupled axis.For main axes this index always has to be programmed explicitly. |
However, it must be noted that the index of a coupled axis is important as regards various functionalities. For example, all transformational axes must be arranged with no gaps based on the main axes in the case of kinematic transformation (RTCP). Thus, in such cases, it is necessary also to explicitly program the axis index for the coupled axes.
With conflicts within the programmed axis exchange sequence: |
<options> Offsets are axis-specifically maintained. The following are involved here:
- Reference point offset,
- Machine table offset,
- Tool offset,
- Zero offset,
- Measurement offset,
- manual operation offset,
- Preset offset.
With the key words of the following table, during requests for axes, the inclusion of offsets can be controlled.
Key word | Exchange of axis |
---|---|
| No inclusion of offsets (default) |
ALL | Inclusion of all offsets * |
BPV | Inclusion of reference point offset |
PZV | Inclusion of machine table offset |
WZV | Inclusion of tool offset * |
NPV | Inclusion of zero offset |
MOFFS | Inclusion of measurement offset |
SOFFS | Inclusion of manual operation offset |
PSET | Inclusion of preset offset |
Notice | |
*When the tool is selected, pay attention to the following when adopting tool offsets in the case of #AX DEF: |
Example:
Index of tool offsets in tool data | [0] | [1] | [2] | [3] |
Parametrized tool offsets e.g. for T1 | 50 | 0 | 70 | 20 |
Axis configuration on program start | X | Y | Z | --- |
Included tool offsets after T1 selection | 50 | 0 | 70 | --- |
"Internal" #AX DEF {Z, X, Y}: | Z | X | Y | --- |
Tool offsets are also swapped or | 70 | 50 | 0 | --- |
"External" #AX DEF {Z, X, Y, B}: | Z | X | Y | B |
Tool offsets are newly recalculated corresponding to T1 | 50 | 0 | 70 | 20 |
With the programming of DEFAULT the default configuration corresponding to the channel parameter list [1]-27 can be forced. Also the combination with logic switches and additional axes requests is possible.
# AX DEF DEFAULT (non-modal)
or
# AX DEF DEFAULT [NAM, NBR, IDX] { [<axis_exchange_sequence> {,<options>} ] } (non-modal)
Example:
Assignment of axis names, logical axis numbers and axis indices at the time of program start:
Axis name | Logical axis number | Axis index |
X | 1 | 0 |
Y | 2 | 1 |
Z | 3 | 2 |
Programming example
(Setting of axes configuration)
(X-axis remains on ist place; Y-axis is released;)
(Z-axis is resorted acc. to Index 4;(Y1- and Z1-axis are)
(requested;)
%Axis_exchange
N10 #AX DEF [X,1,0][Y1,4,2][Z1,5,3][Z,3,4]
:
Assignment of axis names, logical axis numbers and axis indices after N10:
Axis name | Logical axis number | Axis index |
X | 1 | 0 |
|
| 1 |
Y1 | 4 | 2 |
Z1 | 5 | 3 |
Z | 3 | 4 |
Restoring of default axes configuration:
%Axis_exchange
N10 #AX DEF DEFAULT
:
Assignment of axis names, logical axis numbers and axis indices after N10:
Axis name | Logical axis number | Axis index |
X | 1 | 0 |
Y | 2 | 1 |
Z | 3 | 2 |