10. SPINDLE SPEED FUNCTION
B-64693EN-1/01
- 1898 -
Example of machining program
O1004 ;
:
N10 M50 ;
First spindle changes to Cs contour control.
:
N20 M51 ;
:
First spindle changes to spindle rotation control.
N30 M150 Q1 ;
:
:
Second spindle changes to Cs contour control.
Cs contour control axis coordinate establishment is
executed.
:
N40 M151 ;
:
Second spindle changes to spindle rotation control.
:
Example (5) Spindle selection by address P of Multi-spindle control
Table 10.28 (d) Example of parameter setting
Parameter
No.25802
No.25803
No.3781
No.4353#5
No.3712#2
No.3703#3
First spindle
50
51
1
1
1
1
Second spindle
50
51
2
1
Third spindle
0
0
3
0
Example of machining program
O1005 ;
:
N10 M50 P1 ;
First spindle changes to Cs contour control.
:
N20 M51 P1 ;
:
First spindle changes to spindle rotation control.
N30 M50 P2 Q1 ;
:
:
Second spindle changes to Cs contour control.
Cs contour control axis coordinate establishment is
executed.
:
N40 M51 P2 ;
:
Second spindle changes to spindle rotation control.
N50 M50 P3 ;
:
:
Alarm PS0552, "SP-MODE CHANGE COMMAND
ERROR" is issued because parameter No.25802 of
third spindle is 0.
:
If M code for Cs contour control ON is commanded, spindle speed command is set to 0 in order not to
rotate the spindle when Cs contour control is canceled. Therefore, S code has to be newly commanded for
rotating the spindle after Cs contour control OFF. In Multi-spindle control, if spindle selection method by
spindle selection signals SWS1 to SWS4 <Gn027.0, Gn027.1, Gn027.2>, <Gn026.3> is used, select
spindle by spindle selection signals before commanding S code. If S code has not been commanded in the
path from which M code for Cs contour control ON is commanded and only M03/M04 is commanded,
alarm PS0554, "S-CODE IS NOT COMMANDED" is issued in order not to start machining without
spindle rotation. If only M code except for M03/M04 is commanded, alarm PS0554 is not issued. If M
code except for M03/M04 is used for spindle rotation, be sure to command S code in order not to start
machining without spindle rotation.