FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) - page 243

 

  Index      Manuals     FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) B-64693EN-1/01

 

Search            copyright infringement  

 

 

 

 

 

 

 

 

 

 

 

Content      ..     241      242      243      244     ..

 

 

 

FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) - page 243

 

 

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 

Second spindle 

50 

51 

Third spindle 

 
 

 

 

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. 
 

B-64693EN-1/01

 

 

10. SPINDLE SPEED FUNCTION

 

- 1899 - 

Example (6) example of alarm PS0554 by only M03/M04 command 
 
 

 

 

Example of machining program 

O1006 ; 

 
 

N10 M05 ; 

First spindle stops. 

 

N20 M50 P1 ; 

First spindle changes to Cs contour control. 

 

N30 M51 P1 ; 

First spindle changes to spindle rotation control. 

 

N40 M03 ; 
  : 

Alarm PS0554, "S-CODE IS NOT COMMANDED"  is 
issued because S code has not been commanded. 

 

 

 
If M code for spindle orientation ON is commanded after Cs contour control ON by program command, 
Cs contour control is canceled, and spindle orientation is executed. 
 
Example (7) 
M code command for spindle orientation ON after Cs contour control ON by program command 
 
 

 

 

Example of machining program 

O1007 ; 

 
 

N10 M50 P1 ; 

First spindle changes to Cs contour control. 

 

N20 M19 R270.0 P1 ; 
  : 
  : 

First spindle changes to spindle rotation control, then 
executes spindle orientation. Stop position of the 
spindle is 270°. 

 

 
Similarly, if M code for Cs contour control ON is commanded during spindle orientation ON by program 
command, spindle orientation is canceled, and the spindle changes to Cs contour control. 
 
Example (8) 
M code command for Cs contour control ON during spindle orientation ON by program command 
 
 

 

 

Example of machining program 

O1008 ; 

 
 

N10 M19 P1 ; 

Spindle orientation of first spindle is executed. Stop 
position of the spindle is 0°. 

 

N20 M50 P1 ; 
  : 
  : 

First spindle cancels spindle orientation, then 
changes Cs contour control. 
 

 

 

10. SPINDLE SPEED FUNCTION

 

 

B-64693EN-1/01

 

- 1900 - 

NOTE 

1  G code using address P, address Q, or address R and M code for Cs contour 

control ON or M code for Cs contour control OFF cannot be commanded in the 
same block. When spindle selection by address P is available, if machine 
coordinate system select command (G53) is commanded, alarm PS0552, 
"SP-MODE CHANGE COMMAND ERROR" is issued.   
When spindle selection by address P is available and the addition of workpiece 
coordinate system 48 pairs or 300 pairs is available, if selecting a workpiece 
coordinate system (G54) is commanded, alarm PS0552, "SP-MODE CHANGE 
COMMAND ERROR" is issued. 

2  Cs contour control by program command is not canceled by emergency stop, 

reset. However, if emergency stop or reset is executed during M code for Cs 
contour control ON, Cs contour control is canceled. 

3  In changing Cs contour control, if CW command signals SFR or CCW command 

signals SRV has to be changed by PMC ladder, Cs contour control change 
completion signal FSCSL<Fn044.1> or Cs contour control change completion 
signal in each axis FCSS1 to FCSS4<Fn274.0 to Fn274.4> is available (bit 3 
(NCS) of parameter No.3729 has to be set to 1 (switching to Cs contour control 
is completed even when the spindle activating current is off)). 

4  S code has to be newly commanded for rotating the spindle after canceling Cs 

contour control by program command. 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. If only M code except for M03/M04 is commanded, alarm PS0554 is not 
issued. Be sure to command S code if M code except for M03/M04 is used for 
spindle rotation in order not to start machining without spindle rotation. 

5  Multiple M commands in a single block cannot be used. Don’t command other M 

codes with M code for Cs contour control ON or M code for Cs contour control 
OFF in the same block. 

6  Enabling spindle serial output (bit 5 (SSN) of parameter No.8133 is 0) and Cs 

contour control (bit 2 (SCS) of parameter No.8133 is 1) is required in order to 
use this function. 

 

- Spindle control mode OFF 

