Specifications
AP - 22 Applications Ver. 0002
AP.3.2.2 EXAMPLE OF A PLC PROGRAM FOR A GEAR CHANGE AT THE
MAIN SPINDLE
Example of a spindle with SERCOS interface on the next page.
The spindle has two ranges and works in open loop.
It does not use external feedback, but that of the motor itself, that is: SERCOSLE=1.
Therefore, to display the real "S" at the CNC, one must change the gear ratio at the drive with
each range change at the machine.
The drive of the main spindle is identified with the number 3 of the SERCOS ring.
(SERCOSID = 3 in the parameter table of the main spindle S).
Therefore, one must set the PLC parameter P28(SRR700) = 3.33172.
("33172" is the SERCOS identifier of the variable DV11 (F-404)).
This makes register R700 (associated with parameter P28) contain the variable
DV11 "FagorDiagnostics" of the main spindle through which we know the
"ActualGearRatio" (GV25).
At the CNC, the spindle table must be defined.
Spindle in open loop with three ranges.
The feedback is defined with SERCOSLE=1
SERCOSID = 3
At the drive.
Two gear ratios an a single parameter set must be defined:
Gear Ratio 0 Gear 1 Parameter set 0.
Gear Ratio 1 Gear 2
GP4 = 1
GP6 = 2