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

Definition of an axes configuration 1:

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.

Definition of an axes configuration 2:

With conflicts within the programmed axis exchange sequence:
Redundant axes names -> ERROR, Abort of NC program
With conflicts to already existing axes in NC channel:
Axes names identical, Axes numbers different -> ERROR, Abort of NC program
With active logic switch NAM the conflict is solved as follows:
The axis gets the default name from its axis parameter list[2]-18. The user must ensure the clear definition of the default axis name in the list.

< 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.

Definition of an axes configuration 3:

With conflicts within the programmed axis exchange sequence:
Redundant axes numbers - >ERROR, Abort of NC program
With conflicts to already existing axes in NC channel:
Axis number already exists in NC channel -> WARNING
With active logic switch NBR the conflict is solved as follows:
The axis request is ignored, this means it is not executed!

< 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.

Definition of an axes configuration 4:

With conflicts within the programmed axis exchange sequence:
Redundant axes indices -> ERROR, Abort of NC program
With conflicts to already existing axes in NC channel:
Axis index is already used in NC channel, Axes names different -> ERROR, Abort of NC program
With active logic switch IDX the conflict is solved as follows:
For the axis automatically the next free index in the axes configuration of the NC channel is determined.

<options> Offsets are axis-specifically maintained. The following are involved here:

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:
If axes are only swapped (internal axis replacement) by #SET AX and otherwise no additional axes are specified or requested, all offsets (including the tool offsets) are also replaced and continue to remain active. Specifying key words to adopt offsets has no effect. If a new tool is then selected, the offsets also replaced are replaced by the new tool's offsets.
As soon as an axis release or an axis request is triggered by #AX DEF (external axis replacement), the tool offsets are included again in calculation of the sequence of axes indexed in the tool data. Therefore, any adopted tool offsets are replaced by the current tool's offsets! If the original tool offsets in the corresponding axes are to continue to apply, a new tool must be selected in the case of which the offsets have been adapted to the new axis arrangement.
You are therefore advised to run #AX DEF with the tool deselected and to ensure the correct assignment of tool offsets by the appropriate parameterization in the record of a newly selected tool.

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