Spindle orientation by program command or Cs contour control by program command can be canceled by 
M codes which are set to parameter No.25804, No.25805, and No.25806. The spindle whose parameters 
(No.25804, No.25805, and No.25806) are set to 0 cannot use M codes for spindle control mode OFF. 
If spindle selection by address P of Multi-spindle control is enabled (bit 3 (MPP) of parameter No.3703 is 
1), spindle canceling spindle control mode can be selected by address P. Spindles canceling spindle 
control mode by program command use the same M code for spindle control mode OFF. Set the same M 
code to parameter of spindle canceling spindle control mode (refer to Example (10)). 
When M code for  spindle control mode OFF (parameter No.25804, No.25805, and No.25806) is 
commanded, auxiliary function code signals M00 to M31<Fn010 to Fn013> and auxiliary function strobe 
signal MF<Fn007.0> are output. 
 

B-64693EN-1/01

 

 

10. SPINDLE SPEED FUNCTION

 

- 1901 - 

Format 

M_ (P_) ; 

Spindle control mode OFF

 

M :   M code for spindle control mode OFF (parameter No.25804, No.25805, and 

No.25806) 

P  :   Spindle selection of Multi-spindle control 

 

 
Example (9) Spindle rotation after spindle control mode OFF 
 

Table 10.28 (e)  Example of parameter setting 

 

Parameter 

No.25804 

No.25805 

No.25806 

First spindle 

Second spindle 

103 

104 

105 

Third spindle 

 
 

 

 

Example of machining program 

O1009 ; 

 
 

N10 M19 ; 

Spindle orientation of first spindle is executed. 

 

N20 M03 S100 ; 
  : 

Spindle orientation of first spindle is canceled.  First 
spindle rotates at a speed of 100[min

-1

]. 

 

N30 M150 ; 
  : 

Second spindle changes to Cs contour control. 

 

N40 M104 S200 ; 
  : 

Second spindle changes to spindle rotation control. 
Second spindle rotates at a speed of 200[min

-1

]. 

  : 

 

 

 
Example (10) Spindle selection by address P of Multi-spindle control 
 

Table 10.28 (f)  Example of parameter setting 

 

Parameter 

No.25804 

No.25805 

No.25806 

No.3781 

No.3703#3 

First spindle 

Second spindle 

Third spindle 

 

10. SPINDLE SPEED FUNCTION

 

 

B-64693EN-1/01

 

- 1902 - 

 

 

 

Example of machining program 

O1010 ; 

 
 

N10 M19 P1 ; 

Spindle orientation of first spindle is executed. 

 

N20 M03 S100 P1 ; 
  : 

Spindle orientation of first spindle is canceled. 
Spindle rotates at a speed of 100[min

-1

]. 

 

N30 M50 P2 ; 
  : 

Second spindle changes to Cs contour control. 

 

N40 M04 S200 P2 ; 
  : 

Second spindle changes to spindle rotation control. 
Second spindle rotates at a speed of 200[min

-1

]. 

  : 

 

 

 

NOTE 

1  G code using address P, address Q, or address R and M code for spindle 

control mode OFF cannot be commanded in the same block. When spindle 
selection by address P is available, if machine coordinate system select 
command (G53) is commanded, alarm PS0552, "SP-MODE CHANGE 
COMMAND ERROR" is issued.   
When spindle selection by address P is available and the addition of workpiece 
coordinate system 48 pairs or 300 pairs is available, if selecting a workpiece 
coordinate system (G54) is commanded, alarm PS0552, "SP-MODE CHANGE 
COMMAND ERROR" is issued. 

2  S code has to be newly commanded for rotating the spindle after canceling 

spindle control mode by M code. If S code has not been commanded and only 
M03/M04 is commanded, alarm PS0554, "S-CODE IS NOT COMMANDED" is 
issued. If only M code except for M03/M04 is commanded, alarm PS0554 is not 
issued. Be sure to command S code if M code except for M03/M04 is used for 
spindle rotation in order not to start machining without spindle rotation. 

3  If M03/M04 is set as M code for spindle control mode OFF, S code has to be 

command with M03/M04 in the same block. If S code is not commanded, alarm 
PS0554 is issued. 

4  If Multiple M commands in a single block is used, command M code for spindle 

control mode OFF as the first M code. 

 

- Spindle control mode OFF by signal 

