Definition of an axis configuration (#SET AX)

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.

Syntax:

#SET AX [<mode>] [<axis_name>,<axis_number>,<axis_index> {,<options>} ]

                                 { [<axis_name>,<axis_number>,<axis_index> {,<options>} ] }

<mode>

With/without request for axis positions from the interpolator and a position initialisation of the NC channel when axes are replaced.

---: With request for setpoint values from the interpolator and a position initialisation of the NC channel (default).

FAST: Without request for setpoint 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.

0: 1st main axis in the machining plane.

1: 2nd main axis in the machining plane.

2: 3rd main axis generally perpendicular to the machining plane.

3: 1st tracking axis.

...n_ (n-2) tracking axis.

<options>

Offsets are kept axis-specific. The adoption of different offsets can be controlled for requesting axes using the following keywords:

---: 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 command value/manual mode offset

PSET: Adopt actual value offset

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 identifier

Logical axis number

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]

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

Axis identifier

Logical axis number

Axis index

X

1

0

 

 

1

Y1

4

2

Z1

5

3

Z

3

4