Programming manual.
CNC 8070
STATEMENTS AND INSTRUCTIONS
22.
Programming statements
·395·
(REF: 1709)
22.1.9 Modifying the configuration of the axes of a channel
Initially, each channel has some axes assigned to it as set by the machine parameters. While
executing a program, a channel may release its axes or request new axes. This possibility
is determined by machine parameter AXISEXCH, which establishes whether an axis can
change channels or whether this change is permanent or not.
A permanent change is maintained after the end of the program, after a reset and on power-
up. The original configuration may be restored either by validating the general parameters
and restarting or by a part-program that undoes the changes.
Knowing if an axis can change channels
Machine parameter AXISEXCH may be consulted using the following variable.
V.MPA.AXISEXCH.Xn
Replace "Xn" with the name or logic number of the axis.
Knowing in which channel the axis is
It is possible to know in which channel the axis is by using the following variable.
V.[n].A.ACTCH.Xn
Replace "Xn" with the name or logic number of the axis.
Replace the "n" letter with the channel number.
Commands for modifying the axis configuration via program
The following instructions are used to modify the configuration of the axes. It is possible to
add or remove axes, change their names and even redefine the main axes of the channel
by swapping their names.
Changing the configuration of the axes cancels the active polar origin, the pattern rotation,
the mirror image and the scaling factor.
In the configuration of the axes (if G17 is active), the axis that occupies the first position must
be the abscissa axis, the second will be the ordinate axis, the third will be the axis
perpendicular to the work plane, the fourth will be the first auxiliary axis and so on.
#SET AX
Sets the axis configuration
Defines a new axis configuration in the channel. The channel axes not programmed in the
instruction and the nonexistent programmed ones will be added. The axes are placed in the
channel in the positions as they are programmed in the instruction #SET AX. Optionally, one
or several offsets may be applied to the defined axes.
It is the same as programming a #FREE AX of all the axes and then a #CALL AX of all the
new axes.
The instruction #SET AX may also be used only to order the existing axes in the channel
differently.
The programming format is as follows:
#SET AX [<Xn>,...] <offset> <...>
It also restores the machine parameter settings if a checksum error occurs when powering up the CNC. .
Value Meaning
0 It cannot change channels.
1 The change is temporary.
2 The change is permanent.
Value Meaning
0 It is not in any channel.
1-4 Channel number.