Synchronous spindle operation
Besides synchronous operation of path axes, (definition, activation, deactivation), the LINK command can also be used to define master/slave relationships for spindle axes.
#SET AX LINK [ <expr> , <slave>= <master> {, <slave>= <master>} ]
or alternative
#AX LINK [ <expr> , <slave>= <master> {, <slave>= <master>} ]
<expr> Number of the coupling instruction.
<slave> Designation of the slave spindle of the coupling pair i
<master> Designation of the master spindle of the coupling pair i
In this case, the following rules apply in addition to Chapter Synchronous operation:
- The coupling pairs are defined by means of the spindle names known on the channel, i.e. only the spindles known on the channel can be coupled.
- In the channel parameters list [1]-13, coupling group 0 can be preset as the default group. This can be addressed directly with #ENABLE AX LINK [0] after boot-up. It cannot be redefined in the NC-program.
- The spindle names as known after boot-up in the NC-kernel must be used to define this default coupling group [1]-16/-18.
Programming example
Information in the channel parameters list [1]: S (main spindle name S1), S1, S2, S3
->The coupling pairs may be formed with spindle name S, S2 and S3. An error message is generated in the case of S1!
Programming and selection/ deselection of a spindle coupling:
N10 #SET AX LINK[1, S2=S, S3=S] (Main spindle is master for S2 and S3)
N20 #ENABLE AX LINK[1] (Activation of spindle couplings)
N30 S1000 M3 (Main spindle S and S2 and S3 are rotating cw )
(with 1000 U/min.)
N40 DISABLE AX LINK (Deactivation of spindle couplings)
N40 M30 (Program end)
- No differing axis types may be defined in a #SET AX LINK-command within a coupling pair. The coupling pairs may, however, form a coupling group with coupling pairs of another axis type.
Examples:
#SET AX LINK [1, B=S, S2=X] FALSE
#SET AX LINK [1, B=X, S2=S] ALLOWED
- During an active coupling group, a spindle present in this group may not be declared the main spindle with #MAIN SPINDLE [..] since, otherwise, this would result in inconsistencies between decoder and interpolator.
- Moreover, the programmer must be aware that using #MAIN SPINDLE [..] may, possibly, mean that already defined coupling groups can no longer be activated since the spindle names are no longer consistent.
- The technology information for M03, M04, M05 is synchronized by the NC-kernel both for the master spindle and for the slave spindle.
- External movement influencing of the master spindle with FEEDHOLD and OVERRIDE does not act on the slave spindles. Also during active coupling the slave spindles continue evaluating their own OVERRIDE and FEEDHOLD interfaces.
- Master and slave spindles move to the same absolute position in the case of M19. The position may, possibly, not be reached simultaneously if the start position or the dynamic data of the spindles differs.
- The coupling is cancelled if the program is aborted.
- If a spindle is active as master or as slave, it may be tasked only by the channel which activated the link.
Extract from channel parameters list [1]:
:
# Predefintion of possible axis links for synchronous operation
# ====================================================
#synchro_data.koppel_gruppe[0].paar[0].log_achs_nr_slave 4
#synchro_data.koppel_gruppe[0].paar[0].log_achs_nr_master 1
#synchro_data.koppel_gruppe[0].paar[0].mode 0->AX_LINK
#synchro_data.koppel_gruppe[0].paar[1].log_achs_nr_slave 11
#synchro_data.koppel_gruppe[0].paar[1].log_achs_nr_master 6
#synchro_data.koppel_gruppe[0].paar[1].mode 1 ->SPDL_LINK
: