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.
#SET AX [<mode>] [<axis_name>,<axis_number><axis_index> {,<options>} ]
{ [<axis_name>,<axis_number><axis_index> {,<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 the interpolator and a position initialization of the NC channel. |
FAST | Without request for set values from interpolator. Position initialization of the NC channel. |
<axis_name > Permissible are strings with the starting characters A, B, C, Q, U, V, W, X, Y and Z. Multiple assigning of the same designation for different axes (identification through the logical axis number) causes an error message and an aborting of the NC-program.
<axis_number > The physical assignment of axes occurs via the logical axis number. Permissible are mathematical expressions. The logical axis number must be known in the axes management. During the request for an unknown logical axis number or several identical logical axis numbers an error message and an aborting of the NC-program will occur.
<axis_index >The axis index determines the location of the axis inside the axis group of the NC-channel. It defines thus the main and the synchronous axes (see the following table). Permissible are mathematical expression whose results are within the range [0 ... Maximum axes number -1]. The axis index must not yet be allocated with an axis. In case of a request to an index that is already allocated with another axis, an error message and an aborting of the NC-program will occur.
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. |
<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 from the following table the inclusion of offsets can be controlled during the request for axes.
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 #SET AX: |
CAUTION | |
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" #SET AX {Z, X, Y}: | Z | X | Y | --- |
Tool offsets are also swapped or | 70 | 50 | 0 | --- |
"External" #SET AX {Z, X, Y, B}: | Z | X | Y | B |
Tool offsets are newly recalculated corresponding to T1 | 50 | 0 | 70 | 20 |
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 axis configuration:
(X-axis remains in its place;)
(Y-axis is released;)
(Z-axis is resorted acc. to Index 4;)
(Y1- and Z1-axis are requested)
%ACHSTAUSCH1
N10 #SET AX [X,1,0][Y1,4,2][Z1,5,3][Z,3,4]
Assignment of axis name , 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 |