Spindle orientation by program command or Cs contour control by program command can be canceled by 
spindle control mode off signals MDOFF1 to MDOFF4<Gn586.4 to Gn586.7>. If you want to cancel 
spindle orientation or Cs contour control by emergency stop, reset, and so on, spindle control mode can 
be canceled by spindle control mode off signals MDOFF1 to MDOFF4<Gn586.4 to Gn586.7>. If spindle 
control mode off signal MDOFF1 to MDOFF4<Gn586.4 to Gn586.7> is set to "1", spindle control mode 
is canceled. If spindle orientation is canceled, spindle orientation completion signal ORARA to 
ORARD<Fn045.7, Fn049.7, Fn168.7, Fn266.7> is set to "0". Then, set "0" to spindle control mode off 
signals MDOFF1 to MDOFF4<Gn586.4 to Gn586.7>. If  Cs contour control is canceled, Cs contour 
control change completion signal FSCSL<Fn044.1> or Cs contour control change completion signal in 
each axis FCSS1 to FCSS4<Fn274.0 to Fn274.3> is set to "0". Then, set "0" to spindle control mode off 
signals MDOFF1 to MDOFF4<Gn586.4 to Gn586.7>. 
 

B-64693EN-1/01

 

 

10. SPINDLE SPEED FUNCTION

 

- 1903 - 

 

spindle orientation 

completion signal 

ORARA<Fn045.7> 

or 

Cs contour control change 

completion signal 

FSCSL<Fn044.1> 

spindle control 

mode off signal 

MDOFF1<Gn586.4> 

 

Fig. 10.28 (a)  Spindle control mode OFF by signal 

 
Spindle orientation by orientation command signal ORCMA to ORCMD<Gn070.6, Gn074.6, Gn204.6, 
Gn266.6> cannot be canceled by spindle mode off signals MDOFF1 to MDOFF4<Gn586.4 to Gn586.7>. 
Similarly, Cs contour control by Cs contour control change signal CON<Gn027.7> or Cs contour control 
change signals in each axis CONS1 to CONS4<Gn274.0 to Gn274.3> cannot be canceled by spindle 
mode off signals MDOFF1 to MDOFF4<Gn586.4 to Gn586.7>. 
When spindle control mode off signal MDOFF1 to MDOFF4<Gn586.4 to Gn586.7> is "1", if M code for 
spindle orientation ON set to parameter No.25800 or M code for Cs contour control ON set to parameter 
No.25802 is commanded, alarm PS0553, "SP-MODE CHANGE IMPOSSIBLE" is issued. 
 

- Multi-spindle address P signals 

If bit 0 (ADP) of parameter No.25807 is set to 1, the value of address P which is commanded to select 
mode  changing spindle is output to multi-spindle address P signals MSP00 to MSP15<Fn160.0 to 
Fn161.7>. 
 

Limitation 

- Command with a signal 

M code for spindle control mode changing is not output to MDI program by auxiliary function output in 
program restart function. 
 

- Auxiliary function output in moving axis 

If M code for spindle control mode changing is commanded in G50.9 block, alarm PS5330 "G50.9 
FORMAT ERROR" is issued. 
 

- Hypothetical Cs axis 

Spindle control mode changing by program command is not available for hypothetical Cs axis. Set 0 to 
parameters Nos.25800 to 25806. 
 

- Spindle control with servo motor 

Spindle control mode changing by program command is not available for spindle controlled with servo 
motor. Set 0 to parameter Nos.25800 to 25806. 
 

M

 

- Canned cycle for drilling 

In Fine boring cycle (G76) and Back boring cycle (G87), M19 is output in order to execute spindle 
orientation during canned cycle. If M19 is set as M code for spindle orientation by program command, 
M19 in Fine boring cycle (G76) and Back boring cycle (G87) does not execute spindle orientation by 
program command, auxiliary function code signals M00 to M31<Fn010 to Fn013> and auxiliary function 
strobe signal MF<Fn007.0> are output. Spindle orientation M19 in Fine boring cycle (G76) and Back 
boring cycle (G87) has to execute by PMC ladder. 
 

10. SPINDLE SPEED FUNCTION

 

 

B-64693EN-1/01

 

- 1904 - 

Signal 

Spindle control mode off signals 

MDOFF1 to MDOFF4 <Gn586.4 to Gn586.7> 

  [Classification]  Input signal

 

 

[Function]  In spindle control mode changing by program command, spindle orientation by program 

command or Cs contour control by program command is canceled. 

 

