Releasing axes (#AX RELEASE, #AX RELEASE ALL)

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.

Syntax:

#AX RELEASE [ <axis_name> {,<axis_name> } ]

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

Syntax:

#AX RELEASE [NBR] [ <ax_nr> {,<ax_nr> } ]

<ax_nr>

Logical axis number of the axis.

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

Syntax:

#AX RELEASE ALL

Example

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

A

4

3

B

5

4

Programing Example

prg_example

Releasing axes

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

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

Axis identifier

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

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

Axis identifier

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

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

Axis identifier

Logical axis number

Axis index