Programming manual.
CNC 8070
22.
STATEMENTS AND INSTRUCTIONS
Programming statements
·392·
(REF: 1709)
22.1.7 Electronic axis slaving
Two axes may be slaved to each other so the movement of one of them (slave) depends
on the movement of the other one (master).
It is possible to have several axis couplings (slaving) at the same time.
Axis coupling is activated with the #LINK instruction and canceled with the #UNLINK
instruction. When reaching the end of program with a coupled pair of axes, this slaving is
canceled after executing an M02 or M30.
Considerations about axis coupling
Although the #LINK instruction admits several sets (pairs) of axes, the following limitations
must be taken into account:
• The main axes (the first three axes of the channel) cannot be slaves.
• Both axes of the master-slave pair must be of the same type (linear or rotary).
• The master axis of a pair cannot be the slave of another pair.
• An axis cannot be slaved to more than one master axis.
Likewise, a new slaving (coupling) cannot be activated without deactivating the pairs
previously slaved.
#LINK
Activate the electronic coupling (slaving) of axes
This instruction defines and activates the electronic coupling of axes. Several couplings may
be activated at the same time. When executing this instruction, all the axes defined as slaves
depend on their relevant masters. On these slave axes, no movement may be programmed
while they stay coupled.
This instruction may also be used to define the maximum following error difference allowed
between the master axis and its slave.
The programming format is as follows:
#LINK [<master>,<slave>,<error>][...]
Programming the amount of error is optional; if not programmed, this test is not carried out.
The maximum error will be defined in millimeters or inches for linear axes and in degrees
for rotary axes.
#UNLINK
Cancel the electronic coupling (slaving) of axes
This instruction deactivates the active axis slaving.
When reaching the end of program with a coupled pair of axes, this slaving is canceled after
executing an M02 or M30.
Parameter Meaning
<master> Master axis.
<slave> Slave axis.
<error> Optional. Maximum difference allowed between the
following errors of both axes.
#LINK [X,U][Y,V,0.5]
#LINK [X,U,0.5][Z,W]
#LINK [X,U][Y,V][Z,W]
#UNLINK
(Cancels axis coupling)