Definition of an axis configuration

This NC command defines a new axis configuration to replace the existing axis configuration. Only exactly the axes which are programmed in NC command form the new axis configuration of the NC channel.

#AX DEF [NAM, NBR, IDX] [<axis_exchange_sequence> {,<options>} ]

                                                             { [<axis_exchange_sequence> {,<options>} ] } (non-modal)

NAM, NBR, IDX

Logic switches for handling conflicts.

ID

Meaning

NAM

Handle redundant axis names

NBR

Handle redundant axis numbers

IDX

Handle redundant axis indices

Notice

notice

Logic switches can be programmed individually or in combination.

<axis_exchange_sequence>

consisting of:

<axis_name>

The permissible strings for axis designation start with the letters A, B, C, Q, U, V, W, X, Y and Z.

Notice

notice

In case of conflicts within the programmed axis exchange sequence:

Redundant axis names → ERROR, program abort

In case of conflicts with existing axes in the NC channel:

Identical axis names, different axis numbers → ERROR, program abort

If the logic switch NAM is set, the conflict is cleared as follows:

The axis receives the default name from its axis parameter list P-AXIS-00297. The user must ensure a clear definition of the default axis name in the list.

<axis_number >

The physical assignment of axes takes place via the logical axis number. Mathematical expressions are permissible. The logical axis number must be known in the axis management.

Notice

notice

In case of conflicts within the programmed axis exchange sequence:

Redundant axis numbers → ERROR, program abort

In case of conflicts with existing axes in the NC channel:

Axis number already exists in NC channel → WARNING

With set logic switch NBR the conflict is cleared as follows:

The axis request is ignored, i.e. it is not executed.

<axis_index >

The axis index defines the location of the axis inside the axis group of the NC channel. It then defines the main and the tracking axes (see the table below). Mathematical expressions are permissible if their results are within the range [0... maximum axis number -1]. The axis index may not yet be assigned an axis.

Index

Axis 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. Tracking axis.

...n

(n-2). Tracking axis.

Attention

attention

To make programming easier, the axis index input can be left empty for tacking axes. In this case, the next free axis index after index 3 is then assigned automatically to this tracking axis. However, it must be noted that the index of a tracking axis is important with regard to various functionalities. For example, all transformational axes must be arranged after the main axes with no gaps in the case of kinematic transformation (RTCP). In such cases, it is then necessary to program the axis index explicitly for the tracking axes.

Notice

notice

In case of conflicts within the programmed axis exchange sequence:

Redundant axis indices → ERROR, program abort

In case of conflicts with existing axes in the NC channel:

Axis index is already assigned in the NC channel, different axis → ERROR, program abort.

With set logic switch IDX the conflict is cleared as follows:

The next free index in the axis configuration of the NC channel is automatically determined for the axis.

<options>

Offsets are kept axis-specific. This refers to the following offsets:

  • Reference point offset
  • Clamping offset
  • Tool offset
  • Zero offset
  • Measuring offset
  • Manual mode offset
  • Position preset

 

The keywords in the table below can control the adoption of offsets for the an axis request.

Keyword

Replacing axes and No adoption of offsets (default)

ALL

Adopt all offsets *

BPV

Adopt reference point offset

PZV

Adopt clamping offset

WZV

Adopt tool offset *

NPV

Adopt zero offset

MOFFS

Adopt measuring offset

SOFFS

Adopt manual mode offset

PSET

Adopt position preset

Attention

attention

* When the tool is selected, please note the following when adopting tool offsets with #AX DEF:

You are therefore advised to run #AX DEF when the tool is deselected and to ensure the correct assignment of tool offsets in the data record of a newly selected tool by appropriate parameterisation.

Example

example

Index of tool offsets in tool data

[0]

[1]

[2]

[3]

Parameterised tool offsets e.g. for T1

50

0

70

20

Axis configuration at 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 again recalculated depending on T1

50

0

70

20

If DEFAULT is specified, the default configuration contained in the channel parameter list [1]-5 can be restored. A combination with logic switches and additional axes requests is also permitted.

#AX DEF DEFAULT                                                                                                       (non-modal)

or

#AX DEF DEFAULT [NAM, NBR, IDX] { [<axis_exchange_sequence> {,<options>} ] }     (non-modal)

Example

example

Assign axis names, logical axis numbers and axis indices at program start:

The starting position of the following NC program is the default axis configuration listed in the table.

Axis designation

logical axis number

Axis index

X

1

0

Y

2

1

Z

3

2

;Set axis configuration

;X axis remains in its place,

;Y axis is released since this axis is not contained

;                  in the new definition

;Z axis is re-sorted acc. to Index 4,

;Y1 and Z1 axis are requested

%ACHSTAUSCH (axis exchange)

N10 #AX DEF [X,1,0][Y1,4,2][Z1,5,3][Z,3,4]

:

Assign axis names, logical axis numbers and axis indices after N10:

Axis designation

logical axis number

Axis index

X

1

0

 

 

1

Y1

4

2

Z1

5

3

Z

3

4

Restore default axis configuration:

%ACHSTAUSCH (axis exchange)

N10 #AX DEF DEFAULT

:

Assign axis names, logical axis numbers and axis indices after N10:

Axis designation

logical axis number

Axis index

X

1

0

Y

2

1

Z

3

2