Additional functions
13.5 Synchronous spindle
Job planning
13-16 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
N350 COUPOF (S2, S1) ;Decouple on-the-fly, S=S2=3000
N355 SPOSA[2] = 0 ;Stop slave spindle at zero degrees
N360 G0 X0 Y0
N365 WAITS(2) ;Wait for spindle 2
N370 M5 ;Stop slave spindle
N375 M30
Example of programming of difference in speed
;Leading spindle = master spindle =
;spindle 1
;Following spindle = spindle 2
N01 M3 S500 ;Master 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 speed ratio -1:1
N20 COUPON (S2, S1) ;Activate coupling. The speed of the
;following spindle results from the speed
;of the main spindle and coupling factor
…
N26 M2=3 S2=100 ;Programming of difference in speed
Examples of transfer of a movement for difference in speed
1. Activate coupling during previous programming of following spindle with COUPON
;Leading spindle = master spindle =
;spindle 1
;Following spindle = spindle 2
N05 M3 S100 M2=3 S2=200 ;Master 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) ;Speed ratio of following spindle to
;main spindle is 1.0 (presetting)
N20 COUPON (S2, S1) ;On-the-fly coupling to main spindle
N10 G4 F5 ;Following spindle rotates at 100 rpm
2. Activate coupling during previous programming of following spindle with COUPONC
;Leading spindle = master spindle =
;spindle 1
;Following spindle = spindle 2
N05 M3 S100 M2=3 S2=200 ;Master 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) ;Speed ratio of following spindle to
;main spindle is 1.0 (presetting)
N20 COUPONC (S2, S1) ;On-the-fly coupling to main spindle and
;transfer previous speed to S2
N10 G4 F5 ;S2 rotates at 100 rpm + 200 rpm = 300 rpm