Program code Comment
N215 SPOS[2]=IC(180) Traverse with 180 degrees overlay in the posi-
tive direction.
N220 G4 S50 Dwell time = 50 revolutions of the master spindle
N225 FA[S2]=0 Activate configured velocity (MD).
N230 SPOS[2]=IC(-7200) 20 revolutions. Move with configured velocity in
the negative direction.
...
N350 COUPOF(S2,S1) Couple-out on-the-fly, S=S2=3000
N355 SPOSA[2]=0 Stop FS at zero degrees.
N360 G0 X0 Y0
N365 WAITS(2) Wait for spindle 2.
N370 M5 Stop FS.
N375 M30
Programming a difference in speed
Program code Comment
Leading spindle = master spindle = spindle 1
Following spindle = spindle 2
N01 M3 S500 Leading spindle rotates at 500 rpm.
N02 M2=3 S2=300 Following spindle rotates at 300 rpm.
...
N10 G4 F1 Dwell time of master spindle.
N15 COUPDEF (S2,S1,-1) Coupling factor with ratio -1:1
N20 COUPON(S2,S1) Activate coupling. The speed of the following
spindle results from the speed of the leading
spindle and coupling factor.
...
N26 M2=3 S2=100 Programming a difference in speed.
Examples of transfer of a movement for difference in speed
1. Activate coupling during previous programming of following spindle with COUPON
Program code Comment
Leading spindle = master spindle = spindle 1
Following spindle = spindle 2
N05 M3 S100 M2=3 S2=200 Leading spindle rotates at 100 rpm, following
spindle at 200 rpm.
N10 G4 F5 Dwell time = 5 seconds of master spindle
N15 COUPDEF(S2,S1,1) Transformation ratio of FS to LS is 1.0 (de-
fault).
N20 COUPON(S2,S1) On-the-fly coupling to the leading spindle.
N10 G4 F5 Following spindle rotates at 100 rpm.
Work preparation
3.16 Axis couplings
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 927