Release axes

These NC command axes return axes in the axis group of the NC channel to the axis management. It is permitted to return axes which are not or no longer present and this generates no error message.

#AX RELEASE [ <axis_name> {,<axis_name> } ]                                                            (non-modal)

<axis_name>

Axis names of the axes currently present in NC channel.

The logic switch NBR switches over evaluation from axis names to logical axis numbers (e.g. if axis names are unknown at the time of release).

#AX RELEASE [NBR] [ <expr> {,<expr> } ]                                                                     (non-modal)

<expr>

Logical axis number.

This NC command returns all the axes in the axis group of the NC channel to the axis management.

#AX RELEASE ALL                                                                                                        (non-modal)

Example

example

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

Axis designation

logical axis number

Axis index

X

1

0

Y

2

1

Z

3

2

A

4

3

B

5

4

Programing Example

prg_example

%axis_exchange

N10 # AX RELEASE[X, A]     ;Release X/A axes

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

Axis designation

logical axis number

Axis index

 

 

 

Y

2

1

Z

3

2

 

 

 

B

5

4

Programming example continued:

...

N100 #AX RELEASE NBR[2]     ;Release Y axis

Assign axis names, logical axis numbers and axis indices after second axis release:

Axis designation

logical axis number

Axis index

 

 

 

 

 

 

Z

3

2

 

 

 

B

5

4

Programming example continued:

...

N100 #AX RELEASE ALL     ;Release all existing axes of this

                         ;channel

Assign axis names, logical axis numbers and axis indices after the third axis release:

Axis designation

logical axis number

Axis index