Axis couplings
9.5 Synchronous spindle
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
537
Examples
Example 1: Machining with leading and following spindles
Programming Comment
; Leading spindle = master spindle = spindle 1
; Following spindle = spindle 2
N05 M3 S3000 M2=4 S2=500 ; Leading spindle rotates at 3000 rpm,
following spindle at 500 rpm.
N10 COUPDEF(S2,S1,1,1,"NOC","Dv") ; Definition of the coupling (can also be configured).
...
N70 SPCON ; Bring leading spindle into closed-loop position control
(setpoint coupling).
N75 SPCON(2) ; Bring following spindle into closed-loop position control.
N80 COUPON(S2,S1,45) ; On-the-fly coupling to offset position = 45 degrees.
...
N200 FA[S2]=100 ; Positioning speed = 100 degrees/min
N205 SPOS[2]=IC(-90) ; Traverse with 90 degree overlay in negative direction.
N210 WAITC(S2,"Fine") ; Wait for "fine" synchronism.
N212 G1 X... Y... F... ; Machining
...
N215 SPOS[2]=IC(180) ; Traverse with 180 degree overlay in the positive
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