[Operation]  If spindle control mode off signal MDOFF1 to MDOFF4<Gn586.4 to Gn586.7> is set to 

"1", spindle orientation by program command or Cs contour  control  by program 
command is canceled. If spindle orientation completion signal ORARA to 
ORARD<Fn045.7, Fn049.7, Fn168.7, Fn266.7>, or Cs contour control change 
completion signal FSCSL<Fn044.1> (Cs contour control change completion signal in 
each axis FCSS1 to FCSS4<Fn274.0 to Fn274.3>) is set to "0", set "0" to spindle control 
mode off signals MDOFF1 to MDOFF4<Gn586.4 to Gn586.7>.

 

 

 

spindle orientation 

completion signal 

ORARA<Fn045.7> 

or 

Cs contour control change 

completion signal 

FSCSL<Fn044.1> 

spindle control 

mode off signal 

MDOFF1<Gn586.4> 

 

Fig. 10.28 (b)  Spindle control mode OFF by signal 

 

Multi-spindle address P signals 

MSP00 to MSP15 <Fn160.0 to Fn161.7> 

  [Classification]  Output signal

 

 

[Function]  The P value specified last by the S_P_; command is output. 

When extended spindle names are used, the value in parameter No. 3781 corresponding 
to the spindle number of the spindle name specified last is output. 

 

[Output cond.]  When multi-spindle control by using address P is enabled (bit 3 (MPP) of parameter No. 

3703 is 1), the P value specified in the S_P_; command is output. When no S_P_; 
command has been specified even once since power-up, the initial P value set in 
parameter No. 3775 is output. 
When extended spindle names are used, the value in parameter No. 3781 corresponding 
to the spindle number of the spindle name specified last is output. When no spindle name 
has been specified even once, the value set in parameter No. 3775 is output. 

 

Signal address 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

Gn586 

 

MDOFF4 

MDOFF3 

MDOFF2 

MDOFF1 

 

 

 

 

 

Fn160 

 

MSP07 

MSP06 

MSP05 

MSP04 

MSP03 

MSP02 

MSP01 

MSP00 

 

Fn161 

 

MSP15 

MSP14 

MSP13 

MSP12 

MSP11 

MSP10 

MSP09 

MSP08 

 

B-64693EN-1/01

 

 

10. SPINDLE SPEED FUNCTION

 

- 1905 - 

Parameter 

25800 

 

M code for spindle orientation ON 

 

NOTE 

1  When this parameter is set, the power must be turned off before 

operation is continued. 

2  Don’t set M code used for any other function. 
3  The M code set in this parameter prevents buffering. 
4  Auxiliary function code signals M00 to M31<Fn010 to Fn013> and 

auxiliary function strobe signal MF<Fn007.0> are not output. 

5  If this parameter is set to 0, the spindle cannot use spindle 

orientation by program command. 

 

 

[Input type]  Parameter input 

 

[Data type]  2-word spindle 

[Valid data range]  0 to 99999999 

Set M code for spindle orientation ON. 
 

25801 

 

M code for spindle orientation OFF 

 

NOTE 

1  When this parameter is set, the power must be turned off before 

operation is continued. 

2  Don’t set M code used for any other function. 
3  Auxiliary function code signals M00 to M31<Fn010 to Fn013> and 

auxiliary function strobe signal MF<Fn007.0> are not output. 

4  If this parameter is set to 0, the spindle cannot use spindle 

orientation by program command. 

 

 

[Input type]  Parameter input 

 

[Data type]  2-word spindle 

[Valid data range]  0 to 99999999 

Set M code for spindle orientation OFF. 
 

25802 

 

M code for Cs contour control ON 

 

NOTE 

1  When this parameter is set, the power must be turned off before 

operation is continued. 

2  Don’t set M code used for any other function. 
3  The M code set in this parameter prevents buffering. 
4  Auxiliary function code signals M00 to M31<Fn010 to Fn013> and 

auxiliary function strobe signal MF<Fn007.0> are not output. 

5  If this parameter is set to 0, the spindle cannot use Cs contour 

control by program command. 

 

 

[Input type]  Parameter input 

 

[Data type]  2-word spindle 

[Valid data range]  0 to 99999999 

Set M code for Cs contour control ON. 
 

 

 

 

 

 

 

 

Content      ..     241      242      243      244     ..