13
Additional Functions 12.98
13.3 S
nchronized s
indle
13
840D
NCU 571
840D
NCU 572
NCU 573
840Di
ï›™
Siemens AG 2000. All rights reserved
13-440
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition
Programming example
Working with master and slave spindles.
;Leading spindle = master spindle =
spindle 1
;Slave spindle = spindle 2
N05 M3 S3000 M2=4 S2=500
;Master spindle rotates at 3000 rpm,
slave spindle at 500 rpm
N10 COUPDEF (S2, S1, 1, 1, "NOC",
"Dv")
;Def. of coupling, can also be configured
…
N70 SPCON
;Include master spindle in position control
(setpoint coup.)
N75 SPCON(2)
;Include slave spindle in 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° 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° overlay in positive
direction
N220 G4 S50
;Dwell time = 50 revolutions of master
spindle
N225 FA [S2] = 0
;Activate configured speed (MD)
N230 SPOS[2]=IC(-7200)
;20 rpm. With project speed in negative
direction
…
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