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.

#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 initialisation of the NC channel when axes are replaced.

Mode

Replacing axes in the NC channel

 

Default setting: With request for setpoint values from the interpolator and a position initialisation of the NC channel

FAST

Without request for set values from the interpolator. Position initialisation of the NC channel.

<axis_name>

The permissible strings for axis designation start with the letters A, B, C, Q, U, V, W, X, Y and Z. The multiple assignment of the same designation for several axes (identification by logical axis number) generates an error message and the NC program is aborted.

<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 by the axis management. If an request is made for an unknown logical axis number or several identical logical axis numbers, an error message is output and the NC program is aborted.

<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. If a request is made for an index that is already assigned a different axis, it results in an error message and the NC program is aborted.

 

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.

<Options>

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

Offset adoption for requesting axes can be controlled using the keywords from the table below.

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, pay attention to the following when adopting tool offsets with #SET AX:

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

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” #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 recalculated corresponding to tool T1

50

0

70

20

Example:

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

Axis designation

logical axis identifier

Axis index

X

1

0

Y

2

1

Z

3

2

Programing Example

prg_example

Set axis configuration:

(X axis remains in place;)

(Y axis is released;)

(Z axis is re-sorted 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]

Assigning axis name, logical axis numbers and axis indices after N10:

Axis designation

logical axis identifier

Axis index

X

1

0

 

 

1

Y1

4

2

Z1

5

3

Z

3

4