Logo Passei Direto
Buscar
Material

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Prévia do material em texto

S
in
um
er
ik
 8
40
D
 s
l 
This  document  was  produced  for  training  purposes.  
Siemens  assumes  no  responsibility  for  its  contents.  
   840D  sl  SINUMERIK  operate    
  
        5-­axis  HSC  machining  
  
                                  Training  documentation  
Training  Manual    
Edition  2010.1  
  
840D sl SINUMERIK Operate 
 
Programming of 5-­Axis 
Manual for Milling machines 
Valid  for:  
        
Sinumerik  840D  sl     Software      2.6  
  
Start  
End  
M101    
Frames  
M102    
Cycle800  
M103  
TRAORI  
M104  
Cycle832  
M105  
Tool  radius    
Compensation  
Contents  
  
  
S
in
um
er
ik
 
  
This  document  was  produced  for  training  purposes.  
Siemens  assumes  no  responsibility  for  its  contents.  840Dsl  SINUMERIK    Operate                                        Page  1                                                                                                                                                                                                                                M101M101                                                                                                                                    
FRAMES  
Brief  description  
Objective  of  the  Module:  
This  Module  explains  the  term  FRAMES.      
  
Description  of  the  Module:  
Explanation  of  FRAMES  TRANS  and  ROT.  Practical  application  examples  of  FRAME  functionality  for  
3-­5  axis  plane  transformation.      
Contents  :  
M101  
General  explanation  of  FRAMES  
Programmable  zero  point  shift  TRANS  
Programmable  rotation  ROT  
Example  machining  in  a  inclined  plane  
  
M101M101   Page  2   840Dsl  SINUMERIK    Operate  
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
    M101  
   M101  
      
      Notes    
  
  
840Dsl  SINUMERIK  Operate                                                                                                                              Page  3                                                                                                                                                                                              M101M101  
FRAMES:  Description  
Explanation  of  FRAMES  TRANS  and  ROT.  Practi-­
cal  application  examples  of  FRAME  functionality  
for  3-­5  axis  plane  transformation.      
                
             FRAMES:  
END  
FRAMES:  
START  
General  explana-­
tion  of  FRAMES  
Programmable  
zero  point  shift  
TRANS  
Programmable  
rotation  ROT  
Example  machining  
in  a  inclined  plane  
  
  
  
  
M101M101   Page  4   840Dsl  SINUMERIK    Operate  
  
  
840Dsl  SINUMERIK    Operate                          Page  5   M101M101  
Notes  
     Section1  1.1    FRAMES  
              General  explanation  of  term  
Function  
  
Frames  are  used  to  describe  the  position  of  a  destination  coordinate  sys-­
tem  by  specifying  coordinates  or  angles  starting  from  the  current  work-­
piece  coordinate  system.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Possible  frames:  
  
Basic  frame  (basic  offset)  
Settable  frames  (G54...G599)  
Programmable  frames  
  
Programming  
  
Frame  is  the  conventional  term  for  a  geometrical  expression  that  describes  
an  arithmetic  rule,  such  as  translation,  rotation  and  scaling  or  mirroring.  
  
Substituting  instructions  
TRANS,  ROT,  SCALE  and  MIRROR  are  substituting  instructions.  
This  means  that  each  of  these  instructions  (TRANS,  ROT,  SCALE  and  
MIRROR)  cancels  all  other  previously  programmed  frame  instructions.  
The  last  called  settable  zero  offset  G54  to  G599  is  used  as  the  reference.  
  
Additive  instructions  
ATRANS,  AROT,  ASCALE  and  AMIRROR  are  additive  instructions.  The  
currently  set  zero  point  or  the  last  workpiece  zero  to  be  programmed  with  
frame  instructions  is  used  as  the  reference.  The  above  instructions  are  
added  to  existing  frames.    
  
  
Notes  
    
M101M101   Page  6   840Dsl  SINUMERIK    Operate  
Section2   2.1    FRAMES              Programmable  zero  offset    
  
TRANS  and  ATRANS  
  
Function  
  
TRANS/ATRANS  can  be  used  to  program  translations  for  all  path  and  po-­
sitioning  axes  in  the  direction  of  the  specified  axis.  This  allows  you  to  work  
with  different  zero  points,  for  example  when  performing  recurring  machin-­
ing  processes  at  different  workpiece  positions.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Deactivate  programmable  zero  offset:  
For  all  axes:  TRANS  (without  axis  parameter)  
The  last  called  settable  zero  offset  G54  to  G599  is  usedas  the  reference.  
  
  
Commands  
TRANS       Absolute  zero  offset,  with  reference  to  the  currently  valid      
                                                        workpiece  zero  set  with  G54  to  G599  or  base  zero  G500.  
ATRANS       as  TRANS,  but  with  additive  zero  offset  value  in  the    
X  Y  Z  A  B  C                  direction  of  the  specified  geometry  axis.  
  
  
Example:  
With  this  workpiece,  the  illustrated  shapes  recur  several  times  in  the  same  
program.  The  machining  sequence  for  this  shape  is  stored  in  a  subpro-­
gram.  You  use  the  translation  to  set  only  those  workpiece  zeroes  and  then  
call  up  the  subprogram  
  
N10  G17  G54      ;;Workplane  X/Y,  work  offset  
N20  G0  X0  Y0  Z2  ;;Approach  starting  point  
N30  TRANS  X10  Y10  ;;Absolute  offset  
N40  L10  ;;Subprogram  call  
N50  TRANS  X50  Y10  ;;Absolute  offset  
N60  L10  ;;Subprogram  call  
N70  M30  ;;End  of  program  
  
  
840Dsl  SINUMERIK    Operate                          Page  7   M101M101  
Notes  
     Section2  2.2    FRAMES              Programmable  rotation    
  
ROT,  AROT  and  RPL  
  
Function  
  
ROT/AROT  can  be  used  to  rotate  the  workpiece  coordinate  system  around  
each  of  the  geometry  axes  X,  Y,  Z  or  through  an  angle  RPL  in  the  selected  
working  plane  G17  to  G19  (or  around  the  perpendicular  infeed  axis).  This  
allows  inclined  surfaces  or  several  workpiece  sides  to  be  machined  in  one  
setting.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Programming  
  
  
Or  
  
Or  
  
Or  
  
  
Each  instruction  must  be  programmed  in  a  separate  NC  block.  
  
Parameters  
  
  
  
  
ROT   Absolute  rotation  with  reference  to  the  currently  valid  workpiece  zero  
set  with  G54  to  G599  
RPL   Rotation  in  the  plane:  Angle,  through  which  the  coordinate  system  is  
rotated  (plane  set  with  G17-­G19).  The  order,  in  which  the  rotation  
should  be  performed  can  be  defined  via  machine  data.  RPY  notation  is  
the  default  setting  (=  roll,  pitch,  yaw)  with  Z,Y,X  
AROT   Additive  rotation  with  reference  to  the  currently  valid  set  or  pro-­
grammed  
zero  point  
X  Y  Z       Rotation  in  space:  geometry  axes,  around  which  the  rotation  takes  
place  
  
  
Notes  
    
M101M101   Page  8   840Dsl  SINUMERIK    Operate  
Section3   2.3    FRAMES              Programmable  rotation  
  
Example:  Rotation  in  the  plane  
  
With  this  workpiece,  the  illustrated  shapes  recur  several  times  in  the  same  
program.  Rotations  have  to  be  performed  in  addition  to  the  translation,  be-­
cause  the  shapes  are  not  arranged  parallel  to  the  axes.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
N10  G17  G54                                                      ;;Working  plane  X/Y,  workpiece  zero  
N20  TRANS  X20  Y10                              ;;Absolute  offset  
N30  L10                                                                        ;;Subprogram  call  
N40  TRANS  X55  Y35                              ;;Absolute  offset  
N50  AROT  RPL=45                                    ;;Rotation  of  the  coordinate  system  in  plane      
                                                                                                    45°  
N60  L10                                                                        ;;Subprogram  call  
N70  TRANS  X20  Y40                              ;;Absolute  offset  
                                                                                                  ;;(cancels  all  previous  offsets)  
N80  AROT  RPL=60                                    ;;Additive  rotation  through  60°  
N90  L10                                                                        ;;Subprogram  call  
N100  G0  X100  Y100                                ;;Retraction  
N110  M30                                                                  ;;End  of  program  
  
  
840Dsl  SINUMERIK    Operate                          Page  9   M101M101  
Notes  
     Section  2  2.4    FRAMES              Programmable  rotation  
  
Example:  Rotation  in  space  
  
In  this  example,  paraxial  and  inclined  workpiece  surfaces  are  to  be  
machined  in  one  setting.  Requirement:  The  tool  must  be  aligned  per-­
pendicular  to  the  inclined  surface  in  the  rotated  Z  direction.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
N10  G17  G54                                                    ;;Working  plane  X/Y,  workpiece  zero  
N20  TRANS  X10  Y10                            ;;Absolute  offset  
N30  L10                                                                      ;;Subprogram  call  
N40  ATRANS  X35                                      ;;Additive  offset  
N50  AROT  Y30                                              ;;Rotation  through  the  Y  axis  
N60  ATRANS  X5                                          ;;Additive  offset  
N70  L10                                                                      ;;Subprogram  call  
N80  G0  X300  Y100  M30                  ;;Retraction,  end  of  program  
  
  
Example:  multi-­side  machining  
  
In  this  example,  identical  shapes  on  two  perpendicular  workpiece  sur-­
faces  are  machined  by  using  subprograms.  The  setup  of  the  infeed  
direction,  working  plane  and  zero  point  in  the  new  coordinate  system  
on  the  right-­hand  workpiece  surface  matches  that  of  the  top  surface.  
The  conditions  required  for  subprogram  execution  apply  as  before:  
Working  plane  G17,  coordinate  plane  X/Y,  infeed  direction  Z.  
  
  
Notes  
    
M101M101   Page  10   840Dsl  SINUMERIK    Operate  
Section  2   2.5    FRAMES              Programmable  rotation  
  
N10  G17  G54                              ;;Arbeitsebene  X/Y,  Werkstücknullpunkt  
N20  L10                                ;;Unterprogramm-­Aufruf  
N30  TRANS  X100  Z-­100                    ;;Absolute  Verschiebung  
N40  AROT  Y90                                              ;;Rotation  of  the  coordinate  system  through  Y  
  
  
  
  
  
  
N50  AROT  Z90                                              ;;Rotation  of  the  coordinate  system  through  Z  
  
  
  
  
  
  
  
N60  L10                                                                    ;;Subprogram  call  
N70  G0  X300  Y100  M30  ;;Retraction,  end  of  program  
  
  
Rotation  in  the  plane  
The  coordinate  system  is  
  rotated  in  the  plane  selected  with  G17  to  G19.  
  Substituting  statement,  ROT  RPL  or  additive  statement,  AROT  RPL  
  current  plane,  about  which  there  is  rotation  with  RPL=  programmed                
            rotation  angle.  
  
  
840Dsl  SINUMERIK    Operate                          Page  11   M101M101  
Notes  
     Section  2  2.6    FRAMES              Programmable  rotation  
Plane  change  
  
Warning  
If  you  program  a  change  of  plane  (G17  to  G19)  after  a  rotation,  the  
angles  of  rotation  programmed  for  the  axes  are  retained  and  con-­
tinue  to  apply  in  the  new  working  plane.  It  is  therefore  advisable  to  
deactivate  the  rotation  before  a  change  of  plane.  
  
Deactivate  rotation  
For  all  axes:  ROT  (without  axis  parameter)  
  
Caution  
In  both  cases,  all  frame  components  of  the  previously  programmed  
frame  are  reset.  
  
  
Substituting  statement,  ROT  X  Y  Z  
  
The  coordinate  system  is  rotated  through  the  programmed  angle  
around  the  specified  axes.  The  center  of  rotation  is  the  last  specified  
settable  zero  offset  (G54  to  G599).  
  
Caution  
The  ROT  command  cancels  all  frame  components  of  the  previously  
activated  programmable  frame.Note:  
A  new  rotation  based  on  existing  frames  is  programmed  with  AROT              
activated  programmable  frame.  
  
  
Notes  
    
M101M101   Page  12   840Dsl  SINUMERIK    Operate  
Section  2   2.7    FRAMES              Programmable  rotation  
Additive  statement,  AROT  X  Y  Z  
  
Rotation  through  the  angle  values  programmed  in  the  axis  direction  pa-­
rameters.  The  center  of  rotation  is  the  currently  set  or  last  programmed  
zero  point.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Direction  of  rotation  
The  following  is  defined  as  the  positive  direction  of  rotation:  The  view  in  the  
direction  of  the  positive  coordinate  axis  and  clockwise  rotation.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Order  of  rotation  
You  can  rotate  up  to  three  geometry  axes  simultaneously  in  one  NC  block.  
The  order  of  the  RPY  notation  or  Euler  angle,  through  which  the  rotations  
are  performed  can  be  defined  in  machine  data.  
MD  10600:  FRAME_ANGLE_INPUT_MODE  =  
  
  
After  that,  the  sequence  Z,  Y,  X  of  the  rotation  is  defined  as  follows:  
Rotation  around  the  3rd  geometry  axis  (Z)  
Rotation  around  the  2nd  geometry  axis  (Y)  
Rotation  around  the  1st  geometry  axis  (X)  
Note:  
For  both  statements,  please  note  the  order  and  direction  of  rotation,  in  
which  the  rotations  are  performed  (see  below)!  
  
  
840Dsl  SINUMERIK    Operate                          Page  13   M101M101  
Notes  
     Section  2  2.8    FRAMES              Programmable  rotation  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
This  order  applies  if  the  geometry  axes  are  programmed  in  a  single  block.  
It  also  applies  irrespective  of  the  input  sequence.  If  only  two  axes  are  to  be  
rotated,  the  parameter  for  the  3rd  axis  (value  zero)  can  be  omitted.  
  
Value  range  with  RPY  angle  
The  angles  are  defined  uniquely  only  within  the  following  value  ranges:  
Rotation  around  1st  geometry  axis:  -­  
Rotation  around  2nd  geometry  axis:  -­  
Rotation  around  3rd  geometry  axis:  -­  
All  possible  rotations  can  be  represented  with  this  value  range.  Values  out-­
side  the  range  are  normalized  by  the  control  into  the  above  range  during  
writing  and  reading.  This  value  range  applies  to  all  frame  variables.  
  
Examples  of  reading  back  in  RPY  
$P_UIFR[1]  =  CROT(X,  10,  Y,  90,  Z,  40)  
returns  on  reading  back  
$P_UIFR[1]  =  CROT(X,  0,  Y,  90,  Z,  30)  
$P_UIFR[1]  =  CROT(X,  190,  Y,  0,  Z,  -­200)  
returns  on  reading  back  
$P_UIFR[1]  =  CROT(X,  -­170,  Y,  0,  Z,  160)  
When  frame  rotation  components  are  read  and  written,  the  value  range  
limits  must  be  observed  to  ensure  that  the  same  results  are  obtained  for  
read  or  write,  or  repeat  write  operations.  
  
Value  range  with  Euler  angle  
The  angles  are  defined  uniquely  only  within  the  following  value  ranges:  
  
Rotation  around  2nd  geometry  axis:  -­  
Rotation  around  3rd  geometry  axis:  -­  
All  possible  rotations  can  be  represented  with  this  value  range.  Values  out-­
side  the  range  are  normalized  by  the  control  into  the  above  range.  This  
value  range  applies  to  all  frame  variables.  
  
Caution  
To  ensure  the  angles  written  are  read  back  unambiguously,  it  is  necessary  
to  observe  the  defined  value  ranges.  
  
Note:  
If  you  want  to  define  the  order  of  the  rotations  individually,  program  the  
desired  rotation  successively  for  each  axis  with  AROT.  
  
  
Notes  
    
M101M101   Page  14   840Dsl  SINUMERIK    Operate  
Section  2   2.9    FRAMES              Programmable  rotation  
  
The  working  plane  also  rotates  
  
The  working  plane  defined  with  G17,  G18  or  G19  rotates  with  the  spatial  
rotation.  
  
Example:  Working  plane  G17  X/Y,  the  workpiece  coordinate  system  is  po-­
sitioned  on  the  top  surface  of  the  workpiece.  Translation  and  rotation  is  
used  to  move  the  coordinate  system  to  one  of  the  side  surfaces.  Working  
plane  G17  also  rotates.  This  feature  can  be  used  to  program  plane  desti-­
nation  positions  in  X/Y  coordinates  and  the  infeed  in  the  Z  direction.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Requirement:  
The  tool  must  be  positioned  perpendicular  to  the  working  plane.  The  posi-­
tive  direction  of  the  infeed  axis  points  in  the  direction  of  the  tool  holder.  
Specifying  CUT2DF  activates  the  tool  radius  compensation  in  the  rotated  
plane.  For  more  information  please  refer  to  Module4_WZRK    "2D  Tool  
Compensation,  CUT2D  CUT2DF".  
  
  
840Dsl  SINUMERIK    Operate                          Page  15   M101M101  
Notes  
     Section  3  3.1    FRAMES                Example  using  frames  
  
Example:    Machining  on  an  inclined  plane  
  
  
  
  
  
  
  
Machine  coordinate  system  1  with  
reference  point,  settable  zero  offset  
(G54,  G55,  ...)    
Programmable  zero  offset  with  
TRANS  X..  Y..  Z..  2.  
A  5-­axis  machine  can  be  used  to  work  
on  surfaces  that  can  be  offset  and  ro-­
tated  anywhere  in  the  area.  
  
The  workpiece  coordinate  system                
can  only  be  offset  using  frames  and  set  
in  an  inclined  plane  by  rotation.  
  
Programmable  additive  zero      
offset  ATRANS  X..  Y..  Z..  (3).  
  
All  the  following  traversing  commands  
now  relate  to  the  workpiece  coordinate  
system  (3).  
Using  a  Additive  FRAME  this  coordi-­
nate  system  3  can  now  be  rotated  any-­
where  in  the  area.    
  
  
  
With  a  5-­axis  machine  the  tool  4  can  
be  positioned  normal  to  the  rotated  co-­
ordinate  system  3  .With  the  exception  
of  special  machine  kinematics,  the  
axes  are  now  aligned  parallel  to  the  
machine  axes.  
  
When  the  coordinate  system  3  is  ro-­
tated  into  the  inclined  plane,  a      
hole  for  example  can  be  programmed  
simply  by  calling  the  drilling  cycle  
4  
  
  
Notes  
    
M101M101   Page  16   840Dsl  SINUMERIK    Operate  
Section  4   2.2    FRAMES              List  of  commands  
Offset  (rough)   Programmable  with:  
  
TRANS  X..  Y..  Z..            Absolute  Offset  
ATRANS  X.  Y..  Z..        Incremental  Offset  
CTRANS  (X..  Y..  Z..)  Absolute  Offset  via  Frame
-­Operators.  Frame-­Variables  can  be  chained  
together  and  defined  as  single        Frame-­Types.  
  
Settable  with:  
  
Offset  (fine)   Programmable  with:  
  
CFINE  X..  Y..  Z..  
  
  
  
Settable  with:  
  
  
Rotation   Programmable  with:  
  
ROT  X..  Y..  Z..        Absolute  Rotation  
AROT  X..  Y..  Z..    Incremental  Rotation  
CROT  X..  Y..  Z..    Absolute  Rotation  via    
                                                                                  Frame-­Operators  
ROTS  X..  Y..              Absolute  Rotation  defined      
                                                                                  through  two  angles                                                                      
AROTS  X..  Y..          Incremental  Rotation  defined      
                                                                                  through  two  angles          
CROTS  X..  Y..  Z..  Absolute  Rotation  via        
                                                                                    Frame-­Operators  
Scale   Programmable  with  
  
SCALE  X..  Y..  Z..          Absolute  Scaling  
ASCALE  X..  Y..  Z..      Incremental  Scaling  
CSCALE  X..  Y..  Z..    Absolute  Scaling  via        
                          Frame-­Operators.  Frame-­Variables  can  bechained  together  and  defined  as  single            
                          Frame-­Types.  
Mirror  image   Programmable  with  
  
MIRROR    X..  Y..  Z..      Absolute  mirroring  
AMIRROR  X..  Y..  Z..    Incremental  mirroring  
CMIRROR  X..  Y..  Z..    Absolute  mirroring  via  
                          Frame-­Operators.  Frame-­Variables  can  be      
                          chained  together  and  defined  as  single            
                          Frame-­Types.  
  
  
  
  
S
in
um
er
ik
 
This  document  was  produced  for  training  purposes.  
Siemens  assumes  no  responsibility  for  its  contents.  840Dsl  SINUMERIK    Operate   Page  1   M102M102  
  
Swivel  CYCLE800  3+2  
Brief  description  
Objective  of  the  module:  
After  completing  this  module  you  will  be  able  to  setup  and  program  CYCLE800  
Description  of  the  module:  
This  module  explains  the  use  and  setup  of  the  Swivel  CYCLE800.  With  help  of  practical  user                  
examples  you  get  to  visualize  and  learn,  setup,  programming  and  various  possibilities  of                                
applications  with  CYCLE800.    
M102  
Contents  :  
Theory:  What  is  CYCLE800  
Startup  CYCLE800  
Information  for  the  programmer  
Practical  examples  with  solutions  
Information  for  the  machine  operator  
  
M102M102   Page  2   840Dsl  SINUMERIK    Operate  
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
    M102  
   M101  
      
      Notes    
  
  
840Dsl  SINUMERIK  Operate                                                                                                                              Page  3                                                                                                                                                                                              M101M101  
Cycle800:  Description  
This  module  explains  the  use  and  setup  of  the  
Swivel  CYCLE800.  With  help  of  practical  user                  
examples  you  get  to  visualize  and  learn,  setup,  
programming  and  various  possibilities  of                                
applications  with  CYCLE800.    
                
             Cycle800:  
END  
Cycle800:  
START  
Theory:    
what  is  Cycle800  
STARUP  
Cycle800  
Information  for  the  
programmer  
Practical  examples  
with  solutions  
Information  for  the  
machine  operator  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  5   M102M102  
  
Notes  
  
  
Section  1  1.1  First  for  the  Theory              Explanation  of  the  Function  
  
Introduction  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
With  the  help  of  CYCLE800  you  can  define  on  a  5-­axis  machine  for  exam-­
ple  with  swivel  head  or  swivel  table  a  rotated  workplane,  in  which  you  can  
than  program  a  2D  or  3D  machining  operation.  
  
By  calling  the  appropriate  NC  functions,  the  cycle  converts  the  active  work-­
piece  zeros  (G54  or  Frames)  and  tool  offsets  to  refer  to  the  rotated  sur-­
face,  taking  into  account  the  kinematics  chain  offsets  on  the  machine,  and  
positions  the  physical  rotary  axes  (optional)  normal  to  the  programmed  
workplane.  
  
You  can  program  the  swiveling  axes  of  the  machine  (A,B,C)    or  can  simply  
specify  the  rotation  around  the  geometry  axes  (X,Y,Z)  of  the  workpiece  co-­
ordinate  system  as  described  in  the  relevant  workpiece  drawing.  The  rota-­
tion  of  the  workpiece  coordinate  system  in  the  program  is  then  automati-­
cally  converted  to  a  rotation  of  the  relevant  swiveling  axes  (physical  axes)  
of  the  machine  during  machining.  
The  swivel  axes  are  always  rotated  to  place  the  machining  plane  perpen-­
dicular  (normal)  to  the  tool  axis  for  machining.  The  machining  plane  re-­
mains  fixed  during  machining.  
When  the  coordinate  system  is  swiveled  the  previously  set  zero  offset  is  
automatically  converted  into  the  new  swivel  plane.  
  
  
M102M102   Page  6   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  1   1.2  First  for  the  Theory              Explanation  of  the  Function  
  
CYCLE800  is  a  coordinate  transformation  that  can  be  programmed  as  a    
defines  a  swiveled  plane  in  a  new  coordinate  system.  
of  the  tool  orientation,  based  on  the  initial  setting  of  the  machine                      
kinematics.    
The  NC  converts  the  coordinate  transformation  into  actual  rotation  angles  
for  each  rotary  axis,  that  are  available  to  your  5-­axis  CNC-­machine  
(physical  rotary  axes  A,  B,  C).    
The  CNCmachine  can  now  move  the  rotary  axes  by  the  computed  values,  
normal  to  the  created  workplane  (Swivel  plane).  
The  tool  moves  now  relative  to  the  transformed  workplane.  
  
  
When  rotating  /  tilting  a  plane  about  an  axis  we  always  refer  to  
the  DIN/ISO  Norm  (right  hand  rule).    
A  Rotation  /  Tilt  about  the  linear  X  Axis  is  programmed  as  A.  
A  Rotation  /  Tilt  about  the  linear  Y  Axis  is  programmed  as  B.  
A  Rotation  /  Tilt  about  the  linear  Z  Axis  is  programmed  as  C.  
  
  
840Dsl  SINUMERIK    Operate   Page  7   M102M102  
  
Notes  
  
  
Section  1  1.3  First  for  the  Theory              Explanation  of  the  Function  
Example  swivel  table  45  Grad  (Nutaded  table)    
  
On  some  machines  the  actual  axis  position  are  not  equal  to  the  pro-­
grammed  values  in  Cycle800.    
This  occurs  especially  on  machine  kinematics  with  a  swivel  head  or  swivel  
table  where  the  rotation  axis  is  mounted  on  a  45  degree  inclined  plane.  
(nutated  swivel  table  or  swivel  head).  
  
To  machine  a  inclined  Plane  that  is  rotated  45  degrees  about  the  Y-­Axis,  a  
coordinate  rotation  around  the  Y-­Axis  of  +45  has  to  be  program  in                    
CYCLE800.    
The  result  is  a  swiveled  work-­plane.  Based  on  the  kinematic  model  of  the  
machine,  the  control  has  to  compute  now  the  actual  tilt  angles  for  its    
physical  Rotary  Axes  B  and  C.    
In  our  example  we  get  following  position  values  for  the  Rotary  Axes:    
B      -­65.530  deg  
C    294.470  deg  
  
  
  
M102M102   Page  8   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  1   1.4  First  for  the  theory              Explanation  of  the  Function  
Example1:    Cycle800  swivel  plane  
  
That  means:  XYZ  are  able  to  move  while  the  rotary  axes  only  position  and  
remain  fixed  (static).    
  
Once  the  Coordinate  System  1  is  rotated  into  the  tilted  work-­plane  you  can  
simply  program  for  example  a  hole  position  with  the  call  of  a  drill    
cycle.      
The  use  of  drilling  and  milling  cycles  with  a  change  of  tool  orientation  is  
only  possible  with  plane  transformation  CYCLE800.  
The  tool-­axis  has  to  be  always  oriented  normal  to  the  work-­plane.  
  
  
  
840Dsl  SINUMERIK    Operate   Page  9   M102M102  
  
Notes  
  
  
Section  1  1.5  First  for  the  theory              Explanation  of  the  Function  
3   4  
+Y  
+Z  
+X  
Example  2:    CYLE800  swivel  tool  orientation  
  
The  workplane  in  this  example  is  not  rotated  with  Cycle800,  but  only  
the  toolorientation  3.  The  workplane  remains  normal  to  the  work  
coordinatesystem  4.  CYCLE800  offers  this  alternative  functionallety  
Also  here  the  Rotary  axes  remain  fixed  (static)  
during  machining.  This  feature  is  primerally  used  for  3D  mold  &  die  
surface  machining.    
  
In  picture  2  the  cutter  is  working  with  optimum  cutting  conditions.              
In  picture  1  the  cutting  conditions  deteriorate  as  the  cutter  moves  up  
towards  the  top  or  to  the  side  of  the  work-­piece.  In  order  to  obtain  
optimum  cutting  conditions,  the  table  is  swiveled  (picture  2).  To  ma-­
chine  a  freeform  surface  completely,  the  table  often  has  to  be              
swiveled  several  times  in  various  directions.  
  
  
              1  
    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
              2  
4  
+Z  
+Y
  
+X  
3  +
Z  
A-­axis  
4  
  
  
M102M102   Page  10   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  1   1.6  First  for  the  theory              What  moves  and  how?  
Designs  of  5-­axis  milling  machines  
  
  
840Dsl  SINUMERIK    Operate   Page  11   M102M102  
  
Notes  
  
  
Section  1  1.7  First  for  the  theory              What  moves  and  how?  
A  5-­axis  machine  can  control  tool  movements  in  5  axes.  The  3  familiar    
linear  axes  X  Y  Z    plus  an  additional  2  rotary  axes.  The  two  rotary  axes  
have  different  kinematic  solutions,  that  are  part  of  a  Kinematic  chain  and  
defined  in  a  Swivel  data  record.  
The  most  common  ones  are  shown  here  diagrammatically.  Machine  tool  
manufacturers  are  constantly  developing  new  kinematic  solutions  for  differ-­
ent  requirements.  With  Sinumerik  840D,  thanks  to  the  integral  kinematic  
want  to  go  into  detail  about  hexapods,  etc.  here.  
  
  
  
*  Term:  If  the  rotary  axis  is  not  perpendicular  to  a  linear  axis,  
        
  
Designs  of  5-­axis  milling  machines  
2  Rotary  axes  in  the  head   1      Fork   2      nutated  *  
2  Rotary  axes  in  the  table   3      Rotate/Swivel   4      nutated  *  
1  Rotary  axis  in  the  head  
1  Rotary  axis  in  the  table  
5      Rotate/Fork    
  
  
M102M102   Page  12   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.0  Startup  CYCLE800                Activating  CYCLE800    
Licensing  
  
CYCLE800  does  not  require  a  licensing  option,  yet  for  a  proper  function  of  
-­axis                    
machining  package  is  required.  
Enter  the  correct  license  key  and  set  the  option  with  the  check  mark.  
  
  
840Dsl  SINUMERIK    Operate   Page  13   M102M102  
  
Notes  
  
  
Section  2  2.1  Startup  CYCLE800                Activating  CYCLE800    
  
Machine  and  setting  data  
  
To  use  the  swiveling  cycle,  the  machine  data  below  must  be  set  as  follows  
(minimum  requirement):  
  
Machine  data  with  precise  values  assignment  (P):  
        These  are  machine  data  that  can  not  be  modified.  
Machine  data  with  variable  value  assignment  (V):  
        These  are  machine  data,  whose  default  values  can  be  increased  or          
        decreased.  
  
  
Cont.  
MD    
No.  
MD  identifier   Value   Comment   Value  
assign-­
ment  
10602   $MN_FRAME_GEOAX_CHANGE_MOD
E  
1   2)   V  
11450   $MN_SEARCH_RUN_MODE   Bit  1=1   Activate  PROG_EVENT  
after  block  search  
P  
11602   $MN_ASUP_START_MASK   Bit  0=1   Swiveling  in  JOG   V  
11604   $MN_ASUP_START_PRIO_LEVEL   100   Swiveling  in  JOG   V  
18088   $MN_MM_NUM_TOOL_CARRIER   n>0   n  =  Number  of  swivel  data  
records  1)    3)  
V  
18114   $MM_ENABLE_TOOL_ORIENT   2   Basic  tool  orientation  3)   V  
20108   $MC_PROG_EVENT_MASK   0   Systemasub  
PROG_EVENT  after  
block  search  
V  
20110   $MC_RESET_MODE_MASK  
  
Bit  14=1   P  
20112   $MC_START_MODE_MASK     -­   P  
20126   $MC_TOOL_CARRIER_RESET_VALU
E  
0...n   Described  in  CYCLE800   V  
20150   $MC_GCODE_RESET_VALUES[41]   1   TCOABS  5)   P  
20150   $MC_GCODE_RESET_VALUES[51]   2   PAROT  5)   P  
20150   $MC_GCODE_RESET_VALUES[52]   1   TOROTOF  5)  (for  kine-­
matics  types  T  and  M  
only)  
V  
20152   $MC_GCODE_RESET_MODE[41]   0   TCOABS   P  
20152   $MC_GCODE_RESET_MODE[51]   0   TOROTOF   V  
20152   $MC_GCODE_RESET_MODE[52]   0   PAROT   V  
20180   $MC_TOCARR_ROT_ANGLE_INCR[0]   0   8)   P  
20180   $MC_TOCARR_ROT_ANGLE_INCR[0]   0   8)   P  
20180   $MC_TOCARR_ROT_ANGLE_INCR[1]   0   8)   P  
  
  
M102M102   Page  14   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.0  Startup  CYCLE800                Activating  CYCLE800    
MD    
No.  
MD  identifier   Value   Comment   Value  
assign-­
ment  
20182   $MC_TOCARR_ROT_ANGL
E_OFFSET[0]  
0   8)   P  
20182   $MC_TOCARR_ROT_ANGL
E_OFFSET[1]  
0   8)   P  
20184   $MC_TOCARR_BASE_FRA
ME_NUMBER  
-­1   8)   P  
20360   $MC_TOOL_PARAMETER_
DEF_MASK  
Bit  10  =  1   For    T,  M  kinematics,  if  orienta-­
tion  vector  is  to  be  retained  even  
for  T0  and  D0  (no  tool)  
V  
21100   $MC_ORIENTATION_IS_EULER  
0   Angles  of  rotations  are  inter-­
preted  as  RPY  
V  
21104   $MC_ORI_IPO_WITH_G_C
ODE  
1   Relevant  for  swiveling  +  
correct  tool  with  TRAORI  
(see  CUST_800.SPF  
V  
22530   $MC_TOCARR_CHANGE_
M_CODE  
0   6)   V  
24006   $MC_CHSFRAME_RESET_
MASK  
Bit  4  =1   If  system  frame  
$P_WPFRAME  is  to  remain  
active  after  a  reset  9)  
V  
24007   $MC_CHSFRAME_RESET_
CLEAR_MASK  
Bit  2,3  =  0  
  
Bit  4  =1  
-­  
If  system  frame  
$P_WPFRAME  is  
to  be  deleted  on  reset  9)  
V  
MD  
no.  
MD  identifier   Value   Comment   Value                  
assign-­
ment  
24008   $MC_CHSFRAME_    POW-­
ERON_MASK  
Bit  4,  3,  
2=1  
If  system  frames  
$P_WPFRAME,  
$P_TOOLFRAME  and  
$P_PARTFRAME  are  to  be  
deleted  on  power  on  
V  
28082   $MC_MM_SYSTEM_FRAM
E_MASK  
Bit  4,  3,  
2=1  
Setup  of  system  frames1)  
$P_WPFRAME,  
$P_TOOLFRAME  and  
$P_PARTFRAME    
  
P  
28083   $MC_MM_SYSTEM_  DATA-­
FRAME_MASK  
Bit  4,  3,  
2=1  
Standard='H7f'1)   P  
30455   MISC_FUNCTION_MASK   Bit  2,  0=1   For  rotary  axes  declared  as  
Modulo  axes  7)  
V  
32010   $MA_JOG_VELO_RAPID
[AX]  
   Rapid  traverse  in  JOG  mode  
for  swiveling    in  JOG  
MD  is  relevant  for  rotary  axes  
and  machine  axes  which  
need  to  be  recovered  before  
swiveling  continues.  
V  
  
  
840Dsl  SINUMERIK    Operate   Page  15   M102M102  
  
Notes  
  
  
Section  2  2.1  Startup  CYCLE800                Activating  CYCLE800    
  
  
  
The  following  cycles  must  be  loaded  in  the  standard  cycles        
directory:  
  
CYCLE800.SPF    
E_TCARR.SPF  (for  ShopMill)    
F_TCARR.SPF  (for  ShopTurn)  
CUST_800.SPF  
PROG_EVENT.SPF  (see  note)  
  
Note:  
The  PROG_EVENT.SPF  cycle  is  supplied  as  a  standard  cycle  and  is  used  
for  prepositioning  of  rotary  axes  (swivel  axes)  after  a  block  search.  
Corresponding  exit  markers  are  prepared  at  the  start  and  end  of  
PROG_EVENT.SPF  for  the  CYCPE1MA.SPF  and  CYCPE_MA.SPF    
manufacturer  cycles.  
If  the  CYCPE1MA.SPF  and  CYCPE_MA.SPF  manufacturer  cycles  are  
loaded  in  the  NC,  the  program  branches  from  PROG_EVENT  to  the  manu-­
facturer  cycles  as  appropriate.  
  
  The  _TC_FR  to  _TC_NUM  (SGUD)  Channel  GUD  variables  must  be  
activated.  
SD  
no.    
  
SD  identifier   Value   Comment   Value                  
assign-­
ment  
42974   $MC_CHSFRAME_    POW-­
ERON_MASK  
0   Fine  offsets  of  offset  vectors   V  
42980   $MC_MM_SYSTEM_FRAME
_MASK  
2000   5)   V  
  
  
M102M102   Page  16   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.0  Startup  CYCLE800                Activating  CYCLE800    
  
Notes  on  machine  and  setting  data  
  
1.   Making  changes  to  the  required  machine  data  results  in  reorganization  
of  the  buffered  memory  (data  loss).  
  
        Series  startup  must  be  performed  after  setting  the  MD  and  before  NCK      
        reset.  
  
      References:  
      /IAM/  Commissioning  Manual  HMI  
  
2.    MD  10602  
          If  the  ZO  is  not  to  be  reprogrammed  following  TRAORI,  e.g.,  for  tool              
          correction.  
  
3.    MD  18088  
          If  several  channels  are  defined  in  the  NCU,  the  number  of  swivel  data      
          records  is  divided,  taking  MD  28085:  MM_LINK_TOA_UNIT  into                  
          account.  
  
          Example:  
              MD  18088  MM_NUM_TOOL_CARRIER  =4  
              Number  of  channels=2.  
              Two  swivel  data  records  are  provided  for  each  channel.  
  
4.      MD  18114    
            Support  of  angular  tools  with  tool  orientation  
            Angular  tools  are  created  and  managed  in  the  HMI  or  NCU  with  tool        
            type  130.  The  tool  lengths  are  entered  in  the  tool  of  tool  type  130.                    
            If  an  angular  tool  is  also  to  be  used  on  a  swiveled  machining  plane          
            (CYCLE800),  the  basic  tool  orientation  must  be  disconnected  with          
            MD18114  MM_ENABLE_TOOL_ORIENT=2.  This  enables  a  direction      
            vector  to  be  transferred  to  the  tool  in  parameters  $TC_DPV3[aa,bb]  to      
            $TC_DPV5[aa,bb].  
  
          The  TOROT  (G17),  TOROTY  (G18),  and  TOROTX  (G19)  commands      
          must  be  programmed  for  the  tool  change  so  that  the  basic  tool                              
          orientation  is  updated.  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  17   M102M102  
  
Notes  
  
  
Section  2  2.1  Startup  CYCLE800                Activating  CYCLE800    
  
5.  MD  20150/MD  20152  and  SD  42980  
        Note  on  kinematics  (swivel  head/mixed  kinematics)  with  Hirth  tooth            
        system:  
  
        Depending  on  the  active  plane  (G17,G18,G19),  the  TOROT  command        
        (or  TOROTX,  TOROTY)  is  programmed  (G-­group  53)  to  calculate  (in  the        
        NCU)  the  compensating  frame  for  the  Hirth  tooth  system  in  CYCLE800.  
  
        If  the  Hirth  tooth  system  causes  the  programmed  rotation  to  deviate      
        from  the  rotary  axes'  possible  positions,  a  $P_TOOLFRAME  compen-­    
        sating  frame  is  created  for  swivel  head  and  mixed  kinematics  (see  HMI      
        active  ZO/details  tool  reference).  
  
      The  calculation  depends  on  setting  data  SD  42980:      
      $SC_TOFRAME_MODE.  
  
      For  kinematics  (swivel  head/mixed  kinematics)  with  Hirth  tooth  setting      
      data  SD  42980:  Set  $SC_TOFRAME_MODE=2000!  
  
      If  the  compensation  frame  (TOOLFRAME)  is  to  be  retained  after  Reset      
      or  end  of  program,  the  following  value  must  be  entered  in  MD  20150:  
      $MC_GCODE_RESET_VALUES[52]:  
        For  G17  (TOROT)    MD  20150=2  
        For  G18  (TOROTY)    MD  20150=3  
        For  G19  (TOROTX).  MD  20150=4  
  
6.    MD  22530  
          If  several  swivel  data  records  are  declared  per  channel,  and  if  machine        
          functions  need  to  be  activated  on  changeover  between  swivel  heads  or      
          tables,  an  M  command  can  be  issued  in  the  PLC  program  on  switch    
          over  to  another  swivel  data  record.  
  
  Example:  
      Number  of  swivel  data  records  in  channel  1  =  2  
      MD  22530:  TOCARR_CHANGE_M_CODE  =  -­800  
      Programming  of  swivel  data  record  1  (TCARR=1)    M801  
      Programming  of  swivel  data  record  2  (TCARR=2)    M802  
      The  PLC  can  limit  or  invert  the  spindle  speed,  for  example,  by  outputting  
      M  commands.  
  
7.  MD  30455  
        This  allows  the  rotary  axis  to  traverse  for  G90  with  DC  (shortest  path);;          
        see  TOOLCARR.SPF  user  cycle.  
  
8.  MD  20180/MD  20182  
        For  rotary  axes  with  the  Hirth  tooth  system,  the  relevant  values  are                    
        entered  in  the  CYCLE800  startup  menu.  
  
9.  MD  24006/MD  24007  
        For  Swiveling  in  JOG:  
          MD24006  Bit  4=1  
          MD24007  Bit  4=0  
      The  workpiece  reference  (WPFRAME)  must  be  active  on  Reset,  in  order        
      to  be  able  to  scratch  or  measure  (cascaded  measuring)  with  the  active      
      ZO  after  swiveling  in  JOG.  
  
  
M102M102   Page  18   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.2  Startup  CYCLE800                Kinematic  chain    
Startup  of  kinematic  chain  
  
Fundamentals  
  
To  ensure  the  accuracy  of  your  5-­axes  machine,  the  kinematic  chain  must  
be  properly  setup.  Only  then  can  the  requirements  for  the  5-­axis  machining  
be  met.    
Therefore  geometricvectors  for  NC-­controlled  or  manually  steerable  rotary  
axes  have  to  be  determined  and  entered  into  the  controller    during  setup  of  
the  swivel  cycle  CYCLE800  and  5-­axis    transformation  "TRAORI".    
Measuring  of  the  relevant  kinematic  vectors  can  be  either  manually  or  
automatically  performed  with  the  measurement  cycle  "CYCLE996.    
A  calibration  sphere  and  a  calibrated  probe  is  needed  for  automatic  meas-­
uring  of  the  rotary  axis  vectors.    
In  practice,  the  cycle  simplifies  verification  and  increases  the  process  qual-­
ity.  Corrections  of  rotary  axis  vectors,  that  can  occur  for  example  due  to  
temperature  fluctuations  or  other  factors  can  be  automatically  verified.  
For  details  on  measurement  cycle  CYCLE996  refer  to  DoconCD.    
  
Example:  Nutaded  Table  45°  with  AC  Table  Kinematic  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
A-­Axis  Kinematic                      C-­Axis  Kinematic  
  
  
840Dsl  SINUMERIK    Operate   Page  19   M102M102  
  
Notes  
  
  
Section  2  2.3  Startup  CYCLE800                Kinematic  chain    
  
First,  a  swivel  data  record  for  each  swivel  head,  swivel  table,  or  any  combi-­
nation  swivel  head  /  table  with  all  relevant  data  has  to  be  created.  
In  general    a  swivel  cycle  record  for  the  5-­axis  transformation  TRAORI  is  set  
up  in  the  machine  data  ($MC_TRAFO_  ....)  and  the  swivel  data  record  for  
CYCLE800  is  set  up  in  the  toolcarrier  parameters  ($TC_CARR...).  
Swivel  data  records  can  be  declared  in  several  channels  (see  machine      
data).    It  is  possible  to  work  with  multiple  swivel  data  records  on  machines  
with  interchangabel  tollcarriers  (see  note  below).  
  
A  swivel  data  record  consists  of  40,  or  65  parameters  that  are  assigned  to  
toolcarrier  data  $TC_CARR1[n]  to  $TC_CARR40[n]  or  $TC_CARR65[n].  
The  parameter  values  are  taken  over  immediately  after  entry.                                            
A  detailed  explanation  of  all  toolcarrier  parameters  can  be  found  on  the          
following  pages.    
  
The  relevant  TCARR  Parameters  for  CYCLE800  must  now  be  entered  in  
accordance  to  the  geometric  values.  
To  facilitate  this,  there  is  a  special  program   (see  page  
28-­31),  that  can  be  used  to  read  out  toolcarrier  data  into  the  Local  User  
  
The  relevant  parameters  $  TC_CARR1  [n]  up  to  $  TC_CARR40  [n]  in  the  
generated  program  (e.g.  TISCH.MPF)  are  listed  numerically.  All  relevant  
parameters  such  as  for  example  Rotary  axis  vectors  and  their  values  can    
be  edited  in  this  program  or  in  the  LUD's.  
By  starting  the  program,  the  changed  parameters  are  written  to  the  NC  and  
activated.  
Note:  
  
It  is  possible  to  work  with  multiple  swivel  data  records  on  one  machine.  
A  practical  Example  for  a  configuration  of  a  machine  with  multiple  kine-­
matic  definitions,  would  be  a  machining  center  with  a  flexible  4th  or  5th  
Axis,  that  can  be  attached  on  the  Machine  Table  in  various  ways.    
    
Example:    Rotary  Table  rotates  about  X-­Axis  (Rot  Axis-­A)  or  
                                  Rotary  Table  rotates  about  Y-­Axis  (Rot  Axis-­B)  or  
                                  Rotary  Table  rotates  about  Z-­Axis  (Rot  Axis-­C)    
  
As  you  can  see  in  this  example  the  same  axis  can  either  be  an  A,B  or    
C-­Axis,  depending  on  the  application  requirements.  
  
  
M102M102   Page  20   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.4    Startup  CYCLE800                  Kinematic  chain    
  
Explanation  of  Toolcarrier  Parameters  (TC_CARR)  
  
Offset  vectors,  Rotary  axis  vectors  
  
  
The  Vectors  always  contain  three  components,  which  represent  the  
reference  to  the  X,  Y,  Z  machine  axes.  Depending  on  the  kinematic  typ,  
vektorchains  always  have  to  be  closed  with  a  3rd  Vector.  
Offsetvectors    I1  to  I4  refer  to  the  non-­swiveled  state  of  the  rotary  axes  
(basic  setting  of  machine  kinematics).  
  
  
Refer  to  startup  kinematics  example  on  page  26-­27.  
  
  
The  offset  vectors  do  not  have  to  point  to  the  pivot  point  of  the  rotary  axes.  
The  important  thing  is  that  they  point  to  a  point  on  the  direction  of  rotation  
(intersection).  
The  sign  of  the  offset  vectors  (I1  to  I4)  and  the  rotary  axis  vectors  (V1,  V2)  
result  from  the  specifications  of  the  axis  directions  according  to  ISO  or  DIN  
(right-­hand  rule).  In  the  case  of  kinematics  that  move  the  workpiece  (rotary  
table),  the  motion  of  the  workpiece  relative  to  the  tool  must  be  taken  into  
account.    
Swivel  Head  (Typ  T)   Swivel  Table  (Typ  P)   Swivel  Head  +Swivel  Table  
(Typ  M)  
Rotary  axis  vector  V1   Rotary  axis  vector    V1   Rotary  axis  vector    V1  
Offsetvector  I2   Offsetvector  I3   Offsetvector  I2  
Rotary  axis  vector  V2   Rotary  axis  vector    V2   Offsetvector  I3  
Offsetvector  I3   Offsetvector  I4   Rotary  axis  vector    V2  
     Offsetvector  I4  
  
  
840Dsl  SINUMERIK    Operate   Page  21   M102M102  
  
Notes  
  
  
Section  2  2.5    Startup  CYCLE800                  Kinematic  chain    
  
Interlation  of  Toolcarrier  data  and  Machinedata  
  
  
  
  
  
  
  
  
I3  distance  from  the  tool  adapter  to  the  pivot  point/intersection  of  the  
2nd  rotary  axis  
I2  distance  from  the  pivot  point/intersection  of  the  2nd  rotary  axis  to  the  
pivot  point/intersection  of  the  1st  rotary  axis  
I1  closure  of  the  I1=-­(I2+I3)  vector  chain,  if  the  swivel  head  cannot  be  
changed  
  
  
  
  
  
  
I2  distance  from  the  machine  reference  point  to  the  pivot  point/
intersection  of  the  1st  rotary  axis  
I3  distance  from  the  pivot  point/intersection  of  the  1st  rotary  axis  to  the  
pivot  point/intersection  of  the  2nd  rotary  axis  (or  to  the  reference  point  of  
the  tool  adapter)  
I4  closure  of  the  I4=-­(I2+I3)  vector  chain,  if  the  swivel  table  cannot  be  
changed    
  
  
  
CYCLE800  
T  
I1  $TC_CARR1...3[n]  
I2  $TC_CARR4...6[n]  
I3  $TC_CARR15...17[n]  
TRAORI  
$MC_TRAFO_TYPE_1=24  
$MC_TRAFO5_PART_OFFSET_1[0..2]  
$MC_TRAFO5_JOINT_OFFSET_1[0..2]  
$MC_TRAFO5_BASE_TOOL_1[0..2]  
Swivel  head  Typ  T    (swivel-­mounted  tool)  
CYCLE800  
P  
I2  $TC_CARR4...6[n]  
I3  $TC_CARR15...17[n]  
I4  $TC_CARR18...20[n]  
TRAORI  
$MC_TRAFO_TYPE_1=40  
$MC_TRAFO5_BASE_TOOL_1[0..2]  
$MC_TRAFO5_JOINT_OFFSET_1[0..2]  
$MC_TRAFO5_PART_OFFSET_1[0..2]  
Swivel  Tabel  Typ  P  (swivel-­mounted  workpiece)  
  
  
M102M102   Page  22   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.6    Startup  CYCLE800                  Kinematic  chain    
  
  
  
  
  
  
  
  
  
  
I2  distance  from  the  tool  adapter  to  the  pivot  point/intersection  of  the  1st  
rotary  axis  
I1  closure  of  the  I1=-­I2  vector  chain,  if  the  swivel  head  cannot  be  
changed  
I3  distance  from  the  machine  reference  point  to  the  pivot  point/
intersection  of  the  2nd  rotary  axis  (or  to  the  reference  point  of  the  tool  
adapter)  
I4  closure  of  the  I4=-­I3  vector  chain,  if  the  swivel  table  cannot  be  
changed  
  
CYCLE800  
M  
I1  $TC_CARR1...3[n]  
I2  $TC_CARR4...6[n]  
I3  $TC_CARR15...17[n]  
I4  $TC_CARR18...20[n]  
TRAORI  
$MC_TRAFO_TYPE_1=56  
$MC_TRAFO5_JOINT_OFFSET_1[0..2]  
$MC_TRAFO5_BASE_TOOL_1[0..2]  
$MC_TRAFO5_JOINT_OFFSET_PART_1[0..2]  
$MC_TRAFO5_PART_OFFSET_1[0..2]  
Swivel  head  +  swivel  tabel  TypM    (mixed  kinematics)  
CYCLE800  
Rotary  axis  vector  V1  
I2  $TC_CARR7...9[n]  
Rotary  axis  vector    V2  
I4  $TC_CARR10...12[n]  
TRAORI  
Rotary  axis  vector  V1  
$MC_TRAFO5_AXIS1_1[0..2]  
Rotary  axis  vector    V2  
$MC_TRAFO5_AXIS2_1[0..2]  
Rotary  axis  vectors  V1,  V2  
  
  
840Dsl  SINUMERIK    Operate   Page  23   M102M102  
  
Notes  
  
  
Section  2  2.7    Startup  CYCLE800                  Kinematic  chain    
  
Kinematics  
$TC_CARR23[n]  
Selection:  
Swivel  head  (type  T)  
Swivel  table  (type  P)  
Swivel  head  +  swivel  table  (type  M)  
Table  +  Table  
(  Swivel  Rotary  -­  Table)  
Head  +  Head  
(Rotary  Fork  Head)  
Head  +  Table  
(Rotary  Head  &  Rotary  Table)  
        Swiveling  tool  carrier    
                            (Type  P)  
              Swiveling  tool  carrier        
                                    (Type  T)  
  Mixed  kinematics  
(Type  M)  
      
Head  +  Table  
  (Nutated  Swivel  Head  )  
Table  +  Table  
(Nutated  Swivel  Rotary  -­Table)  
Head  +  Head                                    
(Nutated  Swivel  Rotary  Head)  
Mixed  kinematics  
(Type  M)  
                Swiveling  tool  carrier  
                                      (Type  P)  
              Swiveling  tool  carrier  
                                  (Type  T)  
      
  
  
M102M102   Page  24   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.8    Startup  CYCLE800                  Kinematic  chain    
  
Offset  kinematics  
$TC_CARR24[n];;  $TC_CARR25[n]  
In  the  "Offset  Kinematics"  input  field,  it  is  possible  to  enter  the  offset  of  ro-­
tary  axis  1  or  rotary  axis  2    if  the  position  of  the  rotary  axes  is  not  equal  to  
0  in  the  basic  setting.  
  
Hirth  tooth  system  
$TC_CARR26[n]...  $TC_CARR29[n]  
Selection:  
  0:  No  (Subsequent  fields  are  concealed)  
  1:  Yes  
  
Angular  offset  of  Hirth  tooth  system  at  start  of  gearing  
Angular  grid  of  Hirth  tooth  system  
Automatic  correction  Yes/No  (omitted  starting  in  Cycle  SW  version  
6.3)  
  
Angle  range  
$TC_CARR30[n]  ..  $TC_CARR33[n]  
A  valid  angle  range  (e.g.,  -­90  to  +90  degrees)  must  be  assigned  to  each  
rotary  axis.  This  does  not  have  to  be  the  software  end  position  range  of  the  
rotary  axis  in  question.  With  modulo  axes,  you  must  enter  a  traversing  
range  of  between  0  and  360  degrees.  
  
  
Name:    
$TC_CARR34[n]  
n  =  Swivel  data  record  number  
  
If  several  swivel  data  records  are  declared  in  each  NC  channel,  then  a  
name  is  assigned  to  each  swivel  data  record.  No  name  needs  to  be  speci-­
fied  if  the  swivel-­mounted  toolholder  is  not  exchangeable  (i.e.  one  swivel  
data  record  per  channel).  
  
The  program  is  advanced  to  the  next  swivel  data  record  and  the  next  chan-­
nel  via  soft  keys  (channel  +/-­  swivel  data  record  +/-­).  
  
Note:  
Swivel  data  record  names  may  only  contain  permitted  NC  programming  
characters  (A...Z,  0..9  and  _)!  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  25   M102M102  
  
Notes  
  
  
Section  2  2.9    Startup  CYCLE800                  Kinematic  chain    
  
Rot.  axis  1  /  Rot.  axis  2      Identifier  
$TC_CARR35[n];;  $TC_CARR36[n]  
The  following  identifiers  should  be  chosen,  where  possible  
  
Selection:  
  Axis  rotates  around  machine  axis  X  -­  A  
  Axis  rotates  around  machine  axis  Y  -­  B  
  Axis  rotates  around  machine  axis    Z  -­  C  
  
  
M102M102   Page  26   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.10    Startup  CYCLE800                      Kinematic  chain    
  
Display  variants  of  input  mask  in  CYCLE800  
$TC_CARR37[n]  
n=Number  of  swivel  data  record    
The  following  display  variants  affect  the  input  mask  for  CYCLE800.  If  the  
following  display  varients  are  not  set,  the  value  will  not  be  displayed  in  the  
input  mask.  
  
  
  8    7    6    5    4    3    2   1   0          (Decimal  places)  
Selection  of  prefered  direction  of  rotary  axes  
  
0:  No  
1:  Reference  to  rotary  axis  1  
2:  Reference  to  rotary  axis    2  
3:  Reference  to  rotary  axis    1  optimized  
4:  Reference  to  rotary  axis    2  optimized  
Retraction  mode  
  
0:  Z  axis  
1:  Z  axis  or  ZXY  axis  
Rotary  axis  1  
  
0:  Automatic  
1:  Manual  
2:  Semi-­automatic  
Rotary  axis  2  
  
0:  Automatic  
1:  Manual  
2:  Semi-­automatic  
Track  tool  tip  +  B-­axis  kinematics  
  
0:  Do  not  track  
1:  Track  tool  tip  
2:  Do  not  track  ool  tip  +            
        B-­axis  kinematics  for  turning  technology    
3:  Track  tool  tip  +            
        B-­axis  kinematics  for  turning  technology    
Swivel  mode    
0:  Axis  by  axis  
1:  Axis  by  axis+  projektio  n  angle  
2:  Axis  by  axis  +  projektio  n  angle  +  solid    angle  
3:  Axis  by  axis  +  rotary  axes  direct  
4:  Axis  by  axis  +  projektio  n  angle  +    Rundachsen  direkt  
5:  Axis  by  axis  +  projektio  n  angle  +  projektio  n  angle  +            
        rotary  axes  direct  
Retraction  in  tool  direction    3)  
  
Left                                                                          Right  
Z                                                                                    Max.  tool  direction  
Z,X,Y                                                                      incremental  tool  direction  
Z  +  Z,X,Y                                                        Max.  +  incremental  tool  direction  
Swivel  data  record  change  /  tool  change      1)  
  
0:  No                                                                            2)  
1:  Manual                                                            Automatic  
2:  Automatic                                                  Automatic  
3:  No                                                                            2)  
4:  Manual                                                            Manual  
5:  Automatic                                                    Manual  
Reserved  
  
  
840Dsl  SINUMERIK    Operate   Page  27   M102M102  
  
Notes  
  
  
Section  2  2.11    Startup  CYCLE800                      Kinematic  chain    
  
1)   Only  relevant  for  ShopMill/ShopTurn.  
2)   If  no  swivel  data  record  is  declared,  the  setting  automatic/manual  tool  
change  setting  is  not  relevant.  
3)   Coding  of  retraction  mode  see  on  page  23  
  
  
Swivel  mode  
Selection:  
  0:  Axis  by  axis  
  1:  Axis  by  axis+  projection  angle  
  2:  Axis  by  axis  +  projection  angle  +  solid    angle  
  3:  Axis  by  axis  +  rotary  axes  direct  
  4:  Axis  by  axis  +  projection  angle  +    Rundachsen  direkt  
  5:  Axis  by  axis  +  projection  angle  +  projection  angle  +            
                    rotary  axes  direct  
  
  
Note:  
  
Selection   allows  rotary  axis  positions  to  be  entered  
directly.  After  rotary  axes  have  been  positioned  (or  manual  rotary  axes  
have  been  rotated),  a  swivel  frame  is  calculated  for  these  positions.                    
In   swivel  mode,  input  fields  with  the  names  of  the  
rotary  axes  of  the  active  swivel  data  record  are  displayed  instead  of  
  
Teach-­in
the  actual  values  of  the  automatic  rotary  axes.  
  
Example:  (Selection  3)  
    
  are  included                                        
in  the  screen  input  menu.    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
M102M102   Page  28   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.12    Startup  CYCLE800                      Kinematic  chain    
  
Rotary  axis  1  and  2  
Selection:  
0:  Automatic  
      NC-­Rotary  axes  are  automatically  traversed  to  the  appropriate  swivel      
      angle.  
1:  Manual  
      Rotary  axes  are  moved  manually  by  the  operator  to  the  appropriate      
        
      axes  (measuring  system:  steel  gage).    
      Messages  62180/62181  display  the  swivel  angle  to  be  set.  
2:  Semi-­automatic  
       -­  
      values  to  be  set)    are  not  displayed    
  
Note:  
Selection  1  refers  to  manual  rotary  axes,  that  are  positioned  at  a  calculated  
angle  by  an  appropriate  mechanism.  For  this  purpose,  the  machine  
manufacturer  can  modify  the  CUST_800  user  cycles  (see  page  36)  to  pass  
the  swivel  angle  (local  variable  _A1,  _A2)  to  a  subroutine  (markers  _M21..  
For  manual  rotary  axes).  
Both  mixed  machine  kinematics  (e.g.,  1st  rotary  axis  automatic,  2nd  rotary  
are  permitted.  
If  machine  kinematics  are  to  be  implemented  with  just  one  rotary  axis,  this  
must  always  be  declared  as  the  first  rotary  axis.  
        
Selection  of  preferred  direction  of  rotary  axes  
Selection:  
  0:  No  
  1:  Reference  to  rotary  axis  1  
  2:  Reference  to  rotary  axis    2  
  3:  Reference  to  rotary  axis    1  optimized  
  4:  Reference  to  rotary  axis    2  optimized    
  
Note:  
If  selection  1  or  2  (Reference  to  rotary  axis  1  or  2)  is  made,  the  reference  for  
travel  direction  refers  to  the  1.  or  2.  rotary  axis  in  the  input  screen  of  the  
swivel  cycle.  
On  selection  3  or  4  (Reference  to  rotary  axis  1  or  2)  two  different  direction  
settings  "Plus"  and  "Minus"  are  provided  in  the  input  screen  form  for          
CYCLE800  in  the  basic  machine  kinematics  setting  and  the  rotary  axis  is  
positioned  accordingly.    
  
Function  
The  NCU  calculates  two  possible  solutions  using  the  angle  range  of  the  
rotary  axes  of  the  machine  kinematics.  Usually,  one  of  these  solutions  is  
technologically  suitable.  
The  rotary  axis  to  which  the  two  solutions  are  to  refer  is  selected  in  the  
startup  menu  (see  note  for  _DIR  under  "Parameters  of  Input  Screen  Form).  
The  solution  to  be  applied  is  selected  in  the  input  screen  form  for  the  
swivel  cycle.  
If  "no"  is  set,  the  Direction  parameter  is  not  displayed  in  the  input  screen  
form  and  parameter  _DIR  is  always  set  to  the  default  -­1  (minus).  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  29   M102M102  
  
Notes  
  
  
Section  2  2.13    Startup  CYCLE800                      Kinematic  chain    
  
Example:  
  
Effect  of  Parameter  "Preferred  rotary  axis  direction"  with  mixed  machine  
Typ  M  
  
  
  
  
  
  
  
  
  
Program  1:    
Swivel  CYCLE800  (...  Rotation  about  X  =  20°,  ...  minus  direction)  
A-­axis  rotates  to  -­  20°  and  C-­axis  to  180°    
Program  2:  
Swivel  CYCLE800  (...  Rotation  about    X  =  20°  degrees,  ...  plus  direction)  
A-­axis  rotates  to  20°  and  C-­axis    to  0°  
Program  3:    
Swivel  CYCLE800  (...  Rotation  about    X  =  45°  degrees,  ...  minus  direction)  
A-­axis  rotates  to  45°  and  C-­axis    to  0°    
Program  4:    
Swivel  CYCLE800  (...  Rotation  about    X  =  45°,  ...  plus  direction)  
A-­axis  rotates  to  45°  and  C-­axis  to  0°  
  
Note:  
because  two  solutions  are  not  produced  for  the  kinematics  starting  at  30°  
around  X  or  Y  due  to  the  limited  angle  range  of  the  A  axis  (-­30°  to  +90°)  
and  therefore  the  first  solution  is  always  applied.  
  
  
1st  rotary  axis  
Swivel  head  A  rotates  around  machine  axis  X  
Angle  range  of  1st  rotary  axis   30°  to  +90°  
2nd  rotary  axis  
Rotary  axis  C  rotates  around  machine  axis  Z  
Angle  range  of  2nd  rotary  axis  0°  to  +360°    
(modulo  axis)  
  
  
  
M102M102   Page  30   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.14    Startup  CYCLE800                      Kinematic  chain    
  
Tracking  TL  and  B-­axis  kinematics  
Selection:  
  0:  No  
  1:  Yes  
  2:  No  correction  of  tool  tip  +  B-­axis  kinematics  for  turning  technology    
  3:  Correction  of  tool  tip  +  B-­axis  kinematics  for  turning  technology    
  
Function:  
The  Track  Tool  function  requires  the  5-­axis  transformation  option  TRAORI.  
If   is  selected    there  is  a  dynamic  tracking  of  the  Tool-­tip  active,  with  
the  movement  of  the  rotary  axes  the  current  position  is  maintained  by  the  
tip  of  the  Tool  relative  to  the  work-­piece    (TCPM*).  
  
  
Selection  2  and  3  activates  in  addition  B-­axis  kinematics,  which  enables  
the  "Align  tool"  function  in  CYCLE800.    
The  purpose  of  the  "Align  tool"  function  is  to  support  turning  machines  
with  a  swivel-­mounted  B  axis.  This  functionality  is  designed  for  use  with  a  
specific  configuration  of  turning  or  milling  machines  on  which  the  tool  ori-­
entation  is  implemented  by  a  swivel  axis  B  (around  Y)  with  
associated  milling  spindle  (C1).  It  is  designed  to  be  compatible  with  both  
turning  and  milling  tools.  
In  contrast  to  "Swivel  plane",  no  rotation  is  operative  in  the  active  frame  
chain  (WCS)  in  the  case  of  "Swivel  tool"  or  "Align  tool".  Only  the  offsets  
calculated  by  the  NC  and  the  corresponding  tool  orientation  are  operative.  
The  maximum  angular  range  for  "Align  tool"  is  +  360  degrees  or  it  is  limited  
by  the  traversing  range  of  the  participating  rotary  axes.  Technological  limits  
are  also  placed  on  the  angular  range  depending  on  the  tool  used.  
In  the  case  of  "Align  tool"  in  the  turning  area,  activation  of  NC  function  
CUTMOD  ensures  that  the  correct  tools  for  tool  point  direction  or  tool  
clearance  angle  of  a  turning  tool  are  made  available.  
  
More  about  this  subject  in  Chapter  3.3  -­  3.4  
  
  
*  TCPM:  Tool  center  point  management  
  
  
840Dsl  SINUMERIK    Operate   Page  31   M102M102  
  
Notes  
  
  
Section  2  2.15    Startup  CYCLE800                      Kinematic  chain    
Retraction  mode    
Selection:  
  0:  Z                                      (Retract  prior  to  swiveling  in  Z  only)  
  2:  Z,X,Y                        (Retract  machining  axes  prior  to  swiveling)    
  3:  No                                  (Do  no  retract  prior  to  swiveling)    
  4:  Max.  tool  direction        (max.  retraction  to  software  end  position)  
  8:  Tool  inc.              (Incremental  retraction  in  tool  direction,  e.g.  100.00)  
  15:  all  options  turned  on          
  
Tabel  for  coding  of  retraction  modes  
  
Note:  
Maximum  and  incremental  retraction  in  tool  direction  always  occurs  in  the  
positive  tool  direction  (away  from  work-­piece).  
Retraction  in  tool  direction  is  always  executed  prior  to  swiveling  the  rotary  
axes  with  the  current  tool  orientation  (rotation).  
If  the  swivel  plane  is  undefined  at  the  start  of  a  program,  the  axis  should  
first  be  traversed  to  a  safe  position  or  be  safely  pre-­positioned  using  retrac-­
tion  Z.  Maximum  and  incremental  retraction  in  tool  direction  is  particularly  
suitable  for  machines  with  swivel  heads.  In  the  case  of  a  machine  with  a  
swivel  head  and  an  active  swivel  frame.  
  
Example:  
In  the  case  of  a  machine  with  a  swivel  head,  
the  head  (in  the  WCS)  in  the  G17  plane  is  
swiveled  -­90  degrees  around  the  Y  axis.  
When  traversing  the  Z  axis  in  the  program,  
therefore,  the  X  axis  traverses.  With  retrac-­
tion  mode  "max.  tool  direction",  the  X  ma-­
chine  axis  traversesto  the  positive  software  
end  position.  
  
  
Z   Z,X,Y   Maximum  tool  
direction  
Incremental  
tool  direction  
Coding  of  
$TC_CARR37  
xXXxxxxxx  
1   0   0   0   00  
1   1   0   0   01  
0   1   0   0   02  
0   0   0   0   03  
0   0   1   0   04  
1   0   1   0   05  
0   1   1   0   06  
1   1   1   0   07  
0   0   0   1   08  
1   0   0   1   09  
0   1   0   1   10  
1   1   0   1   11  
0   0   1   1   12  
1   0   1   1   13  
0   1   1   1   14  
1   1   1   1   15  
WCS  
Z  
MCS   Z  
Y  
X  
Y  
X  
  
  
M102M102   Page  32   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.16    Startup  CYCLE800                      Kinematic  chain    
  
Swivel  data  record  change    
(relevant  only  to  ShopMill  /  ShopTurn)  
  0:  No  
  1:  Automatic  
  2:  Manual    
  
Tool  change    
(relevant  only  to  ShopMill  /  ShopTurn)  
"Tool  change"  display  for  kinematic  type  T  and  M  only  
  3:  No  
  4:  Manual  
  5:  Automatic  
  
Note:  
In  general,  the  swivel  CYCLE800  and  tool  change  functions  for  a  machine  
are  independent  of  each  other.  Thus,  the  swivel  work  plane  can  be  re-­
tained  in  a  technological  sequence  with  multiple  tools  (e.g.  centering,  drill-­
ing,  taping).  
If  the  rotary  axes  of  the  active  swivel  data  record  are  involved  in  the  me-­
chanical  sequence  of  the  tool  change  or  these  rotary  axes  have  to  be  re-­
tracted,  the  tool  change  sequence  program  must  ensure  that  the  rotary  
axes  positions  are  approached  again  after  the  tool  change.  If  linear  axes  
are  also  involved  in  the  tool  change,  the  rotations  in  the  NC  (swivel  frame)  
must  not  be  deleted.  Rather  the  linear  axes  can  be  positioned  as  machine  
axes  during  the  tool  change  using  the  G153  or  SUPA  commands.  
  
Retraction/Retraction  position    
$TC_CARR38[n]  X;;  $TC_CARR39[n]  Y;;  $TC_CARR40[n]  Z  
n=swivel  data  record  number  
  
menu  for  swivel  cycle  (see  retraction  modes  page  23).  
  
The  mode  of  retraction  can  be  modified  in  the  CUST_800  user  cycle  (see  
page  26-­35),  if  necessary.  If  CUST_800.MPF  user  cycle  is  not  modified,  
the  retraction  position  is  approached  as  an  absolute  machine  position  
specified  in  $TC_CARR38[n]  X;;  $TC_CARR39[n]  Y;;  $TC_CARR40[n]  Z.  
  
  
Note:  
Retract  the  tool  axis  in  such  a  way  that  the  tool  and  workpiece  do  not          
collide  when  swiveled.  
  
  
  
  
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  33   M102M102  
  
Notes  
  
  
Section  2  2.17    Startup  CYCLE800                      Kinematic  chain    
  
Kinematics  fine  offset  
$TC_CARR41..65[n]  
  
In  TC_CARR41...65  "Kinematics  fine  offset"  the  vectors  of  machine  
kinematics  I1  to  I4  or  the  offset  values  of  the  rotary  axes  can  be  entered  .    
  
The  fine  offsets  are  activated  by  the  following  setting  data:  SD  42974:  
$SC_TOCARR_FINE_CORRECTION  =  1.  
  
The  fine  offsets  act  in  addition  to  the  corresponding  base  vectors  when  the  
function  "swiveling"  CYCLE800  or  the  NC  function  TCARR=n  is  called.  
  
Assignment  of  base  vectors  to  the  fine  offset  vectors:  
  
  
  
  
  
  
Offset  vectors  of  rotary  axes  
  
n...number  of  swivel  data  record  
  
Application:  
The  fine  offsets  can  be  applied  for  temperature  compensation  of  machine  
kinematics.  For  this  purpose,  the  fine  offsets  can  be  written,  activated,  and  
deactivated  in  a  corresponding  manufacturer  cycle.  
  
  
M102M102   Page  34   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.18    Startup  CYCLE800                      Startup  example  machine  kinematics    
  
Startup  example  for  setting    machine  kinematics  
  
Example:  Swivel  table  "TABLE"  
Vectors  relate  to  the  basic  setting  of  the  kinematics.  
  
Rotary  axis  vector  V1:    
Rotary  axis  A  rotates  about  X.  
  
Rotary  axis  vector  V2:    
Rotary  axis  C  rotates  about  Z.  
  
Offset  vector  I2:    
Distance  from  the  reference  point  of  
the  machine  to  the  pivot  
point/intersection  of  rotary  axis  1  
  
Offset  vector  I3:    
Distance  from  the  pivot  point  of  
rotary  axis  1  to  the  pivot  
point/intersection  of  rotary  axis  2  
  
Offset  vector  I4:    
Closure  of  vector  chain  I4=-­(I2+I3)  
  
  
                                            Side  view  of  the  machine  from  the  X  direction  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Spindle  (tool  adapter)  is  positioned  on  a  gage  block  located  on  the  top    
surface  of  the  table  (rotary  axis  C)  or  the  center  of  the  table.  
A  measuring  bar  in  the  spindle  is  used  to  determine  the  precise  center          
of  rotation  for  the  rotary  axis  C  in  X  and  Y  direction.  
  
  
  
840Dsl  SINUMERIK    Operate   Page  35   M102M102  
  
Notes  
  
  
Section  2  2.19    Startup  CYCLE800                      Startup  example  machine  kinematics    
                                        
  
                                      Side  view  of  the  machine  from  the  Y  direction  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Kinematik   Swivel  table     Name:  Table  
   X   Y   Z  
Offsetvector  I2        100.003          99.789          0.000  
Rotary  axis  vector  V1            -­1.000              0.000          0.000  
Offsetvector  I3                0.000              0.000      97.822  
Rotary  axis  vector  V2                0.000              0.000        -­1.000  
Offsetvector  I4      -­100.003        -­99.789    -­97.822  
        
Display  options        
Swivel  Mode   Axis  by  axis   direct    
Direction     Rotary  axis  1  
optimized  
    
Tracking  TL     yes      
        
Rotary  axes   Identifier      
Rotary  axis  1     A   Mode   Auto  
Angular  range     -­10.500       130.000  
Rotary  axis  2     C   Mode   Auto  
Angular  range     0.000     360.000  
  
  
M102M102   Page  36   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.20    Startup  CYCLE800                    Important  machine  data    
Setting  of  relevant  machine  data  for  5-­Axis  transformation  
  
Prior  to  the  setup  of  CYCLE800  we  recommend  to  setup  the  5-­Axis      
CYCLE800.  
  
  
Press  following  soft-­keys  to  enter  machine  data  for  setup  of  5-­Axis          
transformation.                        
  
  
  
  
  
  
  
MC  24100:  With  Trafotyp  72  the  same  Toolcarrier  parameters
($TC_CARR...)  as  for  CYCLE800  are  being  used.  
  
MC  24110[0]  -­  [19]:  Assignment  of  channel  axes  for  the  1.transformation  
The  input  states  which  axis  is  mapped  internally  from  the  transformation  to  
the  axis  [n].    
  
MC  24120[0]  -­  [2]:    Assignment  of  geometry  axes  to  channel  axes  for  the  
1.Transformation    
This  MD  states  the  channel  axes  on  which  the  axes  of  the  Cartesian  coor-­
dinate  system  are  mapped  for  the  active  transformation  1.  
                
MC  24130:  This  machine  data  states  for  each  channel  weather  the  tool  is  
included  in  the  first  transformation  or  not.  It  is  evaluated  on  the  condition  
that  the  orientation  of  the  tool  with  reference  to  the  basic  coordinate  sys-­
tem  can  not  be  changed  by  the  transformation.  
If  this  MD  is  set,  the  basic  coordinate  system  refers  to  the  tool  reference  
point  even  with  active  transformation.  Otherwise  it  refers  to  the  tool  tip  (tool  
center  point  TCP).  
  
  
840Dsl  SINUMERIK    Operate   Page  37   M102M102  
  
Notes  
  
  
Section  2  2.21    Startup  CYCLE800Important  machine  data    
    
Cont.  
  
Softkey.  
  
  
Additional  important  MD  for  5-­Axis  transformation  
                      
Axis  specific  MD  30320:    
$MA_DISPLAY_MODULO  
  
In  case  of  a  positive  direction  of  rotation,  the  control  resets  the  position  dis-­
play  internally  to  0.0000  degrees  after  one  full  revolution  of  the  specified  
axis.  The  display  range  is  always  positive  and  lies  between  0  and  359.999  
degrees.    
2:  Absolute  position  display  is  active  
Rotary  axes  positions  are  displayed  as  absolute  positions  (endless  mode).  
E.g.  position  display  +720  degrees  after  two  revolutions  of  the  specified  
axis.  
  
Axis  specific  MD  30330:    
$MA_MODULO_RANGE  
Defines  the  size  of  Modulo  range  (max.  range  of  specified  rot.  Axis).  
  
Axis  specific  MD  30320:  
$MA_MODULO_RANGE_START  
Defines  the  start  position  of  the  modulo  range  
Start  at  0  degrees  =  modulo  range  360  =  360  degree  
Start  at  180  degrees  =  modulo  range  180  =  540  degree  
Start  at   180  degrees  =  modulo  range   180  =  180  degree  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
M102M102   Page  38   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.22    Startup  CYCLE800                      User  cycle  TCARR_EDIT.MPF  
Activate  Toolcarrier  TC  in  JOG  
  
If  a  machine  has  multiple  kinematic  data  records  or  if  there  is  no  tool  car-­
rier  active  (see  example  below),  it  is  important  to  activate  the  appropriate  
Toolcarrier  TC  first.                                                                                                                                                                        
This  is  usually  done  with  the  Swivel  function  in  JOG  mode.  
  
TC SELECT  
CYCLE  START  
  
Name  of  active  swivel  
data  record  
  
  
840Dsl  SINUMERIK    Operate   Page  39   M102M102  
  
Notes  
  
  
Section  2  2.23    Startup  CYCLE800                    User  cycle  TCARR_EDIT.MPF  
Display  and  modify  TCARR  parameters  
  
After  you  have  read  in  the  archive,  you  can  find  in  the  main  program  
                  directory  (MPF.DIR)  the  program  TCARR_EDIT.MPF  
Load  this  program  in  automatic  mode  and  start  it  with  the  "Cycle    
                  Start"  button.  
  
On  the  first  program  stop  with  M0:  Parameters  TC_CARR1  to  40  of  
the  active  toolcarrier  are  being  displayed  in  the  area  "Parameter>>  
User  variable>>  Local  LUD".  If  no  toolcarrier  should  be  active,  the  
parameters  of  the  toolcarrier  1  (TCARR  =  1)  appears.  
  
  
M102M102   Page  40   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.24    Startup  CYCLE800                      User  cycle  TCARR_EDIT.MPF  
  
The  relevant  parameters  can  now  be  adjusted  or  changed.    
  
Input  now  the  offset  vectors  I1-­I4  and  rotary  axis  vectors  V1  and  V2      
from  our  startup  kinematic  chain  example  and  Continue  the  program  
with  the  "CYCLE-­START"  button.  
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  41   M102M102  
  
Notes  
  
  
Section  2  2.25    Startup  CYCLE800                      User  cycle  TCARR_EDIT.MPF  
  
Second  program  stop  with  M0:  Upon  continuation  of  the  program  
with  the   -­ button  all  changes  that  were  made  are  
written  to  the  NC  and  all  toolcarrier  data  is  being  activated.    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Third  program  stop  with  M0:  Upon  continuation  of  the  program  with  
the   -­ button  a  new  program  (e.g.  TABLE.MPF)  with  
all  parameters  ($  TC_CARR1  to  40)  of  the  tool  carrier  is  being            
created.  
  
  
M102M102   Page  42   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.26    Startup  CYCLE800                      User  cycle  TCARR_EDIT.MPF  
  
To  check  if  all  changes  were  made  correctly,  the  
  program  can  be    restarted.  
  
  
  
Note:  
  
If  a  new  swivel  data  record  is  created  for  a  yet  not  existing  kinematic          
machine  configuration,  then  we  recommend  to  copy  and  rename  one            
of  the  existing  TCARR  Programs  e.g.  TABEL.MPF  and  modify  the  
TC_TCARR  parameters  to  match  the  desired  kinematics  configuration.  
The  created  TCARR  program  can  then  be  loaded  in  automatic  mode  and  
-­
written  into  the  NC  and  immediately  active.    
If  rotary  axis  identifiers  in  TC_CARR  should  not  match  the  axis  configura-­
tion  of  the  actual  position  display  of  the  control,  then  all  relevant  machine-­
data  of  geometry  and  channel  axes  need  to  be  modified  as  well.  
  
  
840Dsl  SINUMERIK    Operate   Page  43   M102M102  
  
Notes  
  
  
Section  2  2.27    Startup  CYCLE800                      User  cycle  TCARR_EDIT.MPF  
  
Generated  program  with  all  TC_CARR  parameters  after  run  of  
  
  
;;  Date:  9.3.2010    Time:  8:57:17  
TCARR=0  
$TC_CARR1[1]=0                                        ;;Offset  vector  I1  
$TC_CARR2[1]=0                                        ;;Offset  vector  I1  
$TC_CARR3[1]=0                                        ;;Offset  vector  I1  
$TC_CARR4[1]=100.0035              ;;Offset  vector  I2  
$TC_CARR5[1]=99.7891                  ;;Offset  vector  I2  
$TC_CARR6[1]=97.82286              ;;Offset  vector  I2  
$TC_CARR7[1]=-­1                                      ;;Rotary  axis  vector  V1  (1.Achse)  
$TC_CARR8[1]=0                                        ;;Rotary  axis  vector  V1  (2.Achse)  
$TC_CARR9[1]=0                                        ;;Rotary  axis  vector  V1  (3.Achse)  
$TC_CARR10[1]=0                                    ;;Rotary  axis  vector  V2  (1.Achse)  
$TC_CARR11[1]=0                                    ;;Rotary  axis  vector  V2  (2.Achse)  
$TC_CARR12[1]=-­1                                  ;;Rotary  axis  vector  V2  (3.Achse)                        
$TC_CARR13[1]=0  
$TC_CARR14[1]=0  
$TC_CARR15[1]=0                                    ;;Offset  vector    I3  
$TC_CARR16[1]=0                                    ;;Offset  vector    I3  
$TC_CARR17[1]=0                                    ;;Offset  vector    I3  
$TC_CARR18[1]=-­100.0035        ;;Offset  vector    I4  
$TC_CARR19[1]=-­99.7891            ;;Offset  vector    I4  
$TC_CARR20[1]=-­97.82286        ;;Offset  vector    I4  
$TC_CARR23[1]="P"                              ;;Kinematic  type  (TABLE)  
$TC_CARR24[1]=0  
$TC_CARR25[1]=0  
$TC_CARR26[1]=0  
$TC_CARR27[1]=0  
$TC_CARR28[1]=0  
$TC_CARR29[1]=0  
$TC_CARR30[1]=-­10.5                        ;;  1.Rotary  axis  min.  range  
$TC_CARR31[1]=0                                    ;;  2.Rotary  axis  min.  range  
$TC_CARR32[1]=130                            ;;  1.Rotary  axis  max.  range  
$TC_CARR33[1]=360                            ;;  2.Rotary  axis  max.  range  
$TC_CARR34[1]="TABLE"            ;;Name  of  swivel  data  record  
$TC_CARR35[1]="A1"                          ;;Rotary  axis  1  identifier  
$TC_CARR36[1]="C1"                          ;;Rotary  axis  2  identifier  
$TC_CARR37[1]=415013003                                                ;;Display  variants  swivel  mode  
$TC_CARR38[1]=100                                                                        ;;Retract  position  X  
$TC_CARR39[1]=200                                                                        ;;Retract  position  Y  
$TC_CARR40[1]=410                                                                        ;;Retract  position  Z  
TCARR=1  
M30  
  
  
M102M102   Page  44   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.28    Startup  CYCLE800                      Structure  of  swivel  cycles  
  
Standard  Cycle  CUST_800.SPFThis  cycle  is  designed  for  the  machine  tool  manufacturer  or  end  user  to  
customize  CYCLE800,  based  on  the  requirements  of  the  machine  tool.    
Events  before  and  after  swiveling  as  well  as  cycle  options  can  be  activated  
\  deactivate  upon  requirement.  
  
Customization  by  the  machine  manufacturer  
  
During  swiveling,  all  axis  positions  are  traversed  using  the  CUST_800.SPF  
program  which  is  always  called  from  CYCLE800  swivel  cycle  or  E_TCARR  
(ShopMill)  or  F_TCARR  (ShopTurn).    
  
For  example:  If  the  cycle  is  not  modified,  the  Z  axis  (see  marker  _M41)  or  
the  Z  axis  followed  by  the  X,Y  axes  (see  marker  _M42)  retracts  prior  to  
swiveling.  Retraction  can  also  take  place  in  tool  direction  with  swiveled  tool  
axes  (see  marker  _M44,  _M45).  If  the  sequence  of  axes  retraction  need  to  
be  changed,  modify  marker  _M42.  (example  horizontal  machining  center  
toolaxis  Y).  
The  positions  correspond  to  the  retraction  position  in  $TC_CARR38[n]  X;;  
$TC_CARR39[n]  Y;;  $TC_CARR40[n]  Z.  
  
    
    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
If  modifications  are  to  be  made,  copy  CUST_800.SPF  from  the  standard  
cycle  directory  into  the  manufacturer  cycle  or  user  cycle    directory.  On  start  
of  CYCLE800.SPF,  the  program  looks  first  in  the  user  cycles  directory  for  
the  subprogram,  if  not  there,  then  in  manufacturer  cycles  and  last  in  the  
standard  cycles  directory.      
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  45   M102M102  
  
Notes  
  
  
Section  2  2.29    Startup  CYCLE800                      Structure  of  swivel  cycles  
  
                                                Basic  structure  of  swivel  cycles  
  
Input  screen  form  ShopMill/ShopTurn      Input  screen  form  CYCLE800  G-­Code  
      USER_800.SPF  
Marker:  _M01  to  _M11  
  
  
  
  
Marker:  _M20  to  _M59  CYCLE800.SPF  
End  of  cycle  
    E_TCARR.SPF  
  (F_TCARR.SPF)  
Note:    
  
The  parameters  are  only  valid  in  conjunction  with  the  relevant  jump  label  
in  CUST_800.SPF  (see  program  structure  on  following  page).  
  
If  Inch  is  the  basic  system  of  the  machine,  the    CUST_800.SPF  program  
must  be  modified  accordingly.  
  
  
  
  
M102M102   Page  46   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.30    Startup  CYCLE800                      Structure  of  swivel  cycles  
CYCLE800.SPF  structure                                                      CUST_800.SPF  structure  
Swivel  data  record  invalid  
Input  parameters:  
-­  workplane  
-­    
-­  retract  
-­  swivel  plane  
-­  offsets  
-­  swivel  mode  
-­  sequence  
-­  rotations  
-­  coordinate  shift  
-­  direction  
-­  track  tool  
Calculation      
of  valid  swivel  
data  record  
Error  messages  
Retraction  tool  
axis  
-­  Calculation  of  rotary      
    axis  angels  
-­  Display  of  angle      
    values  to  be  set    
  (manual  rotary  axes)  
-­  Deactivate  5-­axis      
    transformation  
Rewriting  of  vectors  in  kinematic  chain    
  
Marker:  
  _M40  Init  
Rewriting  of  vectors  in  kinematic  chain  is  possi-­
ble,  e.g.  temperature  compensation  vectors  of    
W-­axis  in  case  of  boring  machines.  
Adjustment  of  retraction  strategy  
  
Marker:  
_M41  Z  axis  
_M42  Z,  XY  axis  
_M43  Tool  direction  max.  
_M44  Tool  direction  inc.  
Traversing  the  rotary  axes  in  case  of  NC  axes  
  
Marker:  
_M20  Rotary  axes  1,2  automatic  swiveling  
_M21  Rotary  axes  2  automatic  
                    Rotary  axes  1  manual  swiveling  
_M22  Rotary  axes  1  automatic  swiveling  
_M23  Rotary  axes  1  manual  swiveling  
_M30  Rotary  axes  1  automatic  
                    Rotary  axes  2  manual  swiveling  
_M40  Rotary  axes  1,2  manual  swiveling  
_M57  _M58  _M59  Swiveling  in  JOG  with  TRAORI  
End  of  cycle  
No  traversing  of  rotary  axes  
No  retraction  
  
  
840Dsl  SINUMERIK    Operate   Page  47   M102M102  
  
Notes  
  
  
Section  2  2.31    Startup  CYCLE800                      Structure  of  swivel  cycles  
Structure    E_TCARR.SPF  (F_TCARR.SPF)                        CUST_800.SPF  
Marker:  _M9  Swivel  head/table                              
                          manually  
Tool  
change?  
Marker:  _M2  Change  magazine  tool  
                          _M3  Change  manual  tool  
Marker:  _M12  Swivel  after  tool  change  (Auto)  
                          _M13  Swivel  after  tool  change  (JOG)  
Marker:  _M14  Retraction  after  swiveling  
End  of  cycle  
Yes  
No  
The  following  structure  relates  to  the  
swivel  data  record  change  and  the  asso-­
ciated  tool  change  in  ShopMill/ShopTurn  
SDS  =  Swivel  data  record  
Old  SDS  1  
New  SDS?  
Old  SDS  1  
=  Swivel  
head?  
Marker:  _M2  Change  magazine  tool  
                          _M3  Change  manual  tool  
Tool  name    
Input  data  for  swiveling  
Marker:  _M7  Swivel  head/table                              
                          manually?  
Marker:  _M8  Swivel  head/table                              
                          automatically?  
No  
Marker:  _M8  Swivel  head/table                              
                          automatically  
Marker:  _M6  Swivel  head/table                              
                          automatically  
Marker:  _M5  Swivel  head/table                              
                          automatically  
Change  old  
SDS  manually  
new  SDS  auto-­
matically?  
Change  old  
SDS  automati-­
cally  new  SDS  
manually?  
Change  old/
new  SDS  
manually?  
Change  old/
new  SDS  auto-­
matically?  
Yes  
Yes  
Yes  
Yes  
Yes  
No  
No  
No  
No  
No  
  
  
M102M102   Page  48   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.32    Startup  CYCLE800                      Standard  cycle  CUST_  800.MPF  
  
For  Marker  _M20  to  M31  
        Markers  _M20  to  _M31  are  distinguished  by  kinematics  with  two  rotary      
        axes  or  no  rotary  axis.  A  distinction  between  automatic  rotary  axes      
        (known  to  NCU)  and  manually  rotary  axes.  
        There  is  only  ever  one  valid  marker  for  the  active  swivel  data  record.      
        Checks  are  carried  out  via  the  _TS  _ST  parameter/  GUD7  variable  
  
For  ShopMill/ShopTurn  markers  _M2  to  _M13  
          When  the  swivel  data  record  or  tool  is  changed,  the  linear  axes  are                
          recovered  using  the  last  retraction  mode  (modal).  If  this  behavior  is  not              
        desired  in  conjunction  with  ShopMill/ShopTurn,  the  corresponding  calls    
        must  be  commented  out  with  a  semicolon  (;;)  
        The  E_SWIV  of  F_SWIV_H  cycle  is  called  in  ShopMill/ShopTurn  
        (see  markers  _M2  to  _M9)  in  CUST_800.SPF  user  cycle.  
  
      Parameter  E_SWIV_H  (Par1,  Par2,  Par3)  
      -­  Par  1:  Number  of  swivel  data  record  (_TC1)  
      -­  Par  2:  Angle  of  first  rotary  axis    (_A1)  
      -­  Par  3:  Angle  of  first  rotary  axis    (_A2)  
  
      Modification  examples:  
  
      If  the  rotary  axes  (swivel  head/table)  are  not  to  be  positioned  during      
      swivel  data  change  /  tool  change,  the  call  of  the  E_SWIV_H  cycle  can        
      be  commented  out  at  the  relevant  markers.  
      If  the  rotary  axes  are  to  move  to  a  certain  position,  an  angle  value  can        
      be  transferred  to  Parameter  Par  2,  Par  3.  
  
For  ShopMill/ShopTurn  markers  _M14,  _M15  
          Depending  on  the  values  of  the  retraction  plane  and  the  programmed        
          swivelplane,  it  is  possible  that  the  linear  axes  now  also  travel  the          
          swiveled  retraction  plane  while  running  up  from  the  current  position  to      
          the  software  limit  switches  after  a  block  search.  
  
        To  avoid  this  problem,  marker  _M14  in  the  CUST_800.SPF  is  called        
        after  swiveling.  The  E_SP_RP(30)  cycle  preset  there,  runs  up  to  the        
        ShopMill  retraction  plane  whereby  travel  may  be  along  the  software  limit      
        switches.  An  appropriate  retraction  after  block  search  can  be  set  at      
        marker  _M15    
  
For  ShopMill/ShopTurn  marker  _M46  
          Retraction  before  swiveling  after  a  block  search  can  be  set  at  marker      
          _M46.  Variable  _E_VER  is  1,  if  it  is  a  ShopMill  program.  
  
  
          Correct  tool  requires  that    a  5-­axis  transformation  is  set  up,  which    
          is  equivalent  to  the  corresponding  swivel  data  record.  
  
          The  programming  section  is  integrated  into  marker  _M20  in  the      
          CUST_800.SPF  user  cycle.  
  
          The  relevant  program  lines  can  be  activated  by  commenting  them  out.  
  
  
840Dsl  SINUMERIK    Operate   Page  49   M102M102  
  
Notes  
  
  
Section  2  2.33    Startup  CYCLE800                      Standard  cycle  CUST_  800.MPF  
  
For  tool  change  +  swivel  
In  general,  the  swivel  CYCLE800  and  tool  change  functions  for  a  machine  
are  independent  of  each  other.  Thus,  the  swivel  work  plane  can  be  re-­
tained  in  a  technological  sequence  with  multiple  tools  (e.g.  centering,  drill-­
ing,  taping).  
If  the  rotary  axes  of  the  active  swivel  data  record  are  involved  in  the  me-­
chanical  sequence  of  the  tool  change  or  these  rotary  axes  have  to  be  re-­
tracted,  the  tool  change  sequence  program  must  ensure  that  the  rotary  
axes  positions  are  approached  again  after  the  tool  change.  If  linear  axes  
are  also  involved  in  the  tool  change,  the  rotations  in  the  NC  (swivel  frame)  
must  not  be  deleted.  Rather  the  linear  axes  can  be  positioned  as  machine  
axes  during  the  tool  change  using  the  G153  or  SUPA  commands.  
  
For  swivelling  without  active  tool  compensation  
If  the  user  wants  to  prevent  swivelling  or  rotary  axes  without  active  tool  cut-­
ting  edge  (D0),  the  machine  manufacturer  can  adapt  this  in  the  
CUST_800.SPF  user  cycle  
  
Example  with  syntax  as  massage:  
  
_M40:  
IF  ((NOT  $P_TOOL)    AND  _TC1)  
LOOP  
  
M0  
STOPRE  
ENDLOOP  
ENDIF  
GOTOF_MEND  
  
  
  
Explanation  of  Parameters  
  
TOOLCARR  (_MODE,  _TC1,  _A1,  _A2,  _TC2)  
  
  
Parameter   Data  type   Meaning  
_MODE     Corresponds  to  markers  of  described  structure  
  _TC1                     Number  of  the  swivel  head  /  swivel  bench    
_A1                         Angle  of  the  1st  rotary  axis    
_A2                         Angle  of  the  2nd  rotary  axis  
_TC2                     Feed  override  %  for  JOG  swivel,  only  for  Shop-­
Mill  
  _T_POS           Number  of  new  swivel  head/table  when  changing  
  
  
M102M102   Page  50   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.34    Startup  CYCLE800                      Standard  cycle  CUST_  800.MPF  
  
N800  PROC  CUST_800(INT  _MODE,INT  _TC1,REAL  _A1,REAL  _A2,INT  
_TC2,REAL  _T_POS)  SAVE  DISPLOF  
;;customer  cycle  to  cyle800  
;;VERSION:  02.06.53.00  ;;DATE:  2010-­06-­22  
;;CHANGE  :  02.06.37.00  ;;DATE:  2009-­10-­22  
;;-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­  
;;  
;;  Inclinable  head/table  cycle  for  machine  manufacturer  
;;  
;;  PARAMETERS:  
;;  
;;  _MODE        :      Mode:  
;;        ShopMill      2  =  Change  magazine  tool  
;;        ShopMill      3  =  Change  hand  tool  
;;        ShopMill      4  =  Change  new  swivel  head  automatically  
;;        ShopMill      5  =  Change  new  swivel  head  manually  
;;        ShopMill      6  =  Change  old  swivel  head  automatically  
;;        ShopMill      7  =  Change  old  swivel  head  manually  
;;        ShopMill      8  =  Change  swivel  heads  automatically  
;;        ShopMill      9  =  Change  swivel  heads  manually  
;;        ShopMill    10  =  Angle  adapted  to  angle  grid  
;;        ShopMill    11  =  Initialize  angles  at  program  start  
;;        ShopMill    12  =  Swivel  after  tool  change  (AUTO)  
;;        ShopMill    13  =  Swivel  after  tool  change  (JOG)  
;;        ShopMill    14  =  Retract  after  swivel  
;;        ShopMill    15  =  Retract  after  block  search  
;;                            20  =  Swivel  Round  axes  1,2  automatic.  Tracking  with  TRAORI(1)  
;;                            21  =  Swivel  Round  axis  1  manual,  Round  axis  2  automatic  
swivel.  Tracking  with  TRAORI(1)  
;;                            22  =  Swivel  Round  axis  1  automatic.  Tracking  with  TRAORI(1)  
;;                            23  =  Swivel  Round  axis  1  manual    
;;                            30  =  Swivel  Round  axis  1  automatic,  Round  axis  2  manual  .  
Tracking  with  TRAORI(1)    
;;                            31  =  Swivel  Round  axes  1,2  manual  
;;                            35  =  Block  search  Round  axis  1  and/or  Round  axis  2  manual    
;;                            40  =  User  Init  
;;                            41  =  axis  Z  MCS-­Fixpoint  
;;                            42  =  axis  Z  and  after  axes  XY  MCS-­Fixpoint    
;;                            44  =  Tool  direction  retract  maximal  
;;                            45  =  Tool  direction  retract  incremental    
;;        ShopMill    46  =  Tool  retract  modal  after  block  search  
;;                            57,58,59  =  JOG  Swivel  +  TRAORI  (Area  G17,G18,G19)  
;;  
;;  _TC1                :      Number  of  the  swivel  head  /  swivel  bench    
;;  _A1                    :      Angle  of  the  1st  rotary  axis    
;;  _A2                    :      Angle  of  the  2nd  rotary  axis  
;;  _TC2                :      Feed  override  %  for  JOG  swivel,  only  for  ShopMill  
;;  _T_POS      :  Number  of  new  swivel  head/table  when  changing  
;;-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­  
    
  
  
840Dsl  SINUMERIK    Operate   Page  51   M102M102  
  
Notes  
  
  
Section  2  2.35    Startup  CYCLE800                      Standard  cycle  CUST_  800.MPF  
  
DEF  INT  _M345=5,_SPINU=1,_DD,_UI_ACT,_TCRD  
DEF  REAL  _A1_DIFF,_A2_DIFF,_FAK1,_TOOLL[3]  
DEF  AXIS  _AX1,_AX2  
DEF  STRING[60]  _SERR                
IF  ((_MODE>=21)AND(_MODE<=31))  
    IF  _TC2                                                                        
        _SPINU=$AC_MSNUM  _M345=$AC_SDIR[_SPINU]    
    ELSE                                                                              
        _SPINU=$P_MSNUM  _M345=$P_SDIR[_SPINU]        
    ENDIF    
ENDIF  
IF($P_GG[13]<3)                                            
    _FAK1=1  
    IF($MN_SCALING_SYSTEM_IS_METRIC)      
        IF($P_GG[13]==1)                                  
          _FAK1=1/$MN_SCALING_VALUE_INCH    
        ENDIF  
    ELSE                                                              
        IF($P_GG[13]==2)                                  
            _FAK1=$MN_SCALING_VALUE_INCH      
        ENDIF  
    ENDIF  
ELSE                                                                  
    _FAK1=1  
ENDIF  
IF  ((_MODE  >  40)  AND  ($AN_NCK_VERSION  <  750000))  GOTOF  _ERR1    
N803  CASE  _MODE  OF  2  GOTOF  _M2  3  GOTOF  _M3  4  GOTOF  _M4  5  
GOTOF  _M5  6  GOTOF  _M6  7  GOTOF_M7  8  GOTOF  _M8  9  GOTOF  
_M9  10  GOTOF  _M10  11  GOTOF  _M11  12  GOTOF  _M12  13  GOTOF  
_M13  14  GOTOF  _M14  15  GOTOF  _M15  20  GOTOF  _M20  21  GOTOF  
_M21  22  GOTOF  _M22  23  GOTOF  _M23  30  GOTOF  _M30  31  GOTOF  
_M31  35  GOTOF  _M35  40  GOTOF  _M40  41  GOTOF  _M41  42  GOTOF  
_M42  44  GOTOF  _M44  45  GOTOF  _M45  46  GOTOF  _M46  57  GOTOF  
_M57  58  GOTOF  _M58  59  GOTOF  _M59  DEFAULT  GOTOF  _MEND  
;;  
LOOP  
    MSG("CUST_800:  The  mode  "<<_MODE<<"  is  missing.  Change  line  
N803  above")  
    M0  
    STOPRE  
ENDLOOP  
;;  
_M2:  ;;  Change  magazine  tool  
    IF($MCS_TECHNOLOGY==2)            
        IF((_TC_FR  MOD  10)AND(_TC1))  
            CUST_800(40+(_TC_FR  MOD  10),_TC1)    
        ENDIF  
        N8002  E_SWIV_H(_TC1,0,0)        
    ENDIF  
    IF($MCS_TECHNOLOGY==1)            
        IF((_TC_FR  MOD  10)AND(_TC1))  
              ;;CUST_800(40+(_TC_FR  MOD  10),_TC1)    
        ENDIF  
        ;;N8002  F_SWIV_H(_TC1,0,0)        
    ENDIF  
    GOTOF  _MEND  
  
  
M102M102   Page  52   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.35    Startup  CYCLE800                      Standard  cycle  CUST_  800.MPF  
    ;;  
_M3:  ;;  Change  hand  tool  
    IF($MCS_TECHNOLOGY==2)            
        IF((_TC_FR  MOD  10)AND(_TC1))  
            CUST_800(40+(_TC_FR  MOD  10),_TC1)    
        ENDIF  
        N8003  E_SWIV_H(_TC1,0,0)        
    ENDIF  
    IF($MCS_TECHNOLOGY==1)            
        IF((_TC_FR  MOD  10)AND(_TC1))  
              ;;CUST_800(40+(_TC_FR  MOD  10),_TC1)    
        ENDIF  
        ;;N8003  F_SWIV_H(_TC1,0,0)        
    ENDIF  
    GOTOF  _MEND  
    ;;  
_M4:  ;;  Change  new  swivel  head  automatically  
    ;;  STORE_TOOL                                
    GOTOF  _MEND  
    ;;  
_M5:  ;;  Change  new  swivel  head  manually  
    ;;  STORE_TOOL                                
    N8005  M0                                            
    GOTOF  _MEND  
    ;;  
_M6:  ;;  Change  old  swivel  head  automatically  
    ;;  STORE_TOOL                                
    IF($MCS_TECHNOLOGY==2)            
        IF((_TC_FR  MOD  10)AND(_TC1))  
            CUST_800(40+(_TC_FR  MOD  10),_TC1)    
        ENDIF  
        N8006  E_SWIV_H(_TC1,0,0)        
    ENDIF  
    IF($MCS_TECHNOLOGY==1)            
        IF((_TC_FR  MOD  10)AND(_TC1))  
              ;;CUST_800(40+(_TC_FR  MOD  10),_TC1)    
        ENDIF  
        ;;N8006  F_SWIV_H(_TC1,0,0)        
    ENDIF  
    GOTOF  _MEND  
    ;;  
_M7:  ;;  Change  old  swivel  head  manually  
    ;;  STORE_TOOL                                
    IF($MCS_TECHNOLOGY==2)            
        IF((_TC_FR  MOD  10)AND(_TC1))  
            CUST_800(40+(_TC_FR  MOD  10),_TC1)    
        ENDIF  
        N8007  E_SWIV_H(_TC1,0,0)        
    ENDIF  
    IF($MCS_TECHNOLOGY==1)            
        IF((_TC_FR  MOD  10)AND(_TC1))  
              ;;CUST_800(40+(_TC_FR  MOD  10),_TC1)    
        ENDIF  
        ;;N8007  F_SWIV_H(_TC1,0,0)        
    ENDIF  
    N80071  M0          
  
  
840Dsl  SINUMERIK    Operate   Page  53   M102M102  
  
Notes  
  
  
Section  2  2.36    Startup  CYCLE800                      Standard  cycle  CUST_  800.MPF  
    GOTOF  _MEND  
    ;;  
_M8:  ;;  Change  swivel  heads  automatically  
    ;;  STORE_TOOL                                
    IF($MCS_TECHNOLOGY==2)            
        IF((_TC_FR  MOD  10)AND(_TC1))  
            CUST_800(40+(_TC_FR  MOD  10),_TC1)    
        ENDIF  
        N8008  E_SWIV_H(_TC1,0,0)        
    ENDIF  
    IF($MCS_TECHNOLOGY==1)            
        IF((_TC_FR  MOD  10)AND(_TC1))  
              ;;CUST_800(40+(_TC_FR  MOD  10),_TC1)    
        ENDIF  
        ;;N8008  F_SWIV_H(_TC1,0,0)        
    ENDIF  
    GOTOF  _MEND  
    ;;  
_M9:  ;;  Change  swivel  heads  manually  
    ;;  STORE_TOOL                                
    IF($MCS_TECHNOLOGY==2)            
        IF((_TC_FR  MOD  10)AND(_TC1))  
            CUST_800(40+(_TC_FR  MOD  10),_TC1)    
        ENDIF  
        N8009  E_SWIV_H(_TC1,0,0)        
    ENDIF  
    IF($MCS_TECHNOLOGY==1)            
        IF((_TC_FR  MOD  10)AND(_TC1))  
              ;;CUST_800(40+(_TC_FR  MOD  10),_TC1)    
        ENDIF  
        ;;N8009  F_SWIV_H(_TC1,0,0)        
    ENDIF  
    N80091  M0                                            
    GOTOF  _MEND  
    ;;  
_M10:  ;;  Angle  adapted  to  angle  grid  
    _A1_DIFF=ROUND(1000*$P_TCDIFF[1])/1000  
    IF  $TC_CARR36[_TC1]==""          
        _SERR=<<$TC_CARR34[_TC1]<<"    "<<$TC_CARR35[_TC1]<<":  
"<<_A1_DIFF  
    ELSE  
        _A2_DIFF=ROUND(1000*$P_TCDIFF[2])/1000  
        _SERR=<<$TC_CARR34[_TC1]<<"    "<<$TC_CARR35[_TC1]<<":  
"<<_A1_DIFF<<"    "<<$TC_CARR36[_TC1]<<":  "<<_A2_DIFF  
    ENDIF  
    SETAL(62185,_SERR)                    
    M0                                                    
    STOPRE  
    GOTOF  _MEND  
    ;;  
_M11:  ;;  Initialize  angles  at  program  start  
    IF(TRUNC($TC_CARR37[_TC1]/10)  MOD  10  ==  0)AND($TC_CARR35
[_TC1]<>"")  
        _AX1=AXNAME($TC_CARR35[_TC1])    
        _TC_A1=$P_EP[_AX1]                
  
  
M102M102   Page  54   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.37    Startup  CYCLE800                      Standard  cycle  CUST_  800.MPF  
    ELSE                                                
        _TC_A1=_SC_NO_VAL                  
    ENDIF  
    IF(TRUNC($TC_CARR37[_TC1]/100)  MOD  10  ==  0)AND($TC_CARR36
[_TC1]<>"")  
        _AX2=AXNAME($TC_CARR36[_TC1])    
        _TC_A2=$P_EP[_AX2]                
    ELSE                                                
        _TC_A2=_SC_NO_VAL                  
    ENDIF  
    GOTOF  _MEND  
    ;;  
_M12:  ;;  Swivel  after  tool  change  (AUTO)  
    IF($MCS_TECHNOLOGY==2)            
        IF((_TC_FR  MOD  10)AND(_TC1))  
            CUST_800(40+(_TC_FR  MOD  10),_TC1)    
        ENDIF  
        N80012  E_SWIV_H(_TC1,_A1,_A2)  
    ENDIF  
    IF($MCS_TECHNOLOGY==1)            
        IF((_TC_FR  MOD  10)AND(_TC1))  
              ;;CUST_800(40+(_TC_FR  MOD  10),_TC1)    
        ENDIF  
        ;;N80012  F_SWIV_H(_TC1,_A1,_A2)  
    ENDIF  
    GOTOF  _MEND  
    ;;  
_M13:  ;;  Swivel  after  tool  change  (JOG)  
    IF($MCS_TECHNOLOGY==2)            
        CUST_800(41,_TC1)    
        N80013  E_SWIV_H(_TC1,_A1,_A2)  
    ENDIF  
    IF($MCS_TECHNOLOGY==1)            
        ;;CUST_800(41,_TC1)    
        ;;N80013  F_SWIV_H(_TC1,_A1,_A2)  
    ENDIF  
    GOTOF  _MEND  
    ;;  
_M14:  ;;  Retract  after  swivel  
    IF($MCS_TECHNOLOGY==2)            
        N80014  E_SP_RP(30)  
    ENDIF  
    GOTOF  _MEND  
    ;;  
_M15:  ;;  Retract  after  block  search  
    IF($MCS_TECHNOLOGY==2)            
        N80015  E_SP_RP(30)  
    ENDIF  
    GOTOF  _MEND  
    ;;  
;;-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­-­  
  
  
840Dsl  SINUMERIK    Operate   Page  55   M102M102  
  
Notes  
  
  
Section  2  2.38    Startup  CYCLE800                      Standard  cycle  CUST_  800.MPF  
_M20:  ;;  Swivel  Round  axes  1  and  2  automatic.  Tracking  with  TRAORI(1)  
    _UI_ACT=$P_GG[8]    
    IF  ((_TC_N_WZ==1)  AND  (NOT  $P_SEARCH)  AND  (NOT  $P_ISTEST))  
          
        TCARR=0  PAROTOF  
        TRAORI(1)                      
        G[8]=_UI_ACT    
        IF  _TC2>0  
            DO  $AC_OVR=_TC2    
        ENDIF  
        SBLON  
        N80020  G0  G90  G94  AX[AXNAME($TC_CARR35[_TC1])]=_A1  AX
[AXNAME($TC_CARR36[  _TC1])]=_A2  
        SBLOF  
        TRAFOOF  
        G[8]=_UI_ACT    
        TCARR=_TC1  
    ELSE    
        IF  _TC2>0  
            DO  $AC_OVR=_TC2    
        ENDIF  
        SBLON  
        N80020  G0  G90  G94    AX[AXNAME($TC_CARR35[_TC1])]=_A1  AX
[AXNAME($TC_CARR36[  _TC1])]=_A2  
        SBLOF  
    ENDIF  
    ;;STOPRE  
    GOTOF  _MEND  
    ;;  
_M21:  ;;  Swivel  Round  axis  2  automatic,Round  axis  1  manual  or  semi  
automatic.  Tracking  with  TRAORI(1)  
    _UI_ACT=$P_GG[8]    
    IF  ((_TC_N_WZ==1)  AND  (NOT  $P_SEARCH)  AND  (NOT  $P_ISTEST))    
          
        TCARR=0  PAROTOF  
        TRAORI(1)                      
        G[8]=_UI_ACT    
        IF  _TC2>0  
            DO  $AC_OVR=_TC2    
        ENDIF  
        SBLON  
        N80021  G0  G90  G94    AX[AXNAME($TC_CARR36[_TC1])]=_A2  
        SBLOF  
        TRAFOOF  
        G[8]=_UI_ACT    
        TCARR=_TC1  
    ELSE    
        IF  _TC2>0  
            DO  $AC_OVR=_TC2    
        ENDIF  
        SBLON  
        N80021  G0  G90  G94  AX[AXNAME($TC_CARR36[_TC1])]=_A2  
        SBLOF  
    ENDIF  
    IF  ((_M345==3)  OR  (_M345==4))    
        M[_SPINU]=5    
        M0  
  
  
M102M102   Page  56   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.39    Startup  CYCLE800                      Standard  cycle  CUST_  800.MPF  
  _M22:  ;;  Swivel  Round  axis  1  automatic.  Tracking  with  TRAORI(1)  
    _UI_ACT=$P_GG[8]    
    IF  ((_TC_N_WZ==1)  AND  (NOT  $P_SEARCH)  AND  (NOT  $P_ISTEST))    
          
        TCARR=0  PAROTOF  
        TRAORI(1)                      
        G[8]=_UI_ACT    
        IF  _TC2>0  
            DO  $AC_OVR=_TC2    
        ENDIF  
        SBLON  
        N80022  G0  G90  G94  AX[AXNAME($TC_CARR35[_TC1])]=_A1  
        SBLOF  
        TRAFOOF  
        G[8]=_UI_ACT    
        TCARR=_TC1  
    ELSE    
        IF  _TC2>0  
            DO  $AC_OVR=_TC2    
        ENDIF  
        SBLON  
        N80022  G0  G90  G94  AX[AXNAME($TC_CARR35[_TC1])]=_A1  
        SBLOF  
    ENDIF  
    ;;STOPRE            
    GOTOF  _MEND  
    ;;  
_M23:  ;;  Swivel  Round  axis  1  manual  or  semi  automatic  
    GOTOF  _M31  
_M30:  ;;  Swivel  Round  axis  1  automatic  swivel,  Round  axis  2  manual  or  
semi  automatic.  Tracking  with  TRAORI(1)    
    _UI_ACT=$P_GG[8]    
    IF  ((_TC_N_WZ==1)  AND  (NOT  $P_SEARCH)  AND  (NOT  $P_ISTEST))    
          
        TCARR=0  PAROTOF  
        TRAORI(1)                      
        G[8]=_UI_ACT    
        IF  _TC2>0  
            DO  $AC_OVR=_TC2    
        ENDIF  
        SBLON  
        N80030  G0  G90  G94    AX[AXNAME($TC_CARR35[_TC1])]=_A1  
        SBLOF  
        TRAFOOF  
        G[8]=_UI_ACT    
        TCARR=_TC1  
    ELSE    
        IF  _TC2>0  
            DO  $AC_OVR=_TC2    
        ENDIF  
        SBLON  
        N80030  G0  G90  G94  AX[AXNAME($TC_CARR35[_TC1])]=_A1  
        SBLOF  
    ENDIF  
    IF  ((_M345==3)  OR  (_M345==4))    
        M[_SPINU]=5    
        M0  
  
  
840Dsl  SINUMERIK    Operate   Page  57   M102M102  
  
Notes  
  
  
Section  2  2.40    Startup  CYCLE800                      Standard  cycle  CUST_  800.MPF  
        ;;  
_M31:  ;;  Swivel  Round  axis  1  and  2  manual  or  semi  automatic  
    IF  ((_M345==3)  OR  (_M345==4))    
        M[_SPINU]=5    
        M0  
        M[_SPINU]=_M345    
    ELSE  
        M0  
    ENDIF  
    ;;STOPRE  
    GOTOF  _MEND  
    ;;  
_M35:  ;;      Block  Search  Round  axis  manual  
    _TCRD=0  _SERR=<<""    
    IF  (($TC_CARR37[_TC1]  _DEC2)==1)    
        _SERR=<<(SUBSTR($TC_CARR35[_TC1],0,5))<<":  "<<_TC_A1  
        _TCRD=1  
    ENDIF  
    IF  ((($TC_CARR37[_TC1]  _DEC3)==1)AND($TC_CARR36[_TC1]<>""))    
        IF  _SERR==""    
            _SERR=<<(SUBSTR($TC_CARR36[_TC1],0,5))<<":  "<<_TC_A2  
            _TCRD=1  
        ELSE      
            _SERR=<<(SUBSTR($TC_CARR35[_TC1],0,5))<<":  "<<_TC_A1<<"    
"<<(SUBSTR($TC_CARR36[_TC1],0,5))<<":  "<<_TC_A2  
            _TCRD=_TCRD+1  
        ENDIF  
    ENDIF          
    STOPRE    
    IF  (_TCRD==2)  
        N80035  SETAL(62180,_SERR)    
    ENDIF  
    IF  (_TCRD==1)  
        N80035  SETAL(62181,_SERR)      
    ENDIF  
    GOTOF  _MEND  
    ;;  
_M40:  ;;  User  Init  
    GOTOF  _MEND  
    ;;  
_M41:  ;;  Axis  Z  MCS-­Fixpoint  
    _DD=$P_TOOL                            
    IF  _TC2>0  
        DO  $AC_OVR=_TC2    
    ENDIF  
    SBLON  
    N80041  SUPA  D0  G0  G40  G60  G90  G94  Z=$TC_CARR40[_TC1]    
      
    D=_DD                                        
    SBLOF  
    ;;STOPRE  
    GOTOF  _MEND  
    ;;  
_M42:  ;;  Axis  Z  and  after  axes  XY  MCS-­Fixpoint    
    _DD=$P_TOOL                            
    IF  _TC2>0  
        DO  $AC_OVR=_TC2    
  
  
M102M102   Page  58   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   2.41    Startup  CYCLE800                      Standard  cycle  CUST_  800.MPF  
  
_M45:    ;;  Tool  direction  retract  incremental  
    IF  _TC2>0  
        DO  $AC_OVR=_TC2    
    ENDIF  
    SBLON  
    N80045  G0  G60  G90  G94  AX[$P_AXN3]=_T_POS    
    SBLOF  
    ;;STOPRE  
    GOTOF  _MEND  
    ;;  
_M46:  ;;  Tool  retract  modal  after  block  search  
    IF((_TC_FR  MOD  10)AND(_TC1))  
        N80046  CUST_800(40+(_TC_FR  MOD  10),_TC1)  
    ENDIF  
    ;;STOPRE  
    GOTOF  _MEND  
    ;;  
_M57:  ;;  JOG  Swivel  +  TRAORI  (Area  G17)  
    IF  $P_TC<>0  GOTOF  _MEND  
    IF  _TC2>0  
        DO  $AC_OVR=_TC2    
    ENDIF  
    SBLON  
      
    N80057  G0  G40  G60  G90  G94  A3=0  B3=0  C3=1    
    SBLOF  
    GOTOF  _MEND  
    ;;  
_M58:  ;;  JOG  Swivel  +  TRAORI  (Area  G18)  
    IF  $P_TC<>0  GOTOF  _MEND  
    IF  _TC2>0  
        DO  $AC_OVR=_TC2    
    ENDIF  
    SBLON  
    N80058  G0  G40  G60  G90  G94  A3=0  B3=1  C3=0    
    SBLOF  
    GOTOF  _MEND  
    ;;  
_M59:  ;;  JOG  Swivel  +  TRAORI  (Area  G19)  
    IF  $P_TC<>0  GOTOF  _MEND  
    IF  _TC2>0  
        DO  $AC_OVR=_TC2    
    ENDIF  
    SBLON  
    N80059  G0  G40  G60  G90  G94  A3=1  B3=0  C3=0    
    SBLOF  
    GOTOF  _MEND  
_MEND:  
N80099  RET  
_ERR1:  STOPRE  
N780001  SETAL(61181)    
RET  
  
  
840Dsl  SINUMERIK    Operate   Page  59   M102M102  
  
Notes  
  
  
Section  2  2.42    Startup  CYCLE800                      Standard  cycle  CUST_  800.MPF  
  
  
M102M102   Page  60   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  3   3.1  Information  for  the  Programmer              Programming  procedure  for  CYCLE800  
2  
1  
3  
8  
5  
6  
7  
9  
10  
11  
4  
Procedure  when  programming  swivel  motion  and  subsequent    
machining:  
  
Where  to  find  CYCLE800  ?  
  
  
  
  
  
Basic  procedure  when  generating  a  swivel  data  set  
  
Swivel  the  coordinate  system  into  the  plane  to  be  machined.  
Program  machining  as  usual  in  the  X/Y  plane.  
Swivel  the  coordinate  system  back  to  its  original  position.  
  
Select  machining  plane  for  reference  of  rotation  
  
Select  the  retraction  mode  before  and  after  swiveling  
base  the  movement  on  a  previous  swivel  movement  .  
Specify  the  reference  point  before  rotation  (X0,  Y0,  Z0)  .  
  
Select  the  order  of  the  axis  to  rotate  about.  
  
              
Enter  the  zero  point  after  the  rotation  .  
Select  the  prefered  direction  for  rotary  axes  positioning  
Select  weather  the  tool  tip  is  tracked  or  not  during  positioning  of  rotary  axes.    
  
Note:  
  
You  can  program  several  swivel  movements  one  after  the  other.  A  subsequent  
swivel  motion  can  be  based  on  a  previous  one  (additive).  This  means  that  you  can  
transparently  represent  swivel  motion  in  the  program  code  
7  
8  
6  
5  
1  
2  
4  
3  
9  
10  
11  
  
  
840Dsl  SINUMERIK    Operate   Page  61   M102M102  
  
Notes  
  
  
Section  3  3.2  Information  for  the  Programmer              Parameters  in  data  input  screen  CYCLE800  
PL:  
Machining  
plane    
G17  (XY)  Tool  axis  Z    
G18  (ZX)  Tool  axis  Y  
G19  (YZ)  Tool  axis  X  
TC:  
Name  of  swivel  
data  record  
  
  
  
  
The  swivel  data  records  that  have  been  setup  can  be  
selected  (toggle).  
Every  swivel  data  record  is  assigned  a  name.  A  namedoes  not  have  to  be  declared  if  there  is  only  one  swivel  
data  record.  
  
Retract:    
Before  swivel-­
ing    
  
      No  retraction  before  swiveling  
  
      Retraction  of  machine  axis  Z  
  
      Move  machining  axis  to  retraction  position  before      
      swiveling  
Tool  direction  max.:  
        Maximum  retraction  in  tool  direction  (up  to  software      
        end  position)  
  
      Retraction  incremental  in  tool  direction                                
      e.g.  100  mm  
  
Note:  
When  retracting  in  the  tool  direction,  in  the  swiveled  
machine  state,  several  axes  can  move  
The  retraction  positions  are  traversed  absolutely.  If  
another  sequence  or  incremental  positioning  is  de-­
sired,  this  can  be  modified  during  installation  and  set  
up  in  the  CUST_800  user  cycle.  
When  programming  with  standard  cycles,  high  set-­
tings  for  the  retraction  plane  and  large  swivel  angles  
(through  90  degrees  with  multiface  machining),  it  is  
possible  that  the  traversing  area  of  the  machine  may  
be  too  small  (software  end  position  error),  since  the  
order  of  approach  is  always  the  machining  plane  (for  
G17  X,  Y)  first,  followed  by  the  infeed  axis  (Z).  The  
retraction  plane  can  be  reduced  to  optimize  this        
behavior.  
Swivel:   Swivel  yes  
          Rotary  axes  are  positioned  or  the  operator  can  turn      
          the  manual  rotary  axes.  
Swivel  no  (calculation  only)  
          If  rotary  axes  are  not  to  be  traversed  after  activating        
          the  swivel  cycle,  the  "Swivel  no"  selection  applies.  
          Application:  Auxiliary  swivel  levels  according  to  work    
          piece  drawing  
  
  
M102M102   Page  62   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  3   3.3    Information  for  the  Programmer              Parameters  in  data  input  screen  CYCLE800  
Swivel  plane:    
Previous  swivel  frames  and  programmed  frames  are  
deleted  and  a  new  swivel  frame  is  formed  according  to  
the  values  specified  in  the  input  screen.  
Every  main  program  must  begin  with  a  swivel  cycle  with  
the  new  swivel  plane,  in  order  to  ensure  that  a  swivel  
frame  from  another  program  is  not  active.  
  
  
The  swivel  frame  is  added  to  the  swivel  frame  from  the  
last  swivel  cycle.  If  several  swivel  cycles  are  pro-­
grammed  in  a  program  and  programmable  frames  are  
also  active  between  them  (e.g.,  AROT  ATRANS),  these  
are  taken  into  account  in  the  swivel  frame.  
If  the  currently  active  ZO  contains  rotations,  e.g.,  due  to  
previous  workpiece  gauging,  they  will  be  taken  into  ac-­
count  in  the  swivel  cycle.  
  
  
Reference  
Point:  
X0,  Y0,  Z0  
Help  screens  
The  following  help  displays  relate  to  machining  plane  
G17  (tool  axis  Z).  
Reference  points  before  rotation  X0,  Y0,  Z0.    
Allows  to  Shift  Workpiece  Zero  to  any  location  in  X  Y  Z  
  
Swivel  mode:   This  parameter  defines  the  swivel  mode  for  the  axis.  
Axis  by  axis  
Projection  angle  1)  2)  
Solid  angle  1)  
Directly  3)  
Swivel  mode  always  refers  to  the  coordinate  system  of  
the  workpiece  and  does  not,    therefore,  depend  on  the  
machine.  
  
Note  
For  1:  Swiveling  as  projection  or  solid  angle  
Only  available  if  selected  by  the  machine  manufacturer  
in  the  display  variants  of  input  mask  in  CYCLE800  
($TC_CARR37[n])  
  
  
840Dsl  SINUMERIK    Operate   Page  63   M102M102  
  
Notes  
  
  
Section  3  3.4    Information  for  the  Programmer              Parameters  in  data  input  screen  CYCLE800  
Swivel  mode:  
  
  
Axis  by  axis  
  
With  the  axial  swiveling  option,  the  tool  is  rotated    
about  the  individual  axes  of  the  coordinate  sys-­
tem  in  succession,  with  each  rotation  starting  
from  the  previous  rotation.  The  axis  sequence  
can  be  freely  selected.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Projection  angle  
  
When  swiveling  using  the  projection  angle,  the  
angle  value  of  the  swiveled  surface  is  projected  
onto  the  first  two  axes  of  the  right-­angle  coordi-­
nate  system.  The  user  can  select  the  axis  rotation  
sequence.2).  The  third  rotation  starts  from  the  pre-­
vious  rotation.  The  active  plane  and  the  tool  ori-­
entation  must  be  taken  into  consideration  when  
the  projection  angle  is  applied:  
  
  For  G17  projection  angle  XY,  3rd  rotation  around  Z  
  For  G18  projection  angle  ZX,  3rd  rotation  around  Y  
  For  G19  projection  angle  YZ,  3rd  rotation  around  X  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
M102M102   Page  64   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  3   3.5    Information  for  the  Programmer              Parameters  in  data  input  screen  CYCLE800  
Swivel  mode:   Note  
For  2):  Swiveling  as  projection  angle  
  
When  projection  angles  around  XY  and  YX  are  
programmed,  the  new  X-­axis  of  the  
                  swiveled  coordinate  system  lies  in  the  old  ZX          
                  plane.  
When  projection  angles  around  XZ  and  ZX  are  
programmed,  the  new  Z-­axis  of  the  
                    swiveled  coordinate  system  lies  in  the  old  Y-­Z        
                    plane.  
When  projection  angles  around  YZ  and  ZY  are  
programmed,  the  new  Y-­axis  of  the  
                    swiveled  coordinate  system  lies  in  the  old  X-­Y          
                    plane.  
  
  
Solid  angle  
  
With  the  solid  angle  swiveling  option,  the  tool  is  
first  rotated  about  the  Z  axis  and  then  about  the  Y  
axis.  The  second  rotation  starts  from  the  first.  The  
positive  direction  of  each  rotation  for  the  different  
swivel  options  is  shown  in  the  help  displays.  
  
  
840Dsl  SINUMERIK    Operate   Page  65   M102M102  
  
Notes  
  
  
Section  3  3.6    Information  for  the  Programmer              Parameters  in  data  input  screen  CYCLE800  
Swivel  mode:   Rotary  axes  direct  
  
With  swivel  mode  "direct"  ,  the  WCS  
          positions  of  the  rotary  axes  can  be  specified                        
directly.  The  target  swivel  positions  are  entered  in        
                    the  input  fields  of  the  rotary  axes  of  the  selected        
                    swivel  data  record  (see  parameter  _TC).  A    
                    swivel  frame  is  computed  for  these  positions  in  
                    CYCLE  800.  This  ensures  that  the  tool  orienta-­          
                    tion  is  aligned  at  a  perpendicular  angle  to  the      
                    swivel  plane.  It  is  possible  to  enter  an  additional      
                    rotation  around  the  tool  orientation  in  input  field      
                     -­    
                      scissa  (with  G17  X).  This  means  that  the  
                      traversing  directions  in  the  plane  (with  G17  XY)      
                      are  also  precisely  defined  after  swiveling  with      
                    "Rotary  axes  direct".  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Note  
  
For  3:  If  swivel  mode  "Rotary  axes  direct"  is  applied,  the  
corresponding  NC  program  is  machine-­dependent,  i.e.  
the  NC  program  can  run  only  on  machines  with  the  same  
swivel  kinematics  (including  the  rotary  axes  identifiers).  
Manual  and  semi-­automatic  rotary  axes  are  also  compati-­
ble  with  "Rotary  axes  direct"  swivel  mode.  
"Rotary  axes  direct"  swivel  mode  must  also  be  enabled  in  
the  display  variants  of  input  mask  inCYCLE800  
($TC_CARR37[n]).  
  
  
  
  
  
  
  
  
M102M102   Page  66   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  3   3.7    Information  for  the  Programmer              Parameters  in  data  input  screen  CYCLE800  
Sequence  of  
axes:  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Projection  
position:  
Help  screens  
Swivel  mode  (axis  by  axis)  
  
Sequence  of  axes  around  which  rotation  is  executed  
XYZ  ,  XZY,  YXZ,  YZX,  ZXY,  ZYX,    
  
            
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Help  screens  
Swivel  mode  (projection  angle)  
  
Position  of  projection  in  space  
X Y Z ,    Y Z Z Z X Z  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  67   M102M102  
  
Notes  
  
  
Section  3  3.8    Information  for  the  Programmer              Parameters  in  data  input  screen  CYCLE800  
    
Sequence  of  
axes:  
Help  screens  
Swivel  mode  (solid  angle)  
  
  
  
  
  
  
  
  
  
  
  
  
  
Help  screens  
Swivel  mode  (direct)  
  
  
  
  
  
  
Zero  point:  
(after  rotation  
X1,  Y1,  Z1)  
Here  it  is  possible  to  the  shift  the  workpiece  zero  in  the  
tilted  workplane  after  rotation  incrementaly  to  a  new  part  
reference.  
  
  
  
  
    
  
  
  
M102M102   Page  68   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  3   3.7    Information  for  the  Programmer              Parameters  in  data  input  screen  CYCLE800  
  
Direction:  
(Plus/
minus)  
  
Direction  reference  of  traversing  direction  of  rotary  axis  1  or  
2  of  the  active  swivel  data  record  (machine  kinematics).                                      
The  NC  calculates  two  possible  solutions  of  the  rotation/
offset  programmed  in  CYCLE800  using  the  angle  traversing  
range  of  the  rotary  axes  of  the  machine  kinematics.  Usually,  
only  one  of  these  solutions  is  technologically  suitable.  
The  solutions  differ  by  180  degrees  in  each  case.                                            
Selecting  the  "minus"  or  "plus"  direction  
determines  which  of  the  two  possible  solutions  is  to  be          
applied.  
  
Example  1:  
Machine  kinematics  with  rotary  swivel  table.    
                    1.  Rotary  axis  =  A  rotation  around  X  
                    2.  Rotary  axis  =  C  rotation  around  Z  
Angle  range  of  A-­axis  swivel  table  from  -­90  to  +90  deg  
Angle  range  of  C-­axis  rotary  table  from  0  to  +360  deg  
          (modulo  360).  
Machine  manufacturer  has  set  the  preferred  direction  of  
rotary  axis  to   .    
axis  by  axis
and  X  of  50°  is  programmed  in  the  swivel  cycle.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Solution  1  
Direction  of  preferred  rotary  
  
Movement:  
A-­axis  (tabel)  =    +50°  
C-­axis  (table)  =  +135°  
(Modulo  360)  
Solution  2  
Direction  of  preferred  rotary  
-­  
Movement:  
A-­axis  (tabel)  =        -­50°  
C-­axis  (table)  =    +315°  
(Modulo  360)  
Base  orientation  
Initial  kinematic                    
setting  in  (MCS)  
A-­axis  (tabel)  =    0°  
C-­axis  (table)  =    0°  
  
  
840Dsl  SINUMERIK    Operate   Page  69   M102M102  
  
Notes  
  
  
Section  3  3.8    Information  for  the  Programmer              Parameters  in  data  input  screen  CYCLE800  
  
Direction:  
(Plus/
minus)  
  
Example  2:  
Machine  with  mixed  kinematics.    
                    1.  Rotary  axis  =  B  rotation  around  Y  
                    2.  Rotary  axis  =  C  rotation  around  Z  
Angle  range  of  B-­axis  swivel  table  from  -­90  to  +90  deg  
Angle  range  of  C-­axis  rotary  table  from  0  to  +360  deg  
          (modulo  360).  
Machine  manufacturer  has  set  the  preferred  direction  of  
rotary  axis  to   .    
and    Y  of  50°  is  programmed  in  the  swivel  cycle.  
  
  
  
  
Solution  1  
Direction  of  preferred  
-­  
Movement:  
B-­axis  (Head)  =        -­50°  
C-­axis  (table)  =  +135°  
  
  
  
Solution  2  
Direction  of  preferred  
  
Movement:  
B-­axis  (Head)  =    +50°  
C-­axis  (table)  =  +315°  
(Modulo  360)  
Base  orientation  
Initial  kinematic                    
setting  in  (MCS)  
B-­axis  (Head)  =    0°  
C-­axis  (table)  =    0°  
  
  
M102M102   Page  70   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  3   3.9    Information  for  the  Programmer              Parameters  in  data  input  screen  CYCLE800  
  
  
  
  
Example  3:  
Machine  with  mixed  kinematics.    
                    1.  Rotary  axis  =  B  rotation  around  Y  
                    2.  Rotary  axis  =  C  rotation  around  Z  
Angle  range  of  B-­axis  swivel  table  from   10  to  +180  deg  
Angle  range  of  C-­axis  rotary  table  from  0  to  +360  deg  
          (modulo  360).  
Machine  manufacturer  has  set  the  preferred  direction  of  
rotary  axis  to   .    
and    Y  of  50°  is  programmed  in  the  swivel  cycle.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Note:  
  
In  the  basic  machine  kinematics  setting,  the  input  mask  for  
CYCLE800  contains  two  different  direction  settings  "Plus"  
and  "Minus"  if  the  selection  option  "Direction  rotary  axis  1  or  
2  optimized"  is  selected  in  $TC_CARR37[n]  (Display  
variants  of  input  mask  in  CYCLE800).  
Only  one  possible  solution,  
because  of  negative  B-­Axis  
limitation  
Direction  of  preferred  rotary  
axis  (B)    
Movement:  
B-­axis  (Head)  =    +73.406°  
C-­axis  (table)  =  +197.205°  
  
  
Base  orientation  
Initial  kinematic                    
setting  in  (MCS)  
B-­axis  (Head)  =    0°  
C-­axis  (table)  =    0°  
  
  
840Dsl  SINUMERIK    Operate   Page  71   M102M102  
  
Notes  
  
  
Section  3  3.10    Information  for  the  Programmer                  Parameters  in  data  input  screen  CYCLE800  
  
Tracking  TL:  
(Tool  Tip)  
  
The  Tracking  TL  display  field  can  be  activated/
deactivated  via  $TC_CARR37[n]  
(Display  variants  of  input  mask  in  CYCLE800).  
  
Track:  
When  swiveling  onto  a  machining  plane,  the  linear  axes  
can  trace  the  work-­piece  to  prevent  the  risk  of  collision.  
With  rotation  of  the  rotary  axes,  correction  of  the  tool  tip  
the  Work  piece.  
  
Requirements:  
1.  5-­  
2.  The  machine  manufacturer  has  adapted  the                
        CUST_800.SPF  user  cycle  appropriately.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Do  not  track:  
No  compensation  of  tool  tip  during  swiveling  
  
Attention:    Danger  of  collision  !  
  
  
  
  
  
  
  
  
  
  
  
  
Note:    
  
With  active  tracking  of  tool  tip,  it  is  recommended  to  
preposition  the  tool  over  the  work-­piece  with  a  appropri-­
ate  safety  distance.  
  
  
  
  
  
M102M102   Page  72   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  2   3.11    Information  for  the  Programmer                  Tool  orientation  -­  CYCLE800  
Orient  milling  tool  -­  CYCLE800  
  
Function  
  
After  "Swivel  plane",  the  tool  orientation  is  always  vertical  on  the  machin-­
ing  plane.  When  milling  with  radial  cutters,  it  can  make  technological  sense  
to  set  the  tool  at  an  angle  to  the  normal  surface  vector.  
  
In  the  swivel  cycle,  the  setting  angle  is  generated  by  an  axis  rotation  (max.  
+/-­  90  degrees)  in  the  active  swivel  plane.  When  setting  the  tool  orientation  
with  "Approach  tool",  only  rotations  are  displayed  on  the  swivel  cycle  in-­
put  screen  form.  The  angles  of  rotation  that  describe  the  tool  orientation  
are  always   The  user  can  select  the  rotation  sequence.The  TCP  (Tool  Center  Point)  must  be  entered  as  the  tool  length  of  the  
radial  cutter.  
  
If  a  program  with  several  swivel  cycles  is  to  be  milled  with  a  set  tool,  the  
"new"  swivel  plane  must  always  be  set  in  the  subsequent  swivel  call.  
It  is  also  possible  to  set  tools  on  machines  without  the  TRAORI  option  (see  
LEAD  advance  angle  and  TILD  sideways  angle  functions).  
  
Screen  form  
Soft  key  
  
  
  
  
  
  
  
Note:    
  
If  the  function  "B  axis  kinematics"  is  set  up  in  $TC_CARR37[n]  (Display  
variants  of  input  mask  in  CYCLE800),  it  is  accessed  with  soft  key  "Swivel  
tool"  and  in  the  second  plane  with  soft  key  "Setting  tool".  
  
  
840Dsl  SINUMERIK    Operate   Page  73   M102M102  
  
Notes  
  
  
Section  2  3.12    Information  for  the  Programmer                  Tool  orientation  -­  CYCLE800  
  
The  "Approach  tool"  input  screen  form  corresponds  to  the  minimized              
swivel  CYCLE800  input  screen  form.  
  
On  the  input  screen  form,  the  following  applies:  
  
PL:                                                          Workplane  in  WCS    G17(XY),  18(YZ),  19(XZ)  
TC:                                                          Name  of  current  swivel  data  record  
Retract:                                          As  for  CYCLE800  
Sequence  of  axes:      Order  in  which  axes  are  rotated    
Rotation  around:            Rotation  around  maximum  of  2  axes  in  the      
                                                                      WCS  XY,  YZ,  XZ  
Track  tool:                                As  for  CYCLE800  (for  display  variant,  see      
                                                                    CYCLE800  startup)  
  
  
Setting  tool:  1st  rotation                                                  Setting  tool:  2nd  rotation  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Note:    
CYCLE800  must  be  programed  prior  to  the  Approach  tool  function.  
Please  refer  to  application  example  on  Page  83  
  
  
  
M102M102   Page  74   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  3  
  
Application  Example  1:  CYCLE800    3+2  Swivel  Plane  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Work  Steps  
  
1.   Square  Block  100  x  100  to  size  
2.   Face  Milling  of  Workpiece  (initial  position)  
3.   Face  milling  inclined  plane  (Plane  1)  
4.   Circular  Pocket  milling  Ø40mm  (Plane  1)  
5.   Spot  face  positions  at  -­7  deg  (Plane  1)  
6.   Spot  face  positions  at  +7  deg  (Plane  1)  
7.   Drill  positions  Ø8.5mm  at  +7  deg  (Plane  1)  
8.   Drill  positions  Ø8.5mm  at  -­7  deg  (Plane  1)  
9.   Tap  positions  M10x1.5  at  -­7  deg  (Plane  1)  
10.   Tap  positions  M10x1.5  at  +7  deg  (Plane  1)  
11.   Face  milling  inclined  plane  (Plane  2)  
12.   Face  milling  inclined  plane  (Plane  3)  
13.   Circular  pocket  milling  (Plane3)  
14.   Circular  pocket  milling  (Plane  2)  
  
Tool  List  
    
T10    (Indexable  Roughing  Endmill  D=30)  
T11    (Carbide  Endmill  2  Flutes  D=16)    
T12    (Carbide  Endmill  2  Flutes  D=10)  
T13    (Carbide  Twist  Drill  8.5  mm)  
T14    (Tap  M10x1.5)  
4.1    CYCLE800  G-­Code    
              Example  1:  CYCLE800  3+2  Swivel  Plane  
  
  
840Dsl  SINUMERIK    Operate   Page  75   M102M102  
  
Notes  
  
  
Section  4  4.2    CYCLE800  G-­Code                  Example  1:  CYCLE800  3+2  Swivel  Plane  
Technical  drawing  example  1  
P  -­  P  
H  -­  H  
Plane  2   Plane  3  
C  -­  C  
  
Ø  18  
Plane  1  
  
  
M102M102   Page  76   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  4  
  
N100  WORKPIECE(,,,"BOX",112,0,51,-­80,-­2.5,-­2.5,102.5,102.5)  
N101  T10  D1  ;;  Indexable  Alu-­Rouhing-­Endmill  D=30  
N102  M6  
N103  S5000  M3  
N104  G54  G0  X0  Y0  M8  
N105  ;;***  Swivel  into  base  orientation  (initial  setting)***  
N106  CYCLE800(4,"TABEL",200000,57,0,0,50,0,0,0,0,0,0,1,,1)  
  
  
  
  
4.3    CYCLE800  G-­Code    
                Example  1:  CYCLE800  3+2  Swivel  Plane  
  
  
840Dsl  SINUMERIK    Operate   Page  77   M102M102  
  
Notes  
  
  
Section  4  4.4    CYCLE800  G-­Code                  Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N107  ;;***Rectangular  Spigot  roughing  100x100***  
N108  CYCLE76(10,0,0,-­46,,100,100,0,0,0,0,10,0,0,2000,2000,  
0,1,110,110,,,2100,1,2)  
  
N109  ;;  ***Face  milling  in  basic  orientation***  
N110  CYCLE71(10,1,5,0,0,0,100,100,0,1,20,5,0,2000,11,15)  
  
  
M102M102   Page  78   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  4   4.5    CYCLE800  G-­Code                    Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N111  ;;***Swivel  into  Plane_1  rotation  around    X=-­15  Grad***  
N112  CYCLE800(4,"TABEL",200000,57,0,0,50,-­15,0,0,0,0,0,1,,1)  
  
N113  ;;***Face  milling  roughing  Plane_1***  
N114  CYCLE71(35.8,25.8,5,0,0,0,100,103.6,0,5,20,5,0.2,2000,31,15)  
  
  
  
840Dsl  SINUMERIK    Operate   Page  79   M102M102  
  
Notes  
  
  
Section  4  4.6    CYCLE800  G-­Code                  Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N115  ;;  ***Face  milling  finishing  Plane_1***  
N116  CYCLE71(10,1,5,0,0,0,100,103.6,0,5,20,5,0.2,1000,12,1)  
N117  T11  D1  ;;  Endmill  D=16mm  FL=3  
N118  M6  
N119  S8000  M3  
N120  G54  G0  X0  Y0  M8  
  
N121  ;;***  Circular  pocket  milling  roughing  in  Plane_1***  
N122  POCKET4(10,0,2,-­
15,40,50,51.758,5,0.1,0.1,2000,2000,0,21,80,0,,10,2.5,0,,,10100,111,10)  
  
  
M102M102   Page  80   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Abschnitt  4   4.7    CYCLE800  G-­Code                  Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N123  ;;***  Circular  pocket  milling  finishing  in  Plane_1***  
N124  POCKET4(10,0,2,-­
15,40,50,51.76,2.5,0.1,0.1,1000,1000,0,22,80,0,,5,2.5,0,,,10100,111,10)  
  
N125  T12  D1;;    SC-­Endmill  D=10  FL=2  
N126  M6  
N127  S6000  M3  F500  
N128  G54  G0  X0  Y0  M8  
N129  ;;***Calculate  swivel  Plane  1  rotation  around    X=-­15  deg***  
N130  CYCLE800(4,"TABEL",220000,57,0,0,50,-­15,0,0,50,51.8,0,0,,1)  
  
  
840Dsl  SINUMERIK    Operate   Page  81   M102M102  
  
Notes  
  
  
Section  4  4.8    CYCLE800  G-­Code                  Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N131  ;;***Additive  rotation  around  Y=-­7  deg  from  Plane  1***  
CYCLE800(4,"TISCH",200001,57,-­35,-­24,0,0,-­7,0,0,0,0,1,,1)  
  
N132  ;;***Plunge  Pilot  Hole***  
N133  MCALL  CYCLE82(10,0,5,-­3,,1,0,1,12)  
N134  G0  X0  Y0  
N135  G0  X0  Y60  
N136  MCALL  
  
  
  
M102M102   Page  82   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  4   4.9    CYCLE800  G-­Code                  Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N137  ;;***Calculate  Swivel  Plane_1  rotation  around  X=-­15  deg***  
N138  CYCLE800(4,"TABEL",220000,57,0,0,50,-­15,0,0,50,51.8,0,0,,1)  
  
N139  ;;  ***Additive  rotation  around  Y=+7  deg  from  Plane_1***  
N140  CYCLE800(4,"TABEL",200001,30,35,-­24,0,7,0,0,0,0,0,1,,1)  
  
  
  
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  83   M102M102  
  
Notes  
  
  
Section  4  4.10    CYCLE800  G-­Code                    Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N141  ;;***Plunge  Pilot  Hole***  
N142  MCALL  CYCLE82(10,0,5,-­3,,1,0,1,12)  
N143  G0  X0  Y0  
N144  G0  X0  Y60  
N145  MCALL  
  
N147  T13  D1  ;;  SC-­Twist  Drill  D=8.5MM  
N148  M6  
N149  S4000  M3  F500  
N150  G54  G0  X0  Y0  M8  
N151  ;;***Deep  Hole  Drilling  D=8.5  ***  
N152  MCALL  CYCLE83(10,0,2,-­20,,-­5,,0,0,0,100,1,0,5,,0,1,0,1,12121112)  
N153  G0  X0  Y0  
N154  G0  X0  Y60  
N155  MCALL  
  
  
M102M102   Page  84   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
4.11  CYCLE800  G-­Code    
              Example  1:  CYCLE8003+2  Swivel  Plane  
  
N156  ;;***Calculate  Swivel  Plane_1  rotation  around  X=-­15  deg***  
N157  CYCLE800(4,"TABEL",220000,57,0,0,50,-­15,0,0,50,51.8,0,0,,1)  
  
N158  ;;  ***Additive  rotation  from  Plane_1  around  Y=-­7  deg***  
N159  CYCLE800(4,"TABEL",200001,30,-­35,-­24,0,-­7,0,0,0,0,0,1,,1)  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Section  4  
  
  
840Dsl  SINUMERIK    Operate   Page  85   M102M102  
  
Notes  
  
  
Section  4  4.12    CYCLE800  G-­Code                    Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N160  ;;***Deep  hole  drilling  D=8.5***  
N161  MCALL  CYCLE83(10,0,2,-­20,,-­5,,0,0,0,100,1,0,5,,0,1,0,1,12121112)  
N162  G0  X0  Y0  
N163  G0  X0  Y60  
N164  MCALL  
  
N165  T14  D1;;  Tap  M10x1.5    
N166  M6  
N167  S800  M3  
N168  G54  G0  X0  Y0  M8  
N169  ;;***Tapping  M10***  
N170  MCALL  CYCLE84(10,0,5,-­
12,,1,3,,1.5,0,800,800,0,1,0,0,,1.4,,,,,1001,1001002)  
N171  G0  X0  Y0  
N172  G0  X0  Y60  
N173  MCALL  
  
  
M102M102   Page  86   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  4   4.13    CYCLE800  G-­Code                      Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N174  ;;***Calculate  Swivel  Plane_1  rotation  around  X=-­15  deg***  
N175  CYCLE800(4,"TABEL",220000,57,0,0,50,-­15,0,0,50,51.8,0,0,,1)  
  
N176  ;;***  Additive  rotation  from  Plane1  around  Y=+7  deg***  
N177  CYCLE800(4,"TABEL",200001,30,35,-­24,0,7,0,0,0,0,0,1,,1)  
  
  
  
  
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  87   M102M102  
  
Notes  
  
  
Section  4  4.14  CYCLE800  G-­Code                    Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N178  ;;  ***Tapping  M10***  
N179  MCALL  CYCLE84(10,0,5,-­
12,,1,3,,1.5,0,800,800,0,1,0,0,,1.4,,,,,1001,1001002)  
N180  G0  X0  Y0  
N181  G0  X0  Y60  
N182  MCALL  
  
N183  T10  D1;;  Indexable  Alu-­Rouhing-­Endmill  D=30  FL=3  
N184  M6  
N185  S6000  M3  
N186  G54  G0  X0  Y0  M8  
N187  ;;***Swivel  into  Plane_2    rotation  around  Z=-­45  X=49.83  deg***  
N188  CYCLE800(1,"TABLE",200000,39,0,0,21.360,-­45,49.83,0,0,0,0,1,)  
  
  
M102M102   Page  88   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  4   4.15  CYCLE800  G-­Code                    Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N189  ;;  ***Face  milling  roughing  in  Plane  2  ***  
N190  CYCLE71(28.371,18.371,5,0,-­16,0,50,32,0,5,20,2,0.2,2000,31,15)  
  
  
N191  ;;  ***Face  milling  finishing  in  Plane  2  ***  
N192  CYCLE71(28.371,18.371,5,0,-­16,0,50,32,0,5,20,2,0.2,2000,12,15)  
  
  
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  89   M102M102  
  
Notes  
  
  
Section  4  4.16  CYCLE800  G-­Code                    Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N193  ;;***  Swivel  into  Plane  3  rotation  around  Z=45  X=49.83  deg***  
N194  CYCLE800(4,"TABEL",200000,39,100,0,21.36,45,49.826,0,0,0,0,1,,1)  
  
  
N195  ;;  ***Face  milling  roughing  Plane  3  ***  
N196  CYCLE71(28.371,18.371,5,0,-­16,0,50,32,0,5,20,2,0.2,2000,31,15)  
  
  
  
  
  
  
  
  
M102M102   Page  90   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  4   4.17  CYCLE800  G-­Code                    Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N197  ;;  ***Face  milling  finishing  Plane  3***  
N198  CYCLE71(28.371,18.371,5,0,-­16,0,50,32,0,5,20,2,0.2,2000,12,15)  
  
N199  T12  D1;;    Endmill  D=10  FL=2  
N200  M6  
N201  S8000  M3  
N202  G54  G0  X0  Y0  M8  
N203  ;;***Circular  pocket  roughing  Plane  3***  
N204  POCKET4(10,0,2,-­
5,18,0,21.58,2.5,0.1,0.1,1000,1000,0,21,6,0,,5,1.25,0,,,10100,111,0)  
  
  
840Dsl  SINUMERIK    Operate   Page  91   M102M102  
  
Notes  
  
  
Section  4  4.18  CYCLE800  G-­Code                    Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N205  ;;***Circular  pocket  finishing  Plane  3***  
N206  POCKET4(10,0,2,-­
5,18,0,21.58,2.5,0.1,0.1,1000,1000,0,22,6,0,,5,2.5,0,,,10100,111,0)  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
N207  ;;***  Swivel  into  Plane  2    rotation  around  Z=-­45    X=49.83  deg***  
N208  CYCLE800(1,"TABLE",200000,39,0,0,21.360,-­45,49.83,0,0,0,0,1,)  
  
  
  
  
M102M102   Page  92   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  4   4.19  CYCLE800  G-­Code                    Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N209  ;;***Circular  pocket  roughing  Plane  2***  
N210  POCKET4(10,0,2,-­
5,18,0,21.58,2.5,0.1,0.1,1000,1000,0,21,6,0,,5,1.25,0,,,10100,111,0)  
  
N211  ;;***Circular  pocket  finishing  Plane  3***  
N212  POCKET4(10,0,2,-­
5,18,0,21.58,2.5,0.1,0.1,1000,1000,0,22,6,0,,5,2.5,0,,,10100,111,0)  
  
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  93   M102M102  
  
Notes  
  
  
Section  4  4.20  CYCLE800  G-­Code                    Example  1:  CYCLE800  3+2  Swivel  Plane  
  
N213  ;;***  Swivel  into  basic  orientation  (initial  setting)***  
N214  CYCLE800(4,"TABEL",200000,57,0,0,0,0,0,0,0,0,0,1,,1)  
  
  
N215  ;;***Deselect  swivel  cycle***  
N216  CYCLE800(0,"0",200000,57,0,0,50,0,0,0,0,0,0,1,,1)  
  
N217  M30  
  
  
  
M102M102   Page  94   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  4   4.20  CYCLE800  G-­Code                    Example  2:  CYCLE800  tracking  tool    
  
When  the  option   Track
simultaneous  motion  of  the  linear  axis  with  the  movement  of  the  rotary  axis  
piece.  Attention!  all  axes  move  with  this  setting.    
This  function  requires  the  startup  up  the  5-­  
We  recommend  to  preposition  the  tool  close  over  the  workpiece  at  an    
adequate  safety  distance,  to  prevent  overtravell  of  the  linear  axes  
(software  limit  switches).  
  
Example:  15  deg    inclined  surface  on  our  workpiece  (Plane1).  
  
N100  T10  D1  ;;  Indexable  roughing  endmill  D=30  FL=3  
N101  M6  
N102  S5000  M3  
N103  G54  G0  X0  Y0        ;;  Preposition  X  Y  
N104  G0  Z60                                ;;  Preposition  Z  to  safety  position    
-­15,0,0,0,0,0,1,  ,  1)  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
N106  ;;***Face  milling  roughing  Plane_1***  
N107  CYCLE71(35.8,25.8,5,0,0,0,100,103.6,0,5,20,5,0.2,2000,31,15)  
  
  
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  95   M102M102  
  
Notes  
  
  
Section  4  4.16  CYCLE800  G-­Code                  Example  3:  CYCLE800  3+2  swivel  tool  orientation  
Application  Example  3:  swivel  tool  orientation  
  
The  following  example  shows  a  free  form  surface  cut  with  a  3-­axis  milling  
strategy  parallel  to  the  X-­axis  
  
To  improve  cutting  conditions  for  the  finishing  operation  we  recommend  to  
tilt  the  tool  orientation  45  deg  about  the  X-­Axis.  
  
approach  tool
entation  under  which  the  work-­piece  is  to  be  machined.  
We  can  use  the  same  program  as  for  the  3-­axis  roughing  tool  path  with  
vertical  spindle  orientation.  
  
When  tilting  tool  orientation  on  a  3-­Axis  tool  path,  we  speak  of  a  3+2          
machining  operation.  XYZ  moves  and  the  rotational  axes  A,C  remain      
fixed  (static)  during  machining.  
  
The  work-­ approach  tool
setting  in  the  WCS.    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Note:  only  change  in  tool  orientation  takes  place.  Linear  axes  X,Y,Z      
move  according  to  the  initial  kinematic  orientation  of  the  WCS.  
  
  
  
  
  
M102M102   Page  96   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  4   4.17  CYCLE800  G-­Code                    Example  3:  CYCLE800  3+2  swivel  tool  orientation  
Technical  drawing  example  3  
  
  
840Dsl  SINUMERIK    Operate   Page  97   M102M102  
  
Notes  
  
  
Section  4  4.17  CYCLE800  G-­Code                    Example  3:  CYCLE800  3+2  swivel  tool  orientation  
  
N100  T="BALLMILL_D6"N101  M6  
N102  S8000  M3  
N103  G17  G54  G0  X0  Y0  D1  
N104  CYCLE832(0.005,1,1)  
N110  R2=2000  ;;  Feed  rate  XY    
N120  R1=500      ;;  Feed  rate  infeed  Z    
N130  R3=1000  ;;  Feed  rate    retract  
  
N104  ;;***  Swivel  plane  initial  setting  ***  
N107  CYCLE800(4,"TABLE",200000,57,0,0,0,0,0,0,0,0,0,1,  ,1)  
  
  
  
M102M102   Page  98   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  4   4.17  CYCLE800  G-­Code                    Example  3:  CYCLE800  3+2  swivel  tool  orientation  
  
N109  G0  X-­2.1216  Y0  Z110  ;;                  Preposition  in  X  and  Y  
N110  G0  Z33.6742    M8                ;;                  Preposition  to  Safety  Distance    
  
N112  ;;***    Tilt  Tool  Orientation  X=45  deg  ***  
N113  ,  ***  Attention  Tool  is  being  tracked  !  ***  
N115  CYCLE800(4,"TABLE",111,57,  ,  ,  ,45,0,  ,  ,  ,  ,-­1,100,1)  
    
  
  
N117  ;;***  Swivel  Plane  into  base  orientation  ***  
N118  CYCLE800(1,"TABLE",200000,39,0,0,0,0,0,0,0,0,0,1,)  
N119  M30  
  
  
840Dsl  SINUMERIK    Operate   Page  99   M102M102  
  
Notes  
  
  
Section  4  4.17  CYCLE800  G-­Code                    Example  3:  CYCLE800  3+2  swivel  tool  orientation  
  
FINISH_3D_SURFACE.SPF  
  
N279  ;;  ***  This  Program  was  made  on  the  CAM  ***  
  
N280  G1  Z28.6742  F=R1  
N290  X-­2.2124  Z28.1592  F=R3  
N300  X-­2.2067  Z27.6041    
N310  X-­2.116  Z27.106    
N320  X-­1.9427  Z26.6299  F=R2  
N330  X-­1.6812  Z26.177    
N340  X-­1.3451  Z25.7765    
N350  X-­0.9445  Z25.4403    
N360  X-­0.4916  Z25.1789    
N370  X-­0.0002  Z25    
N380  X0.0078    
N390  X0.5078    
N400  X1.0078    
N410  X1.5078    
N420  X2.0078    
N430  X3    
N440  X3.2578  Z24.9867    
N450  X3.5078  Z24.9478    
N460  X3.7578  Z24.8823    
N470  X4.0078  Z24.7878    
N480  X4.2578  Z24.6604    
N490  X4.5078  Z24.494    
N500  X4.7578  Z24.2775    
N510  X4.9453  Z24.07    
N520  X5.1328  Z23.804    
N530  X5.2578  Z23.573    
N540  X5.375  Z23.2801    
N550  X5.4531  Z22.9809  F=R3  
N560  X5.4921  Z22.6951    
N570  X5.5156  Z22.0512    
N580  X5.5546  Z21.6159    
N590  X5.625  Z21.1397    
N600  X5.7265  Z20.6803    
N610  X5.8203  Z20.3397  F=R2  
N620  X5.9453  Z19.9621    
N630  X6.0078  Z19.7921    
  
  
  
  
  
  
N1070  X82.2093  Z19.6216  A3=0  B3=0  C3=1  
N1080  X82.2084  Z20.1791  A3=0  B3=0  C3=1  
N1090  X82.1211  Z20.6742  A3=0  B3=0  C3=1  
N1100  G0  Z110  A3=0  B3=0  C3=1  
N1110  M17  ;;  Return  to  main  program  
  
  
M102M102   Page  100   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  4   5.1  Information  for  the  machine  operator              CYCLE800  in  JOG  mode  
Swiveling  CYCLE800  in  JOG  mode  
  
eled  (oblique)  machining  planes  or  any  clamped  work  pieces  and  repre-­
sents  the  prerequisite  for  further  setup  operations  (scratching/measuring  
edge/corner).  
  
Swiveling  in  JOG  mode  is  supported  by  its  own  input  screen  form.  
Once  the  input  values  are  applied  and  the  NC  is  started,  the  rotary  axes  
(swivel  axes)  are  positioned  (rotated  with  manual  rotary  axes)  and  a  swivel  
frame  is  calculated  for  this  plane.  
The  swivel  frame  ensures  that  the  tool  orientation  is  aligned  perpendicular  
to  the  swivel  plane.  
  
The  following  functions  can  be  carried  out  with  "Swiveling  in  JOG":  
  
Compensation  of  basic  rotation  of  the  workpiece  on  machines  with  
swivel  tables.  
New  swiveling  or  additive  swiveling  to  any  plane  if  permitted  by  the  ma-­
chine  kinematics.  
Swiveled  plane  can  be  set  to  the  new  zero  plane.  
  
Example:    
  
In  Manual  Operation  Mode  JOG  it  is  possible  for  the  machine  operator  to  
define  a  swivel  Plane  with  the  Softkey   in  an  easy  and  fast  way.    
and  than  program  in  this  swivel  plane  with  milling  cycles  just  like  in  a  nor-­
mal  2D  Program,  or  measure  the  workpiece  with  help  of  workpiece  meas-­
uring  cycles.  
All  Programs  after  that    being  executed  in  Automatic  Mode  or  MDI  are  ref-­
erenced  than  to  this  Plane.  This  swivel  Plane  can  also  be  stored  in  the  
Work  Offset  Table  in  form  of  a  rotation.    
  
The  zero  plane  corresponds  to  the  tool  plane  (G17,  G18,  G19)  including  
the  active  zero  offset  (G500,  G54,  etc.).  Rotations  of  the  active  ZO  and    
offsets  of  the  rotary  axes  are  taken  into  account  when  swiveling  in  JOG.  
The  "Swiveling  in  JOG"  function  writes  only  rotations  either  in  the  work-­
piece  reference  ($_WPFRAME)  or  to  the  active  ZO.  
  
Machine  operators  must  be  aware  of  the  machine  position  that  the    
unswiveled  plane,  the  initial  setting  of  the  machine  kinematics  (kinematic  
chain)  or  the  tool  orientation  occupies  in  this  basic  setting.  The  machine  
manufacturer  has  defined  the  basic  machine  kinematics  setting  when  set-­
ting  up  the  "Swiveling"  or  "5-­axis  transformation  (TRAORI)"  function.  
  
  
  
The  operator/machine  setter  can  scratch  a  workpiece  or  use  a  probe  to  
measure  a  workpiece  on  any  swiveled  plane.  In  this  case,  the  determined  
values  of  the  zero  offset  refer  to  the  initial  setting  or  the  basic  setting  of  the  
machine  kinematics.  The  machine  operator  can  also  specify  the  plane  to  
be  defined  as  the  new  zero  plane.  In  this  case,  the  determined  values  of  
the  zero  offset  refer  to  the  new  basic  setting  (machine  operator).  
  
  
840Dsl  SINUMERIK    Operate   Page  101   M102M102  
  
Notes  
  
  
Section  5  5.2    Information  for  the  machine  operator                CYCLE800  in  JOG  Mode  
  
      
The  input  screen  form  for  the  "Swiveling  in  JOG"  function  corresponds  
to  a  shortened  version  of  the  CYCLE800  Swiveling  input  screen  form.  
  
The  "Retraction",  "Direction"  and  "Correct  tool"  input  fields  can  be  set        
          using  display  variants  in  $TC_CARR37  
  
  
Explanation  of  input  screen  form  parameters:  
  
Select  the  desired  Swivel  data  table  under  TC  (in  our  example  is  the  
Tool  carrier  the  Table).  
Retract:    Select     automatic  retract  to  retract  position  
specified  in  $TC_CARR38-­40.  
(Absolute)  or   incremental).  
The  next  input  box  allows  to  select    between  Swivel  Mode  
or    
If  Swivel  Mode  direct  input  for  A  and  C  the  desired  Angles  for  each  
rotary  axis.  (only  available  for  machines  with  Swivel  Rotary  Kine-­
matics).    
  
  
  
  
  
M102M102   Page  102   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  4   5.1  Information  for  the  machine  operator              CYCLE800  in  JOG  mode  
  
:  Input  with    X  Y  Z    the  desired  Swivel  
Angles  as  a  rotation  about  the  linear  axes.  
   determines  in  which  of  the  two  available          
                    possibilities  a  work  plane  is  reached.  Usually,  only  one  of  these    
                    solutions  is  technologically  suitable.  
                    The  solutions  differ  by  180  degrees  in  each  case.  Selecting  the      
                    "minus"  or    "plus"  direction  determines  which  of  the  two  possible    
                    solutions  is  to  be  applied.  The  axis  to  be  affected  by  this  setting  is  to    
                    be  setup  in  the  $TC_CARR37[n]  (display  variants  of  input  mask    
                    CYCLE800).  
          The  last  input  box  allows  tracking  of  the  Tool  tip  during  positioning  of            
                    the  rotary  axes.  
    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Note:  
  
Swivel  mode  you  must  input  the  actual  Axes  position  of  the      
rotary  axes  for  A  and  C.    
If  there  is  aInput  for  the  C-­axis  only,  than  there  is  a  Work  plane  transfor-­
mation  activated.  For  example  at  C180  the  Coordinate  system  is  rotated  
180  degrees.  
  X+  becomes    X  and  Y+  becomes  Y-­,  and  the  C-­Axis  positions  to180  deg.    
The  same  example  In  Swivel  mode   does  not  rotate  the  Co-­
ordinate  system  and  the  C-­Axis  does  not  change  position,  since  there  is  no  
change  in  Tool  Vector  orientation  at  a  rotation  about  the  Z-­Axis.  
    
  
For  a  detailed  explanation  about  settings  in  Swivel  Cycle  refer  to    
chapter  2.2  -­  2.12  Setting  up  Swivel  CYCLE800  
  
  
  
  
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  103   M102M102  
  
Notes  
  
  
Section  5  5.2    Information  for  the  machine  operator                CYCLE800  in  JOG  Mode  
Application  Example:  
  
This  example  shows  how  the  machine  operator  can  create  a  swiveld  
work  plane  and  save  this  new  plane  as  a  coordinate  rotation  in  the  zero  
offset  table  for  the  active  work  offset  (G54).  
  
Procedure:  
kinematic  types  are  set  up)  
Input  angle  of  rotation  about  X-­15  deg  
Press   -­  Table  swivels  AC-­Axis  into  the  new  work  plane.  
Name  of  active  swivel  
data  record  
  
  
M102M102   Page  104   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  5   5.1  Information  for  the  machine  operator              CYCLE800  in  JOG  mode  
  
the  aktive  swivel  plane  as  zero  plane  in  the  
workoffset  G54    
  
  
  
  
  
  
Rotation  is  now  stored  in  the  Zero  offset  table  for  the  active  work    
offset  G54  (NPV1)  and  is  set  active.  
                      
  
  
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  105   M102M102  
  
Notes  
  
  
Section  5  5.1  Information  for  the  machine  operator              CYCLE800  in  JOG  mode  
  
To  reverse  the  process  and  return  the  machine    
Delete  0-­level -­key  first.  With  the  Softkey  
Offset  table  back  to  0.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
            
          and  all  rotations  are  set  back  to  zero    
  
  
With   -­ the  rotary  axes    
          return  to  initial  zero  position.  
  
  
M102M102   Page  106   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  5   5.1  Information  for  the  machine  operator              CYCLE800  in  JOG  mode  
The  last  step  is  always  to  cancel  CYCLE800.                                                
-­  
Note:  
  
Swivel  data  record  name  and  symbol  in  the  right  upper  corner  next  
to  T,F,S  are  gone.  
  
  
S
in
um
er
ik
 
This  document  was  produced  for  training  purposes.                                                                                                                                                                                                                                                                                                                                                        
                        840Dsl  SINUMERIK    Operate   Page  1   M103M103  
  
5-­Axis  Transformation  TRAORI  
  
Brief  discription  
Objective  of  the  module:  
This  Module  explains  the  use  of  the  5-­Axis  Transformation  TRAORI  .  
  
Description  of  the  Module:  
This  Module  shows  the  application  of  the  5-­Axis  Transformation  TRAORI,  with  help  of  practical    
programming  examples  and  explanation  through  graphical  illustrations  
M103  
Contents  :  
Theory  
Information  for  the  Programmer  
Programming  with  TRAORI  on  the  machine  
Programming  with  TRAORI  on  the  CAM  system  
Information  for  the  machine  Operator  
Appendix  
  
M103M103   Page  2   840Dsl  SINUMERIK    Operate  
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
    M103  
   M103  
      
      Notes    
  
  
840Dsl  SINUMERIK  Operate                                                                                                                              Page  3                                                                                                                                                                                              M103M103  
TRAORI:  Description  
This  Module  shows  the  application  of  the  5-­Axis  
Transformation  TRAORI,  with  help  of  practical    
programming  examples  and  explanation  through  
graphical  illustrations  
                
            
5-­axis    
transformation  
TRAORI:  
END  
5-­axis    
transformation  
TRAORI:  
START  
Theory  
Information  for  
the  programmer  
Programming  
with  TRAORIon  
the  machine  
Programming  with  
TRAORI  on  the  
CAM  system  
Appendix  
Information    
for  the  machine    
operator  
  
  
M103M103   Page  4   840Dsl  SINUMERIK    Operate  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  5   M103M103  
  
Notes  
Section  1  1.1  First  for  the  Theory              What  are  the  needs  of  mold  &  tool  making  ?    
5-­axis  machining  in  
modern  milling  centres  
  
The  demands  placed  on  moulds,  
surface  quality  and  machining  
speed  for  stock  removal,  in  tool  
and  mould  making  in  particular,  
are  rising  dramatically:  
To  obtain  optimum  cutting  condi-­
tions  when  machining  surfaces  
with  a  three-­dimensional  curve  1.  
  
  
  
  
..  to  machine  geometries  anywhere  
in  the  area  
2    (the  setting  angle  of  the  tool  axis  
  
  
3  +  2  axes    
  
  
  
  
  
  
  
  
....  or  to  mill  deep  cavities  3    
  
Dynamic  5-­axis  machining  
  
  
  
  
  
  
  
  
  
  
1  
2  
In  addition  to  the  3  linear  axes  X,  Y  
and  Z,  2  rotary  axes  A,  B  or  C  are  
also  required.  
3  
  
  
M103M103   Page  6   840Dsl  SINUMERIK    Operate  
Notes  
  Section  1   1.2  First  for  the  Theory              Milling  with  3,  3+2  or  5  Axes?  
  
Freeform  surfaces  with  uniform  convex  curves  in  particular  are  convention-­
ally  produced  with  3  controlled  axes.  For  deep  cavities  or  frequent  curva-­
ture  changes,  however,  5  controlled  axes  are  required.  
Sinumerik  840D  naturally  supports  all  machining  strategies  
  
The  orientation  of  the  cutter  remains  unchanged  along  the  entire  cutter  
path.  The  cutting  conditions  at  the  cutter  tip  are  never  perfect.  
  
In  these  machine  tools  the  orientation  of  the  tool  or  the  position  of  the  table  
can  be  altered,  e.g.  by  resetting.  
  
In  the  picture  on  the  left  the  cutter  is  working  with  optimum  cutting  condi-­
tions.  The  cutting  conditions  deteriorate  as  the  cutter  moves  up  towards  
the  top  or  to  the  side  of  the  workpiece.  In  order  to  obtain  optimum  cutting  
conditions  here  too,  the  table  is  swiveled.  To  machine  a  freeform  surface  
completely,  the  table  often  has  to  be  swiveled  several  times  in  various  di-­
rections.  
  
  
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  7   M103M103  
  
Notes  
Section  1  1.3  First  for  the  Theory              Milling  with  3,  3+2  or  5  Axes?  
Advantage:    
The  orientation  of  the  tool  can  be  optimized  along  the  entire  path,  synchro-­
nously  to  the  linear  movement  of  the  tool.  In  this  way  optimum  cutting  con-­
ditions  are  maintained  throughout  the  path.  
  
  
M103M103   Page  8   840Dsl  SINUMERIK    Operate  
Notes  
  Section  1   1.4  First  for  the  Theory              What  moves  and  how?  
Various  designs  of  5-­axis  machine  kinematics      
  
  
840Dsl  SINUMERIK    Operate   Page  9   M103M103  
  
Notes  
Section  1  1.5  First  for  the  Theory              What  moves  and  how?  
  
A  5-­axis  machine  can  control  tool  movements  in  5  axes:  the  3  familiar  
linear  axes  X  Y  Z  plus  an  additional  2  rotary  axes.  The  two  rotary  axes  
have  different  kinematics  solutions  that  are  part  of  a  kinematic  chain.  The  
most  common  ones  are  shown  here  diagrammatically.  Machine  tool  manu-­
facturers  are  constantly  developing  new  kinematics  solutions  for  different  
requirements.  With  Sinumerik  840D,  thanks  to  the  integral  kinematics  
want  to  go  into  detail  about  hexapods,  etc.  here.  
  
  
  
  
*  Term:  If  the  rotary  axis  is  not  perpendicular  to  a  linear  axis,  
      it  is  referred  to  as  a  .  nutated.  axis.  
2  Rotary  axes  in  the  head   1      Fork   2      nutated  *  
2  Rotary  axes  in  the  table   3      Rotate/Swivel   4      nutated  *  
1  Rotary  axis  in  the  head  
1  Rotary  axis  in  the  table  
5      Rotate/Fork    
  
  
M103M103   Page  10   840Dsl  SINUMERIK    Operate  
Notes  
  Section  1   1.6  First  for  the  Theory              What  moves  and  how?  
Kinematic  independent  programming  
  
Depending  on  the  machine  kinematics,  completely  different  machine  
movements  may  be  required  to  machine  the  same  surface.  The  machine  
kinematics  in  example  2  are  much  more  suitable  for  the  production  of  this  
workpiece.  
Note:  
  
When  programming  on  a  machine  with  Sinumerik  840D  there  is  generally  
no  need  to  worry  about  machine  kinematics  and  tool  length.  All  you  need  
to  think  about  is  the  relative  movement  between  the  tool  and  the  work-­
piece.  The  control  system  does  the  rest.  
EXAMPLE  
  
Machining  a  cylinder  jacket  surface    
  
  
1  
    Sequence  of  movements  for  head/      
    head  kinematics  
    To  describe  a  simple  circumference,        
    describe  a  semicircle  in  X/Y  with        
    radius    =  cylinder  radius.  During  the        
    movement    the  tool  must  rotate      
    around  the  Z  axis  so  that  the  cutter      
    Is  always  perpendicular  to  the  
    surface.  
  
  
  
  
  
2  
    Sequence  of  movements  for  table/      
    table  kinematic  
Swivel  90°  around  A  
C  axis  turns  to  position  +90°,    
          then  -­90°  
Y  axis  moves  in  a  linear  direction            
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  11   M103M103  
  
Notes  
Section  1  1.7  First  for  the  Theory              What  moves  and  how?  
The  longer  the  tool  in  the  example,  
the  larger  the  traversing  move-­
ments  of  the  axis  slides.  
Each  change  of  tool  length  would  
require  the  CNC  program  to  be  
recalculated  on  the  CAM  system.  
Their  for  it  is  a  requirement  to  the  
control,  that  the  computed  NC-­
program  is  usable  for  any  tool  
length.  This  active  tool  length  com-­
pensation  is  a  integrated  function  
of  Sinumerik  840D.      
There  is  no  need  to  worry  about  
tool  length.  The  control  system  
takes  care  of  it  automatically.  
  
Influence  of  tool  length  on  machine  axis  movement  
  
The  machine  movements  required  for  5-­axis  machining  depend    
on  the  tool  length.  
  
Tool  length  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Note:    
Depending  on  the  tool  length,  it  can  happen  that  the  traversing  range  of  an  
axis  is  overrun  and  the  axis  runs  on  to  the  limit  switch,  even  though  all      
values  in  the  CNC  program  are  within  the  work  area.  A  distinction  is  made  
  
  
  
Influence  of  a  change  in  orientation  on  the  movement  of  the  
linear  axes  
  
Change  of  tool  orientation  
  
  
  
  
  
  
  
The  examples  show  that  with  5-­axis  machining  it  is  vital  that  the  CNC  pro-­
grams  are  not  specific  to  the  machine  or  tool.  In  order  to  manage  all  these  
Simple  movements  can  be  trans-­
formed  into  a  complex  curve  by            
simultaneously  changing  the  tool        
orientation.    
To  mill  a  straight  line  with  no  change  
of  orientation,  the  tool  holder                    
describes  a  straight  line  ( ).                          
If  the  orientation  changes  at  the  same  
time,  the  tool  tip  describes  a  curve  
( ).  In  order  to  mill  a  straight  line,  the  
tool  holder  must  compensate,  in  a  
way  that  the  tool  tip  describes  the  
desired  straight  line  as  the  orientation  
changes( ).                                                                      
The  example  with  the  yellow  linear  
movement,  works  with  active  5-­axis  
transformation  TRAORI.  
  
  
  
  
M103M103   Page  12   840Dsl  SINUMERIK    Operate  
NotesExample:    Tool  Carrier  Head    
  
Without  TRAORI  
  
The  control  system  disregards  the  tool  length.  It  rotates  around  the  center  
of  rotation  of  the  axis.  The  tool  tip  moves  out  of  position  and  does  not  re-­
main  fixed.  Compensation  values  for  Toollength  from  the  Tooltip  to  the  
swivel  point  have  to  be  caculated  by  the  CAM  System.  
Tool  Length  offset  compensation  on  the  control  is  not  possible.    
  
Section  1   1.8  First  for  the  Theory              Machine-­independent  CNC  programs  
Programming  TRAORI  
  
Effects  of  the  TRAORI  command  on  Sinumerik  840D:  
  
Compensation  movements  in  X,  Y  and  Z  are  being  calculated  with  a  
change  in  tool  orientation,  where  the  tooltip  remains  fixed  to  a  posi-­
tion  (only  rotary  axes  move).    
The  current  tool  length  is  taken  into  consideration  when  calculating  
the  traversing  movements  
Programmed  feedrate  relates  to  tool  tip  
Workpiece  
Tool  Tip  
Swivel  Point  
  
  
840Dsl  SINUMERIK    Operate   Page  13   M103M103  
  
Notes  
Section  1  1.9  First  for  the  Theory              Machine-­independent  CNC  programs  
  
With  TRAORI  
  
The  control  system  only  changes  the  orientation  of  the  tool  (B-­axis),  the  
position  of  the  tool  tip  remains  fixed.  The  necessary  compensating  move-­
ments  in  X,  Y  and  Z  are  calculated  automatically.  
In  the  CNC  program  an  orientation  change  is  programmed  with  no  other  
traversing  movement.  The  orientation  change  can  be  programmed  with    
A3,  B3,  C3,  irrespective  of  the  machine  kinematics.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Calculated  Intermidate  
Workpiece  
Tool  Tip  
  
  
M103M103   Page  14   840Dsl  SINUMERIK    Operate  
Notes  
  Abschnitt  2   2.1    Information  for  the  programmer                Machine-­independent  CNC  programs  
Programming  with  TRAORI  has  many  advantages  
  
Tool  length  and  workpiece  zero  offsets  can  be  altered  on  the  control  at  
any  time.    
The  control  compensates  with  active  TRAORI  automatically  for  changes  
in  tool  length  and  shift  of  workpiece  offsets.  
The  feedrate  is  relative  to  the  tool  tip  and  compensation  moves  of  the  
linear  axes  are  preformed  to  compensate  rotary  axis  movement.  
To  achieve  ideal  cutting  conditions  when  machining  free  form  surfaces,  
it  is  necessary  to  change  tool  orientation.  
  
All  of  the  above,  allows  greater  flexibility  in  machining  of  complex  5-­Axis  
parts.    
  
TRAORI  is  usually  already  called  in  the  CNC  program  obtained  from  the  
CAM  system.  The  CNC  program  then  simply  contains  the  points  
X,  Y  and  Z  which  are  to  be  approached,  and  the  direction  vector  
A3,  B3,  C3,  which  describes  the  tool  orientation.  
  
When  transformation  is  enabled,  
the  positional  data  (X,  Y,  Z)  always  
relate  to  the  tip  of  the  tool  (TCP).  
Changing  the  position  of  the  rotary  
axes  involved  in  the  transformation  
causes  compensating  movements  
of  the  remaining  linear  machine  
axes  that  the  position  of  the  tool  
tip  is  unchanged  
  
  
  
  
  
  
  
Programming  
  
TRAORI(n)                                              ;;  Transformation  on  
TRAFOOF                                                ;;  Transformation  off  
  
Explanation  of  the  commands  
Note:  
  
Depending  on  the  configuration,  TRAORI  can  reset  the  active  work  offset  
TRAORI  command.  
  
without  5-­axis  transformation  
     with  5-­axis  transformation  
  
TRAORI                                            Activates  the  first  programmed  orientation  transformation  
_________________________________________________________________________  
  
TRAORI  (n)                                  Activates  the  orientation  transformation  programmed  with  n  
_______________________________________________________________________  
n                                                                    Transformation  number  (n  =  1  or  2),  TRAORI(1)  corres-­      
                                                                          ponds  to  TRAORI.  
_______________________________________________________________________  
TRAFOOF                                      Switches  transformation  off  
  
  
840Dsl  SINUMERIK    Operate   Page  15   M103M103  
  
Notes  
Abschnitt  2  2.2  Information  for  the  programmer              Tool  orientation  
The  components  of  the  direc-­
tional  vector  1  are  pro-­
grammed  with  A3,  B3,  C3.  
The  vector  points  in  direction  
of  the  tool  holder.  The  length  
of  the        vector  is  meaning-­
less.  
Vector  components  that  are  
not  programmed  are  set  
equal  to  zero.  
  
N10  TRAORI  
N20  G54  
N30  G1  X0  Y0  Z0  A3=1  
B3=1  C3=1  F10000  
  
  
In  this  example  the  tool  points  to  position  (0,0,0)  and  represents  the  diago-­
nal  of  a  cube  (35.26°  in  the  XY  plane)  
  
  
Note:  
  
The  use  of  directional  vectors  is  recommended  as  preferred  programming  
method.  The  vector  resolution  should  be  set  relatively  high.  Values  of  5  
decimal  places  for  linear  axes  and  6  decimal  places  for  directional  vectors  
produce  good  results.  
  
If  C3=1  is  programmed  only,  a  alignment  of  the  tool  axis  along  the  Z  axis  
takes  place.  This  comes  in  handy  if  the  tool  needs  to  be  retracted  in  Z      
direction  out  of  a  hole.    
Directional  vectors  (A3=  B3=  C3=)  
  
Fundamentals  
  
A  5-­axis  simultaneous  machining  operation,  needs  in  addition  to  the  nomi-­
nal  position  of  the  point  to  be  approached,  the  orientation  of  the  tool.  
There  are  several  variations  of  how  the  tool  orientation  can  be  described.  
In  general  5-­axis  programs  are  generated  with  a  CAM  system  and  the  
postprocessor  determines  which  orientation  method  is  to  be  used.  
  
Explanation  of  the  commands  
  
  
                                                                                                                            (recommended).  
  
  
M103M103   Page  16   840Dsl  SINUMERIK    Operate  
Notes  
  Abschnitt  2   2.3    Information  for  the  programmer                Tool  orientation  
Direct  rotary  axes  positions    (A=    B=    C=)  
  
  
Explanation  of  the  commands  
  
  
                                                                                                                  movements  A,  B,  C.  Rotary  axes  are      
                                                                                                                  traversed  synchronous  to  the  tool  path.  
  
  
  
  
  
  
The  same  position  with  tool  orien-­
tation  can  also  be  programmed  
with  specification  of  rotary  axes  
positions.  
The  position  in  the  example  is  pro-­
grammed  as  follows.  
  
N10  TRAORI  
N20  G54  
N30  G1  X0  Y0  Z0  B=54.73561  
C=45  F10000  
  
  
  
  
  
  
In  this  example  the  tool  points  to  position  (0,0,0)  and  represents  the  diago-­
nal  of  a  cube  (35.26°  in  the  XY  plane)  
  
  
Note:  
  
As  resolution  the  same  number  of  decimals  can  be  used  for  the  rotary  
axes  positions  as  for  the  linear  axes.  A  higher  resolution  of  decimal  places  
is  not  required.  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  17   M103M103  
  
Notes  
Abschnitt  2  2.4    Information  for  the  programmer                Tool  orientation  
Tool  orientation  with  LEAD  and  TILT  in  conjunction  with  ORIPATH  
  
  
Explanation  of  the  commands  
  
LEAD                            Lead  angle  for  programming  tool  orientation.Angle  relative  to  the  surface  normal  vector  in  the  plane      
                                                spanned  by  the  path  tangent  and  surface  normal  vector.      
TILT                                Tilt  angle  for  programming  tool  orientation  
                                                Describes  rotation  of  Lead  angle  around  surface  normal    
                                                vector  
  
The  resulting  tool  orientation  is  determined  by:  
the  path  tangent  A  
the  surface  normal  vector  B  at  the  start  of  the  block  A4,  B4,  C4  and  
at  the    end  of  the  block  A5,  B6,  C5  
the  lead  angle  LEAD  1  
the  tilt  angle  TILT  2    at  end  of  block.  
                    LEAD  describes  the  angle  between  the  surface  normal  and  the  new      
                    tool  orientation,  in  the  direction  of  the  path  tangent.  If  the  tool  is  also      
                    rotated  about  the  surface  normal  from  this  position,  this  corresponds      
                    to  the  TILT  angle.  
        
  
N100  TRAORI  
N110  G54  
N120  ORIWKS  
N130  ORIPATH  
N140  CUT3DF  
N150  G0  X=260  Y0  A3=1  B3=0  C3=0  
N160  G1  Z0  LEAD=25  TILT=15    
N170  G41  X240.000  Y0.000  A4=0.000      
                    B4=0.000  C4=1.000  
  
  
  
LEAD  and  TILT  are  also  pro-­
grammed,  if  a  fixed  Lead  and  Tilt  
angle  for  the  tool  is  required,  for  
machining  of  free  form  surfaces,  to  
avoid  machining  in  tool  center,  
where  cutting  speed  =  0.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Picture:  
  
A4,  B4,  C4  surface  normal  vectors  at  
the  beginning  of  block  
  
A5,  B5,  C5  surface  normal  vectors  at  
the  end  of  block  
  
  
M103M103   Page  18   840Dsl  SINUMERIK    Operate  
Notes  
  Section  2   2.5    Information  for  the  programmer                Tool  orientation    
Programming  in  Euler  angles  ORIEULER  (default)  
  
The  values  programmed  during  orientation  programming  with  A2,  B2,  C2  
are  interpreted  as  Euler  angles  (in  degrees).  
  
Starting  with  initial  orientation  1  .  The  orientation  vector  results  from  turning  
a  vector  in  the  Z  direction  firstly  with  A2  around  the  Z-­axis  2,  then  with  B2  
around  the  new  X-­axis  3  and  lastly  with  C2  around  the  new  Z  axis.  
  
Note:  
In  this  case  the  value  of  C2  (rotation  around  the  new  Z  axis)  is  meaning-­
less  and  does  not  have  to  be  programmed.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Orientation  angles  via  Euler  angle,  for  the  orientation  axes    
Default  settable  with  $MC_ORI_DEF_WITH_G_CODE  =  1  
ORIEULER.MPF  
N010  TRAORI  
N020  G54  G0  X0  Y0  Z0  
N030  ORIWKS  
N040  ORIVECT  
N050  G1  A2=0  B2=0  F1000  
N060  G1  A2=90    B2=45    
  
  
  
N888888  M30  
Example  
1   2  
3  
  
  
840Dsl  SINUMERIK    Operate   Page  19   M103M103  
  
Notes  
Section  2  
ORIRPY.MPF  
N010  TRAORI  
N020  G54  G0  X0  Y0  Z0  
N030  ORIWKS  
N040  ORIVECT  
N050  C2=0  B2=0  A2=0  
N060  C2=90  B2=45  
N070  C2=90  B2=45  A2=30  
  
  
  
N888888  M30  
Programming  in  RPY  angles  ORIRPY  
  
The  values  programmed  with  A2,  B2,  C2  for  orientation  programming  are  
interpreted  as  an  RPY  angle  (in  degrees).  
  
Starting  with  initial  orientation  1  .  The  orientation  vector  results  from  turning  
a  vector  in  the  Z  direction  firstly  with  C2  around  the  Z  axis,  then  with  B2  
around  the  new  Y  axis  2  and  lastly  with  A2  around  the  new  X  axis  3  
  
Note:  
In  contrast  to  Euler  angle  programming,  all  three  values  here  have  an  ef-­
fect  on  the  orientation  vector.    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Orientation  angles  via  RPY  angle,  for  the  orientation  axes                                              
Default  settable  with  $MC_ORI_DEF_WITH_G_CODE  =  0  
      
  
  
  
1   2  
3  
Example  
2.6    Information  for  the  programmer  
              Tool  orientation    
  
  
M103M103   Page  20   840Dsl  SINUMERIK    Operate  
Notes  
  Abschnitt  2   2.7    Information  for  the  programmer                Tool  orientation    
Sample  CNC-­Programm  
  
Swivel.  MPF                                                  ;;  Program  name  
  
N01  TRAORI                                                ;;  Call  5-­axis  transformation  
N02  T1  F1000  S10000  M3      ;;  Technology  data,  tool,  speed,  etc.  
N03  G54                                                              ;;  Zero  offset  
N04  G0  X0  Y0  Z5                                  ;;  Start  point,  
A3=0  B3=0  C3=1                                    ;;  Tool  parallel  to  Z  axis  
N05  G1  Z-­1                                                      ;;  Travel  command,  infeed  
N06  X10  Y0  A3=1  C3=1              ;;  Linear  movement  with  orientation  change        
                                                                                                to  45°  in  the  X/Z  plane  
N07  TRAFOOF                                          ;;  5-­axis  transformation  off  
N07  M30                                                              ;;  End  of  program  
  
  
  
In  this  example  a  straight  line  is  milled  from  X0  to  X10.  The  tool  orientation  
changes  from  90°  to  45°.  
  
  
  
With  TRAORI  there  is  no  need  to  worry  about  the  actual  machine  
movement  when  programming  a  straight  line.  The  end  point  is  ap-­
proached  exactly,  and  the  tool  tip  describes  a  straight  line.  
  
  
840Dsl  SINUMERIK    Operate   Page  21   M103M103  
  
Notes  
Abschnitt  2  2.8    Information  for  the  programmer                Tool  orientation    
G1  X  Y  Z  A  B  C                              Direct  programming  of  the  movement  of  the  rotary  axes  
                                                                                  A,  B  or  C.  The  rotary  axes  are  moved  synchronously  to        
                                                                                  the  tool  path.  
_________________________________________________________________________  
  
ORIEULER                                                Orientation  programming  on  the  basis  of  Euler  angles    
                                                                                      (default)  
ORIRPY                                                          Orientation  programming  on  the  basis  of  RPY  angles.  
                                                                                      This  is  only  effective  if      
                                                                                      $MC_ORI_DEF_WITH_G_CODE  =  1  is    set          
                                                                                      Otherwise  defined  on  the  basis  of  machine  data.  
  
G1  X  Y  Z  A2=  B2=  C2=            Programming  on  the  basis  of  Euler  angles  or  RPY    
                                                                                        angles  (roll  pitch  yaw)    
                                                                                        The  interpretation  is  defined  on  the  basis  of  machine      
                                                                                        data    
                                                                                        Programming  in  Euler  or  RPY  angles  via  A2,  B2,  C2  or      
                                                                                        programming  of  directional  vector.  The  directionalvector  points  from  the  tool  tip  towards  the  tool  holder.  
  
G1  X  Y  Z  A3=  B3=  C3=            Programming  of  the  directional  vector      
                                                                                        (recommended)  
_________________________________________________________________________  
  
G1  X  Y  Z  A4=  B4=  C4=            Programming  of  the  surface  normal  vector  at  start  of          
                                                                                        block  
                                                                                        This  information  is  used  by  CUT3DF  for  5-­axis    
                                                                                        machining.  
                                                                                        Lead  and  Tilt  can  also  be  used  to  program  the  
                                                                                        tool  orientation.  The  lead  and  tilt  angle  relates  to  the      
                                                                                        normal  vector  A4  B4  C4.  
G1  X  Y  Z  A5=  B5=  C5=            Programming  the  surface  normal  vector  at  end  of  block  
_________________________________________________________________________  
  
LEAD                                                                    Lead  angle  for  programming  tool  orientation.  Angle      
                                                                                        relative  to  the  surface  normal  vector  in  the  plane      
                                                                                        spanned  by  the  path  tangent  and  surface  normal              
                                                                                        Vector.      
                                                                                          
TILT                                                                        Tilt  angle  for  programming  tool  orientation.  
                                                                                        The  TILT  angle  describes  the  rotation  of  the  lead  
                                                                                        angle  about  the  surface  normal  vector  
                                                                                        (see  illustration  on  page  )  
  
Overview  of  tool  orientation  commands  
  
  
M103M103   Page  22   840Dsl  SINUMERIK    Operate  
Notes  
  Abschnitt  2   2.9    Information  for  the  programmer                Orientation  reference  of  axes  ORIMKS/ORIWKS  
  
Orientation  reference  of  axes  ORIMKS/ORIWKS  
  
Explanation  of  commands  
  
For  orientation  programming  in  the  workpiece  coordinate  system  using  
Euler  or  RPY  angle  or  
orientation  vector  
the  motion  of  the  rotary  motion  can  be  set  using  ORIMKS/ORIWKS.  
  
ORIMKS                                                
                                                                                                                                                                
The  reference  system  for  the  orientation  vector  is  the  machine  coordinate  system.    
The  movement  executed  by  the  tool  depends  on  the  machine  kinematics.    In  the  
case  of  a  change  in  orientation  of  a  tool  tip  at  a  fixed  point  in  space,  linear  interpo-­
lation  takes  place  between  the  rotary  axis  positions.    
Which  movements  the  machine  actually  executes  depend  on  the  machine  kine-­
matics.  
With  ORIMKS  you  can  program  actual  machine  movements,  for  example,    to  
avoid  collisions  with  devices,  etc.  
$MC_ORI_IPO_WITH_G_CODE  =  0  identical  with  ORIAXES  
  
  
ORIWKS      
    
The  reference  system  for  the  orientation  vector  is  the  workpiece  coordinate  sys-­
tem.    
The  movement  executed  by  the  tool  does  not  depend  on  the  machine  kinematics.  
With  an  orientation  change  with  a  fixed  tool  tip,  the  tool  moves  in  the  plane  set  up  
by  the  start  and  end  vectors.  
ORIWKS  is  the  basic  setting.  In  the  case  of  a  5-­axis  program,  if  it  is  not  immedi-­
ately  obvious  on  which  machine  it  is  to  run,  always  choose  ORIWKS.    
$MC_ORI_IPO_WITH_G_CODE  =  1  identical  with  ORIVECT.  
  
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  23   M103M103  
  
Notes  
Abschnitt  2  2.10    Information  for  the  programmer                  Orientation  interpolation  for  5-­Axis  applications    
  
Orientations  interpolation  for  5-­Axis  applications    
  
A  5-­axis  machine  can  position  the  tool  in  any  orientation  to  the  workpiece,  
subject  of  course  to  the  machine  kinematics.  In  order  to  move  from  one  
orientation  to  another,  intermediate  positions  must  be  interpolated.  The  
path  from  the  start  to  the  end  orientation  is  described  in  this  way.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
1  
2  
  
  
In  orientation  interpolation  we  differentiate  between  linear  interpolation,  
great  circle  interpolation,  conical  surface  interpolation  and  curve  interpola-­
tion  
  
  
Linear  interpolation  ORIAXES  
  
In  linear  interpolation  from  a  start  1  to  an  end  orientation  2  the  necessary  
rotary  axis  movements  are  broken  down  into  equidistant  sections.  
  
Just  as  in  the  2D  range  between    
2  points,  there  are  any  number    
of  paths  between  2  orientations.  
In  2D  interpolation  we  are    
limited  to  
  
Straight  line  (G1)  1  
Circle  (G2,  G3)  2  
Polynomial,  B-­spline    
  
1  2  
This  means  that  the  orientation  vec-­
tor  does  not  describe  a  defined  sur-­
face.    
  
This  interpolation  is  therefore  not  
always  suitable  for  circumferential  
milling.  
  
The  movement  can  be  very  similar  
to  the  surface  of  a  cone,  so  it  is  im-­
portant  not  to  confuse  the  function  
with  conical  surface  interpolation.  
Explanation  of  orientation  interpolation  command  
  
                                                                          
ORIAXES                Axis  Interpolation                                
                                                Linear  interpolation  of  the  machine  axes  or  interpolation  of  the                
                                                rotary  axes  using  polynomials  (if  POLY  is  active)  
  
  
M103M103   Page  24   840Dsl  SINUMERIK    Operate  
Notes  
  Abschnitt  2   2.11    Information  for  the  programmer                  Orientation  interpolation  for  5-­Axis  applications    
  
Great  circle  interpolation  ORIVECT  /  ORIPLANE/  ORIPATH  
  
In  this  interpolation  process  the  path  from  the  start  1  to  an  end  orientation  
2  is  interpolated  in  such  a  way  that  the  orientation  vector  runs  in  the  plane  
that  is  spanned  by  the  starting  vector  and  the  final  vector.  
  
1  
1.1  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Each  rotary  axis  approaches  equidistant  angles.  This  type  of  orientation  
interpolation  can  be  used  for  the  precise  machining  of  inclined,  plane  walls  
in  one  block,  for  example.  
  
Applications:  
ORIVECT  should  be  used  for  structural  components  in  aviation  industry.      
ORIPATH  should  be  used  for  face  milling  in  mold  making  applications.  
  
Explanation  of  orientation  interpolation  commands  
  
                                                                          Vector  interpolation  
  
ORIVECT                                          Interpolation  of  the  orientation  vector  in  oneplane  (great  circle  interpolation)  
  
ORIPLANE                                      Interpolation  in  one  plane  (great  circle  interpolation),    
                                                                            synonym  of  ORIVECT  
  
ORIPATH                                          Tool  orientation  relative  to  the  path.  A  surface  is  spanned      
                                                                            with  the  normal  vector  and  path  tangent,  which  defines  the    
                                                                            meaning  of  LEAD  and  TILT  at  the  end  point.  This  means      
                                                                            that  the  path  reference  applies  only  for  the  definition  of  the      
                                                                            end  orientation  vector.  Great  circle  interpolation  is  per    
                                                                            formed  from  the  start  to  the  end  orientation.  LEAD  and      
                                                                            TILT  do  not  simply  mean  lead  and  tilt  angle.  They  are  de    
                                                                            fined  as  follows:  LEAD  describes  the  rotation  in  the  plane      
                                                                            that  is  spanned  by  the  normal  vector  and  path  tangent;;      
                                                                            TILT  then  defines  the  rotation  around  the  normal  vector.  In      
                                                                            other  words  they  both  have  the  meaning  of  theta  and  phi      
                                                                            in  a  spherical  coordinate  system,  with  the  normal  vector  as  
                                                                            the  Z  axis  and  the  tangent  as  the  X  axis.  
  
  
840Dsl  SINUMERIK    Operate   Page  25   M103M103  
  
Notes  
Abschnitt  2  2.12    Information  for  the  programmer                  Orientation  interpolation  for  5-­Axis  applications    
  
Example:  ORIVECT  
  
In  great  circle  interpolation  the  orientation  should  change  from  start  A3  =  
sx,  B3  =  sy,  C3  =  sz  to  end  A3  =  ex,  B3  =  ey,  C3  =  ez.  No  value  is  zero,  
i.e.  the  orientation  is  inclined  (s  =  start  orientation,  e  =  end  orientation).  
  
Reorientation  in  great  circle  interpolation  takes  place  in  a  plane  3.    
The  line  on  the  cone  is  referred  to  as  a  great  circle  4.  In  the  illustration  the  
C  axis  rotates  through  85°.  The  A  axis  swivels  from  60°  to  30°.  Speed  con-­
trol  for  the  reorientation  is  continuous.  
  
1  =  start  orientation,  2  =  end  orientation  
  
  
  
M103M103   Page  26   840Dsl  SINUMERIK    Operate  
Notes  
  Section  2   2.13    Information  for  the  programmer                  Orientation  interpolation  for  5-­Axis  applications    
Great  Circle  Interpolation  
  
G-­Codes  ORIPLANE  or  ORIVECT  
  
Advantage:  
Independent  of  machine  kinematics  
Prevents  Contour  gauging  through  changes  in  
orientation  within  a  plane.  
Analogue  to  linear  interpolation  
                
  
Great  Circle        
        Interpolation  
      Linear  Interpolation      
      of  the  machine-­axes      
      and  orientation-­axes  
  
Comparison  of    Orientation-­Interpolation  ORIVECT  /  ORIAXES  
  
  
840Dsl  SINUMERIK    Operate   Page  27   M103M103  
  
Notes  
Section  2  2.14    Information  for  the  programmer                  Orientation  interpolation  for  5-­Axis  applications    
Linear  Axes  interpolation  
  
G-­Codes  ORIAXES  
  
Disadvantage:  
Dependent  on  machine  kinematics  
ing  through  linear  Interpolation  of  the    
                  rotary  axes  can  occur  (see  graphic  below)  
Contour  gauging  
  
  
M103M103   Page  28   840Dsl  SINUMERIK    Operate  
Notes  
  Section  2   2.15    Information  for  the  programmer                  Orientation  interpolation  for  5-­Axis  applications    
ORICONCW    (G2)  
Interpolation  on  the  peripheral  surface  of  a  cone  
in  the  clockwise  direction  with  specification  of  the  
end  orientation  and  taper  direction  or  aperture  
angle  of  the  cone.  
  
ORICONCCW  (G3)  
Interpolation  on  the  peripheral  surface  of  a  
cone  in  the  counterclockwise  direction  with  
specification  of  the  end  orientation  and  taper  
direction  or  aperture  angle  of  the  cone.  
  
ORICONIO  (CIP)  
Interpolation  on  the  peripheral  surface  of  a  cone  
with  specification  of  the  end  orientation  and  an  
intermediate  orientation.  
  
ORICONTO  (CT)  
Interpolation  on  the  peripheral  surface  of  a  cone  
with  tangential  transition  and  specification  of  the  
end  orientation.  
  
Conical  surface  interpolation  (ORICONxx)  
  
In  conical  surface  interpolation  from  a  start  1  to  an  end  orientation  2  the  
tool  moves  on  a  programmable  peripheral  surface  of  a  cone  anywhere  in  
the  area.  
  
  
840Dsl  SINUMERIK    Operate   Page  29   M103M103  
  
Notes  
Section  2  2.16    Information  for  the  programmer                  Orientation  interpolation  for  5-­Axis  applications    
  
Explanation  of  commands  
  
With  extended  orientation  it  is  possible  to  execute  a  change  in  orientation  
along  the  peripheral  surface  of  a  taper  in  space.  The  orientation  vector  is  
interpolated  on  the  peripheral  surface  of  a  taper  using  the  ORICON..  mo-­
dal  command.  The  end  orientation  can  be  programmed  with  ORIPLANE  
for  interpolation  on  a  plane.  The  start  orientation  is  usually  defined  by  the  
previous  blocks.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
ORICONCW                Interpolation  on  the  peripheral  surface  of  a  cone  in  the  clockwise      
                                                        direction  
                                                        Circle  Endpoint  with  Radius:  G2  X..  Y..  Z..  R..  
                                                        End  orientation:    A3=  ,  B3=  ,  C3=    or    XH=..  YH=..  ZH=..                                                            
                                                        Rotary  axis  Vector  of  the  taper:  A6=  ,  B6=  ,  C6=                                                              
                                                        Opening  angle  of  the  taper  (PSI)  value  range  0  -­180  deg:  NUT=        
                                                                                                                  
  
ORICONCCW          Interpolation  on  the  peripheral  surface  of  a  cone  in  the  clockwise      
                                                        direction  
                                                        Circle  Endpoint  with  Radius:  G3  X..  Y..  Z..  R..  
                                                        End  orientation:    A3=  ,  B3=  ,  C3=    or    XH=..  YH=..  ZH=..                                                            
                                                        Rotary  axis  Vector  of  the  taper:  A6=  ,  B6=  ,  C6=                                                              
                                                        Opening  angle  of  the  taper  (PSI)  value  range  0  -­180  deg:  NUT=        
  
  
ORICONIO                  Interpolation  on  the  peripheral  surface  of  a  cone  withintermediate  orientation  
                                                      Circle  Endpoint:    CIP  X..  Y..  Z..                                                                                                                                      
                                                      Circle  Intermediate  point:    I1=..    J2=..    K1=..                                                                                                          
                                                      Intermediate  orientation  Vector:      A7=..  B7=..  C7=..                                                                                        
                                                      End  orientation  vector:    A3=..  B3=..  C3=..  or    XH=..  YH=..  ZH=..                                    
  
  
  
M103M103   Page  30   840Dsl  SINUMERIK    Operate  
Notes  
  Section  2   2.17    Information  for  the  programmer                  Orientation  interpolation  for  5-­Axis  applications    
  
ORICONTO                  Interpolation  on  the  peripheral  surface  of  a  cone  with  tangential    
                                                          transition  
                                                        Circle  endpoint:      CT  X..  Y..  Z..                                                                                                                                                    
                                                        End  orientation  vector:  A3=..  B3=..  C3=..  or  XH=..  YH=..  ZH=..            
  
                                                        With  POLY,  PO[PHI]=...,  PO[PSI]=...  can  also  be  programmed                    
                                                        here.  This  is  a  generalization  of  great  circle  interpolation,  in  
                                                        which  the  polynomials  for  lead  and  tilt  angle  are  programmed.  
                                                        The  polynomials  have  the  same  meaning  in  conical  interpolation                  
                                                        as  in  great  circle  interpolation  for  the  given  start  and  end                      
                                                        orientations.  The  polynomials  can  be  programmed  with                
                                                        ORIVECT,  ORIPLANE,  ORICONCW,  ORICONCCW,                    
                                                        ORICONIO,  ORICONTO.  
  
  
Note  
  
Programming  direction  vector  A6,  B6,  C6  for  the  rotary  axis  of  the  taper  
The  programming  of  an  end  orientation  is  not  absolutely  necessary.  If  no  end  ori-­
entation  is  specified,  a  full  outside  taper  with  360  degrees  is  interpolated.  
  
Programming  the  opening  angle  of  the  taper  with  NUT=angle  
An  end  orientation  must  be  specified.  
A  complete  outside  taper  with  360  degrees  cannot  be  interpolated  in  this  way.  
  
Programming  the  intermediate  orientation  A7,  B7,  C7  on  the  taper  
An  end  orientation  must  be  specified.  The  change  in  orientation  and  the  direction  
of  rotation  is  defined  uniquely  by  the  three  vectors  Start  orientation,  End  orienta-­
tion  and  Intermediate  orientation.  All  three  vectors  must  be  different.  If  the  pro-­
grammed  intermediate  orientation  is  parallel  to  the  start  or  end  orientation,  a  linear  
large-­radius  circular  interpolation  of  the  orientation  is  executed  in  the  plane  that  is  
defined  by  the  start  and  end  vector.  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  31   M103M103  
  
Notes  
Section  2  2.18    Information  for  the  programmer                  Orientation  interpolation  for  5-­Axis  applications    
  
Curve  interpolation  ORICURVE  (Spline  orientation)  
  
In  curve  interpolation  the  movement  of  the  orientation  vector  is  described  
by  the  paths  at  the  tool  tip  (spline  curve  1)  and  the  path  of  a  second  point  
on  the  tool  (spline  curve  2).  
To  machine  an  inclined  surface  by  circumferential  milling,  for  example,  the  
upper  and  lower  contour  would  be  described.  This  type  of  interpolation  re-­
sults  in  a  faster  path  speed  and  improved  surface  quality.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
The  advantage  is,  that  a  great  variety  of  surfaces  to  be  machined,  can  be  
precisely  defined.  The  spline  interpolation  is  the  best  possible  interpolation,  
but  also  the  most  complicated  to  program.  A  special  syntax  in  the  NC-­
program  is  required,  which  has  to  be  supported  by  the  CAM  system.  
  
  
Explanation  of  command  
  
  
ORICURVE                          Orientation  interpolation  with  definition  of  the  movement  of  the  
                                                                tool  tip  and  of  a  second  point  on  the  tool.  
                                                                The  path  of  the  second  point  is  defined  with  XH=...  YH=...                      
                                                                ZH=...,  in  conjunction  with  BSPLINE  as  the  control  polygon      
                                                                with  POLY  as  the  polynomial:  
                                                                PO[XH]  =  (xe,  x2,  x3,  x4,  x5)  PO[YH]  =  (ye,  y2,  y3,  y4,  y5)  
                                                                PO[ZH]  =  (ze,  z2,  z3,  z4,  z5)  
  
                                                                If  additional  BSPLINE  or  POLY  information  is  not  available,                
                                                                simple  linear  interpolation  is  performed  accordingly  from  the            
                                                                start  to  the  end  orientation.  
  
  
M103M103   Page  32   840Dsl  SINUMERIK    Operate  
Notes  
  Section  2   2.19    Information  for  the  programmer                  Orientation  interpolation  for  5-­Axis  applications    
Polynomial  interpolation  of  SPLINES  with  POLY  
  
  
POLY                                            Turns  on  Polynom  Interpolation  
  
POLYPATH                        Selectable    Polynomial  interpolation  
                                                                for  the  two  axisgroups  (  or  (  
  
With  
PO[X]=(xe,  a2,  a3,  a4,  a5)          
PO[Y]=(ye,  b2,  b3,  b4,  b5)              
PO[Z]=(ze,  c2,  c3,  c4,  c5)  
is  the  polynom  of  Tool  tip  (Splinecurve  1)  programed.    
  
With  
PO[XH]=(xhe,  ah2,  ah3,  ah4,  ah5)          
PO[YH]=(yhe,  bh2,  bh3,  bh4,  bh5)              
PO[ZH]=(zhe,  ch2,  ch3,  ch4,  ch5)  
Is  the  polynom  of  the  second  Point  on  theTool  (Splinekurve  2)  
programed.    
  
  
PO[  ]=(...,...,...)                    The  PO  value  (PO[  ]=)  specifies  all  polynomial                      
                                                                      coefficients  for  an  axis.  Several  values  are                                                        
                                                                      separated  by  commas,  according  to  the  degree    
                                                                      of  the  polynomial.  Different  polynomial  degrees  
                                                                    are  possible  for  different  axes  within  a  block.  
  
Xe,  Ye,  Ze                                                    Specifies  the  end  position  for  the  respective  axis;;  
                                                                      Value  range  asfor  path  dimension  
  
a2,  a3,  a4,  a5                          Coefficients  a2  -­  a4  are  written  with  their  value;;  
                                                                      Value  range  as  for  path  dimension.  The  last  
                                                                      coefficient  can  be  omitted  if  it  has  a  value  of  
                                                                      zero.  
  
PL                                                      PL  ;;  Length  of  the  parameter  interval  at  which  the  
                                                                      polynomials  are  defined  (definition  area  of  function)            
                                                                      The  interval  always  starts  with  0.  p  can  have    
                                                                      Values  from  0  to  PL.  The  theoretical  value  range      
                                                                      for  PL:  0.0001 99  999.9999.  The  PL  value  is    
                                                                      valid  for  the  block  in  which  it  is  programmed.  If  no    
                                                                      PL  is  programmed,  PL  =  1.  
  
  
840Dsl  SINUMERIK    Operate   Page  33   M103M103  
  
Notes  
Section  2    2.20    Information  for  the  programmer                  Orientation  interpolation  for  5-­Axis  applications    
  
Example  of  a  curve  in  the  X/Y  plane  
  
N9  X0  Y0  G90  F100  
N10  POLY  PO[Y]=(2)  PO[X]=(4,0.25)  PL=4  
  
  
  
  
  
  
  
  
  
  
  
  
  
Result  in  X/Y  plane  
  
  
  
  
  
  
  
  
  
  
  Note:                  More  information  about  the  function  POLY  to  be  found  
                                              on  DoconCD  Chapter  10.5.11  Polynomial  interpolation    
  
  
M103M103   Page  34   840Dsl  SINUMERIK    Operate  
Notes  
  Section  2   2.21    Information  for  the  programmer                  ORIVECT  behavior  in  the  vicinity  of  a  Pole  
Interpolation  with  ORIVECT  at  pole  zero  position    
  
Example  1:    
  
The  situation  is  quite  different  if  interpolation  goes  through  the  point  5.  
This  is  the  case  if  for  example  sx  =  0  and  ex  =  0,  i.e.  the  start  and  end  ori-­
entation  are  parallel  to  the  Y/Z  plane.  
  
In  this  example  the  A  axis  should  not  be  allowed  to  swivel.  
  
What  happens  next?  The  C-­axis  starts  at  0°,  the  A-­axis  at  45°,  position  1  .    
During  the  orientation  interpolation  C-­axis  remains  at  0°,  while  the  A  axis  
approaches  the  position  5.  Here  the  position  of  the  C  axis  is  undefined,  
but  just  one  interpolation  phase  later  C-­axis  must  rotate  abruptly  to  180°,  
A-­axis  moves  away  from  point  5  and  C-­axis  remains  at  180°.  
  
To  maintain  the  orientation  speed,  i.e.  in  position  5,  the  
C-­axis  would  have  to  accelerate  infinitely,  which  of  course  is  not  possible.  
In  this  case  we  speak  of  a  pole.  In  conventional  5-­axis  machines  the  defi-­
nition  of  a  pole  is  that  when  the  first  rotary  axis  rotates,  the  tool  orientation  
remains  unchanged.  In  CA  kinematics  A=0  corresponds  to  the  pole  orien-­
tation.  To  avoid  such  an  extreme  speed  control,  in  the  vicinity  of  the  pole  
Sinumerik  840D  switches  to  linear  interpolation.  
  
  
840Dsl  SINUMERIK    Operate   Page  35   M103M103  
  
Notes  
Section  2  2.22    Information  for  the  programmer                  ORIVECT  behavior  in  the  vicinity  of  a  Pole  
Example  2:    
  
in  practice:  Certain  machine  kinematics,  especially  the  commonly  used  
fork  head,  feature  poles  or  singularities.  Orientation  movements  in  the  sin-­
gular  setting  area  of  the  5-­axis  machines  require  vast  movements  of  the  
machine  axes.  (For  example,  with  a  rotary  swivel  head  with  C  as  the  rotary  
axis  and  A  as  the  swivel  axis,  all  positions  with  A  =  0  are  singular.)    To  
avoid  overloading  the  machine  axes,  the  velocity  control  vastly  reduces  the  
tool  path  velocity  near  the  singular  positions.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
With  machine  data  
$MC_TRAFO5_POLE_LIMIT  
the  transformation  can  be  parameterized  in  such  a  way  that  orientation  
movements  close  to  the  pole,    reduce  the  rotary  axes  velocity  to  avoid  sud-­
den  acceleration  at  singular  positions.  Singular  positions  are  handled  only  
with  the  MD  $MC_TRAFO5_POLE_LIMIT.  
  
Incidentally,  the  pole  situation  is  a  physics  problem  rather  than  a  control  
technology  problem.  
When  milling  a  pocket  with  a  45°  
incline  3  the  A  and  C  axis  rotate  
harmoniously  when  traversing  
from  one  corner  to  the  
other  -­  everything  is  OK.  
In  this  example  the  incline  is  now  
88°  4.  Within  the  Pole  limit  set  in  the  
$MC_TRAFO5_POLE_LIMIT  
What  happens?    
The  steeper  the  tool  angle,  the  
faster  the  C  axis  has  to  rotate  in  the  
center  of  the  path  in  order  to  sustain  
the  orientation  on  the  second  half  of  
the  path.  
  
  
  
  
  
M103M103   Page  36   840Dsl  SINUMERIK    Operate  
Notes  
  Section  2   2.24    Information  for  the  programmer                  ORIVECT  behavior  in  the  vicinity  of  a  Pole  
Interpolation  with  ORIVECT  at  pole  zero  position    
Without  orientation  look  ahead  
                                          
Following  Machine  MD  must  be  set  for  this  behavior:  
$MC_POLE_ORI_MODE  =  0  
$MC_TRAFO5_POLE_LIMIT  =  (e.g.  3  deg)  
  
Behavior:    Excellerate  Rotary  axes  with  max  path  velocity  when  reaching  pole      
                                      zero  position  and  interpolate  rotary  axis  180  degree.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Interpolation  with  ORIVECT  at  pole  zero  position.    
Without  orientation  look  ahead  
  
Following  Machine  MD  must  be  set  for  this  behavior:  
$MC_POLE_ORI_MODE  =  10  
$MC_TRAFO5_POLE_LIMIT  =  (e.g.  3  deg)  
  
Behavior:    Insert  intermidiate  points.  Interpolation  of  rotary  axis  with      
                                    ORIVECT  at  pole  zero  position.  
Pole  zero  position  
Pole  zero  position  
  
  
840Dsl  SINUMERIK    Operate   Page  37   M103M103  
  
Notes  
Section  2  2.25    Information  for  the  programmer                  ORIVECT  behavior  in  the  vicinity  of  a  Pole  
Interpolation  with  ORIVECT  without  Pole  zero  position    
Without  orientation  look  ahead  
                        
Following  Machine  MD  must  be  set  for  this  behavior:  
  
MD  21108  
$MC_POLE_ORI_MODE  =  20  
  
Behavior:    If  possible  rotate  rotary  axis  (C-­axis)  syncron  to  linear  axis    
                                    until  endposition  is  reached.    
                                
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Example  6.2:  With  orientation  look  ahead  
  
  
  
  
  
M103M103   Page  38   840Dsl  SINUMERIK    Operate  
Notes  
  Section  3   3.1    Programming  on  the  machine                  Application  Example  1:    3+2  Axes  Positioning    
Work  Steps  
  
1.   Face  Miliing  of  Workpiece  
2.   Square  Block  100  x  100  to  size  
3.   Swivel  Work-­plane  15  deg  and  face  mill  Plane  1  
4.   Circular  Pocket  milling  in  swiveld  Plane  1.  
5.   Swifel  Work-­plane    -­7  Grad    and    Plunge  cut  2  Faces  
                    Swifel  Work-­plane    +7  Grad    and    Plunge  cut  2  Faces  
6.              Drilling  compound  holes  D=8.5  in  their  work-­planes  
7.              Taping  compound  holes  M10x1.5  intheir  work-­planes  
8.   Swivel  work-­plane  and  Facemill  Plane  2    
9.   Swivel  work-­plane  and  Facemill  Plane  3  
10.   Circular  Pocket  milling  in  Plane  2  and  Plane  3)  
11.    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Tool  List  
    
T10    (Indexable  Roughing  Endmill  Alu    D=30)  
T11    (Carbide  Endmill  2  Flutes  D=16)    
T12    (Carbide  Endmill  2  Flutes  D=10)  
T13    (Carbide  Twist  Drill  8.5  mm)  
T14    (Tap  M10x1.5)  
  
  
840Dsl  SINUMERIK    Operate   Page  39   M103M103  
  
Notes  
Section  3    3.2    Programming  on  the  machine                  Application  Example  1:    3+2  Axes  Positioning    
H  -­  H  
  
Plane  1  
Y  +  
P  -­  P  
H  -­  H  
Plane  2   Plane  3  
C  -­  C  
  
Ø  18  
Plane  1  
X  +  
Y  +  
  
  
M103M103   Page  40   840Dsl  SINUMERIK    Operate  
Notes  
   3.3    Programming  on  the  machine                  Application  Example  1:    3+2  Axes  Positioning    Section  3  
  
N100  T10  D1  ;;  Indexable  roughing  endmill  D=30  
N101  M6  
N102  S8000  M3  
N103  G0  A0  C0  
N104  ORIWKS  
N105  ORIVECT  
N106  CUT2DF  
N107  G54  X0  Y0  Z100  D1  
N108  TRANS  Z50  ;;  (***  Coordinate  Shift    Z50  ***)  
N109  AROT  X-­15    ;;  (***  Coordinate  rotation  incr.  about    X-­axis     15deg  **)  
N110  G0  X-­20  Y10  M8  ;;    (***  Prepositioning  Tool  ***)                          
N111  G0  Z38.5  
N112  TRAORI    ;;  (***  Attention  Tool  is  being  tracked  !  ***)  
N113  ;;  (****  Set  Tool  normal  to  workplane  ***)  
N114  G0  A3=0  B3=0  C3=1  
N115  (***  Face  milling  cycle  ***)  
N116  CYCLE71(35.8,25.8,0,0,0,0,115,103.5,0,5,20,10,0,2000,11,5)  
N117  G0  Z100  
N118  TRAFOOF  ;;  (***  Transformation  TRAORI  off  ***)  
N119  TRANS            ;;  (***  Reset  all  active  Frames  ***)  
N120                                        
N122  T11  D1  ;;  Carbide  Endmill  2  Flutes  D=16  
N123  M6  
N124  S8000  M3  
N125  G54  G0  X0  Y0  Z100    
N126  TRANS  Z50    ;;  (***  Coordinate  Shift    Z50  ***)  
N127  AROT  X-­15      ;;  (***  Coordinate  rotation  incr.  about    X-­axis     15deg  **)  
N128  TRAORI    ;;  (***  Attention  Tool  is  being  tracked  !  ***)  
N129  G0  X50  Y51.76  M8  
N130  Z30  
N133  POCKET4(30,0,2,-­15,20,50,51.76,5,0,0,1000,1000,0,21,10,,,8,2.5)  
N135  G0  Z100  
N136  TRAFOOF    ;;  (***  Transformation  TRAORI  off  ***)  
N137  TRANS              ;;  (***  Reset  all  active  Frames  ***)  
N138  G0  A0  C0        ;;  (***  Move  Table  back  to  Base  position***)  
  
  
  
  
  
  
It  is  possible  that  a  Software  limit  alarm  occurs  before  the  first  movement  
of  the  machine  axis,  if  their  is  a  coordinate  rotation  with  ROT  or  AROT  ac-­
tive  right  after  a  tool  change.    
  
Therefore  it  is  recommended  to  position  close  to  the  Workpiece,  before  a  
coordinate  rotation  to  avoid  this  problem.  
  
It  is  also  recommended  with  active  TRAORI  (TCPM)  to  preposition  the  
Tool,  to  avoid  any  collision  with  the  workpiece,  since  the  tool  tip  is  dynami-­
cally  traced.    
  
  
840Dsl  SINUMERIK    Operate   Page  41   M103M103  
  
Notes  
Section  3  3.4    Programming  on  the  machine                  Application  Example  1:    3+2  Axes  Positioning    
  
N140  T12  D1  ;;  Carbide  Endmill  2  Flutes  D=10  
N141  M6  
N142  S4000  M3  F500  
N143  G54  G0  X0  Y0  Z100  D1  
N144  TRANS  Z50    ;;  (***  Coordinate  Shift  absolute    Z50  ***)  
N145  AROT  X-­15    ;;  (***  1st  Coordinate  rotation  incr.  about    X-­axis     15deg  ***)  
N146  ATRANS  X50  Y51.76    ;;  (***  1st  Coordinate  Shift    incremental  ***)  
N147  ATRANS  X-­35  Y-­24      ;;  (***  2nd  Coordinate  Shift    incremental  ***)  
N148  AROT  Y-­7        ;;  (***  2nd  Coordinate  rotation  incr.  about    Y-­axis     7deg  ***)  
N149  G0  X0  Y0  M8  
N150  G0  Z20  
N151  TRAORI  
N152  G0  A3=0  B3=0  C3=1  
N155  MCALL  CYCLE82(20,0,5,-­3,,1)  
N157  G0  X0  Y0  
N158  G0  X0  Y60  
N159  MCALL  
N160  G0  Z100  
N161  TRAFOOF  
N162  TRANS  
N163  G0  A0  C0  
N164    
N165  TRANS  Z50  
N166  AROT  X-­15  
N167  ATRANS  X50  Y51.76  
N168  ATRANS  X35  Y-­24  
N169  AROT  Y7  
N170  G0  X0  Y0  
N171  G0  Z20  
N172  TRAORI  
N173  G0  A3=0  B3=0  C3=1  
N178  G0  X0  Y0  
N179  G0  X0  Y60  
N180  MCALL  
N181  G0  Z100  
N182  TRAFOOF  
N183  TRANS  
N184    
  
It  is  possible  to  shift  and  rotate  a  zero  offset  incrementally  multiple  times  in  
row,  with  the  frames  ATRANS  and  AROT  to  define  a  new  workplane.  
  
  
M103M103   Page  42   840Dsl  SINUMERIK    Operate  
Notes  
  Section  3   3.5    Programming  on  the  machine                  Application  Example  1:    3+2  Axes  Positioning    
  
N185  T13  D1  ;;  Twist  Drill  D=8.5"  
N186  M6  
N187  S4000  M3  F500  
N188  TRANS  Z50  
N189  AROT  X-­15  
N190  ATRANS  X50  Y51.76  
N191  ATRANS  X35  Y-­24  
N192  AROT  Y7  
N193  TRAORI  
N194  G0  X0  Y0  M8  
N195  G0  Z20  
N196  MCALL  CYCLE83(20,0,5,-­20,,-­5,,,0,,1,1,3,5,,,1)  
N200  G0  X0  Y0  
N201  G0  X0  Y60  
N202  MCALL  
N203  G0  Z100  
N204  TRAFOOF  
N205  TRANS  
N206  G0  A0  C0  
N207    
N208  TRANS  Z50  
N209  AROT  X-­15  
N210  ATRANS  X50  Y51.76  
N211  ATRANS  X-­35  Y-­24  
N212  AROT  Y-­7  
N213  G0  X0  Y0  
N214  G0  Z10  
N215  TRAORI  
N216  G0  A3=0  B3=0  C3=1  
N217  MCALL  CYCLE83(20,0,5,-­20,,-­5,,,0,,1,1,3,5,,,1)  
N221  G0  X0  Y0  
N222  G0  X0  Y60  
N223  MCALL  
N224  G0  Z100  
N225  TRAFOOF  
N226  TRANS  
N227    
  
G0  A3=1  B3=0  C3=0                              Tool  Vector  Orientation  normal  to  X-­Axis  
  
G0  A3=0  B3=1  C3=0                              Tool  Vector  Orientation  normal  to  Y-­Axis  
  
G0  A3=0  B3=0  C3=1                              Tool  Vector  Orientation  normal  to  Z-­Axis  
  
  
840Dsl  SINUMERIK    Operate   Page  43   M103M103  
  
Notes  
Section  3  3.6    Programming  on  the  machine                  Application  Example  1:    3+2  Axes  Positioning    
  
N228  T14  D1    ;;Tap  M10x1.5  
N229  M6  
N230  S800  M3  
N231  G54  X0  Y0  Z100    
N232  TRANS  Z50  
N233  AROT  X-­15  
N234  ATRANS  X50  Y51.76  
N235  ATRANS  X-­35  Y-­24  
N236  AROT  Y-­7  
N237  TRAORI  
N238  G0  X0  Y0  M8  
N239  G0  Z20  
N242  MCALL  CYCLE84(20,0,5,-­15,,1,3,,1.5,0,800,800,3,1,0,0,,)  
N244  G0  X0  Y0  
N245  G0  X0  Y60  
N246  MCALL  
N247  G0  Z100  
N248  TRAFOOF  
N249  TRANS  
N250  G0  A0  C0  
N251    
N252  TRANS  Z50  
N253  AROT  X-­15  
N254  ATRANS  X50  Y51.76  
N255  ATRANS  X35  Y-­24  
N256  AROT  Y7  
N257  G0  X0  Y0  
N258  G0  Z20  
N259  TRAORI  
N260  G0  A3=0  B3=0  C3=1  
N263  MCALL  CYCLE84(20,0,5,-­15,,1,3,,1.5,0,800,800,3,1,0,0,,)  
N265  G0  X0  Y0  
N266  G0  X0  Y60  
N267  MCALL  
N268  G0  Z100  
N269  TRAFOOF  
N270  TRANS  
N271  G0  A0  C0  
N272    
N273  T10  D1  ;;  Indexable  Roughing  Endmill  Alu    D=30  
N274  M6  
N275  S8000  M3  
N276  G54  G0  X0  Y0  Z100    
N277  TRANS  Z21.36  
N278  AROT  Z-­45  
N279  AROT  X49.83  
N280  TRAORI  
N281  G0  X0  Y0  M8  
N282  G0  Z50  
N283  G0  A0  C0  
  
  
M103M103   Page  44   840Dsl  SINUMERIK    Operate  
Notes  
  Section  3   3.7    Programming  on  the  machine                  Application  Example  1:    3+2  Axes  Positioning    
  
N286  CYCLE71(50,20,0,0,-­20,0,65,35,0,5,20,5,0,2000,11,10)  
N288  G0  Z100  
N289  TRAFOOF  
N290  TRANS  
N291  G0  A0  C0  
N292    
N293  G54  G0  X100  Y0  Z100  D1  
N294  TRANS  X100  Z21.36  
N295  AROT  Z45  
N295  AROT  X49.83  
N296  G0  X0  Y0  
N297  G0  Z50  
N298  TRAORI  
N299  G0  A3=0  B3=0  C3=1  
N300  CYCLE71(50,20,0,0,-­30,0,65,35,0,5,20,5,0,2000,11,10)  
N305  G0  Z100  
N306  TRAFOOF  
N307  TRANS  
N308    
N309  T12  D1    ;;Carbide  Endmill  2  Flutes  D=10  
N310  M6  
N311  S8000  M3  
N312  G54  G0  X100  Y0  Z100  
N313  TRANS  X100Z21.36  
N314  AROT  Z45  
N315  AROT  X49.83  
N316  TRAORI  
N317  G0  X0  Y21.58  M8  
N318  G0  Z50  
N321  POCKET4(50,0,2,-­5,9,0,21.58,2.5,0,0,1000,1000,0,21,5,,,4,2.5)  
N323  G0  Z100  
N324  TRAFOOF  
N325  TRANS  
N326  G0  A0  C0  
N327    
N328  TRANS  X0  Z21.36  
N329  AROT  Z-­45  
N330  AROT  X49.83  
N331  G0  X0  Y21.58  
N332  G0  Z50  
N333  TRAORI  
N334  G0  A3=0  B3=0  C3=1  
N337  POCKET4(50,0,2,-­5,9,0,21.58,2.5,0,0,1000,1000,0,21,5,,,4,2.5)  
N339  G0  Z100  
N340  TRAFOOF  
N341  TRANS  
N342  G0  A0  C0  
N343      
N346  G0  G53  Z0  D0              ;;  (Retract  Tool  to  Max  Z  position)  
N347  G0  G53  X0  Y0  D1  ;;  (Retract  Tool  to  Max  XY  position)  
N348  M30  
  
  
840Dsl  SINUMERIK    Operate   Page  45   M103M103  
  
Notes  
Section  3  3.8    Programming  on  the  machine                  Application  Example  2:    ORIVECT    
  
Task:  
    
Circumferential  milling  outside  contour  10  deg    
Rough  Pocket  
Circumferential  milling  inside  contour    
  
  
Tools:  
  
Solid  Carbide  Endmill  2FL  D=10  
  
Workpiece  stock  material:  
  
100mm    x    100mm    x    50mm  
  
  
M103M103   Page  46   840Dsl  SINUMERIK    Operate  
Notes  
  Section  3   3.9    Programming  on  the  machine                  Application  Example  2:  ORIVECT    
  
  
  
840Dsl  SINUMERIK    Operate   Page  47   M103M103  
  
Notes  
Section  3  3.10    Programming  on  the  machine                    Application  Example  2:  ORIVECT    
  
Outer  Contour      
Programming  with  Vectores    A3=  B3=  C3=  
  
ORIVECT_1.MPF  
  
N100  T="SC_ENDMILL_D10"  
N101  M6  
N102  S8000M3  
N105  TRAORI  
N106  ORIWKS  
N107  ORIVECT  
N108  CUT3DC  
N109  G54  G0  X-­20  Y-­20  Z10  D1  
N110  G1  Z-­5  F1000  M8  
N111  G41  X0  A3=1.76  B3=0  C3=10  
N112  G1  Y100  
N113  G1  A3=0  B3=-­1.76  C3=10  
N114  G1  X100  
N115  G1  A3=-­1.76  B3=0  C3=10  
N116  G1  Y0  
N117  G1  A3=0  B3=1.76  C3=10  
N118  G1  X-­10  
N119  G40  X-­20  Y-­20  A3=0  B3=0  C3=10  
N120  G0  Z100  
N121  TRAFOOF  
N122  G0  A3=0  B3=0  C3=1  
  
  
M103M103   Page  48   840Dsl  SINUMERIK    Operate  
Notes  
  Section  3   3.11    Programming  on  the  machine                    Application  Example  2:  ORIVECT    
10
  
1.76  
IS
D
  =
10
.1
54
  
Alternatively  it  is  also  possible  to  program  the  upper  profile.  In  this  case  the  
Hypotenuse  length  has  to  be  programmed  with  ISD=  
the  controller  computes  than  the  new  values  and  converts  these  to  the  
lower  profile.    
  
  
840Dsl  SINUMERIK    Operate   Page  49   M103M103  
  
Notes  
Section  3  3.12    Programming  on  the  machine                    Application  Example  2:  ORIVECT    
  
Outer  contour  10  deg  
Programming  with  Vectores    A3=  B3=  C3=  and  Insertation  depth  ISD=    
(Upper  Profile)        
  
ORIVECT_2.MPF  
  
N100  T="SC_ENDMILL_D10"  
N101  M6  
N102  S8000M3  
N103  TRAORI  
N104  ORIWKS  
N105  ORIVECT  
N106  CUT3DC  
N107  ISD=10.154  
N108  G54  G0  X-­20  Y-­20  Z10  D1  
N110  G1  Z0  F1000  M8  
N111  G41  X1.76  A3=1.76  B3=0  C3=10  
N112  G1  Y98.24  
N113  G1  A3=0  B3=-­1.76  C3=10  
N114  G1  X98.24  
N115  G1  A3=-­1.76  B3=0  C3=10  
N116  G1  Y1.76  
N117  G1  A3=0  B3=1.76  C3=10  
N118  G1  X-­10  
N119  G40  X-­20  Y-­20  A3=0  B3=0  C3=10  
N120  G0  Z100  
N121  TRAFOOF  
N122  G0  X0  Y0  Z150  A0  C0  
N123  M30  
  
  
  
  
  
  
M103M103   Page  50   840Dsl  SINUMERIK    Operate  
Notes  
  Section  3     3.13    Programming  on  the  machine                    Application  Example  2:  ORIVECT    
Pocket  roughing  with  wall  finishing  
Programming  with  angles  A2=  B2=  C2=    
(Lower  Profile)  
  
ORIVECT_3.MPF  
  
  
N102  M6  
N103  S8000  M3    
N104  D1  
N105  G54  G0  X10  Y10  Z50  
N106  POCKET  
(10,0,5,15,70.3,68.448,0,14.874,14.874,0,3,0.2,0,1200,1200,  
0,21,9,,,,4.5,1.5)  
N106  TRAORI  
N107  ORIWKS  
N108  ORIVECT  
N109  CUT3DC  
N110  ISD=0  
N111  R2=7  
N112  _ANF_KONT:  
N113  G0  X50  Y50  Z10  D1  
N114  G1  G42  X45  Y30  F500  
N115  X=45  Y=(10+4.874)  Z=-­(R2)  A2=18  B2=0  C2=0  
N116  G1  X=(10+4.874)  
N117  X=(10+4.874)  Y=(10+4.874)  A2=0  B2=-­18  C2=0  
N118  G1  Y=(90-­6.678)  
N119  G1  A2=-­24  B2=0  C2=0  
N120  X=(90-­4.874)  
N121  G1  A2=0  B2=18  C2=0  
N122  G1  Y=(10+4.874)  
N123  G1  A2=18  B2=0  C2=0  
N124  G1  X30  
N125  ;;G1  A2=18  B2=0  C2=0    
N126  Z20  X40  Y=30  
N127  G40  X50  Y50  A2=0  B2=0  C2=0  
N128  G0  Z10  
N129  G0  A0  C0  
N130  _END_KONT:  
N131  R2=13  
N132  REPEAT  _ANF_KONT  _END_KONT  
N133  R2=15  
N134  REPEAT  _ANF_KONT  _END_KONT  
N135  TRAFOOF  
N136  G0  A0  C0  
N137  M30  
  
  
840Dsl  SINUMERIK    Operate   Page  51   M103M103  
  
Notes  
Section  3  3.14    Programming  on  the  machine                    Application  Example  2:  ORIVECT  ,ORICON...  
Pocket  roughing  with  wall  finishing  
Programming  with  angles  A2=  B2=  C2=    
(Lower  Profile)  Pocket  Corner  radius  R10  
  
ORIVECT_4.MPF  
  
  
N30  M6  
N40  S8000  M3  
N90  G54  G0  X10  Y10  Z50  D1  M8  
N140  POCKET3(10,0,5,15,70.3,68.448,0,14.874,14.874,0,3,  
0.2,0,1200,  1200,0,21,9,,,,4.5,1.5)  
N220  TRAORI  
N230  ORIWKS  
N240  ORIVECT  
N250  CUT3DC  
N260  ISD=0  
N270  R2=7  
N280  _ANF_KONT:  
N290  G0  X50  Y50  Z10  D1  
N300  G1  G42  X45  Y30  F500  
N310  X=45  Y=(10+4.874)  Z=-­(R2)  A2=18  B2=0  C2=0  
N320  G1  X=(10+4.874+10)  
N340  ORICONCW  
N350  G2  X=(10+4.874)  Y=(10+4.874+10)  A2=0  B2=-­18  C2=0  CR=10  
NUT=36  
N360  ORIVECT  
N370  G1  Y=(90-­6.678-­10)  
N380  ORICONCW  
N390  G2  Y=(90-­6.678)  X=(10+4.874+10)  A2=-­24  B2=0  C2=0  CR=10  
NUT=48  
N400  ORIVECT  
N410  G1  X=(90-­4.874-­10)  
N411  ORICONCW  
N420  G2  X=(90-­4.874)  Y=(90-­6.678-­10)  A2=0  B2=18  C2=0  CR=10  NUT=48  
N421  ORIVECT  
N430  G1  Y=(10+4.874+10)  
N431  ORICONCW  
N440  G2  Y=(10+4.874)  X=(90-­4.874-­10)  A2=18  B2=0  C2=0  CR=10  NUT=36  
N441  ORIVECT  
N450  G1  X30  
N470  Z20  X40  Y=30  
N480  G40  X50  Y50  A2=0  B2=0  C2=0  
N490  G0  Z10  
N500  G0  A0  C0  
N510  _END_KONT:  
N520  R2=13  
N530  REPEAT  _ANF_KONT  _END_KONT  
N540  R2=15  
N550  REPEAT  _ANF_KONT  _END_KONT  
N560  TRAFOOF  
N570  G0  A0  C0  
N580  M30  
  
  
M103M103   Page  52   840Dsl  SINUMERIK    Operate  
Notes  
  Section    3   3.15    Programming  on  the  machine                    Application  Example  2:  ORIVECT,  ORICON...  
Pocket  roughing  with  wall  finishing  
Programming  with  automatic  vector  calculation  A3=  B3=  C3=  and  
Insertation  depth  ISD=  
(UpperProfile)  Pocket  Corner  radius  R15  
  
DEF  REAL  _ANG1,_ANG2,_ANG3,_ANG4  
_ANG1=-­18    
_ANG2=-­24  
  _ANG3=0    
_ANG4=90  
  
  
N101  M6  
N102S8000M3  
N103  G54  G0  X10  Y10  Z50  D1  M8  
N104  POCKET3(10,0,5,-­
15,70.3,68.448,9,14.874,14.874,0,3,0.2,0,1200,1200,0,21,9,,,,4.5,1.5)  
N105  TRAORI  
N106  ORIWKS  
N107  ORIVECT  
N108  CUT3DC  
N109  TOFFL=10                                            ,  Korrektur  WZ-­Lange  +10mm  
N110  STOPRE  
  
_ANF:  
N111  ISD=15.772    
N112  G0  G40  X50  Y50  Z10  D1  
N113  G1  G42  X45  Y30  A3=SIN(_ANG1)*SIN(_ANG3)  B3=SIN(_ANG1)  
                  *COS(_ANG3)  C3=COS(_ANG1)  Z5  F500  
N114  G1  X45  Y10  Z0  A3=SIN(_ANG1)*SIN(_ANG3)  B3=SIN(_ANG1)    
                  *COS(_ANG3)  C3=COS(_ANG1)  
N115  G1  X25  Y10  Z0  A3=SIN(_ANG1)*SIN(_ANG3)  B3=SIN(_ANG1)    
                  *COS(_ANG3)  C3=COS(_ANG1)  
N116  ORICONCW  
N117  G2  X10  Y25  Z0  A3=SIN(_ANG1)*SIN(_ANG4)  B3=SIN(_ANG1)    
                  *COS(_ANG4)  C3=COS(_ANG1)  CR=15  NUT=18  
N118  ORIVECT  
N119  G1  X10  Y75  Z0  A3=SIN(_ANG1)*SIN(_ANG4)  B3=SIN(_ANG1)  
                    *COS(_ANG4)  C3=COS(_ANG1)  
N120  ORICONCW  
N121  ISD=16.419  
N122  G2  Y90  X25  Z0  A3=SIN(_ANG2)*SIN(2*(_ANG4))  B3=SIN(_ANG2)  
                  *COS(2*(_ANG4))  C3=COS(_ANG2)  CR=15  NUT=24  
N123ORIVECT  
N124  G1  X75  Y90  Z0  A3=SIN(_ANG2)*SIN(2*(_ANG4))  B3=SIN(_ANG2)  
                  *COS(2*(_ANG4))  C3=COS(_ANG2)  
N125  ORICONCW  
  
  
  
840Dsl  SINUMERIK    Operate   Page  53   M103M103  
  
Notes  
Section  3  3.16    Programming  on  the  machine                    Application  Example  2:  ORIVECT,ORICON...  
  
N126  ISD=15.772  
N127  G2  X90  Y75  Z0  A3=SIN(_ANG1)*SIN(3*(_ANG4))  B3=SIN(_ANG1)  
                  *COS(3*(_ANG4))  C3=COS(_ANG1)  CR=15  NUT=24  
N128  ORIVECT  
N129  G1  X90  Y25  Z0  A3=SIN(_ANG1)*SIN(3*(_ANG4))  B3=SIN(_ANG1)  
                  *COS(3*(_ANG4))  C3=COS(_ANG1)  
N130  ORICONCW  
N131  G2  Y10  X75  Z0  A3=SIN(_ANG1)*SIN(_ANG3)  B3=SIN(_ANG1)  
                  *COS(_ANG3)  C3=COS(_ANG1)  CR=15  NUT=18  
N132  ORIVECT  
N133  G1  X30  Y10  Z0  A3=SIN(_ANG1)*SIN(_ANG3)  B3=SIN(_ANG1)  
                  *COS(_ANG3)  C3=COS(_ANG1)  
N134  Z20  X40  Y30  A3=SIN(_ANG1)*SIN(_ANG3)  B3=SIN(_ANG1)*COS  
                  (_ANG3)  C3=COS(_ANG1)  
N135  G40  X50  Y50  A3=0  B3=0  C3=0  
  
N136  G0  Z100  
_END:  
N137  STOPRE  
N138  TOFFL=3    
N139  REPEAT  _ANF  _END  
N140  STOPRE  
N141  TOFFL=0  
N142  REPEAT  _ANF  _END  
N143  TRAFOOF  
N144  G0  A0  C0  
N145  M30  
  
  
  
TOFFL  =  Tool  Offset  Length  
  
  
M103M103   Page  54   840Dsl  SINUMERIK    Operate  
Notes  
  Section  3     3.17    Programming  on  the  machine                    Application  Example  3:  ORIVECT,  ORICON  ...  
Task:  
    
Circumferential  milling  of  outer  contour  at  10  deg  with                                            
corner  radius  R10.  
  
Tools:  
  
Solid  Carbide  Endmill  2FL  D=10mm  
  
Workpiece  stock  material:  
  
100mm    x    100mm    x    50mm  
  
  
840Dsl  SINUMERIK    Operate   Page  55   M103M103  
  
N
ot
iz
en
  
Se
ct
io
n  
3  
3.
18
    P
ro
gr
am
m
in
g  
on
  th
e  
m
ac
hi
ne
    
      
      
    A
pp
lic
at
io
n  
Ex
am
pl
e  
3:
    O
R
IV
EC
T,
  O
R
IC
O
N
...
  
  
  
  
M103M103   Page  56   840Dsl  SINUMERIK    Operate  
Notes  
  Section  3   3.19    Programming  on  the  machine                    Application  Example  3:  ORIVECT,  ORICON...  
  
Programming  with  directional  Vectors  A3=  B3=  C3=  
  
ORICON_1.MPF  
  
N100  T="SC_ENDMILL_D10"  
N101  M6  
N102  S8000M3  
N103  M25  
N104  M27  
N105  TRAORI  
N106  ORIWKS  
N107  ORIVECT  
N108  CUT3DC  
N109  G54  G0  X-­20  Y-­10  Z10  D1  
N110  G1  Z-­5  F1000  M8  
N111  G41  X0  A3=1.76  B3=0  C3=10  
N112  G1  Y140  
N113  ORICONCW  
N115  G2  X10  Y150  A3=0  B3=-­1.76  C3=10  CR=10  NUT=20  
N116  ORIVECT  
N117  G1  X90  
N118  ORICONCW  
N120  G2  X100  Y140  A3=-­1.76  B3=0  C3=10  CR=10  NUT=20  
N121  ORIVECT  
N122  G1  Y10  
N123  ORICONCW  
N125  G2  X90  Y0  A3=0  B3=1.76  C3=10  CR=10  NUT=20  
N126  ORIVECT  
N127  G1  X10  
N128  ORICONCW  
N130  G2  X0  Y10  A3=1.76  B3=0  C3=10  CR=10  NUT=20  
N131  ORIVECT  
N132  G1  G40  X-­20  Y10  A3=0  B3=0  C3=1  
N133  G0  Z200  
N134  TRAFOOF  
N135  G0  A0  C0  
N136  M30  
  
  
840Dsl  SINUMERIK    Operate   Page  57   M103M103  
  
Notes  
Section  3  3.20    Programming  on  the  machine                    Application  Example  3:  ORIVECT,  ORICON...  
  
Programming  with  RPY  Angles  A2=  B2=  C2=  
  
ORICON_2.MPF  
  
N100  T="SC_ENDMILL_D10"  
N101  M6  
N102  S8000M3  
N103  M25  
N104  M27  
N105  TRAORI  
N106  ORIWKS  
N107  ORIVECT  
N108  CUT3DC  
N109  G54  G0  X-­20  Y-­10  Z10  D1  
N110  G1  Z-­5  F1000  M8  
N111  G41  X0  A2=0  B2=10  C2=0  
N112  G1  Y140  
N113  ORICONCW  
N115  G2  X10  Y150  A2=10  B2=0  C2=0  CR=10  NUT=20  
N116  ORIVECT  
N117  G1  X90  
N118  ORICONCW  
N120  G2  X100  Y140  A2=0  B2=-­10  C2=0  CR=10  NUT=20  
N121  ORIVECT  
N122  G1  Y10  
N123  ORICONCW  
N125  G2  X90  Y0  A2=-­10  B2=0  C2=0  CR=10  NUT=20  
N126  ORIVECT  
N127  G1  X10  
N128  ORICONCW  
N130  G2  X0  Y10  A2=0  B2=10  C2=0  CR=10  NUT=20  
N131  ORIVECT  
N132  G1  G40  X-­20  Y10  A2=0  B2=0  C2=0  
N133  G0  Z200  
N134  TRAFOOF  
N135  G0  A0  C0  
N136  M30  
  
  
M103M103   Page  58   840Dsl  SINUMERIK    Operate  
Notes  
  Section  3   3.21    Programming  on  the  machine                      Application  Example  4:  ORIVECT,  ORICON..  ,  ORICONTO  
  
Task:  
    
Islands  (Pyramid,  Cone,  Kidney  boss)  
                  Roughing  out    in  Shopmill  with  Contour-­pocket-­cycle  
5-­Axis  Circumferential  milling  of  kidney  15  deg  taper  
5-­Axis  Circumferential  milling  of  pyramid  7  deg  taper  
5-­Axis  Circumferential  milling  of  cone  8  deg  taper  
  
Tools:  
  
Roughing  SC-­Endmill  3FL  D=12  
Finishing    SC-­Endmill  2FL  D=10  
  
Workpiece  stock  material:  
  
Aluminium  100mm    x    100mm    x    50mm  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  59   M103M103  
  
Notes  
3.22    Programming  on  the  machine    
                  Application  Example  4:  ORIVECT,  ORICON..  ,  ORICONTO   Section  3  
  
  
M103M103   Page  60   840Dsl  SINUMERIK    Operate  
Notes  
  Section  3   3.23    Programming  on  the  machine                      Application  Example  4:    ORIVECT,  ORICON..  ,  ORICONTO  
Mainprogram:      
  
  
N100  T10  D1  ;;  SC-­ENDMILL-­D10  
N101  M6  
N102  S8000  M3  
N103  G54  G0  X0  Y0  D1  
  
N104  CYCLE832(0.02,0)  
N105  EXTCALL  "AREA_CLEAR_ISLANDS"  
  
N106  CYCLE832(0.005,1,1)  
N107  COMPCURV  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
N106  EXTCALL  "KIDNEY_15DEG"  
N107  EXTCALL  "PYRAMID_7DEG"  
N108  EXTCALL  "CONE_8DEG"  
  
N109  CYCLE832(0.02,0)  
N110  G0  G53  Z0  D0  
N111  G0  G53  X0  Y0  D1  
N112  M30  
  
  
  
  
  
  
  
We  recomend  to  work  with  Spline  Compressor  COMPCURVE  
for  best  possible  surface  quality  and  highest  dynamics  for  
circumferential  milling  applications.  
  
  
840Dsl  SINUMERIK    Operate   Page  61   M103M103  
  
Notes  
Section  3  3.24    Programming  on  the  machine                      Application  Example  4:    ORIVECT,  ORICON..  ,  ORICONTO  
Subprogram:  Kidney  Island  15  degree    
  
  
KIDNEY_15DEG.SPF  
  
N100  TRAORI  
N101  ORIWKS  
N102  ORIVECT  
N103  CUT3DC  
N104  G54  
N105  G0  X-­10  Y70  D1  
N106  G0  Z10  
N107  G1  Z-­9  F1000  M8  
N108  G41  X10  Z-­10  A2=0  B2=15  C0=0  
N109  G1  Y80  
N110  ORICONCW  
N111  G2  X25.99  Y94.97  A2=0  B2=15  C2=-­94  CR=15  NUT=30  
N112  ORICONTO  
N113  CT  X88.85  Y72.11  A2=0  B2=15  C2=-­128  
N114  ORICONCW  
N115  G2  X70.78  Y48.17  A2=0  B2=-­15  C2=-­128  CR=15  NUT=30  
N116  ORICONCCW  
N117  G3  X24.47  Y65.01  A2=0  B2=-­15  C2=-­94  CR=80  NUT=30  
N118  ORICONCW  
N119  G2  X10  Y80  A2=0  B2=15  C2=0  CR=15  NUT=30  
N120  ORIVECT  
N121  G1  Y110  Z-­9  
N122  G1  G40  A2=0  B2=0  C2=0  
N123  G0  Z200  
N124  TRAFOOF  
N125  G0  A0  C0  
N126  M17  
Subprogram  (Shopmill):    
  
ISLANDS_AREACLEAR.SPF  
  
  
M103M103   Page  62   840Dsl  SINUMERIK    Operate  
Notes  
  Section  3   3.25    Programming  on  the  machine                      Application  Example  4:    ORIVECT,  ORICON,  ORICONTO  
  
Subprogram:    Cone  Island  8  degree    
                                                  with  tangential  approach  /  departure  move  
  
  
CONE_8DEG.SPF  
  
N100  TRAORI  
N101  ORIWKS  
N102  ORIVECT  
N103  CUT3DC  
N104  G54  G0  X110  Y30  D1  
N105  G0  Z10  
N106  G1  Z-­9  F1000  M8  
N107  G41  X87.5  Z-­10  A2=0  B2=-­8  C2=0  
N108  G1  Y20  
N109  ORICONCW  
N110  G2  X62.5  Y20  A2=0  B2=8  C2=0  CR=12.5  NUT=16  
N111  G2  X87.5  Y20  A2=0  B2=-­8  C2=0  CR=12.5  NUT=16  
N112  ORIVECT  
N113  G1  Y10  
N114  G1  G40  X110  Y20  Z-­9  A2=0  B2=0  C2=0  
N115  G0  Z200  
N116  TRAFOOF  
N117  G0  A0  C0  
N118  M17  
  
  
840Dsl  SINUMERIK    Operate   Page  63   M103M103  
  
Notes  
Section  3  3.26    Programming  on  the  machine                      Application  Example  4:ORIVECT,  ORICON,  ORICONTO  
Subprogram:    Pyramid  Island  7  degree  
  
PYRAMID_7DEG.SPF  
  
N100  TRAORI  
N101  ORIWKS  
N102  ORIVECT  
N103  CUT3DC  
N104  G54  G0  X-­20  Y-­10  Z10  D1  
N105  G1  Z-­10  F1000  M8  
N106  G41  X10  Z-­10.365  A2=0  B2=7  C2=0  
N107  G1  Y38  
N108  ORICONCW  
N109  G2  X12  Y40  A2=7  B2=0  C2=0  CR=2  NUT=14  
N110  ORIVECT  
N111  G1  X38  
N112  ORICONCW  
N113  G2  X40  Y38  A2=0  B2=-­7  C2=0  CR=2  NUT=14  
N114  ORIVECT  
N115  G1  Y12  
N116  ORICONCW  
N117  G2  X38  Y10  A2=-­7  B2=0  C2=0  CR=2  NUT=14  
N118  ORIVECT  
N119  G1  X12  
N120  ORICONCW  
N121  G2  X10  Y12  A2=0  B2=7  C2=0  CR=2  NUT=14  
N122  ORIVECT  
N123  G1  G40  X-­20  Y12  A2=0  B2=0  C2=0  
N124  G0  Z200  
N125  TRAFOOF  
N126  G0  A0  C0  
N127  M17  
  
  
M103M103   Page  64   840Dsl  SINUMERIK    Operate  
Notes  
  Section  3   3.27    Programming  on  the  machine                      Application  Example  5:  ORICURVE  
  
Task:  
  
5-­axis  circumferential  surface  milling.  Define  the  path  of  the  tool  tip  
(Splinecurve  1)  and  the  path  of  the  second  contact  point  of  the  tool    
(Splinecurve  2)  as  a  BSPLINE  curve.  
With  the  command  ORICURVE  it  is  than  possible  to  interpolate  the  
free  form  surface  with  a  5-­axis  simultaneous  circumferential  cut.    
This  kind  of  interpolation  leads  to  a  higher  path  velocity  and  a  ex-­
tremely  smooth  surface.  
  
  
Tools:  
  
Solid  carbide  end  mill  D=16  CR=3  FL=2    
  
  
Workpiece  stock  material:  
  
Aluminium  110  x  110  x  50  
Splinecurve  1  
X  Y  Z  
Splinecurve  2  
XH=  YH=  ZH=  
Curve  interpolation  ORICURVE  (with  BSPLINE)  
  
  
840Dsl  SINUMERIK    Operate   Page  65   M103M103  
  
Notes  
Section  3  3.28    Programming  on  the  machine                      Application  Example  5:  ORICURVE  
  
  
M103M103   Page  66   840Dsl  SINUMERIK    Operate  
Notes  
  Section  3   3.29    Programming  on  the  machine                      Application  Example  5:  ORICURVE  
Mainprogram:  
  
ORICURVE_1.MPF  
  
T="SC_ENDMILL_D16"  
M6  
S5000M3  
ORIWKS  
CUT3DC  
G54  D1  
TRANS  X50  Y50  Z50  
G0  X0  Y-­70  Z100  
Z10  M8  
TRAORI  
CYCLE832(0.01,0,1)                        ;;Deselect  HSC  Settings  
  
  
  
  
  
  
  
  
  
  
  
  
  
G64  
FFWON  
SOFT  
  
EXTCALL  "BSPLINE_1"  
  
G0  Z200  
TRAFOOF  
TRANS  
G0  C0  A0  
M30  
Since  the  tool  path  is  already  defined  as  a  SPLINE,  it  is  of  no  advantage  
anymore  to  use  CYCLE832.  
  
  
840Dsl  SINUMERIK    Operate   Page  67   M103M103  
  
Notes  
Section  3  3.30    Programming  on  the  machine                      Application  Example  5:  ORICURVE  
Subprogram:  
  
BSPLINE_1.SPF  
  
N100  ORIVECT  
N101  G1  Z-­18.3  F500  
N102  G1  G41  X0  Y-­54.44  A2=-­20  B2=0  C2=0  
N103  ORICURVE  
N104  SPLINEPATH(1,X,Y,Z)  
N104  BSPLINE  
N105  X0  Y-­54.44  Z-­18.3  XH=0  YH=-­47.59  ZH=0                                    ;;P01  
N106  X-­9.980  Y-­54.13  Z-­18.3  XH=-­9.980  YH=-­47.27  ZH=0  ;;P02  
N107  X-­19.94  Y-­52.33  Z-­18.3  XH=-­19.94  YH=-­46.97  ZH=0  ;;P03  
N108  X-­28.30  Y-­51.02  Z-­18.3  XH=-­28.30  YH=-­47.41  ZH=0  ;;P04  
N109  X-­32.79  Y-­51.34  Z-­18.3  XH=-­32.79  YH=-­48.05  ZH=0  ;;P05  
N110  X-­38.74  Y-­52.47  Z-­18.3  XH=-­39.35  YH=-­49.29  ZH=0  ;;P06  
N111  X-­45.50  Y-­52.18  Z-­18.3  XH=-­44.31  YH=-­49.69  ZH=0  ,P07  
N111  X-­49.34  Y-­49.82  Z-­18.3  XH=-­46.96  YH=-­47.63  ZH=0  ;;P08  
N112  X-­51.94  Y-­46.10  Z-­18.3  XH=-­49.03  YH=-­44.69  ZH=0  ;;P09  
N112  X-­52.67  Y-­39.86  Z-­18.3  XH=-­49.39  YH=-­39.86  ZH=0  ;;P10  
N113  X-­52.11  Y-­36.89  Z-­18.3  XH=-­48.83  YH=-­36.89  ZH=0  ;;P11  
N114  X-­51.33  Y-­32.80  Z-­18.3  XH=-­48.05  YH=-­32.80  ZH=0  ;;P12  
N115  X-­51.02  Y-­28.28  Z-­18.3  XH=-­47.41  YH=-­28.31  ZH=0  ;;P13  
N116  X-­52.16  Y-­20.71  Z-­18.3  XH=-­46.98  YH=-­20.71  ZH=0  ;;P14  
N117  X-­54.13  Y-­9.990  Z-­18.3  XH=-­47.27  YH=-­9.980  ZH=0  ;;P15  
N118    
N119  X-­54.44  Y0  Z-­18.3  XH=-­47.59  YH=0  ZH=0                                  ;;P16  
N120  X-­54.13  Y9.990  Z-­18.3  XH=-­47.27  YH=9.980  ZH=0      ;;P17  
N121  X-­52.16  Y20.71  Z-­18.3  XH=-­46.98  YH=20.71  ZH=0      ;;P18  
N122  X-­51.02  Y28.28  Z-­18.3  XH=-­47.41  YH=28.31  ZH=0      ;;P19  
N123  X-­51.33  Y32.80  Z-­18.3  XH=-­48.05  YH=32.80  ZH=0      ;;P20  
N124  X-­52.11  Y36.89  Z-­18.3  XH=-­48.83  YH=36.89  ZH=0      ;;P21  
N125  X-­52.67  Y39.86  Z-­18.3  XH=-­49.39  YH=39.86  ZH=0      ;;P22  
N125  X-­51.94  Y46.10  Z-­18.3  XH=-­49.03  YH=44.69  ZH=0      ,P23  
N126  X-­49.34  Y49.82  Z-­18.3  XH=-­46.96  YH=47.63  ZH=0      ;;P24  
N127  X-­45.50  Y52.18  Z-­18.3  XH=-­44.31  YH=49.18  ZH=0        ;;P25  
N127  X-­38.74  Y52.47  Z-­18.3  XH=-­39.35  YH=49.29  ZH=0      ;;P26  
N128  X-­32.79  Y51.34  Z-­18.3  XH=-­32.79  YH=48.05  ZH=0      ;;P27  
N129  X-­28.30  Y51.02  Z-­18.3  XH=-­28.30  YH=47.41  ZH=0      ;;P28  
N130  X-­19.94  Y52.33  Z-­18.3  XH=-­19.94  YH=46.97  ZH=0      ;;P29  
N131  X-­9.980  Y54.13  Z-­18.3  XH=-­9.980  YH=47.27  ZH=0      ;;P30  
N132    
  
  
  
M103M103   Page  68   840Dsl  SINUMERIK    Operate  
Notes  
  Section  3   3.31    Programming  on  the  machine                      Application  Example  5:  ORICURVE  
  
N133  X0  Y54.44  Z-­18.3  XH=0  YH=47.59  ZH=0                                    ;;P31  
N134  X9.98  Y54.13  Z-­18.3  XH=9.98  YH=47.27  ZH=0                ;;P32  
N135  X19.94  Y52.33  Z-­18.3  XH=19.94  YH=46.97  ZH=0        ;;P33  
N136  X28.30  Y51.02  Z-­18.3  XH=28.30  YH=47.41  ZH=0        ;;P34  
N137  X32.79  Y51.34  Z-­18.3  XH=32.79  YH=48.05  ZH=0        ;;P35  
N138  X38.74  Y52.47  Z-­18.3  XH=39.35  YH=49.29  ZH=0        ;;P36  
N138  X45.50  Y52.18  Z-­18.3  XH=44.31  YH=49.18  ZH=0        ,P37  
N139  X49.34  Y49.82  Z-­18.3  XH=46.96  YH=47.63  ZH=0        ;;P38  
N139  X51.94  Y46.10  Z-­18.3  XH=49.03  YH=44.69  ZH=0        ;;P39  
N140  X52.67  Y39.86  Z-­18.3  XH=49.39  YH=39.86  ZH=0        ;;P40  
N141  X52.11  Y36.89  Z-­18.3  XH=48.83  YH=36.89  ZH=0        ;;P41  
N142  X51.33  Y32.80  Z-­18.3  XH=48.05  YH=32.80  ZH=0        ;;P42  
N143  X51.02  Y28.28  Z-­18.3  XH=47.41  YH=28.31  ZH=0        ;;P43  
N144  X52.16  Y20.71  Z-­18.3  XH=46.98  YH=20.71  ZH=0        ;;P44  
N145  X54.13  Y9.990  Z-­18.3  XH=47.27  YH=9.980  ZH=0        ;;P45  
N146    
N147  X54.44  Y0  Z-­18.3  XH=47.59  YH=0  ZH=0                                    ;;P46  
N148  X54.13  Y-­9.990  Z-­18.3  XH=47.27  YH=-­9.980  ZH=0    ;;P47  
N149  X52.16  Y-­20.71  Z-­18.3  XH=46.98  YH=-­20.71  ZH=0    ;;P48  
N150  X51.02  Y-­28.28  Z-­18.3  XH=47.41  YH=-­28.31  ZH=0    ;;P49  
N151  X51.33  Y-­32.80  Z-­18.3  XH=48.05  YH=-­32.80  ZH=0    ;;P50  
N152  X52.11  Y-­36.89  Z-­18.3  XH=48.38  YH=-­36.89  ZH=0    ;;P51  
N153  X52.67  Y-­39.86  Z-­18.3  XH=49.39  YH=-­39.86  ZH=0    ;;P52  
N153  X51.94  Y-­46.10  Z-­18.3  XH=49.03  YH=-­44.69  ZH=0    ;;P53  
N154  X49.34  Y-­49.82  Z-­18.3  XH=46.96  YH=-­47.63  ZH=0    ;;P54  
N154  X45.50  Y-­52.18  Z-­18.3  XH=44.31  YH=-­49.18  ZH=0    ;;P55  
N155  X38.74  Y-­52.47  Z-­18.3  XH=39.35  YH=-­49.29  ZH=0    ;;P56  
N156  X32.79  Y-­51.34  Z-­18.3  XH=32.79  YH=-­48.05  ZH=0    ;;P57  
N157  X28.30  Y-­51.02  Z-­18.3  XH=28.30  YH=-­47.41  ZH=0    ;;P58  
N158  X19.94  Y-­52.33  Z-­18.3  XH=19.94  YH=-­46.97  ZH=0    ;;P59  
N159  X9.980  Y-­54.13  Z-­18.3  XH=9.980  YH=-­47.27  ZH=0    ;;P60  
N160  X0  Y-­54.44  Z-­18.3  XH=0  YH=-­47.27  ZH=0                                ;;P01  
N162  
N163  ORIVECT  
N164  G1  G40  X0  Y-­70  A2=0  B2=0  C2=0  
N166  M17  
  
  
840Dsl  SINUMERIK    Operate   Page  69   M103M103  
  
Notes  
Section  3  3.32    Programming  on  the  machine                      Application  Example  5:  ORICURVE  
Polynomial  interpolation  of  SPLINES  with  POLY  
  
  
Alternatively  it  is  also  possibleto  program  Splinecurve  1  and  2  
as  a  polynom.    
A  CAM  system  is  necessary  to  calculate  the  coefficients  of  each  
polynom.  
  
  
Example:      
  
  
POLY_1.SPF  
  
N100  ORIVECT  
N101  G1  Z-­18.3  F500  
N102  G1  G41  X0  Y-­54.44  A2=-­20  B2=0  C2=0  
N103  ORICURVE  
N104  POLYPATH  (AXES)  
N104  POLY  
N105  PO[X]=(-­9.98,)    PO[Y]=(-­54.13,0.25)  PO[Z]=(-­18.3)    PL=4                                
                    PO[XH]=(-­9.98,)    PO[YH]=-­(47.27,0.25)    PO[ZH]=(0)    
  
  
  
  
  
  
N162  
N163  ORIVECT  
N164  G1  G40  X0  Y-­70  A2=0  B2=0  C2=0  
N166  M17  
  
  
  
  
  
  
  
More  information  about    polynomial  interpolation  of  SPLINES  with  
POLY  see  chapter  2.18  -­  2.20  
  
  
M103M103   Page  70   840Dsl  SINUMERIK    Operate  
Notes  
  Section  4   4.1    Programming  on  the  CAM                Application  Example  6:    3+2  Tilt  tool  orientation    
Application  Example  for  tilt  tool  orientation  
  
The  following  example  shows  a  3D  Form  Surface,  that  is  finished  with  a  
3-­axis  raster  milling  strategy  parallel  to  the  X-­Axis.  
  
To  achieve  better  cutting  conditions  for  the  finishing  operation,  we  rotate  
the  Tool  orientation  45  degrees  about  the  X-­Axis  and  finish  the  surface  
with  the  same  raster  cut  strategy.    
The  same  3-­axis  tool  path  can  be  used,  only  the  orientation  of  the  tool  
changes  at  the  beginning  of  the  program.  
  
  
840Dsl  SINUMERIK    Operate   Page  71   M103M103  
  
Notes  
Section  4  4.2    Programming  on  the  CAM                Application  Example  6:    3+2  Tilt  Tool  orientation    
  
  
M103M103   Page  72   840Dsl  SINUMERIK    Operate  
Notes  
  Section  4   4.3    Programming  on  the  CAM                Application  Example  6:    3+2  Tilt  Tool  orientation    
Mainprogram:  
3D_SURFACE_WAVE.MPF  
  
N100  T1  D1  ;;  Toroid  mill  D=8  Corner  Radius  R=2  
N101  M6  
-­  
N103  G17  G54  G90    
N104  S10000  M3  M8  
N105  R2=2000  ;;  Variable  Feed  F=XY  
N106  R1=500      ;;  Variable  Feed  F=Z    
N107  R3=1000  ;;  Variable  Feed  F=RED  
N108  CYCLE832(0.1,3,1)                            
  
;;  Activates  Technology  group  DYNROUGH  
;;  0.1  =  Toleranz  field    
;;  G645  
;;  FFWON,  SOFT,  FIFOCTRL  
;;  COMPCAD  (Spline  Compressor)  
  
  
  
  
N109   ;;  External  program  call  
  
N110  T2  D1  ;;  Ball  mill    D=6  
N111  M6  
-­  
N113  G17  G54  G90    
N114  S15000  M3  M8  
N115  R2=10000  ;;    Variable  Feed  F=XY  
N116  R1=1000      ;;    Variable  Feed  F=Z    
N117  R3=2000      ;;    Variable  Feed  F=RED  
N118  CYCLE832(0.05,2,1)                        
  
;;  Activates  Technology  group  DYNSEMIFIN  
;;  0.05  =  Toleranz  field    
;;  G645,  
;;  FFWON,  SOFT,  FIFOCTRL  
;;  COMPCAD  (Spline  Compressor)  
      
  
  
  
N119   ;;  External  program  call    
                                                                                                                                                                                                                                                                                                                                                                                                                    
N120  T2  D1  ;;  Ball  mill    D=6  
N121  M6  
-­  
N123  G17  G54  G90    
N124  S18000  M3  M8  
N125  R2=8000  ;;  Variable  Feed  F=XY  
N126  R1=1000  ;;  Variable  Feed  F=Z  
N127  R3=2000  ;;  Variable  Feed  F=RED  
N128  CYCLE832(0.005,1,1)                    
  
;;  Activates  technology  group  DYNFINISH  
;;  0.005  =  Toleranz  field    
;;  G645,  
;;  FFWON,  SOFT,  FIFOCTRL  
;;  COMPCAD  (Spline  Compressor)  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  73   M103M103  
  
Notes  
Section  4  4.4    Programming  on  the  CAM                Application  Example  6:    3+2  Tilt  Tool  orientation    
  
N129   ;;  External  program  call    
                                                                                                                                                                                                                  
N130  CYCLE832()                                              
  
  ;;  Deselect  High-­Speed-­Settings  
  ;;  Activates  technology  group  DYNNORM  
  
  
  
  
  
  
  
  
N131  M30  
  
  
Subprogram:  
3_Axis_Roughing.SPF  
  
N150  G0  G153  Z0                                                ;;  Safe  point  in  Z  from  MCS  
N160  G0  G153  Y-­700                                      ;;  Safe  point  in  XY  from  MCS  
N170  G54  
N230  G0  X-­5.2498  Y74.9914  
N240  G0  Z110  
N250  G0  Z33  
N260  G1  Z28  F=R1  
N270  X-­3.4498  F=R2  
N280  X-­0.0398  F=R3  
N290  Y79.3839  F=R2  
N300  Y149.6637  
N310  X-­0.0296  Y150.0267  
N320  X0.0007  Y150.0401  
N330  X79.6637  Y150.04  
N340  X80.0268  Y150.0299  
N350  X80.0403  Y149.9994  
N360  X80.0402  Y0.5292  
N370  X80.0524  Y-­0.0131  
N380  X79.9865  Y-­0.0414  
N390  X0.2811  Y-­0.04  
N400  X-­0.0292  Y-­0.027  
N8310  X63.7693  Y153.45  F=R2  
  
  
  
N8400  X66.3048  Y-­0.3432  
N8410  X66.158  Y-­0.9597  
N8420  X65.8948  Y-­1.5399  
N8430  X65.5357  Y-­2.0658  
N8440  X64.8513  Y-­2.7326  
N8450  X64.3358  Y-­3.1107  
N8460  X63.7839  Y-­3.45  
N8470  X64.7265  Y-­4.9834  
N8480  G0  Z110  
  
N8530  G0  G153  Z0  D0      ;;  Safe  point  in  Z  from  MCS  
N8540  G0  G153  Y-­700      ;;  Safe  point  in  XY  from  MCS  
N8550  G0  A0  C=DC(0)      ;;  Rotary  Axis  initial  position  
N8560  M17                                          ;;  End  of  subroutine  return  to  main  program  
  
  
M103M103   Page  74   840Dsl  SINUMERIK    Operate  
Notes  
  Section  4   4.5    Programming  on  the  CAM                Application  Example  6:    3+2  Tilt  Tool  orientation    
  
Subprogram:  
  
  
3+2_Axes_semifinish_0.5mm_step.SPF  
  
N150  G0  G54  A-­65.530199  C=DC(204.469801)    ;;  Preposition  Rotary  Axes  
N180  G0  X0.  Y0.  
N190  G0  Z0.  
N210  ;;    
N230  ;;  
N240  TRAORI  ;;  5-­Axis  Transformation  on  
N250  G54  
N260  G0  X-­2.1211  Y143.8664  Z110  A3=0  B3=-­0.70710678  C3=0.70710678  
N270  G0  Y145.6342  Z23.9658    
N280  G1  Y149.1697  Z20.4303  A3=0  B3=-­0.70710678  C3=0.70710678  F=R1  
N290  X-­2.2119  Y149.5338  Z20.0662  F=R3  
N300  Y149.9036  Z19.6964  F=R1  
N310  X-­2.1211  Y150.2678  Z19.3322  F=R3  
N320  X-­1.9422  Y150.6152  Z18.9848  F=R2  
N330  X-­1.6808  Y150.9355  Z18.6645    
N340  X-­1.3446  Y151.2187  Z18.3813    
N350  X-­0.944  Y151.4564  Z18.1436    
N360  X-­0.4912  Y151.6413  Z17.9587    
N370  X0.0002  Y151.7678  Z17.8322    
N380  X0.0082    
  
  
  
N97970  X80.8765  Y1.4842  Z26.1158    
N97980  X80.9938  Y1.4272  Z26.1728    
N97990  X81.2186  Y1.2938  Z26.3062    
N98000  X81.4326  Y1.145  Z26.455    
N98010  X81.6325  Y0.9765  Z26.6235    
N98020  X81.8063  Y0.7823  Z26.8177    
N98030  X81.9637  Y0.5745  Z27.0255    
N98040  X82.0833  Y0.342  Z27.258    
N98050  X82.1646  Y0.0951  Z27.5049    
N98060  X82.1962  Y-­0.0318  Z27.6318    
N98070  X82.2123  Y-­0.1605  Z27.7605    
N98080  Y-­0.422  Z28.022    
N98090  X82.1215  Y-­0.8303  Z28.4303    
N98100  G0  Z110    
N98110  TRAFOOF                      ;;  5-­Axis  Transformation  off  
N98120  G0  G153  Z0  D0      ;;  Safety  position  in  Z  from  MCS  
N98130  G0  G153  Y-­700      ;;  Safety  position  in  XY  from  MCS  
N98140  G0  A0  C=DC(0)      ;;  Rotary  axes  to  initial  position    
N98150  M17                                            ;;End  of  Subprogram  return  to  mainprogram    
  
  
840Dsl  SINUMERIK    Operate   Page  75   M103M103  
  
Notes  
Section  4  4.6    Programming  on  the  CAM                Application  Example  6:    3+2  Tilt  Tool  orientation    
  
Subprogram:  
  
  
3+2_Achsen_Schlichten_0.1mm_Schritt.SPF  
  
  
N150  G0  G54  A-­65.530199C=DC(204.469801)  ;;  Preposition  Rotary  Axes  
N180  G0  X0.  Y0.  
N190  G0  Z0.  
N200  ;;  
N210  ;;    
N240  TRAORI  ;;  5-­Axis  Transformation  on  
N250  G54  
N260  G0  X-­2.1211  Y143.8664  Z110  A3=0  B3=-­0.70710678  C3=0.70710678  
N270  G0  Y145.6342  Z23.8658  A3=0  B3=-­0.70710678  C3=0.70710678  
N280  G1  Y149.1697  Z20.3303  A3=0  B3=-­0.70710678  C3=0.70710678  F=R1  
N290  X-­2.2119  Y149.5338  Z19.9662  F=R3  
N300  Y149.9036  Z19.5964  F=R1  
N310  X-­2.1211  Y150.2678  Z19.2322  F=R3  
N320  X-­1.9422  Y150.6152  Z18.8848  F=R2  
N330  X-­1.6808  Y150.9355  Z18.5645    
N340  X-­1.3446  Y151.2187  Z18.2813    
N350  X-­0.944  Y151.4564  Z18.0436    
N360  X-­0.4912  Y151.6413  Z17.8587    
N370  X0.0002  Y151.7678  Z17.7322    
N380  X0.0082    
N390  X0.5082    
  
  
  
N38060  X81.6325  Y0.9765  Z26.5235    
N38070  X81.8063  Y0.7823  Z26.7177    
N38080  X81.9637  Y0.5745  Z26.9255    
N38090  X82.0833  Y0.342  Z27.158    
N38100  X82.1646  Y0.0951  Z27.4049    
N38110  X82.1962  Y-­0.0318  Z27.5318    
N38120  X82.2123  Y-­0.1605  Z27.6605    
N38130  Y-­0.422  Z27.922    
N38140  X82.1215  Y-­0.8303  Z28.3303    
N38150  G0  Z110    
  
N38190  TRAFOOF                      ;;  5-­Axis  Transformation  off  
N38200  G0  G153  Z0  D0      ;;  Safety  position  in  Z  from  MCS  
N38210  G0  G153  Y-­700      ;;  Safety  position  in  XY  from  MCS  
N38220  G0  A0  C=DC(0)      ;;  Rotary  axes  to  initial  position    
N38230  M17                                          ;;  End  of  Subprogram  return  to  mainprogram    
  
  
M103M103   Page  76   840Dsl  SINUMERIK    Operate  
Notes  
  Section  4   4.7    Programming  on  the  CAM                Application  Example  7:    5-­Axis  simultaneous  machining  
  
Example  5-­Axis  simultaneous  milling  of  a  structural  part:  
  
This  example  shows  a  component  that  requires  a  variation  of  differ-­
ent  5-­Axis  machining  operation.  A  variety  of  different  milling  strate-­
gies  in  combination  with  5-­Axis  Transformation  TRAORI  are  used  to  
cut  the  following  part.  
  
The  Subprograms  are  only  cut-­outs  in  this  Documentation  and  serve  
only  a  explanatory  purpose  of  program  structure  and    important  func-­
tions.  
  
The  complete  programs  to  the  example  are  to  be  found  on  the  at-­
tached  CD.    
  
  
840Dsl  SINUMERIK    Operate   Page  77   M103M103  
  
Notes  
Section  4  4.8    Programming  on  the  CAM                Application  Example  7:    5-­Axis  simultaneous  machining  
Preparation:  
  
Pick  up  Part  edge  in  X  and  Y,  shift  zero  location  in  X  111.3  and  Y-­50  
                    in  centre  of  pocket  and  set  G54  workpiece  zero  offset.    
Pick  up  part  top  surface  and  shift  zero  offset  in  Z-­28  to  bottom  edge  
of  part  and  set  G54  workpiece  zero  offset.  
  
28
  
X+  
Z+
G54  
G54  
X  
Y  
  
  
M103M103   Page  78   840Dsl  SINUMERIK    Operate  
Notes  
  Section  4   4.9    Programming  on  the  CAM                Application  Example  7:    5-­Axis  simultaneous  machining  
Subprogram:  ROUGHING_1.SPF  
Model:    2  1/2  D  Roughing  
Tool:  Toroid  endmill  D=16mm  R=3mm      
Subprogram:  FLOOR_FINISHING.SPF  
Chambers:  2  1/2D  Face  milling  
Tools:  Solid  carbide  endmill  D=12mm    
  
  
840Dsl  SINUMERIK    Operate   Page  79   M103M103  
  
Notes  
Section  4  4.10    Programming  on  the  CAM                  Application  Example  7:    5-­Axis  simultaneous  machining  
Subprogram:  CIRCUMFERENCE.SPF  
Unterprogramm:  CHAMBER123_CIRCUMF.SPF  
Chamber  1:  5-­Axis  circumferential  milling  
Tool:  Solid  carbide  endmill  D=12mm    
Outer  Profile:  5-­Axis  circumferential  milling  
Tool:  Solid  carbide  endmill    D=12mm    
  
  
M103M103   Page  80   840Dsl  SINUMERIK    Operate  
Notes  
  Section  4   4.11    Programming  on  the  CAM                    Application  Example  7:    5-­Axis  simultaneous  machining  
Chamber  2:  5-­Axis  circumferential  milling  
Tool:  Solid  carbide  endmill  D=12mm    
Chamber  3:  5-­Axis  circumferential  milling  
Tool:  Solid  carbide  endmill  D=12mm    
  
  
840Dsl  SINUMERIK    Operate   Page  81   M103M103  
  
Notes  
Section  4  4.12    Programming  on  the  CAM                  Application  Example  7:    5-­Axis  simultaneous  machining  
Subprogram:    CHAMBER1_R3_FINISHING  
Chamber  1:  5-­Axis  simultanious  copymilling,  corner  R3  
Tool:  SC  Ball  mill  D=6mm  R=3mm    
Subprogram:    CHAMBER2_R3_FINISHING  
Chamber  2:  5-­Axis  simultanious  copymilling,  corner  R3  
Tool:  SC  Ball  mill  D=6mm  R=3mm    
  
  
M103M103   Page  82   840Dsl  SINUMERIK    Operate  
Notes  
  Section  4   4.13    Programming  on  the  CAM                  Application  Example  7:    5-­Axis  simultaneous  machining  
Subprogram:    CHAMBER3_R3_FINISHING  
Subprogram:    EDGES_RADIA_R3_FINISHING  
Radia  R3:    3+2  Copymilling  Streamline  
Tool:  SC  Ball  mill  Dmm=6  R=3mm    
Chamber  3:  5-­Axis  simultanious  copymilling,  corner  R3  
Tool:  SC  Ball  mill  D=6mm  R=3mm    
  
  
840Dsl  SINUMERIK    Operate   Page  83   M103M103  
  
Notes  
Section  4  4.14    Programming  on  the  CAM                  Application  Example  7:    5-­Axis  simultaneous  machining  
Main  Programm:  
  
  
N100  T="TOROID_D16_R3"  
N101  M6  
N102  M25                                ;;  Open  C-­Axis  clamping  (OEM  specific)  
N103  M27                                ;;  Open  B-­Axis  clamping  (OEM  specific)  
N104  S10000  M3  
N105  R1=4000                ;;  Feed  milling  
N105  R2=4000                ;;  Feed  Approach  
N106  G54  G0  X0  Y0  C0  A0  D1  
N107  G0  Z100  
N110  CYCLE832(0.05,1,1)  
N112  EXTCALL"ROUGHING_1"  
N113  CYCLE832()  
N114    
N115  T="SC_ENDMILL_D12"  
N116  M6  
N117  M25                                ;;  Open  C-­Axis  clamping  (OEM  specific)  
N118  M27                                ;;  Open  B-­Axis  clamping  (OEM  specific)  
N119  S12000  M3  
N120  R1=800  
N121  R2=1000  
N122  G54  G0  X0  Y0  C0  A0  D1  
N123  G0  Z100  
N126  CYCLE832(0.005,3,1)  
N128  EXTCALL"FLOOR_FINISHING"  
N131  CYCLE832()  
N132    
N134  S12000  M3  
N135  R1=400                    ;;  Feed  milling  
N136  R2=1000                ;;  Feed  Approach  
N137  G54  G0  X0  Y0  C0  A0  D1  
N138  G0  Z100  
N141  CYCLE832(0.01,3,1)  
N143  EXTCALL"CIRCUMFERENCE"  
N144  CYCLE832()  
N145    
N146  S7500  M3  
N147  R1=400                      ;;  Feed  milling  
N148  R2=1000                  ;;  Feed  Approach  
N149  G54  G0  X0  Y0  C0  A0  D1  
N150  G0  Z100  
N153  CYCLE832(0.01,3,1)  
N155  EXTCALL"SWARFCUT_CHAMBERS"  
N156  CYCLE832()  
  
  
  
  
M103M103   Page  84   840Dsl  SINUMERIK    Operate  
Notes  
  Section  4   4.15    Programming  on  the  CAM                  Application  Example  7:    5-­Axis  simultaneous  machining  
Cont.  
  
N158  T="SC_Ballmill_D6"  
N159  M6  
N160  M25                                ;;  Open  C-­Axis  clamping  
N161  M27                                ;;  Open  B-­Axis  clamping  
N162  S15000  M3  
N163  R1=2000                ;;  Feed  milling  
N164  R2=1000                ;;  Feed  Approach  
N165  G54  G0  X0  Y0  C0  A0  D1  
N166  G0  Z100  
N169  CYCLE832(0.01,3,1)  
N171  EXTCALL"CHAMBER1_R3_FINISHING"  
N171  EXTCALL"CHAMBER2_R3_FINISHING"  
N171  EXTCALL"CHAMBER2_R3_FINISHING"  
N172  CYCLE832()  
N173    
N174  S15000  M3  
N175  R1=2000                ;;  Feed  milling  
N176  R2=1000                ;;  Feed  Approach  
N177  G54  G0  X0  Y0  C0  A0  D1  
N178  G0  Z100  
N179  CYCLE832(0.01,3,1)  
N180  EXTCALL"EDGES_RADIA_R3_FINISHING"  
N181  CYCLE832()  
N182  
N183  G53  G0  Z0  D0                        ;;  Retract  to  save  Z  from  MCS  
N184  G53  G0  X0  Y0  D1              ;;  Retract  to  save  X  Y  from  MCS  
N185  M30  
  
  
840DslSINUMERIK    Operate   Page  85   M103M103  
  
Notes  
Section  4  4.16    Programming  on  the  CAM                  Application  Example  7:    5-­Axis  simultaneous  machining  
Subprogram:    ROUGHING_1.SPF  
  
N100  ORIWKS  
N101  ORIVECT  
N102  TRAORI  
N103  G54  
N104  MSG("CONTOUR_ROUGH")  
N105  G0  X-­35.83238  Y66.83713  Z36.9  A3=0.0  B3=0.0  C3=1.    
N106  ;;Approach  move  
N107  Z28.8  A3=0.0  B3=0.0  C3=1.  
N108  ;;Start  move  
N109  G1  Z25.8  A3=0.0  B3=0.0  C3=1.  M8  F=R1  
N110  Y53.83713  A3=0.0  B3=0.0  C3=1.  
N111  ;;Milling  
N112  X38.58281  A3=0.0  B3=0.0  C3=1.  
N113  X38.79515  Y53.85527  A3=0.0  B3=0.0  C3=1.  
N114  X40.24081  Y53.65133  A3=0.0  B3=0.0  C3=1.  
N115  X41.28869  Y52.59839  A3=0.0  B3=0.0  C3=1.  
N116  X41.48567  Y51.15177  A3=0.0  B3=0.0  C3=1.  
N117  X41.46543  Y50.92751  A3=0.0  B3=0.0  C3=1.  
N118  Y-­47.89652  A3=0.0  B3=0.0  C3=1.  
  
  
N9264  X-­116.52049  Y36.48922  A3=0.0  B3=0.0  C3=1.  
N9265  X-­115.35784  Y39.25117  A3=0.0  B3=0.0  C3=1.  
N9266  X-­113.34842  Y41.47431  A3=0.0  B3=0.0  C3=1.  
N9267  X-­110.68513  Y42.8147  A3=0.0  B3=0.0  C3=1.  
N9268  X-­102.46357  Y45.55847  A3=0.0  B3=0.0  C3=1.  
N9269  X-­94.09657  Y47.82676  A3=0.0  B3=0.0  C3=1.  
N9270  X-­85.61494  Y49.61121  A3=0.0  B3=0.0  C3=1.  
N9271  ;;Retract  move  
N9272  X-­87.17279  Y57.45807  A3=0.0  B3=0.0  C3=1.  
N9273  Z-­1.1  A3=0.0  B3=0.0  C3=1.  
N9274  ;;Departure  move  
N9275  G0  Z36.9  A3=0.0  B3=0.0  C3=1.  
N9277  TRAFOOF  
N9278  SUPA  G0  Z0.0  D0                                                        ;;    Retract  to  save  Z  from  MCS  
N9279  SUPA  G0  X0.0  Y0.0  A0.0  C0.0  D1    ;;    Retract  to  save  X  Y      
                                                                                                                                          ;;    and  return  rotary  axes  to      
                                                                                                                                          ;;    initial  position    
N9283  M17  
  
  
M103M103   Page  86   840Dsl  SINUMERIK    Operate  
Notes  
  Section  4   4.17    Programming  on  the  CAM                  Application  Example  7:    5-­Axis  simultaneous  machining  
Subprogram:    FLOOR_FINISHING.SPF  
  
N100  ;;cam  tolerance=0.010000  
N102  TRAORI  
N103  ORIWKS  
N104  ORIVECT  
N105  G54  
N106  MSG("FLOOR_FINISHING")  
N106  ;;Positioning  move  
N107  G0  X-­108.10653  Y-­23.6845  Z35.30001  A3=0.0  B3=0.0  C3=1.  M3  
N108  ;;Approach  move  
N109  G1  Z28.3  A3=0.0  B3=0.0  C3=1.  F=R2  M8  
N110  ;;Start  move  
N111  G1  Z25.3  A3=0.0  B3=0.0  C3=1.  F=R1  
N112  Y.3155  A3=0.0  B3=0.0  C3=1.  
N113  ;;Milling  
N114  Y26.1425  A3=0.0  B3=0.0  C3=1.  
N115  X-­104.67946  Y27.36186  A3=0.0  B3=0.0  C3=1.  
N116  X-­101.22582  Y28.50395  A3=0.0  B3=0.0  C3=1.  
N117  X-­97.74887  Y29.57295  A3=0.0  B3=0.0  C3=1.  
N118  X-­94.25014  Y30.56839  A3=0.0  B3=0.0  C3=1.  
N119  X-­90.7312  Y31.48983  A3=0.0  B3=0.0  C3=1.  
N120  X-­87.19361  Y32.33685  A3=0.0  B3=0.0  C3=1.  
N121  X-­83.63895  Y33.10909  A3=0.0  B3=0.0  C3=1.  
N122  X-­80.06879  Y33.80619  A3=0.0  B3=0.0  C3=1.  
N123  X-­76.48472  Y34.42785  A3=0.0  B3=0.0  C3=1.  
N124  X-­72.88834  Y34.97379  A3=0.0  B3=0.0  C3=1.  
N125  X-­69.28125  Y35.44377  A3=0.0  B3=0.0  C3=1.  
N126  X-­65.66505  Y35.83757  A3=0.0  B3=0.0  C3=1.  
N127  X-­62.04135  Y36.15503  A3=0.0  B3=0.0  C3=1.  
  
  
N833  X-­7.85128  Y-­14.36191  A3=0.0  B3=0.0  C3=1.  
N834  X-­6.78995  Y-­14.87846  A3=0.0  B3=0.0  C3=1.  
N835  X-­5.69524  Y-­15.31947  A3=0.0  B3=0.0  C3=1.  
N836  X-­5.63603  Y-­15.33767  A3=0.0  B3=0.0  C3=1.  
N837  X-­5.58193  Y-­15.36786  A3=0.0  B3=0.0  C3=1.  
N838  ;;Departure  move  
N839  X-­10.92894  Y-­26.35452  A3=0.0  B3=0.0  C3=1.  
N840  Z8.5  A3=0.0  B3=0.0  C3=1.  
N841  ;;Retract  move  
N842  G0  Z35.3  A3=0.0  B3=0.0  C3=1.  
N843  TRAFOOF  
N844  SUPA  G0  Z0.0  D0                                                          ;;    Retract  to  save  Z  in  MCS  
N845  SUPA  G0  X0.0  Y0.0  A0.0  C0.0  D1        ;;    Retract  to  save  X  Y      
                                                                                                                                          ;;    and  return  rotary  axes  to      
                                                                                                                                          ;;    initial  position  
N846  M17  
  
  
840Dsl  SINUMERIK    Operate   Page  87   M103M103  
  
Notes  
Section  4  4.18    Programming  on  the  CAM                  Application  Example  7:    5-­Axis  simultaneous  machining  
Subprrogram:  CIRCUMFERENCE.SPF  
  
N100  ;;cam  tolerance=0.01  
N101  TRAORI  
N102  ORIWKS  
N103  ORIVECT  
N104  G54  
N105  MSG("CIRCUMFERENCE")  
N107  ;;Positioning  move  
N106  G0  X-­121.40912  Y36.4311  Z35  A3=.09603557  B3=-­.2761492  C3=.9563047  
M3  
N108  ;;Approach  move  
N109  G1  Z.15423  F=R2  M8  
N110  ;;Start  move  
N111  G1  X-­110.05862  Y40.32549  A3=.09603557  B3=-­.2761492  C3=.95630476  
F=R1  
N112  ;;Milling  
N113  X-­108.60112  Y40.82556  A3=.09375063  B3=-­.27693326  C3=.95630476  
N114  X-­107.13954  Y41.31347  A3=.09145933  B3=-­.27769841  C3=.95630476  
N115  X-­105.67397  Y41.7892  A3=.08916182  B3=-­.27844458  C3=.95630476  
  
  
  
N726  X-­114.03513  Y-­4.2235  A3=0.0  B3=0.0  C3=1.  
N727  X-­114.09052  Y-­3.75546  A3=0.0  B3=0.0  C3=1.  
N728  X-­114.10653  Y-­3.2845  A3=0.0  B3=0.0  C3=1.  
N729  Y34.71226  A3=0.0  B3=0.0  C3=1.  
N730  ;;Departure  move  
N731  Z21.1  A3=0.0  B3=0.0  C3=1.  F=R2  
N732  ;;Retract  move  
N733  G0  Z35.5  A3=0.0  B3=0.0  C3=1.  
N735  TRAFOOF  
N736  SUPA  G0  Z0.0  D0                                                      ;;    Retract  to  save  Z  in  MCS      
N737  SUPA  G0  X0.0  Y0.0  A0.0  C0.0  D1    ;;    Retract  to  save  X  Y      
                                                                                                                                      ;;    and  return  rotary  axes  to      
                                                                                                                                      ;;    initial  position  
  
N738  M17  
  
  
M103M103   Page  88   840Dsl  SINUMERIK    Operate  
Notes  
  Section  4   4.19    Programming  on  the  CAM                  Application  Example  7:    5-­Axis  simultaneous  machining  
Subprogram:  SWARFCUT_CHAMBERS.SPF  
  
N100  ;;camtolerance=0.01  
N101  TRAORI  
N102  ORIWKS  
N103  ORIVECT  
N104  G54  
N105  MSG("SWARFCUT_CHAMBERS")  
N107  ;;Positioning  move  
N106  G0  X-­42.04229  Y-­33.2845  Z35.5  A3=.22495105  B3=0.0  C3=.97437006  M3  
N107  ;;Approach  move  
N108  G1  X-­49.2255  Z4.3861  A3=.22495105  B3=0.0  C3=.97437006  F=R1  
N109  ;;Start  move  
N110  G1  Y-­21.2845  A3=.22495105  B3=0.0  C3=.97437006  M8  
N111  ;;Milling  
N112  Y-­19.80012  A3=.22494426  B3=-­.00777427  C3=.97434062  
N113  Y-­18.31573  A3=.22492386  B3=-­.01554807  C3=.97425228  
N114  Y-­16.83134  A3=.22488987  B3=-­.02332093  C3=.97410507  
N115  Y-­15.34695  A3=.22484229  B3=-­.03109238  C3=.97389897  
N116  Y-­13.86256  A3=.22478112  B3=-­.03886195  C3=.97363401  
N117  Y-­12.37817  A3=.22470637  B3=-­.04662917  C3=.97331021  
N118  Y-­10.89378  A3=.22461803  B3=-­.05439358  C3=.97292758  
N119  Y-­9.4094  A3=.22451612  B3=-­.0621547  C3=.97248615  
  
  
  
N1002  X7.9198  Y24.23603  A3=-­.09765992  B3=-­.27557894  C3=.95630476  
N1003  X6.56069  Y24.71119  A3=-­.09531984  B3=-­.27639707  C3=.95630476  
N1004  X5.1976  Y25.17482  A3=-­.09297292  B3=-­.27719533  C3=.95630476  
N1005  X3.83062  Y25.62687  A3=-­.09061931  B3=-­.27797366  C3=.95630476  
N1006  X2.45987  Y26.06732  A3=-­.08825919  B3=-­.278732  C3=.95630476  
N1007  X1.08543  Y26.49613  A3=-­.08589273  B3=-­.27947031  C3=.95630476  
N1008  X-­.2926  Y26.91327  A3=-­.08352009  B3=-­.28018852  C3=.95630476N1009  X-­1.67412  Y27.31871  A3=-­.08114144  B3=-­.2808866  C3=.95630476  
N1010  X-­3.05902  Y27.71242  A3=-­.07875696  B3=-­.28156448  C3=.95630476  
N1011  X-­4.44722  Y28.09438  A3=-­.07636682  B3=-­.28222212  C3=.95630476  
N1012  X-­5.8386  Y28.46455  A3=-­.07397118  B3=-­.28285947  C3=.95630476  
N1013  ;;Departure  move  
N1014  X-­7.46233  Y22.25554  Z28.61461  A3=-­.07397118  B3=-­.28285947  
C3=.95630476  
N1015  ;;Retract  move  
N1016  G0  X-­7.99492  Y20.21895  Z35.5  A3=-­.07397118  B3=-­.28285947  
C3=.95630476  
N1017  TRAFOOF  
N1018  SUPA  G0  Z0.0  D0                                                        ;;    Retract  to  save  Z  from  MCS  
N1019  SUPA  G0  X0.0  Y0.0  A0.0  C0.0  D1      ;;    Retract  to  save  X  Y      
                                                                                                                                          ;;    and  return  rotary  axes  to      
                                                                                                                                          ;;    initial  position  
N1020  M17  
  
  
840Dsl  SINUMERIK    Operate   Page  89   M103M103  
  
Notes  
Section  4  4.20    Programming  on  the  CAM                  Application  Example  7:    5-­Axis  simultaneous  machining  
Subprogram:    CHAMBER1_R3_FINISHING.SPF  
  
N100  TRAORI  
N101  ORIWKS  
N102  ORIVECT  
N103  G54  
N104  MSG("5-­AXIS  CHAMBER-­2  R3")  
N104  ;;Positioning  move  
N105  G0  X-­52.73538  Y-­17.80536  Z31.9  A3=-­.39485858  B3=.49800333  
C3=.77206177  M3  
N106  ;;  Approach  move  
N107  G1  Z13.37361  A3=-­.39485858  B3=.49800333  C3=.77206177  F=R2  
N108  X-­47.99708  Y-­23.7814  Z4.10887  A3=-­.39485858  B3=.49800333  
C3=.77206177  
N109  ;;  Start  move  
N110  G1  X-­47.84399  Y-­23.76942  Z3.80953  A3=-­.39485858  B3=.49800333  
C3=.77206177  M8  F=R1  
N111  X-­47.69248  Y-­23.71986  Z3.51328  A3=-­.39485858  B3=.49800333  
C3=.77206177  
N112  X-­47.54444  Y-­23.63337  Z3.22382  A3=-­.39485858  B3=.49800333  
C3=.77206177  
N113  X-­47.40175  Y-­23.51101  Z2.94481  A3=-­.39485858  B3=.49800333  
C3=.77206177  
N114  X-­47.26618  Y-­23.35433  Z2.67975  A3=-­.39485858  B3=.49800333  
C3=.77206177  
N115  X-­47.13946  Y-­23.16531  Z2.43198  A3=-­.39485858  B3=.49800333  
C3=.77206177  
  
  
N6641  X-­103.86052  Y-­4.85962  Z3.35802  A3=.55592652  B3=.22406464  
C3=.80046283  
N6642  X-­103.7161  Y-­5.08117  Z3.56596  A3=.55592652  B3=.22406464  
C3=.80046283  
N6643  X-­103.55844  Y-­5.27298  Z3.79297  A3=.55592652  B3=.22406464  
C3=.80046283  
N6644  X-­103.38952  Y-­5.43264  Z4.03619  A3=.55592652  B3=.22406464  
C3=.80046283  
N6645  X-­103.21147  Y-­5.55814  Z4.29256  A3=.55592652  B3=.22406464  
C3=.80046283  
N6646  X-­103.02652  Y-­5.64791  Z4.55886  A3=.55592652  B3=.22406464  
C3=.80046283  
N6647  X-­102.837  Y-­5.70081  Z4.83174  A3=.55592652  B3=.22406464  
C3=.80046283  
N6647  ;;Departure  move  
N6648  X-­102.6453  Y-­5.71617  Z5.10778  A3=.55592652  B3=.22406464  
C3=.80046283  
N6649  ;;Retract  move  
N6650  G0  X-­95.97418  Y-­3.0274  Z14.71333  A3=.55592652  B3=.22406464  
C3=.80046283  
N6651  Z31.9  A3=.55592652  B3=.22406464  C3=.80046283  
N6652  G0  X0  Y0  Z100  A3=0  B3=0  C3=1    
N6653  TRAFOOF  
N6654  SUPA  G0  Z0.0  D0                                                                          ;;    Retract  to  save  Z  from  MCS  
N6655  SUPA  G0  X0.0  Y0.0  A0.0  C0.0  D1                      ;;    Retract  to  save  X  Y      
                                                                                                                                                            ;;    and  return  rotary  axes  to      
                                                                                                                                                            ;;    initial  position  
N6656  M17  
  
  
M103M103   Page  90   840Dsl  SINUMERIK    Operate  
Notes  
  Section  4   4.21    Programming  on  the  CAM                  Application  Example  7:    5-­Axis  simultaneous  machining  
Subprogram:  EDGES_RADIA_R3.SPF  
  
N380  ;;cam  tolerance=0.060000  
N390  TRAORI  
N420  ORIWKS  
N430  ORIVECT  
N440  MSG("KANTEN_RADIEN_R3_SCHLICHTEN")  
N440  ;;Positioning  move  
N460  G0  X-­108.10722  Y-­16.24687  Z39.75758  A3=0.0  B3=-­.30875245  
C3=.95114243  
N470  ;;  Approach  move  
N480  G1  Y-­8.5532  Z16.05646  A3=0.0  B3=-­.30875245  C3=.95114243  F=R2  
N490  ;;  Start  move  
N500  G1  X-­108.10697  Y-­7.77163  Z16.10624  A3=0.0  B3=-­.30875245  
C3=.95114243  M8  F=R1  
N510  X-­108.10672  Y-­7.02957  Z16.3566  A3=0.0  B3=-­.30875245  C3=.95114243  
N520  X-­108.10647  Y-­6.37759  Z16.7905  A3=0.0  B3=-­.30875245  C3=.95114243  
N530  X-­108.10625  Y-­5.86013  Z17.37835  A3=0.0  B3=-­.30875245  C3=.95114243  
N540  X-­108.10607  Y-­5.51245  Z18.0801  A3=0.0  B3=-­.30875245  C3=.95114243  
N550  X-­108.10595  Y-­5.35825  Z18.84793  A3=0.0  B3=-­.30875245  C3=.95114243  
N560  ;;  Milling  
N570  X-­108.10584  Y-­5.30019  Z19.70929  A3=0.0  B3=-­.30875245  C3=.95114243  
N580  X-­108.10574  Y-­5.17854  Z20.37475  A3=0.0  B3=-­.30875245  C3=.95114243  
  
  
  
  
  
N9280  X4.66669  Y-­27.44925  Z25.44657  A3=0.0  B3=-­.30875245  C3=.95114243  
N9290  Y-­27.06127  A3=0.0  B3=-­.30875245  C3=.95114243  
N9300  Y-­25.62899  A3=0.0  B3=-­.30875245  C3=.95114243  
N9310  ;;Departure  move  
N9320  Y-­24.85253  Z25.54879  A3=0.0  B3=-­.30875245  C3=.95114243  
N9330  Y-­24.12899  Z25.84849  A3=0.0  B3=-­.30875245  C3=.95114243  
N9340  Y-­23.50767  Z26.32525  A3=0.0  B3=-­.30875245  C3=.95114243  
N9350  Y-­23.03091  Z26.94657  A3=0.0  B3=-­.30875245  C3=.95114243  
N9360  Y-­22.73121  Z27.67011  A3=0.0  B3=-­.30875245  C3=.95114243  
N9370  Y-­22.62899  Z28.44657  A3=0.0  B3=-­.30875245  C3=.95114243  
N9380  ;;Retract  move  
N9390  G0  Y-­25.34227  Z36.8051  A3=0.0  B3=-­.30875245  C3=.95114243  
N9410  TRAFOOF  
N9420  SUPA  G0  Z0.0  D0                                                                                ;;    Retract  to  save  Z  from  MCS  
N9430  SUPA  G0  X0.0  Y0.0  A0.0  C0.0  D1                            ;;    Retract  to  save  X  Y      
                                                                                                                                                                  ;;    and  return  rotary  axes  to      
                                                                                                                                                                  ;;    initial  position  
N9440  M17  
  
  
840Dsl  SINUMERIK    Operate   Page  91   M103M103  
  
Notes  
Section  5  5.1    Information  for  the  machine  operator                Program  interruption  
Interrupting  a  program  
  
REPOS  -­  repositioning  after  an    interruption  
  
Function  
When  a  program  is  interrupted  with   the  tool  can  be  moved  
away  from  the  contour  in  JOG  mode,  e.g.  to  perform  a  measurement.    
The  control  system  saves  the  breakpoint  coordinates.  The  differential  
travel  of  the  axes  is  displayed.  
  
Operation  
  
Interrupting  a  program  2.6  
  
Initial  situation:    
NC  Stop  
  
Select  the   operating  area.  
  
  
Select   mode.  
  
Repositioning  after  program  interrupt.  
  
Select  axes.  
  
Move  the  axes  to  the  breakpoint  according  to  
the  differential  travel  displayed.  
The  breakpoint  cannot  be  overrun.  
  
  
Switch  from   mode  to  
mode.  
  
  
Continue  machining  with   -­  
  
  
  
  
TOROT  -­  retraction  from  an  inclined  hole  or  undercut  
  
Function  
  
When  5-­axis  transformation  is  enabled,  TOROT  generates  a  frame  whose  
Z  axis  coincides  with  the  current  tool  orientation.  This  allows  the  tool  to  be  
retracted  in  a  5-­axis  program,  after  a  tool  breakage,  for  example,  without  
the  risk  of  collision,  by  retracting  theZ  axis.  After  tool  orientation  has  been  
programmed  with  TOROT,  all  the  programmed  geometry  axis  movements  
refer  to  the  frame  generated  by  this  programming.  
  
  
M103M103   Page  92   840Dsl  SINUMERIK    Operate  
Notes  
  Section  5   5.1    Information  for  the  machine  operator                Program  interruption  
  
  
  
follows:  
  
  
          Select  single  block.  Start  the  program  block  by  block  with      
           -­  
  
  
As  an  alternative  to  incremental  retraction  in  MDA  mode,  the  tool  can  
be  retracted  in  JOG  mode  by  pressing  the  direction  key  in  the  tool  di-­
rection.  
Notice:  For  retraction  in  JOG  mode  the  machine  must  be  configured  
accordingly  (Z  axis  as  the  geometry  axis).  
  
  
TOROT  must  be  deselected  before  the  start  of  
the  next  program  with  TOROTOF  
N10  TRAORI                                                    ;;Transformation  ON  
N20  TOROT                                                      ;;Calculate  and  select  retraction  frame  
N30  G1  G91  Z50  F500                      ;;incr.  retract  in  Z  direction  by  50  mm  
N40  M17                                                                  ;;End  of  subroutine  
  
  
840Dsl  SINUMERIK    Operate   Page  93   M103M103  
  
Notes  
Section  6  6.1    Appendix                Calculation  of  directional  vectors    
Calculation  of  directional  vectors  
  
Arithmetic  operations/functions  
  
Function:    ATAN2(  ,  )  
  
The  arithmetic  functions  are  primarily  for  R  parameters  and  variables  (or  
constants  and  functions)  of  type  REAL.  The  types  INT  and  CHAR  are  also  
permitted.    
  
Arithmetic  function  ATAN2(  ,  )  
  
The  function  calculates  the  angle  of  the  total  vector  from  two  mutually  or-­
thogonal  vectors.  The  result  is  in  one  of  four  quadrants  ( °  <  0  <  +180°).  
The  angular  reference  is  always  based  on  the  2nd  value  in  the  positive  di-­
rection.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Programming  
  
The  usual  mathematical  notation  is  used  for  arithmetic  operations.  Priori-­
ties  for  execution  are  indicated  by  parentheses.  Angles  are  specified  for  
trigonometry  functions  and  their  inverse  functions  (right  angle  =  90°).  
  
  
M103M103   Page  94   840Dsl  SINUMERIK    Operate  
Notes  
  Section  6   6.2    Appendix                Arithmetic  functions  /  parameters  
Parameters  
  
Operators/Mathematical  functions  
+  Addition  
-­  Subtraction  
*  Multiplication  
/  Division  
  
DIV                Caution:  (type  INT)  /  (type  INT)=(type  REAL);;  example:  3/4  =  0.75  
                            Division,  for  variable  type  INT  and  REAL  
  
MOD          Caution:  (type  INT)  DIV  (type  INT)=(type  INT);;  example:  3  DIV  4  =0      
                            Modulo  division  (only  type  INT)  produces  remainder  of  INT  divsion          
                            Example  3  MOD  4=3  
  
:                                                                  Chain  operator  (for  FRAME  variables)  
Sin()                                                      Sine  
COS()                                                Cosine  
TAN()                                                  Tangent  
ASIN()                                                Arcsine  
ACOS()                                            Arccosine  
ATAN2  (,)                                    Arctangent2  
SQRT()                                            Square  root  
ABS()                                                Absolute  value  
POT()  2.                                        power  (square)  
TRUNC()                                      Truncate  to  integer  
ROUND()                                      Round  to  integer  
LN()                                                      Natural  logarithm  
EXP()                                                  Exponential  function  
MINVAL  ()                                    Lower  value  of  two  variables  
MAXVAL  ()                                Larger  value  of  two  variables  
BOUND  ()                                    Variable  value  within  the  defined  value  range  
CTRANS()                                  Translation  
CROT  ()                                          Rotation  
CSCALE()                                  Change  of  scale  
CMIRROR()                              Mirroring  
  
Example:  Initialization  of  complete  variable  arrays  
  
R1=R1+1                                                                                ;;New  R1  =  old  R1  +1  
R1=R2+R3  R4=R5-­R6  R7=R8*R9  
R10=R11/R12  R13=SIN(25.3)  
R14=R1*R2+R3                                                            ;;Multiplication  or  division  takes  prece-­
dence      
                                                                                                                  over  addition  or  subtraction  
R14=(R1+R2)*R3                                                      ;;Parentheses  are  calculated  first  
R15=SQRT(POT(R1)+POT(R2))      ;;Inner  parentheses  are  resolved  first  
;;R15  =  square  root  of  (R1+R2)  
RESFRAME=  FRAME1:FRAME2      ;;The  concatenation  operator  links  frames  
  
                                                                                                                  values  to  frame  components  
  
  
  
  
S
in
um
er
ik
 
This  document  was  produced  for  training  purposes.  
  840Dsl  SINUMERIK    Operate   Page  1   M104M104  
  
CYCLE832  Advanced  surface  
Brief  description  
Objective  of  the  Module:  
This  module  explains  the  use  and  application  of  the  high  speed  setting  CYCLE832  with  all  asociated  
comands.  
  
Description  of  the  Module:  
This  Module  shows  various  applications  of  the  HSC  CYCLE832  on  practical  examples,  such  as  
parameter  settings,  associated  path  actions  and  special  commands  for  high  speed  machining  appli-­
cations,  helps  to  understand  the  use  and  function  of  the  cycle.  
M104  
Contents  :  
Theory  
High-­speed-­setting  CYCLE832  
Manufacturer  cycle  CUST_832  
Path  actions  
  
M104M104   Page  2   840Dsl  SINUMERIK    OperateM104  
   M104  
      
      Notes    
  
  
840Dsl  SINUMERIK  Operate                                                                                                                              Page  3                                                                                                                                                                                              M104M104  
Cycle832:  Description  
This  Module  shows  various  applications  of  the  
HSC  CYCLE832  on  practical  examples,  such  as  
mould  &  die  machining  of  free  form  surfaces.  A  
detailed  explanation  of  HSC  CYCLE832  with  all  
and  special  commands  for  high  speed  machining  
applications,  helps  to  understand  the  use  and  
function  of  the  cycle.  
                
             Cycle832:  
END  
Cycle832:  
START  
Theory  
High  speed    
setting  cycle832  
Manufacturer  cycle  
CUST_832    
Path  actions  
  
  
M104M104   Page  4   840Dsl  SINUMERIK    Operate  
  
                                                                                                            
  
  
840Dsl  SINUMERIK    Operate   Page  5   M104M104  
  
Notes  
   Section  1  
1.1  For  the  Theory  
            Precision,  speed,  surface  quality  
Function  
  
CAD/CAM-­Systems  generate  usually  linear  blocks,  in  respect  of  the  pa-­
rameterized  accuracy.  This  can  cause  extremely  high  amount  of  data,  
when  working  with  complex  contours  (free  form  surfaces)  and  short  path  
sections.  These  path  sections  3  limit  the  machining  velocity.  
According  to  the  specified  tolerance  band  1  the  compressor  combines  a  
sequence  of  G1  commands  2  and  compresses  them  into  a  spline  
2,  which  is  directly  executable  by  the  control  system.  
This  results  are:  
Reduction  of  part  program  blocks  that  define  the  workpiece  (smaller  
programs).  
Smooth  block  to  block  transitions  that  make  a  smooth  surface  (machine  
resonance  is  avoided.  
Higher  path  velocity  and  reduction  of  machine  load.    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
COMPCAD,  COMPCURVE      
  
Computing  time  and  intensive  memory  storage  compression,  which  opti-­
mizes  surface  quality  and  velocity.  Compressor  should  only  be  used,  if  no  
prior  steps  to  improve  the  surface  quality  are  made  by  the  CAD/CAM  sys-­
tem.  Deactivate  the  compressor  function  with  COMPOF.      
COMPCAD  is  automatically  called  in  CYCLE832.    
COMPCURVE  must  be  programmed  separately.  
  
  
Prerequisites  
  
NC-­Block  compression  is  only  preformed  for  linear  blocks  (G1).  
Only  blocks  with  a  following  syntax  are  compressed:                                                    
  
          All  other  blocks  are  processed  without  compression.  
Traversing  blocks  with  extended  addresses  like  C=100  or  A=AC(100)  
are  also  compressed.    
Position  values  do  not  have  to  be  directly  programmed,  and  can  also  be  
defined  indirectly  with  parameter  assignment,  e.g.  X=R1*(R2+R3)  
NC-­blocks  with  tool  orientation,  programmed  through  vectors,  can  also  
  
  
  
  
  
  
  
M104M104   Page  6   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  1  
1.1    For  the  Theory  
              Precision,  speed,  surface  quality  
Process  chain:  CAD  -­>  CAM  -­>  CNC    
  
CAD        -­>        CAM    
Many  CNC  programs  for  freeform  surface  machining  come  from  CAM  sys-­
tems.  The  CAM  system  obtains  the  workpiece  geometry  from  a  CAD  sys-­
tem.  
  
CAM        -­>        CNC  
The  CAD  -­>  CAM  -­>  (post-­processor)  -­>  CNC  process  chain  is  particu-­
larly  important  in  the  machining  of  freeform  surfaces.  
CAD  systems  construct  higher-­
order  surfaces  1  .  
  
For  example,  in  order  to  be  able  to  
mill  an  entire  surface,  or  for  collision  
checking,  the  CAM  system  gener-­
ally  converts  the  CAD  surfaces  into  
a  polyhedron.  
  
  
In  other  words,  the  smooth  design  
surface  is  approximated  by  numer-­
ous  tiny  planes  2.  
  
This  inevitably  produces  some  mi-­
nor  deviations.  
  
  
  
  
  
  
The  CAM  programmer  overlays  this  
polyhedron  with  tool  paths,  which  
the  postprocessor  uses  to  create  
CNC  blocks  within  the  specified    
error  tolerances.  These  usually  
comprise  numerous  short  straight  
lines,  G1  X  Y  Z  3.  
That  is  why  the  machining  result  is  
a  polyhedron,  i.e.  the  small  planes  
can  be  visibly  mapped  on  the  sur-­
face.  This  can  mean  that  rework  is  
necessary,  however,  which  is            
undesirable.  
  
  
840Dsl  SINUMERIK    Operate   Page  7   M104M104  
  
Notes  
   Section  1  
1.2    For  the  Theory  
              Precision,  speed,  surface  quality  
Sinumerik  840D  includes  various  
functions  which  can  help  to  avoid  
rework.  One  of  these  is  defined  cor-­
ner  rounding  at  block  boundaries.  
This  involves  inserting  geometrical  
elements  4  at  the  corners,  the  toler-­
ance  of  which  can  be  altered.  
  
  
  
  
  
Compressor  function  (COMPCAD)  
  
Linear  interpolation  at  the  block  
transitions  leads  to  acceleration  
jumps  in  the  machine  axes,  which  in  
turn  can  cause  resonance  in  the  
machine  elements  and  can  ulti-­
mately  be  detected  on  the  work-­
piece  surface  as  a  beveled  pattern  1  
or  as  vibration  2.  
  
  
  
  
  
  
Analogously  to  the  specified  toler-­
ance  band  1  the  compressor  com-­
bines  a  sequence  of  G1  commands  
2  and  compresses  them  to  form  
a  spline  3,  which  is  directly  executa-­
ble  by  the  control  system.  
  
This  makes  the  surface  much  
smoother,  since  the  machine  axes  
can  move  more  harmoniously  
and  machine  resonance  is  avoided.  
This  allows  higher  traversing  speeds  
and  reduces  the  load  on  the  ma-­
chine.  
Programmable  corner  rounding  
  
  
M104M104   Page  8   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  2  
2.1  Advanced  surface  
            Compressor  function  
  
COMPCURV  Compressor  on:  
  
Approximation  by  polynomial,  5th  degree.  
G1  blocks  are  approximated  by  a  polynomial.  
The  block  transitions  are  jerk-­free.  
  
Preferably  for  circumferential  milling  
  
_________________________________________________________________  
  
COMPCAD  Compressor  on:  
  
COMPCAD  smoothes  the  point  profile  before  approximation  
(B  spline)  and  at  high  path  speed  offers  maximum  precision                                                            
with  constant-­acceleration  transitions  
(compression  rate  unlimited,  but  max.  path  length  5  mm)  
  
Preferably  for  the  milling  of  freeform  surfaces  (recommended)  
_______________________________________________________________  
  
COMPOF  Compressor  off:  
  
  
Programming  
  
To  program  compressor  separately  you  should  use  the  following  com-­
mands  
  
COMPCURV  (must  be  programmed  separately)  
COMPCAD  (activated  in  CYCLE832  DYNROUGH,  DYNSEMI,  DYNFIN)  
COMPOF        (DYNNORM)  
  
   G00  X30  Y6  Z40  
   G1  F10000  G642                    ;;  Corner  smoothing  G642  on.  
   COMPCAD        ;;  Compressor  funktion  COMPCAD  on.  
   FIFOCTRL  
   N24050  Z32.499  
   N24051  X41.365  Z32.500  
   N24052  X43.115  Z32.497  
   N24053  X43.365  Z32.477  
   N24054  X43.556  Z32.449  
   N24055  X43.818  Z32.387  
   N24056  X44.076  Z32.300  
    
   COMPOF           ;;  Compressor  funktion  on.  
   G00  Z50  
   M30  
  
  
Explanation  of  the  commands  
  
  
840Dsl  SINUMERIK    Operate   Page  9   M104M104  
  
Notes  
   Section  2  
2.2  Advanced  surface  
            High-­speed-­setting  Cycle  832  
  
Application  CYCLE832  HSC  settingsYou  can  influence  the  sequence  of  CAM  programs  using  CYCLE832  of  the  
SINUMERIK  840D.  It  is  used  to  provide  technological  support  when  ma-­
chining  freeform  surfaces  in  the  3-­5  axis  high  speed  machining  sector                            
(High  Speed  Cutting  -­  HSC).  CYCLE832  combines  the  essential                        
programming  commands  and  G  codes  that  are  required  for  HSC.  
  
When  executing  CAM  programs  in  the  HSC  area,  the  control  has  to  proc-­
ess  high  feedrates  with  the  shortest  NC  blocks.  A  good  surface  quality  with  
high  precision  in  the   m  range  at  high  machining  feedrates  >10  m/min  is  
expected.  By  applying  different  machining  strategies  (roughing,  semifinish-­
ing,  finishing)  you  can  use  CYCLE832  to  fine  tune  the  program.  
  
Call  CYCLE832  in  the  main  program  before  calling  the  geometry  subpro-­
gram.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Technology-­G-­Groups  
  
technological  machining  operations:    
  
-­Setting)  
  
  
  
  
  
M104M104   Page  10   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  2  
2.3  Advanced  Surface  
            High-­speed-­settings  Cycle  832  
  
Description:  
  
The  4  machining  operations  in  CAM  programs  for  HSC  machining  are  in  
direct  relation  to  accuracy  and  velocity  of  the  path  contour  (see  picture).  
The  operater  can  emphesis  between  accuracy,  path  velocity  and  surface  
quality,  through  input  of  tolerance  values.    
  
When  roughing,  the  emphasis  is  on  speed  due  to  the  blending  of  the      
          contour.  
When  finishing,  the  emphasis  is  on  accuracy  and  surface  quality.  
  
In  both  cases,  specifying  a  tolerance  ensures  that  the  machining  of  a  free  
form  surfaces  is  observed  in  order  to  achieve  the  desired  surface  quality  
and  precision.  Generally,  when  roughing,  the  tolerance  is  selected  higher  
than  when  finishing.  
  
  
Machining  process                                  Technologie  G-­group  59  
Deselection                                                            DYNNORM  (Standard-­Settings)  
Roughing                                                                    DYNFINISH  (HSC-­Settings)  
Semifinishing                                                        DYNSEMIFINISH  (HSC-­Settings)  
Finishing                                                                      DYNROUGH  (HSC-­Settings)  
  
G-­code  commands  (dynamicparameters)  of  the  technology  G-­group  59  are  
referenced  to  these  four  machining  operations  (e.g.  roughing,  semifinish,  
finish).    
  
always  in  a  clearly  defined  MD  condition.  That  means  each  technology  
the  machining  process  with  any  of  the  above  technology  G-­Group  
comands.  
  
When  CYCLE832  is  deselected,  G-­code  groups  that  are  agreed  on  in  the  
machine  data  are  being  activated  upon  reset.  
  
  
840Dsl  SINUMERIK    Operate   Page  11   M104M104  
  
Notes  
   Section  2  
2.4  Advanced  Surface  
            High-­speed-­settings  Cycle  832  
Approach:  
  
  
  
              
  
      
  
    
      
  
  
  
  
The  input  screen  mask  for  CYCLE832  "High-­speed-­settings"  is  being  
opened.  
Input  the  machining  tolerance  
  
  
  
                    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
The  part  program  is  open  and  open  in  
NC-­editor  
  
  
Press  Softkey  "Various".  
  
  
  
Press  Softkey  "HighSpeed  Settings".  
  
Fi
ni
sh
in
g  
S
em
ifi
ni
sh
in
g  
R
ou
gh
in
g  
  
  
M104M104   Page  12   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  2  
2.5  Advanced  Surface  
            High-­speed-­settings  Cycle  832  
Programming  example  
  
   N10  T1  D1               ;;Tool  change  
   N11  M6  
   N20  G54  G710             ;;Work  offset,  metric  program  
   N30  M3  S12000             ;;Spindle  on  
   N40  CYCLE832(0.05,3,1)         ;;Tolerance  value  0.05  mm,          
                                                                                                                                                      machining  process      
                                                                                                                                                        
   N50  EXTCALL"CAM_ROUGH"       ;;Subprogram  call    
                                  CAM_ROUGH  external  
                 program  call  
   N60  T2  D1               ;;Tool  change  
   N61  M6  
   N70  CYCLE832(0.005,1,1)         ;;Tolerance  value  0.005  mm,  
                 machining  process  
                                                                                                                                                      
   N80  EXTCALL"CAM_FINISH"       ;;Subprogram  call    
                                  CAM_FINISH  
   N90  M30               ;;End  of  program  
  
The  subprograms  CAM_ROUGH.SPF,  CAM_FINISH.SPF  include  
workpiece  geometry  and  technological  data.     (Feedrate).    
Because  of  their  size,  the  programs  are  called  externally.  
  
  
Tolerance  
  
The  tolerance  value  for  the  linear  axes  is  (geometry  axes)  is  passed  
to  the  CNC  with  the  NC-­command  CTOL.  CTOL  =  squareroot(3)  *  
tolerance  value.  
  
If  rotary  axes  are  involved  in  the  operation  (multi-­axes  transforma-­
tion),  then  the  tolerance  value  is  passed  on  to  the  CNC  with  the  fac-­
tor  in  NC-­command  OTOL.  
  
This  factor  is  settable  for  all  four  machining  processes  in  the  follow-­
ing  channel  specific  setting  data:  
  
   SD55440  $SCS_MILL_TOL_FACTOR_NORM  Factor  Tolerance  of
   rotary  axes  for  CYCLE832,  G-­Group  59,  =  10  
   SD55441  $SCS_MILL_TOL_FACTOR_ROUGH  Factor  tolerance  of  
   rotary  axes    for  roughing  in  G-­group  59  =  10  
   SD55442  $SCS_MILL_TOL_FACTOR_SEMIFIN  Factor  tolerance  of      
                    rotary  axes  for  semi-­finishing  in  G-­group  59  =  10  
   SD55443  $SCS_MILL_TOL_FACTOR_FINISH  Factor  tolerance  of  
   rotary  axes  for  finishing  in  G-­group  59.  =  10  
  
Function  
With  the  G-­group  "Technology"  it  is  possible  to  activate  the  appropri-­
ate  dynamic  parameters  for  different  technological  machining  opera-­
tions.  Dynamic  values  and  G-­commands  can  be  customized  and    
depend  upon  machine  data  settings  (machine  manufacturer  !)    
  
Note  
The  dynamic  values  are  already  active  in  the  block  with  the                    
programmed  G-­command.  There  is  no  program  halt.    
  
  
840Dsl  SINUMERIK    Operate   Page  13   M104M104  
  
Notes  
   Section  2  
2.6  Advanced  Surface  
            High-­speed-­settings  Cycle  832  
Programming  
   Activate  dynamic  values  
   Programm  code           Comment  
   DYNNORM  G1  X10           ;;  Default  
    
   DYNROUGH  G1  X10  Y20  Z30  F10000     ;;  Roughing  
   DYNSEMIFIN  G1  X10  Y20  Z30  F2000     ;;  Semi-­finishing  
   DYNFINISH  G1  X10  Y20  Z30  F1000     ;;  Finishing  
  
NC-­commands  
   DYNNORM:     G-­command  for  activation  of  default  dynamic  
   DYNPOS:       G-­command  for  activation  of  dynamic  for  positio-­
         ning  mode,  tapping  
   DYNROUGH:     G-­command  for  activation  of  dynamic  for  roughing  
   DYNSEMIFIN:     G-­command  for  activation  of  dynamic  for  semifinish  
   DYNFINISH:     G-­command  for  activation  of  dynamic  for  finishing
          
Machining  type  and  technology  G-­Group  59  
   The  type  of  machining  operations  of  the  technology  G-­Group  59  are      
                    assigned  to  CYCLE832  by  means  CUST_832.SPF:  
  
   Machiningtype      Technology  G-­Group  59       index  
   Deselect             DYNNORM           0  
   Positioning     DYNPOS           1  
   Roughing     DYNROUGH           2  
   Semi-­finishing     DYNSEMIFIN           3  
   Finishing       DYNFINISH           4  
  
With  the  technology-­G-­Groups  you  can  adopt  dynamic  parameters  to  
the  appropriate  machining  operations.  Channel  specific  and  axis  spe-­
cific  machine  data  of  technology  G-­group  59  are  activated  with  the  
appropriate  Field  index:  
    
   MD20600  $MC_MAX_PATH_JERK[0..4]      
   Path  oriented  maximum  jerk    
   MD20602  $MC_CURV_EFFECT_ON_PATH_ACCEL[0..4]    
   Influence  of  path  curvature  on  path  dynamic.  
   MD20603  $MC_CURV_EFFECT_ON_PATH_JERK[0..4]    
   Influence  of  path  curvature  on  path  jerk.  
                    MD32300  $MA_MAX_AX_ACCEL[0..4]    
   Maximum  axes  acceleration    
   MD32310  $MA_MAX_ACCEL_OVL_FACTOR[0..4]    
   Überlastfaktor  für  axiale  Geschwindigkeitssprünge.  
   MD32431  $MA_  MAX_AX_JERK[0..4]    
   maximaler  axialer  Ruck  bei  Bahnbewegung.  
   MD32432  $MA_PATH_TRANS_JERK_LIM[0..4]    
   maximaler  axialer  Ruck  am  Satzübergang  im  Bahnsteuerbetrieb.  
   MD32433  $MA_SOFT_ACCEL_FACTOR[0..4]    
   Skalierung  der  Beschleunigungsbegrenzung  bei  SOFT.  
  
Note:  These  machine  data  is  only  to  be  set  by  authorized  service  personal  
  
Deselect  machining  type    
If  CYCLE832  is  deselected  the  G-­groups  during  program  run  are  pro-­
grammed  to  the  settings  in  the  machine  data  that  are  agreed  upon  in  
MD2150  $MC_GCODE_RESET_VALUES[  ]  .  
If  CYCLE832  is  deselected  and  their  is  no  tolerance  programmed,  
then  settings  from  the  following  channel  specific  setting  data  is  being  
used:    
  
  
M104M104   Page  14   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  2   2.7  Advanced  surface              Manufacturer  cycle  CUST_832.SPF  
    
Manufacturer  cycle  CUST_832.SPF  
  
If  the  machine  manufacturer  requires  additional  responses  from  CY-­
CLE832  beyond  those,  which  can  be  achieved  by  customizing  the  technol-­
ogy,  the  settings  (G-­commands)  in  CYCLE832.SPF  can  be  modified  in  the  
manufacturer  cycle  CUST_832.  Proceed  as  follows:  
  
     1.  Copy  cycle  CUST_832.SPF  from    
     directory  /NC-­data/Cycles/Standard  cycles.  
     2.  Past  the  cycle  CUST_832.SPF  in  the  directory  
     /NC-­data/Cycles/Manufacturer  cycles.  
  
   Following  commands  are  programmed  in  CUST_832.SPF:  
   SOFT  
   COMPCAD  
   G645  
   FIFOCTRL  
   UPATH  
   ;;FFWON  
   ;;ORISON  
   ;;OST  
   DYNNORM,  DYNFINISH,  DYNSEMIFIN,  DYNROUGH    
                    (depending  on  machining  type)  
  
   Following  markers  are  prepared  in  CUST_832.SPF  :  
                  _M_INIT:  
   _M_NORM:  
   _M_FINISH:  
   _M_SEMIFINISH:  
   _M_ROUGH:  
SD55445  $SCS_MILL_TOL_VALUE_NORM          Tolerance  value  deselect  
  
  
840Dsl  SINUMERIK    Operate   Page  15   M104M104  
  
Notes  
   Abschnitt  2  2.8  Advanced  surface              Manufacturer  cycle  CUST_832.SPF  
  
Structure  of  CYCLE832  and  CUST_832:  
  
With  the  input  of  the  Tolerance  value   and  the  selection  of  the  ma-­
chining  typ   _  (roughing,  semifinishing,  finishing,  deselect)  in  the  
CYCLE832  input  mask,  there  is  a  jump  executed  into  cycle  
CUST_832.SPF  which  activates  the  resulting  technology  group  (dynrough,  
dynsemifin,  dynfinish,  dynnorm).  
  
  
  
  
  
  
  
  
                                                                                      
                                                                                            
  
  
                                                                                  
  
  
  
  
  
  
  
  
  
  
  
CYCLE832.SPF                                CUST_832.SPF  
CYCLE832  
  
Eingabe  parameter  
_TOL    
_TOLM    
  _M_NORM  =  Deselect  CYCLE832  or  
  _M_FINISH  =  Application  finishing  or  
  _M_SEMIFIN  =  Application  Semifinish  or  
  _M_ROUGH  =  Application  Roughing  
_M_INIT=  Init  CUST_832  
End  of  
CYCLE832  
CYCLE832  
  
  
M104M104   Page  16   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  2   2.9  Advanced  surface              Manufacturer  cycle  CUST_832.SPF  
Example  of  customizing  
  
The  machine  manufacturer  wants  to  perform  the  following  customization:  
  
1.   The  rotary  axis  tolerance  is  to  be  12  times  higher  than  the  tolerances  
of  the  linear  axes.  
2.   In  the  "Finishing",  "Rough-­finishing"  and  "Roughing"  machining  
modes,  the  path  jerk  (MD  $MC_MAX_PATH_JERK)  is  defined  as  
value  15  and  the  axis  jerk  (MD  $MA_MAX_AX_JERK[AX])  as  value  
150.  
3.   On  deselection  of  CYCLE832,  the  changed  machine  data  must  be  
reset  to  the  default  settings  (1000.15).  
  
The  G-­groups  (G-­group  59)  technology  is  used.  The  following              
machine  data  were  set  up  by  the  machine  manufacturer  for  this        
purpose:  
MD20600:  MAX_PATH_JERK[0]=1000  Deselection  DYNNORM  
MD20600:  MAX_PATH_JERK[2]=15  Roughing  DYNROUG  
MD20600:  MAX_PATH_JERK[3]=15  Rough-­Finishing  DYNSEMIFIN  
MD20600:  MAX_PATH_JERK[4]=15  Finishing  DYNFINISH  
MD32431:  MAX_AX_JERK[0,n]=15  n=AX1  ..  AX5  
MD32431:  MAX_AX_JERK[2,n]=150  
MD32431:  MAX_AX_JERK[3,n]=150  
MD32431:  MAX_AX_JERK[4,n]=150  
  
The  technology-­dependent  changeover  occurs  in  CUST_832  
  
%_N_CUST_832_SPF  
;;$PATH=/_N_CST_DIR  
PROC  CUST_832(INT  _MCASE,VAR  REAL  _FACTOR,VAR  REAL  
_FGREF)  SBLOF  DISPLOF  
  
_M_INIT  
_FGREF=10          
_FACTOR=12  
IF  NOT($MN_SCALING_SYSTEM_IS_METRIC)  
_FACTOR=_FACTOR*$MN_SCALING_VALUE_INCH  
ENDIF  
GOTOF  _MEND  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  17   M104M104  
  
Notes  
   Abschnitt  2  2.10  Advanced  surface                  Manufacturer  cycle  CUST_832.SPF  
  
  
PROC  CUST_832(INT  _MCASE,VAR  REAL  _FACTOR,VAR  REAL  
_FGREF)  SBLOF  DISPLOF  
;;VERSION:  02.06.53.00  ;;DATE:  2010-­06-­22  
;;CHANGE  :  02.06.47.00  ;;DATE:  2009-­10-­22  
;;customer  cycle  to  cycle  High  Speed  Settings  (CYCLE832)  
;;  The  user  can  modify  marks  _M_INIT,  and  _M_NORM  to  _M_ROUGH  
;;  _M_INIT                                      =  Init  CYCLE832  
;;  _M_NORM                            =  Deselect  CYCLE832  
;;  _M_FINISH                            =  Machining  Finish  
;;  _M_SEMIFINISH          =  Machining  Semifinish    
;;  _M_ROUGH                        =  Machining  Rough  
;;  _FACTOR  for  orientation  axes  see  setting  data  from  SD  55441  to  55443  
N83201  CASE  _MCASE  OF  0  GOTOF  _M0  1  GOTOF  _M1  2  GOTOF  _M2  
3  GOTOF  _M3  4  GOTOF  _M4  10  GOTOF  _M_NORM  11  GOTOF  
_M_FINISH  12  GOTOF  _M_SEMIFINISH  13  GOTOF  _M_ROUGH  14  GO-­
TOF  _M_INIT  DEFAULT  GOTOF  _MEND  
LOOP  
MSG("CUST_832:  The  parameter  _:  "<<_MCASE<<"  is  missing.  Change  
line  N83201  above")  
M0  
STOPRE  
ENDLOOP  
;;  
_M_INIT:  
_FGREF=10          
GOTOF  _MEND  
;;  
_M_NORM:                                                                
GOTOF  _MEND  
;;  
_M_FINISH:  
SOFT    
COMPCAD  
G645  
FIFOCTRL  
UPATH  
;;FFWON  
;;ORISON  
;;OST  
DYNFINISH  
GOTOF  _MEND  
;;  
_M_SEMIFINISH:  
SOFT    
COMPCAD  
G645  
FIFOCTRL  
UPATH  
;;FFWON  
;;ORISON  
;;OST  
DYNSEMIFIN  
GOTOF  _MEND  
;;  
  
  
  
M104M104   Page  18   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  2   2.11  Advanced  surface                  Manufacturer  cycle  CUST_832.SPF  
_M_ROUGH:  
SOFT    
COMPCAD  
G645  
FIFOCTRL  
UPATH  
;;FFWON  
;;ORISON  
;;OST  
DYNROUGH  
GOTOF  _MEND  
;;  
;;-­-­-­-­-­-­  compatible  with  CYC_832T  and  Advanced  Surface    
_M4:    
;;Parameter  _FACTOR  see  Setting  Data  55441  
$SCS_MILL_TOL_FACTOR_ROUGHand  following      
GOTOF  _MEND  
;;  
_M0:    
DYNNORM  
GOTOF  _MEND  
;;  
_M1:    
SOFT    
;;COMPCAD  
;;G645  
;;FIFOCTRL  
;;UPATH  
;;FFWON  
;;ORISON  
;;OST  
DYNFINISH  
GOTOF  _MEND  
;;  
_M2:    
SOFT    
;;COMPCAD  
;;G645  
;;FIFOCTRL  
;;UPATH  
;;FFWON  
;;ORISON  
;;OST  
DYNSEMIFIN  
GOTOF  _MEND  
;;  
_M3:    
SOFT    
;;COMPCAD  
;;G645  
;;FIFOCTRL  
;;UPATH  
;;FFWON  
;;ORISON  
;;OST  
DYNROUGH  
GOTOF  _MEND  
;;  
_MEND:  
RET  ;;M17  
  
  
840Dsl  SINUMERIK    Operate   Page  19   M104M104  
  
Notes  
   Abschnitt  3  3.1    Path  actions                General  explanation                                          
Path  Action    
  
General  notes  
  
Programming  path  travel  behavior:  
  
In  this  section  you  will  find  descriptions  of  commands,  with  which  you  can  
adapt  the  travel  behavior  at  the  block  boundaries  optimally  for  special  re-­
quirements.  For  instance,  you  can  position  axes  quickly  enough  or  corre-­
spondingly  reduce  path  contours  over  several  blocks  taking  into  account  
an  acceleration  limit  and  the  overload  factor  of  the  axes.  Greater  
inaccuracies  of  the  path  contour  occur  with  increasing  speed.  
  
Path  commands  are  programmed  with  the  associated  parameters.  
  
Basic  description  
  
On  change  of  the  movement  direction  in  the  continuous-­path  mode  contour  
transitions  are  smoothed  in  that  programmed  positions  are  not  approached  
exactly.  In  this  way  corners  can  be  moved  round  with  as  constant  as  possi-­
ble  speed  or  transitions  can  be  optimized  with  additional  commands.  With  
the  exact  stop  function,  machining  operations  can  be  
implemented  as  precisely  as  possible  with  inclusion  of  additional  accuracy  
criteria.  The  control  determines  the  velocity  control  with  look  ahead  auto-­
matically  for  several  blocks  in  advance.  
  
For  axes  acceleration  processes  can  be  activated  both  conservatively  for  
the  mechanical  system  or  time-­optimized.  Both  path  axes  and  positioning  
axes,  geo  axes  and  following  axes,  which  can  also  change  according  to  
program  run  depending  on  the  relevant  blocks  or  the  momentary  process-­
ing  are  discussed.  The  type  of  feedforward  control  and  which  path  
axes  should  be  operated  with  feedforward  control  can  also  be  determined.  
In  machining  without  feedforward  control  the  maximum  permissible  contour  
error  can  be  specified.  
  
A  dwell  time  or  a  block  with  implicit  preprocessing  stop  can  be  generated  
between  two  blocks  of  the  NC  machining.  
  
A  programming  example  is  given  for  each  typical  travel  command.  
Note:  
  
The  following  path  actions  are  part  of  High-­speed-­setting  CYCLE832.  
The  commands  are  activated  upon  machining  requirements  and  settings    
in  CYCLE832.  (also  see  CUST_800).  
  
  
M104M104   Page  20   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3   3.2    Path  actions                General  explanation                                          
  
Functions  for  optimizing  travel  behavior  at  block  boundaries  
  
The  travel  behavior  at  the  block  boundaries  can  be  optimized  with  the  fol-­
lowing  functions:  
  
-­modally  effective  
  
-­path  mode  with  constant  speed  
-­path  mode  with  statement  of  the  type  of  corner  rounding  
-­path  mode  with  predictive  speed  control  
  
  
  
  
  
Activating  programmable  dwell  time  
  
Overview  of  the  various  velocity  controls  
  
  
840Dsl  SINUMERIK    Operate   Page  21   M104M104  
  
Notes  
   Abschnitt  3  3.3    Path  actions                Exact  Stop                                          
  
Exact  Stop  (G60,  G9,  G601,  G602,  G603)  
  
Function:  
  
The  exact  positioning  stop  functions  are  used  to  machine  sharp  outside  
corners  or  to  finish  inside  corners  to  size.  
With  the  exact  stop  criteria  exact  stop  window  fine  and  exact  stop  window  
coarse,  you  determine  how  accurately  the  corner  point  is  approached  and  
when  the  change  to  the  next  block  takes  place.  At  interpolation  end  you  
can  initiate  the  block  change  at  the  block  end  when  the  control  has  calcu-­
lated  a  set  speed  of  zero  for  the  axes  involved.  
  
Interpolator  end  
The  interpolator  end  is  reached  when  the  interpolator  has  calculated  the  
setpoint  velocity  of  the  axes  to  the  amount  of  zero  for  one  interpolation  
clock  pulse.  However,  the  actual  positions  of  the  path  axes  have  not  
reached  the  target  (following  error).  
The  auxiliary  functions  contained  in  the  block  are  transferred  to  the  PLC  
with  interpolator  end,  irrespective  of  the  continuous  path  mode  and/or  the  
active  exact  stop  criterion  of  the  exact  stop  function,  provided  that  these  
auxiliary  functions  are  output  after  end  of  motion.  
  
Parameters  
  
G60            Exact  stop,  modal  
G9                Exact  stop,  non-­modal  
G601        Step  enable  if  positioning  window  fine  reached  
G602        Step  enable  if  positioning  window  coarse  reached  
G603        Step  enable  if  setpoint  (end  of  interpolation)  reached  
  
Exact  stops  fine  and  coarse  can  be  defined  for  each  axis  in  machine  data.  
The  velocity  up  to  reaching  the  accurate  destination  position  at  the  end  of  
the  block  is  decelerated  to  zero.  
  
Exact  stop,  G60,  G9  
  
G9  generates  the  exact  stop  in  the  current  block.  G60  generates  the  exact  
stop  in  the  current  block  and  all  subsequent  blocks.  
Continuous-­path-­mode  functions  G64  or  G641  are  used  to  deactivate  G60.  
  
  
Note:  
  
G601,  G602  and  G603  are  only  effective  if  G60  or  G9  are  active.  
G601/G602  
  
The  movement  is  
decelerated  and  
stopped  briefly  at  
the  corner  point.  
  
  
M104M104   Page  22   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3   3.4    Path  actions                Exact  Stop                                          
  
Further  information    
  
Exact  stop  fine:  G601  
This  criterion  is  used  to  monitor  whether  the  distance  of  axis  actual  posi-­
tion  from  the  set  position  is  within  a  certain  range.  The  size  of  this  distance  
is  defined  in  MD  36010:  STOP_LIMIT_FINE  (exact  stop  fine).  
  
Exact  stop  coarse:  G602  
The  same  functionality  as  exact  stop  fine,  but  the  monitoring  window  is  de-­
fined  in  MD  36000:  STOP_LIMIT_COARSE  (exact  stop  coarse).                            
exact  stop  fine  window.  
  
  
  
End  of  interpolation,  G603  
  
The  block  change  is  initiated  when  the  control  has  calculated  a  set  velocity  
of  zero  for  the  axes  involved.  At  this  point,  the  actual  value  lags  behind  by  
a  proportionate  factor  depending  on  the  dynamic  response  of  the  axes  and  
the  path  velocity.  The  workpiece  corners  can  now  be  rounded.  
Note:  
The  limits  for  the  exact  stop  criteria  should  be  chosen  as  tight  as  neces-­
sary.  The  tighter  the  limits,  the  longer  time  is  needed  position  and  ap-­
proach  the  target  position.    
  
  
840Dsl  SINUMERIK    Operate   Page  23   M104M104  
  
Notes  
   Abschnitt  3  3.5    Path  actions                Continuous-­path  mode  and  Look  ahead  function                                          
  
Continuous-­path  mode  (G64,  G641,  G642,  G643,  G644,  G645)  
  
General  explanation  of  functions:  
  
The  purpose  of  continuous-­path  control  is  to  increase  speed  and  harmo-­
nize  traversing  performance.  This  is  achieved  with  two  functions:  
  
Look  ahead  -­  look-­ahead  speed  control  1  The  control  systemcalculates  
several  CNC  blocks  ahead  and  determines  a  modal  speed  profile.  The  way  
in  which  this  speed  control  is  calculated  can  be  set  with  functions  G64,  etc.  
  
Corner  rounding  2  
The  look  ahead  function  also  means  that  the  control  system  is  able  to  
round  the  corners  it  detects.  The  programmed  corner  points  are  therefore  
not  approached  exactly.  Sharp  corners  are  rounded.  
  
  
  
  
  
  
  
  
  
  
  
These  two  functions  mean,  that  the  contour  is  created  with  a  uniform  path  
velocity  profile.  This  establishes  better  cutting  conditions,  improves  the  sur-­
face  quality  and  reduces  the  machining  time.  
  
The  continuous  path  mode  causes  :  
a  rounding  of  the  contour.  
shorter  processing  times  due  to  missing  braking  and  acceleration  proce-­
dures,  which  are  required  for  reaching  the  exact  stop  criterion.  
better  cutting  conditions  due  to  the  more  uniform  velocity  characteristic.  
Continuous  path  mode  is  useful  if:  
a  contour  is  to  be  traversed  rapidly  (e.g.  in  rapid)  
the  exact  path  is  allowed  to  deviate  from  the  programmed  path  within  a  
certain  error,  to  produce  a  uniform  velocity  characteristic.  
Continuous  path  mode  is  not  useful  if:  
a  contour  is  to  be  traversed  exactly.  
an  absolute  constant  velocity  is  required.  
  
  
  
Note:  
In  some  cases,  an  exact  stop  must  be  generated  in  continuous  path  mode  
to  be  able  to  carry  out  the  following  actions.  In  such  situations,  the  path  
velocity  is  braked  down  to  zero.  
  
If  auxiliary  functions  are  output    
Accessing  certain  machine  condition  data  ($A...)  
  
  
M104M104   Page  24   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3   3.6    Path  actions                Continuous-­path  mode  and  Look  ahead  function                                          
List  of  commands:  
G64   Continuous-­path  mode  with  braking  at  corners    
G641     Continuous  path  mode  with  programmabel  corner  rounding.  
  
to  which  the  corners  are  rounded  
G642     Continuous  path  mode  with  corner  rounding  with  axial  tolerance  
(recommended).  
Look  ahead  with  additional  corner  rounding  corresponding      
to  MD  33100  (machine  data).  For  G642  and  G643  there  are  2  
ways  of    specifying  the  tolerance.  
1.  Specifying  single  axes                                        
2.  Programming  the  retraction  clearance  with  ADIS  Preferably      
        for  the  milling  of  freeform  surfaces.  
G643   Continuous  path  mode  with  block-­internal  corner  rounding.  
Look  ahead  with  additional  block-­internal  corner  rounding  
(corresponding  to  MD33100)  
G644     Continuous  path  mode  with  speed-­  and  acceleration-­optimized  corner  
rounding  for  rapid  positioning  outside  the  contour  
G645     Continuous  path  mode  with  corner  rounding  and  tangential  block  
transitions  with  respect  of  defined  tolerances  
ADIS=                                                  Rounding  clearance  for  path  functions  G1,  G2,  G3  
ADISPOS=                          Rounding  clearance  for  rapid  traverse  G0  (not  suitable  for  free  
form  surfaces  
  
  
840Dsl  SINUMERIK    Operate   Page  25   M104M104  
  
Notes  
   Abschnitt  3  3.7    Path  actions                Continuous-­path  mode  and  Look  ahead  function                                          
  
Continuous-­path  mode,  G64  
  
In  continuous-­path  mode,  the  tool  travels  across  tangential  contour  transi-­
tions  with  as  constant  a  path  velocity  as  possible  (no  deceleration  at  block  
boundaries).  Look  Ahead  deceleration  takes  place  before  corners  (G9)  and  
blocks  with  exact  stop  ("Look  Ahead",  see  following  pages).  
Corners  are  also  traversed  at  a  constant  velocity.  In  order  to  minimize  the  
contour  error,  the  velocity  is  reduced  according  to  an  acceleration  limit  and  
an  overload  factor.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Note:  
  
The  extent  of  smoothing  of  the  contour  transitions  depends  on  the  
feedrate  and  the  overload  factor.  The  overload  factor  can  be  set  in  the    
MD32310  $MA_MAX_ACCEL_OVL_FACTOR    
Block  transitions  settings  are  smothend  independently,  regardless  of  
overload  factor  with  MD20490  $MC_IGNORE_OVL_FACTOR_FOR_ADIS  
    
Smoothing  cannot  and  should  not  replace  the  functions  for  defined  
smoothing  (RND,  RNDM,  ASPLINE,  BSPLINE,  CSPLINE).  
  
  
M104M104   Page  26   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3   3.8    Path  actions                Continuous-­path  mode  and  Look  ahead  function                                          
  
Continuous-­path  mode,  G641  
  
With  G641,  the  control  inserts  transition  elements  at  contour  transitions.  
corners  are  rounded.  The  effect  of  G641  is  similar  to  RNDM;;  however,  it  is  
not  restricted  to  the  axes  of  the  working  plane.  
  
With  G641,  you  can  specify  the  desired  rounding  area  explicitly.  
Smoothing  cannot  and  should  not  replace  the  functions  for  defined  
smoothing  (RND,  RNDM,  ASPLINE,  BSPLINE,  CSPLINE).  
  
  
Continuous-­path  mode  G64/G641  over  several  blocks  
The  following  points  should  be  noted  in  order  to  prevent  an  undesired  stop  
in  the  path  motion  
(relief  cutting):  
Auxiliary  function  outputs  trigger  a  stop  (exception:  high-­speed  auxil-­
iary  functions  and  auxiliary  functions  during  movements).  
Intermediate  blocks,  which  contain  only  comments,  calculation  
blocks  or  subroutine  calls  do  not  affect  the  movement.  
  
Extensions  of  corner  rounding  
If  FGROUP  does  not  contain  all  the  path  axes,  there  is  often  a  step  change  
in  the  velocity  at  block  boundaries  for  those  axes  excluded  from  FGROUP;;  
the  control  limits  this  change  in  velocity  to  the  permissible  values  set  in  
MD32300  $MA_MAX_AX_ACCEL  and  MD3231  
$MA_MAX_ACCEL_OVL_FACTOR.  This  braking  operation  can  be  
avoided  through  the  application  of  a  rounding  function,  which  "smoothes"  
the  specific  positional  interrelationship  
between  the  path  axes.  
  
Corner  rounding  with  G641  
You  can  activate  a  modal  corner  rounding  action  by  programming  G641  
and  specifying  a  rounding  radius  with  ADIS  (or  ADISPOS  in  rapid  trav-­
erse).  Within  this  radius  about  the  block  change  point,  the  control  is  free  to  
ignore  the  path  construct  and  replace  it  with  a  dynamically  optimized  path.  
Disadvantage:  Only  one  ADIS  value  is  available  for  all  axes.  
  
  
  
Example:        
  
  N10  G1  G90  G94  X10  Y100  F10  
  N20  G641  ADIS=0.5  G1  X...    
  N30  Y8  
  
The  rounding  block  must  begin  0.5  
mm  before  the  programmed  end  of  
block  at  the  earliest  and  must  be  
finished  0.5  mm  after  the  end  of  the  
block.  This  setting  remains  modal.  
  
  
840Dsl  SINUMERIK    Operate   Page  27   M104M104  
  
Notes  
   Abschnitt  3  3.9    Path  actions                Continuous-­path  mode  and  Look  ahead  function                                          
  
Continuous-­path  mode  ,  G642,  G643,  G644  and  G645  
  
The  expansions  described  below  refine  the  response  with  G642,  G643,  
G644  and  G645  rounding  with  contour  tolerance  is  introduced.  When  
rounding  with  G642,  G643,  G644  and  G645  the  maximum  permissible      
deviations  of  each  axis  are  normally  specified.    
  
MD20480  $MC_SMOOTHING_MODE    
This  machine  data  can  be  used  to  configure  rounding  with  G642,G643,  
G644  and  G645  so  that  instead  of  the  axis-­specifictolerances,  a  contour  
tolerance  and  an  orientation  tolerance  can  be  specified.  In  this  case,  the  
tolerance  of  the  contour  and  of  the  orientation  is  set  using  two  independent  
setting  data,  programmed  in  the  NC,  so  that  setting  data  can  be  specified  
differently  for  each  block  transition.  
  
SD42465  $SC_SMOOTH_CONTUR_TOL  
This  setting  data  is  used  to  define  the  maximum  tolerance  for  the  contour  
when  rounding.    
  
SD42466  $SC_SMOOTH_ORI_TOL  
This  setting  data  is  used  to  define  the  maximum  tolerance  for  the  contour  
when  rounding  for  the  tool  orientation  (angle  deviation).  
This  data  is  only  effective  if  an  orientation  transformation  is  active.  Very  
different  specifications  for  the  contour  tolerance  and  the  tolerance  of  the  
tool  orientation  can  only  have  effect  with  G643.  
  
Example:  
  
To  round  sharp  corners  3,  the  continuous-­path  commands  G642,  G643,  
G644  and  G654  form  transition  elements  1,  2  at  the  block  boundaries.    
The  continuous-­path  commands  differ  in  the  way  they  form  these  transition  
elements.  With  G641,  G642,  G643,  G644  and  G645  you  can  define  the  
degree  of  rounding  2  in  the  setting  data.  
  
  
  
  
  
  
  
  
  
  
  
  
  
G642  Continous-­path  mode,  smoothing  with  axial  precision.  
Activates  corner  rounding  with  modal  axial  tolerances.  Smoothing  is  not  
made  within  a  defined  ADIS  range,  but  the  axial  tolerances,  defined  with  
MD33100  $MA_COMPRESS_POS_TOL  are  maintained.  Otherwise,  the  
mode  of  operation  is  identical  to  G641.  
With  G642,  the  rounding  travel  is  determined  on  the  basis  of  the  shortest  
rounding  travel  of  all  axes.  This  value  is  taken  into  account  when  generat-­
ing  a  rounding  block.  
Expansion  to  include  contour  and  orientation  tolerance  is  only  supported  
  
  
  
M104M104   Page  28   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3   3.10    Path  actions                    Continuous-­path  mode  and  Look  ahead  function                                          
  
G643  Continuous-­path  mode,  smoothing  within  defined  tolerance  
(block  internal).    
Inserts  axis  specific  block  internal  rounding  movements.  (constant-­curve  
transition  polynomials).  The  maximum  deviations  from  the  precise  contour  
when  smoothing  with  G643  are  defined  for  each  axis  using  machine  data  
MD33100  $MA_COMPRESS_POS_TOL[...].  
Unlike  G642  it  does  not  form  intermediate  blocks  but  rounds  the  corners  
within  the  blocks.  The  rounding  tolerance  can  be  different  for  each  axis.  
  
G644  Continuous-­path  mode,  smoothing  within  defined  tolerance  
with  greatest  possible  dynamic  response.    
Rounding  with  maximum  possible  speed  is  activated  with  G644  and  config-­
ured  with  MD20480  $MC_SMOOTHING_MODE  in  the  thousands  place  
Note:  G644  is  not  available  with  an  active  kinematic  transformation.  The  
system  switches  internally  to  G642.  
  
  
  
  
G645  Continuous-­path  mode  with  smoothing  within  defined  tolerances.  
Inserts  tangential  corner  rounding  of  block  transitions.  The  rounding  move-­
ments  are  defined  in  a  way,  to  avoid  a  jump  of  axes  upon  acceleration  and  
the  maximum  deviation  in  MD33120$MA_PATH_TRANS_POS_TOL,  of  the  
original  contour  is  not  exceeded.  
Has  the  same  effect  on  corners  as  G642.  With  G645,  rounding  blocks  are  
also  only  generated  on  tangential  block  transitions  if  the  curvature  of  the  
original  contour  exhibits  in  at  least  on  axis.        
  
  
  
Value   Meaning  
0   Specifying  the  maximum  axial  deviation  using  MD33100  
$MA_COMPRESS_POS_TOL  
1   Specify  the  maximum  rounding  travel  by  programming  ADIS=...  or  ADIS-­
POS=...  
2   Specify  the  maximum  possible  frequencies  for  each  axis  in  the  rounding  
area  using  
MD32440  $MA_LOOKAH_FREQUENCY.  The  rounding  area  is  defined  
such  that  no  
frequencie  
3   When  rounding  with  G644,  neither  the  tolerance  nor  the  rounding  dis-­
tance  are  monitored.  
Each  axis  traverses  around  a  corner  with  maximum  possible  dynamic  
response.  
With  SOFT,  both  the  maximum  acceleration  and  the  maximum  jerk  of  
each  axis  is  maintained.  
With  BRISK  command,  the  jerk  is  not  limited;;  instead,  each  axis  travels  
at  the  maximum  possible  acceleration.  
  
  
  
840Dsl  SINUMERIK    Operate   Page  29   M104M104  
  
Notes  
   Abschnitt  3  3.11    Path  actions                    Continuous-­path  mode  and  Look  ahead  function                                          
No  rounding  block/no  rounding  movement  
  
Command  outputs  
Auxiliary  functions,  which  are  enabled  after  the  end  of  the  movement  or  
before  the  next  movement  interrupt  continuous-­path  mode.  
  
Positioning  axes  
Positioning  axes  always  traverse  according  to  the  exact  stop  principle,  po-­
sitioning  window  fine  (as  for  G601).  If  an  NC  block  has  to  wait  for  position-­
ing  axes,  continuous-­path  mode  is  interrupted  on  the  path  axes.  
  
No  corner  rounding  is  performed  in  the  following  situations:  
  
Movement  is  stopped  between  the  two  blocks.  This  occurs  when  ...  
            The  following  block  contains  an  auxiliary  function  output  before  the      
                movement.  
            The  following  block  does  not  contain  a  path  movement.  
            An  axis  is  traversed  for  the  first  time  as  a  path  axis  for  the  following    
                block  when  it  was  previously  a  positioning  axis.  
            An  axis  is  traversed  for  the  first  time  as  a  positioning  axis  for  the            
                following  block  when  it  was  previously  a  path  axis.  
            Before  tapping,  the  following  block  uses  G33  as  preparatory  function    
                and  the  previous  block  does  not.  
            A  change  is  made  between  BRISK  and  SOFT.  
            Axes  involved  in  the  transformation  are  not  completely  assigned  to      
                the  path  motion  (e.g.,  for  oscillation,  positioning  axes).  
  
The  rounding  block  would  slow  down  parts  program  processing.                        
          This  occurs  when  ...  
              A  rounding  block  is  inserted  between  very  short  blocks.  Since  each      
                  block  requires  at  least  one  interpolation  cycle,  the  added  intermedi-­  
                  ate  block  would  double  the  machining  time.  
              A  block  transition  G64  (continuous-­path  mode  without  corner                
                  rounding)  can  be  traversed  without  a  reduction  in  velocity.  Rounding      
would  increase  the  machining  time.  This  means  that  the  value  of  the  
permitted  overload  factor  (MD32310  
$MA_MAX_ACCEL_OVL_FACTOR)  affects  whether  a  block  transi-­
tion  is  rounded  or  not.  The  overload  factor  is  only  taken  into  account  
when  corner  rounding  in  conjunction  G641/G642.  The  overload  fac-­
tor  is  ignored  in  corner  rounding  with  G643.  
              This  behavior  can  also  be  set  for  G641  and  G642  by  setting      
                MD20490  $MC_IGNORE_OVL_FACTOR_FOR_ADIS  is  set  to  TRUE.  
  
Rounding  is  not  parameterized.  This  occurs  when...  
            forG641  in  G0  blocks  ADISPOS==  0  (default!).  
            for  G641  in  non-­G0  blocks  ADIS==  0  (default!).  
            for  G641  on  transition  from  G0  and  non-­G0  or  non-­G0  and  G0                      
                respectively,  the  smaller  value  from  ADISPOS  and  ADIS  applies.for  G642/G643,  all  axis-­specific  tolerances  are  zero.  
  
Block  does  not  contain  traversing  motion  (zero  block).  
          Normally,  the  interpreter  eliminates  zero  blocks.  However,  if  synchro-­      
          nous  actions  are  active,  this  zero  block  is  included  and  also  executed.    
          In  so  doing,  an  exact  stop  is  initiated  corresponding  to  the  active                    
          programming.  This  allows  the  synchronous  action  to  also  switch.  Blocks      
          without  traversing  motion  can  also  be  generated  using  program  jumps.  
            Examples  of  zero  blocks:  
  
  
M104M104   Page  30   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3   3.12    Path  actions                    Continuous-­path  mode  and  Look  ahead  function                                          
  
Look  Ahead  speed  control  
  
In  continuous-­path  mode,  the  control  automatically  detects  the  velocity  
control  in  advance  for  several  NC  blocks.  This  enables  acceleration  and  
deceleration  across  multiple  blocks  with  almost  tangential  transitions.  
Look  Ahead  is  particularly  suitable  for  the  machining  of  movement  se-­
quences  comprising  short  traverse  paths  with  high  path  feedrates.  
The  number  of  NC  blocks  included  in  the  Look  Ahead  calculation  can  be  
defined  in  machine  data.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Continuous-­path  mode  in  rapid  traverse  G0  
  
One  of  the  functions  G60/G9  or  G64/G641  must  also  be  specified  for  rapid  
traverse.  Otherwise,  the  default  in  the  machine  data  is  used.  
  
By  setting  MD  20490:  IGNORE_OVL_FACTOR_FOR_ADIS  results  in  
block  transitions  being  smoothed  irrespective  of  the  programmed  overload  
factor.  
Note:  
Look  Ahead  across  more  than  one  block  is  an  option.  
  
  
840Dsl  SINUMERIK    Operate   Page  31   M104M104  
  
Notes  
   Abschnitt  3  3.13    Path  actions                    Contour-­/  Orientation  tolerance                                          
  
Programming  of  the  Contour-­/  Orientation  tolerance  
  
On  program  start,  the  here  described  machine  and  setting  data  are  valid  
and  define  the  tolerance  for  all  compressor  functions,  the  smoothing  func-­
tions  G642,  G645,  OST  and  orientation  smoothing  ORISON.  
  
The  NC-­Program  can  overwrite  the  parameterized  tolerances.  There  for  
following  commands  are  available  to  the  NC-­programmer:  
  
  
CTOL  and  OTOL  have  priority  over  ATOL  
  
  
The  programming  does  not  cause  a  stop.  If  possible,  NC-­block  compres-­
sion  is  also  not  interrupted.  The  programmed  values  are  valid,  until  newly  
programmed  or  deleted  through  definition  of  a  negative  value.  They  are  
further  deleted  on  program  end,  Channel  reset,  BAG-­reset,  NCK-­reset  
(warm  start)  and  Power  on  (cold  start).  After  deletion,  the  values  of  ma-­
chine  data  and  setting  data  are  valid  again.  
New  values  can  be  programmed  and  activated  in  every  block.  
  
  
Note:  
  
The  programmed  tolerance  effects  also  functions,  which  implicitly  depend  
upon  the  tolerance.      
These  are:  
Limitations  of  cordial  deviation  on  nominal  value  calculation.    
Basic  functions  of  free  form  surface  mode  
  
  
  
  
  
Command   Syntax   Meaning  
CTOL   CTOL=<Value>   Contour  tolerance  
OTOL   OTOL=<Value>   Orientation  tolerance  
ATOL   ATOL[<Axis>]=<Value>   Axis  specific  tolerance  
  
  
M104M104   Page  32   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3   3.14    Path  actions                    Contour-­/  Orientation  tolerance                                          
  
OSD  /  OST  (rounding  orientation)  
  
Function:  
  
OSD                Rounding  of  orientation  by  specifying  rounding  length  with      
                                SD  $SC_ORI_SMOOTH_DIST.  
  
OST                Rounding  of  orientation  by  specifying  angle  tolerance  in      
                                degrees  for  vector  interpolation  with        
                                SD  $SC_ORI_SMOOTH_TOL.  With  round  axis                                      
                                interpolation,  the  specified  tolerance  is  assumed  to  be  the                  
                                maximum  variance  of  the  orientation  axes.  
  
When  rounding  with  G642,  the  maximum  variance  for  the  contour  axes  
and  orientation  axes  cannot  vary  greatly.  The  smaller  tolerance  of  the  two  
determines  smoothing  the  shape  
  
the  rounding  movement  or  angle  tolerance,  
  the  orientation  characteristics  
  
to  a  relatively  severe  extent  without  having  to  accept  larger  contour  vari-­
ances.  By  activating  OSD  and  OST,  very  small  variances  to  the  orientation  
characteristics  can  be  smoothed  with  a  specified  rounding  length  and  an-­
  
  
  
Note:  
  
Unlike  the  process  of  rounding  the  contour  (and  orientation  characteristics)  
with  G642,  when  rounding  the  orientation  with  OSD  and/or  OST,  a  sepa-­
rate  block  is  not  formed,  instead  the  rounding  movement  is  added  directly  
to  the  programmed  original  blocks.  
With  OSD  and/or  OST,  block  transitions  cannot  be  rounded  if  there  is  a  
change  in  the  type  of  interpolation  for  tool  orientation  (vector   >  round  axis,  
round  axis   >  vector).  These  block  transitions  can  if  necessary  be  rounded  
with  the  standard  rounding  functions  G641,  G642  and  G643.  
  
  
840Dsl  SINUMERIK    Operate   Page  33   M104M104  
  
Notes  
   Section  3  3.15    Path  actions                    Contour-­/  Orientation  tolerance                                          
  
  
ORISON  (orientation  smoothing)  
  
Function:  
  
The  G-­code  command  ORISON  smoothens  the  Orientation  vectors  at  5-­
Axis  Vector  interpolations  (multiaxes  machining).  Longer  blocks  interrupt  
the  smoothening  and  are  approached  like  programmed.  
  
the  function  "Orientation  smooth-­
ing  with  ORISON"  is  activated.    If  value  "Zero"  is  set  for  this  data,  no  ori-­
entation  smoothing  will  be  possible.  ($MM_ORISON_BLOCKS  =  0)        
  
The  value  of  this  machine  data  indicates  over  how  many  blocks  this  orien-­
tation  is  smoothed.  A  maximum  of  30  blocks  is  possible.  For  most  applica-­
tions,  however,  10  blocks  should  suffice  for  smoothing.  
Value  4  should  be  entered  as  a  minimum.  Orientation  smoothing  over  4  
blocks  is  possible.  If  this  MD  is  smaller  than  4  and  if  G  code  ORISON  is  
programmed,  alarm  10982  will  be  displayed.  
  
  
  
  
  
  
M104M104   Page  34   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3   3.16    Path  action                    Feed  forward  control  and  Jerk  limitation  -­                          
  
Feed  forward  control  and  jerk  limitation  -­    
  
Feed  forward  control  and  jerk  limitation  are  activated  in  CUST_832  as  a  
combination  of  the  two  functions.  This  is  because  this  combination  offers  
ideal  conditions  for  freeform  surface  milling.  Both  functions  can  of  course  
also  be  programmed  separately.  
  
  
Explanation  of  the  commands  
FFWON                                                                          Feedforward  on  
_________________________________________________________________  
FFWOF                                                                          Feedforward  off  
_________________________________________________________________  
BRISK                                                                              Without  jerk  limitationAbrupt  acceleration  of  path  axes  
_________________________________________________________________  
SOFT                                                                                With  jerk  limitation  
                                                                                                    Soft  acceleration  of  path  axes  
                                                                                                    Axial  jerk  limitation  (maximum  jerk  in  
                                                                                                    machine  data  JOG_AND_PS_MAX_JERK  
                                                                                                    (jog  and  positioning)  MAX_AX_JERK  (path  mode)  
To  make  acceleration  as  gentle  on  the  
machine  as  possible,  the  acceleration  
profile  of  the  axes  can  be  influenced  by  
means  of  the  commands  Soft,  Brisk.  
If  Soft  is  activated,  the  acceleration  
behavior  does  not  change  abruptly  but  
is  increased  by  a  linear  characteristic.  
This  reduces  the  load  on  the  machine.  
It  also  has  a  beneficial  effect  on  the  
surface  quality  of  workpieces,  since  
machine  resonance  is  excited  far  less  
frequently.  
  
BRISK:  
Acceleration  behavior:  abrupt  accelera-­
tion  of  the  path  axes  according  to  the  
specified  machine  data.  The  axis  slides  
travel  with  maximum  acceleration  until  
the  feedrate  is  reached.  BRISK  enables  
time-­optimized  machining,  but  with  
jumps  in  the  acceleration  curve.  
  
  
840Dsl  SINUMERIK    Operate   Page  35   M104M104  
  
Notes  
   Section  3  3.17    Path  action                    Feed  forward  control  and  Jerk  limitation  -­                          
SOFT:  
Acceleration  behavior:  soft  accelera-­
tion  of  path  axes.  The  axis  slides  
travel  with  constant  acceleration  
until  the  feedrate  is  reached.  SOFT  
acceleration  enables  higher  path  
accuracy  and  less  wear  and  tear  on  
the  machine.  
  
Feed  forward  control  function  
Following  errors  cause  contour  viola-­
tion  1.  The  inertia  in  the  system-­
means  that  the  cutter  tends  
to  leave  the  setpoint  contour  2  tan-­
gentially,  i.e.  the  actual  contour  3  
that  is  produced  deviates  from  the  
setpoint  contour.  Following  errors  
are  due  to  a  combination  of  the  sys-­
tem  (positioning  control)  and  the  
speed.    
  
Feed  forward  control  FFWON  re-­
duces  speed-­dependent  following  
errors  when  contouring  almost  to  
zero.  Traversing  with  feed  forward  
control  permits  higher  path  accuracy  
and  improved  machining  results.  
  
Recommendations  
  
CYCLE832  includes  the  following  
combinations:  
  
FFWON  SOFT  
The  emphasis  is  on  high  path  accu-­
racy.  This  is  achieved  by  a  soft  
speed  control  which  is  largely  
free  from  following  errors.  
  
FFWOF  SOFT  
High  path  accuracy  is  not  a  priority.  
Additional  rounding  is  achieved  by  
means  of  following  errors.  
For  use  with  older  part  programs/
machines.  
  
FFWON  BRISK  
not  recommended  
  
FFWOF  BRISK  
For  use  in  roughing  and  when  maxi-­
mum  speed  
is  required.  
  
  
M104M104   Page  36   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3   3.18    Path  action                    Feed  rate  control    FGROUP,  FGREF                                            
  
Feed  rate  control  FGROUP(..,..,...,)  and  FGREF(....)  
  
FGROUP      
                                
defines  whether  a  path  axis  is  to  be  traversed  with  path  feed  or  as  a  syn-­
chronized  axis.  The  feed  programmed  with  F  only  applies  to  the  path  axes    
(geometry  axes)  programmed  in  the  block  .  FGROUP  can  be  used  to  in-­
clude  a  synchronized  axis  in  the  calculation  of  the  path  feed  or  to  exclude  
a  path  axis  from  the  calculation.    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Function  
  
You  can  use  the  following  commands  to  set  the  feed  rates  in  the  NC  pro-­
gram  for  all  axes  participating  in  the  machining  sequence.  The  path  
feedrate  is  generally  composed  of  the  individual  speed  components  of  all  
geometry  axes  participating  in  the  movement  and  refers  to  the  center  point  
of  the  cutter  or  the  tip  of  the  turning  tool.  The  following  feedrate  types  can  
be  programmed:  
Path  feedrate  with  G  commands  G93,  G94,  G95  on  axes  participating  in  
movement  
Feedrate  F  for  path  axes  
Feedrate  F  for  synchronized  axes  
Feedrate  F  applies  to  all  axes  programmed  under  FGROUP  
Feedrate  for  synchronized-­/path  axes  with  limit  speed  FL  
  
  
Programming  
  
FGROUP(axis,axis,...)        ;;  Axes  to  be  included  in  the  feed  group  calculation  
FGROUP(  )                        ;;  No  axis  specified,  the  default  configuration  is  restored  
FGREF[axis]=                ;;  Reference  radius  for  rotary  axes  
FL[axis]=                                ;;  Velocity  limit  of  specified  axis  
  
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  37   M104M104  
  
Notes  
   Section  3  3.19    Path  action                    Feed  rate  control    FGROUP,  FGREF                                            
Feed  F  for  path  axes  (X,  Y,  Z):  
The  feedrate  is  specified  with  address  F.  Depending  on  the  default  setting  
in  the  machine  data,  the  units  of  measurement  specified  with  the  G  com-­
mands  are  either  in  mm  or  inch.  
One  F  value  can  be  programmed  per  NC  block.  The  unit  for  the  feedrate  is  
defined  in  one  of  the  above  G  commands.  The  feed  F  acts  only  on  path  
axes  and  remains  active  until  a  new  feedrate  is  programmed.  Separators  
are  permitted  after  address  F.  
Example:  F100  or  F  100  or  F.5  or  F=2*FEED  
  
Feed  F  for  synchron  axes  (Rotary  axes  A,B,C):  
The  feedrate  programmed  with  address  F  applies  to  all  the  path  axes  pro-­
grammed  in  the  block,  but  not  to  synchronized  axes.  The  synchronized  
axes  are  controlled  in  such  way,    that  they  require  the  same  time  for  their  
path  as  the  path  axes,  and  all  axes  reach  their  end  point  at  the  same  time.  
  
Traverse  synchronized  axes  with  limit  speed  FL  
With  this  command,  synchronized/path  axes  are  traversed  at  their  limit  
speed  FL.  
  
Example  1:  
  
Helical  interpolation  with  two  geometrie  axis  X  and  Y  that  are  being  
interpolated  with  the  programed  feed.  The  infeed  axis  Z  in  this  case  is  the  
synchron  axis  with  a  limited  velocity  specified  with  FL.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
N10  G17  G94  G1  Z0  F500                                              ;;Tool  infeed  
N20  X10  Y20                                                                                        ;;Approach  start  position  
N25  FGROUP(X,Y,)                                                                  ;;Axes  X/Y  are  path  axes,  Z  is  a  
                                                                                                                                  ;;synchronized  axis  
N30  G2  X10  Y20  Z-­15  I15  J0  F1000              ;;On  the  circular  path,  the  feedrate      
                FL[Z]=200                                                                                ;;is1000  mm/min.    
                                                                                                                                  ;;Traversing  in  the  Z  direction  is        
                                                                                                                                  ;;synchronized.  
...  
N100  FL[Z]=$MA_AX_VELO_LIMIT[0,Z]    ;;Thelimit  velocity  is  deselected  
                                                                                                                                    ;;when  the  velocity  
                                                                                                                                    ;;value  is  read  from  the  MD.  
N110  M30                                                                                                  ;;End  of  program  
  
  
  
  
  
  
M104M104   Page  38   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3   3.20    Path  action                    Feed  rate  control    FGROUP,  FGREF                                            
  
Bahnbezugsfaktoren  für  Orientierungsachsen  mit  FGRF[  ]:  
  
Bei  Orientierungsachsen  ist  die  Wirkungsweise  der  FGREF[  ]  
Faktoren  davon  abhängig,  ob  die  Änderung  der  Orientierung  des  
Werkzeugs  entweder  durch  Rundachs-­oder  Vektorinterpolation  
erfolgt.  Bei  Rundachsinterpolation  werden  die  jeweiligen  FGREF-­
Faktoren  der  Orientierungsachsen  wie  bei  Rundachsen  einzeln  als  
Bezugsradius  für  die  Wege  der  Achsen  eingerechnet.  
G1  X    Y    Z    A    B    C    F500  
  
Bei  Vektorinterpolation  wird  ein  effektiver  FGREF  Faktor  wirksam,  
der  als  geometrischer  Mittelwert  aus  den  einzelnen  FGREF  Faktoren  
bestimmt  wird.  
G1  X=  Y=  Z=  A3=  B3=  C3=  F500  
  
  
Example  2:  
  
5-­axis  milling  of  freeform  surfaces.  3  axes  X,Y  and  Z  are  designated  
geometrie  axes,  that  are  traversed  with  programed  feed  rate.  The  rotary  
axes  A  C  are  synchron  axes.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
N10  TRAORI                                                                            ;;Call  5-­axis  transformation  
N11  G54    
N13  G1  G94  X0  Y0  Z5                                              ;;Start  point,  
  
N12  FGROUP(X,Y,Z,)                                                ;;X,  Y,  Z  are  path  axes,  A  and  C  are                          
                                                                                                                        synchronized  axes  
  
A3=0  B3=0  C3=1                                                                ;;Tool  parallel  to  Z  axis  
N14  G1  Z-­1  F1000  
N15  X10  Y0  A3=1  C3=1                ;;  Linear  movement  with  orientation  change  to        
                                                                                              45°  in  the  X/Z  plane.  The  path  velocity  result      
                                                                                              from  the  X,  Y  and  A  axis  =    to  1000  mm/min  
  
M30  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  39   M104M104  
  
Notes  
   Section  3  3.21  Path  action                  Feed  rate  control    FGROUP,  FGREF                                            
  
Traverse  rotary  axes  with  path  velocity  F,  FGREF.  
  
For  machining  operations,  in  which  the  tool  or  the  workpiece  or  both  are  
moved  by  a  rotary  axis,  the  effective  machining  feedrate  is  to  be  inter-­
preted  as  a  path  feed  in  the  usual  way  by  reference  to  the  F  value.  This  
requires  the  specification  of  an  effective  radius  (reference  radius)  FGREF  
for  each  of  the  rotary  axes  involved.  The  unit  of  the  reference  radius  de-­
pends  on  the  G70/G71/G700/G710  setting.  All  axes  involved  must  be  in-­
cluded  in  the  FGROUP  command,  as  before,  in  order  to  be  evaluated  in  
the  calculation  of  the  path  feed.    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Rotary  axes  
  
If  linear  and  rotary  axes  are  associated  via  FGROUP,  the  feedrate  is  inter-­
preted  in  the  unit  of  measurement  of  the  linear  axis.  
The  tangential  velocity  of  the  rotary  axis  in  mm/min  or  inch/min  is  calcu-­
lated  according  to  the  following  formula:  
  
F  [mm/min]  =  U  [deg/min]  *    *  2R  
                                                                        360  
  
F:  Tangential  velocity  
U:  Angular  velocity  
:  Circle  constant  
R:  Radius  
  
R  is  the  reference  radius  of  the  rotary  axis,  and  can  be  defined  with  
FGREF[axis].  If  no  FGREF[axis]  is  programmed,  the  following  reference  
radius  applies:  
  
R  =  360  /  mm  /  (2* )  =  57.296  mm  
This  is  equivalent  to  1  degree  =  1  mm  
  
Beispiel:  
N10  G54  G642  G710  G90  
N20  FGROUP(X,Y,Z)  
N30  FGREF[a]=30  
N40  FGREF[c]=30  
  
  
  
FGREF[C]=R  
  
  
M104M104   Page  40   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3   3.22    Path  action                    Feed  rate  control    FGROUP,  FGREF                                            
  
Special  situations:  multi  axis  programming  without  FGREF  
  
N100  FGROUP(X,Y,Z,C)    ;;  C-­axis  feed  is  linear  feed  
N110  G1  G91  C10  F100    
N120  G1  G91  C10  X0.0001  F100  
  
the  F  value  in  N110  is  evaluated  as  a  rotary  axis  feedrate  in  deg/min,  while  
the  feedrate  in  N120  is  either  100  inch/min  or  100  mm/min  depending  on  
the  currently  active  setting.  
  
Special  situations:  multi  axis  programming  with  FGREF  
  
N100  FGROUP(X,Y,Z,)    ;;  C-­Axis  is  synchron  axis  
N110  G1  G91  C10  F100  FGREF[C]=60    
N120  G1  G91  C10  X0.0001  F100  
  
the  F  value  in  N110  is  converted  with  FGREF  into  a  linear  feed  rate  of  mm/
min  or  inch/min  for  rotary  axis  C.  Reference  radius  for  the  feed  calculation  
is  60mm.  
  
  
Path  reference  factors  for  orientation  axes  with  FGREF  
  
With  orientation  axes  the  mode  of  operation  of  the  FGREF[  ]  factors  is  de-­
pendent  on  whether  the  change  in  the  orientation  of  the  tool  is  imple-­
mented  by  rotary  axis  or  vector  interpolation.  In  the  case  of  rotary  axis  in-­
terpolation,  the  relevant  FGREF  factors  of  the  orientation  axes  are  calcu-­
lated,  as  for  rotary  axes,  individually  as  reference  radius  for  the  axis  paths.  
In  the  case  of  vector  interpolation,  an  effective  FGREF  factor,  which  is  cal-­
culated  as  the  geometric  mean  value  of  the  individual  FGREF  factors,  is  
applied.  
  
FGREF[eff]  =  square  root  of:[(FGREF[A]  *  FGREF[B]...)]  
  
They  are:  
A:  Axis  identifier  of  1st  orientation  axis  
B:  Axis  identifier  of  2nd  orientation  axis  
C:  Axis  identifier  of  3rd  orientation  axis  Number  of  orientation  axes  
  
Example:  There  are  two  orientation  axes  for  a  standard  5-­axis  transforma-­
tion,  and  the  effective  factor  is  thus  the  root  of  the  product  of  the  two  axial  
factors:  
  
FGREF[eff]  =  square  root  of:[(FGREF[A]  *  FGREF[B])]  
  
  
  
  
  
In  Programs  with  active  transformation  TRAORI  there  is  no  need  to  worry  
about  FGREF.  FGREF  is  handled  as  a  factor  in  CUST_832  
See  chapter  4.1  -­  4.5  CUST_832.  
  
  
840Dsl  SINUMERIK    Operate   Page  41   M104M104  
  
Notes  
   Section  3  
3.23  Path  action  
                Feedrate  profile  -­    
  
FNORM                              Basic  setting.  The  feedrate  is  applied  over  the  entire  path  of  
                                                              the  block  and  is  subsequently  regarded  as  the  modal  value.  
______________________________________________________  
  
FLIN                                          Path  velocity  profile  linear:  
                                                              The  feedrate  is  traversed  linearly  from  the  current  value  at  the  
                                                              beginning  of  the  block  to  the  end  of  the  block  and  is  
                                                              subsequently  regardedas  the  modal  value.  
______________________________________________________  
  
FCUB                                Path  velocity  profile  cubic:  
                                                              The  non-­modally  programmed  F  values,  relative  to  the  
                                                              end  of  the  block,  are  connected  through  a  spline.  The  spline  
                                                              starts  and  ends  tangentially  to  the  previous  or  following          
                                                              feedrate  setting.  If  the  F  address  is  missing  from  a  block,            
                                                              the  last  programmed  F  value  is  used.  
____________________________________________________  
  
F=FPO                            Polynomial  path  velocity  profile:  
                                                            The  F  address  denotes  the  feedrate  profile  via  a  polynomial      
                                                            from  the  current  value  to  the  end  of  the  block.  The  final  value        
                                                            is  subsequently  regarded  as  the  modal  value.  
  
  
Feedrate  profile  -­    
  
What  is  a  feedrate  profile?  
  
To  allow  a  more  flexible  programming  of  the  feedrate  profile,  linear  and  
cubic  characteristics  have  been  added  to  the  feedrate  programming  in  ac-­
cordance  with  DIN  66025.  The  cubic  characteristics  can  be  programmed  
either  directly  or  as  Interpolating  splines.  These  additional  characteristics  
make  it  possible  to  program  continuously  smooth  velocity  characteristics  
depending  on  the  curvature  of  the  workpiece  to  be  machined.  
These  speed  characteristics  make  it  possible  to  program  limiting  accelera-­
tion  changes  and  thereby  to  produce  uniform  workpiece  surfaces.  
  
Programming  
  
F...  FNORM  
F...  FLIN  
F...  FCUB  
F=FPO  
  
  
  
  
  
M104M104   Page  42   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3  
3.24  Path  action  
                Settable  path  reference    UPATH/SPATH                                      
  
UPATH  /  SPATH  
  
During  polynomial  interpolation  the  user  may  require  two  different  relation-­
ships  between  the  velocity-­determining  FGROUP  axes  and  the  other  path  
axes:  The  last  one  are  to  be  controlled  
either  synchronized  with  the  path  of  the  FGROUP  axes  
or  synchronized  with  the  curve  parameter.  
Therefore,  for  the  axes  not  contained  in  FGROUP  there  are  two  ways  to  
follow  the  path:  
  
SPATH                      travel  synchronized  with  path  S    
UPATH                      synchronized  with  the  curve  parameter  U  of  FGROUP    
  
Both  types  of  path  interpolation  are  used  in  different  applications  and  can  
be  switched  via  G  codes  SPATH  and  UPATH.  
  
  
SPATH            Path  reference  for  FGROUP  -­    axes  is  arc  length  
UPATH            Path  reference  for  FGROUP  -­    axes  is  curve  parameter  
  
UPATH:  
Parameterization  of  the  orientation  axis  equals  to  the  path  axes  X,Y,Z  
  
UPATH    is  recomended  in  the  program  
  
  
Example  1:  
  
The  example  below  shows  a  square  with  20  mm  side  lengths  and  corners  
rounded  with  G643.  The  maximum  deviations  from  the  exact  contour  are  
specified  by  the  machine  data  MD  33100:  COMPRESS_POS_TOL[...]  
when  a  contour  is  smoothed  with  G643.  
  
  
N20  G643    ;;Block-­internal  corner  rounding  with  G643  
N30  X0  Y0  
N40  X20  Y0    ;;20mm  edge  length  for  axes  
N50  X20  Y20  
N60  X0  Y20  
N70  X0  Y0  
N100  M30  
  
  
840Dsl  SINUMERIK    Operate   Page  43   M104M104  
  
Notes  
   Section  3  3.25  Path  action                  Settable  path  reference    UPATH/SPATH                                      
Example  2:  
  
The  following  example  shows  the  difference  between  both  types  of  motion  
control.  Both  times  the  default  setting  FGROUP(X,Y,Z)  is  active.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
N10  G1  X0  A0  F1000  SPATH  
N20  POLY  PO[X]=(10,  10)  A10  
or  
N10  G1  X0  F1000  UPATH  
N20  POLY  PO[X]=(10,  10)  A10  
  
In  block  N20,  path  S  of  the  FGROUP  axes  is  dependent  on  the  square  of  
curve  parameter  U.  Therefore,  different  positions  arise  for  synchronized  
axis  A  along  the  path  of  X,  according  to  whether  SPATH  or  UPATH  is  ac-­
tive:  
  
Restrictions  
The  path  reference  set  is  of  no  importance  with  
  
  
  
  
Description  
During  polynomial  interpolation  -­  and  thus  the  polynomial  interpolation  is  
always  understood  
  
  
  
-­  are  the  positions  of  all  path  axes  i  specified  by  the  polynomials  pi(U).  
Curve  parameter  U  moves  from  0  to  1  within  an  NC  block,  therefore  it  is  
standardized.    
The  axes  to  which  
the  programmed  
path  feed  is  to  relate  
can  be  selected  
from  the  path  axes  
by  means  of  lan-­
guage  command  
FGROUP.  However,  
during  polynomial  
  
  
M104M104   Page  44   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3  
3.26  Path  action  
                Spline  interpolation                                      
Spline  interpolation    
  
General  
  
Spline  interpolation  allows  you  to  connect  programmed  sequences  of  
points  through  continuous  curve  transitions.  
  
  
  
  
  
  
  
  
  
  
3  types  of  splines  are  supported  
  
     Akima  Spline  
     Bézier  Spline  
     Kubischer  Spline  
  
These  statements  belong  to  the  first  G  group  (G0,  G1,  G2,  G3,  ...).  
Path  axes  which  are  to  be  included  in  a  spline  grouping  (i.e.  to  form  a  
spline  curve)  can  be  selected  using  language  command  SPLINEPATH.  
  
ASPLINE  
  
The  akima  spline  runs  as  a  continuous  tangent  exactly  through  the  pro-­
grammed  positions  (interpolation  points),  but  is  not  continuously  curved  at  
the  nodes.  The  advantage  of  the  akima  spline  is  its  proximity  to  the  inter-­
mediate  points,  which  avoids  unwanted  oscillations  such  as  occur  with  the  
CSPLINE.  The  akima  spline  is  local,  i.e.  a  change  in  an  intermediate  point  
only  has  an  impact  on  six  neighboring  blocks.  
This  spline  should  be  used  when  measured  points  are  to  be  interpolated  
smoothly.  A  third-­degree  polynomial  is  used.  
  
Example  ASPLINE,  tangential  transitions  at  the  start  and  end:  
  
N10  G1  F200  G64  X0  Y0  
N20  X10  
N30  ASPLINE  X20  Y10  ;;  Spline  interpolation,  P1  
N40  X30                      ;;  P2  
N50  X40  Y5          ;;  P3  
N60  X50  Y15      ;;  P4  
N70  X55  Y7          ;;  P5  
N80  X60  Y20      ;;  P6  
N90  X65  Y20      ;;  P7  
N100  X70  Y0      ;;  P8  
N110  X80  Y10  ;;  P9  
N120  X90  Y0      ;;  P10  
N130  M2  
  
  
  
  
  
  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  45   M104M104  
  
Notes  
   Section  3  
3.27  Path  action  
                Spline  interpolation                                      
  
CSPLINE  
  
The  cubic  spline  differs  from  the  akima  spline  in  that  it  has  continuously  
curved  transitions  at  the  nodes.  This  is  the  most  widely  known  and  used  
type  of  spline.  The  advantage  of  continuous  curvature  is  offset  by  the  dis-­
advantage  of  unexpected  oscillations.  It  is  suitable  when  the  points  on  an  
analytically  known  curve  are  to  be  calculated,  and  where  oscillations  can  
be  eliminated  by  the  insertion  of  additional  intermediate  points.  It  is  also  
appropriate  when  continuous  curvature  is  a  requirement.  
  
The  spline  isnot  local,  i.e.  a  change  in  an  intermediate  point  can  have  an  
impact  on  a  large  number  of  blocks  (with  decreasing  intensity).  
A  third-­degree  polynomial  is  used.  
The  parameter  interval  is  calculated  internally.  The  distance  between  two  
consecutive  nodes  is  equal  to  the  distance  between  the  two  intermediate  
points.  
  
Example  CSPLINE,  curvature  0  at  the  start  and  end:  
  
N10  G1  X0  Y0  F300  
N15  X10  
N20  BNAT  ENAT  ;;  Curvature  0  at  the  start  and  end  
N30  CSPLINE  X20  Y10  ;;  CSPLINE,  P1  
N40  X30  ;;  P2  
N50  X40  Y5  ;;  P3  
N60  X50  Y15  ;;  P4  
N70  X55  Y7  ;;  P5  
N80  X60  Y20  ;;  P6  
N90  X65  Y20  ;;  P7  
N100  X70  Y0  ;;  P8  
N110  X80  Y10  ;;  P9  
N120  X90  Y0  ;;  P10  
N130  M2  
  
  
  
  
  
  
  
  
  
  
  
Note:  
If  a  tangential  transition  is  not  possible  (e.g.  because  no  connecting  path  
exists),  BAUTO  or  EAUTO  is  executed  (see  conditions).  
  
  
  
  
  
  
  
  
  
  
  
M104M104   Page  46   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3  
3.28  Path  action  
                Spline  interpolation                                      
  
Supplementary  conditions  for  ASPLINE  and  CSPLINE  
  
The  transition  characteristics  (start  or  end)  of  these  spline  curves  can  be  
set  by  means  of  two  groups  of  statements  with  three  commands  each  (can  
be  treated  like  G  group).  
  
Transition  at  start  of  spline  curve  (only  A  or  C  spline):  
BAUTO    No  command,  start  results  from  the  position  of  the  first  points  
BNAT          Zero  curvature  
BTAN          Tangential  transition  to  previous  block  (initial  setting)  
  
End  of  the  spline  curve  (only  A  or  C  spline):  
EAUTO      No  command,  end  results  from  the  position  of  the  last  points  
ENAT            Zero  curvature  
ETAN            Tangential  transition  to  next  block  (initial  setting)  
  
Note:  
The  above  statements  must  be  programmed,  at  the  latest,  in  the  block  with  
ASPLINE  or  CSPLINE.  Once  the  spline  has  been  started,  you  cannot  
make  changes.  
  
  
840Dsl  SINUMERIK    Operate   Page  47   M104M104  
  
Notes  
   Section  3  
3.29  Path  action  
                Spline  interpolation                                      
  
BSPLINE  
  
On  a  B  spline,  the  desired  degree  can  be  programmed  (2  or  3)  with  SD=.    
If  no  degree  is  programmed  at  the  start  of  the  spline,  3  is  the  default  value.  
The  programmed  positions  are  not  intermediate  points,  but  are  simply  
through  the  control  points,  which  determine  the  shape  of  the  curve.  The  
control  polygon  of  the  spline  connects  the  control  points  by  straight  lines,  
thus  providing  the  initial  approximation  for  the  curve.  You  obtain  the  control  
polygon  by  programming  G1  instead  of  BSPLINE.  
A  quadratic  B  spline  (SD=2)  touches  the  control  polygon  tangentially  be-­
tween  two  control  points  and  is  closer  to  the  control  polygon  than  a  cubic  B  
spline  (SD=3).  
  
  
Supplementary  conditions  for  BSPLINE  
  
The  curve  is  always  tangential  in  relation  to  the  check  polygon  at  the  start  
and  end  points.  No  start  and  end  conditions  can  be  programmed.  
  
You  can  program  an  additional  weight  for  each  control  point  with  PW  (point  
weight).  This  has  the  effect  of  drawing  the  curve  towards  the  control  point  
(PW  >  
1).  All  sections  of  a  cone  (parabola,  hyperbola,  ellipse,  circle)  can  be  ob-­
tained  exactly  through  the  use  of  suitable  weights.  
  
This  spline  is  an  optimum  tool  for  the  creation  of  sculptured  surfaces,  and  
is  the  preferred  form  on  CAD  systems.  
  
A  3rd  degree  B  spline  combines  the  advantages  of  akima  and  conventional  
cubic  splines.  There  are  no  undesired  oscillations  in  spite  of  continuously  
curved  transitions.  
  
  
Point  weight  PW:  
A  weight  parameter  can  be  specified  for  each  control  point  with  address  
PW  
The  curve  is  drawn  towards  the  control  point  if  PW>1  and  is  pushed  further  
away  if  PW<1.    
Value  range  of  PW:  Positive,  0  to  3  in  increments  of  0.0001  
  
Spline  degree  SD:  
The  desired  spline  degree  for  BSPLINE  is  written  at  address  SD  
Value  range:  2  or  3.    
If  no  address  SD=  is  programmed,  SD=3  is  the  default.  
  
Distance  between  nodes  PL:  
The  distance  between  two  nodes  is  programmed  with  PL=....  
Value  range:  same  as  path  dimension  
  
  
  
  
  
  
M104M104   Page  48   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3  
3.30  Path  action  
                Spline  interpolation                                      
  
If  no  node  distances  are  programmed,  suitable  spacing  is  calculated              
internally.  
  
Example:  BSPLINE,  various  weights  
N10  G1  X0  Y0  
N20  BSPLINE  PW=0.3  
N30  X10  Y20  PW=2  
N40  X20  Y30  
N50  X30  Y35  PW=0.5  
N60  X40  Y45  
N70  X50  Y0  
  
  
Example:  associated  control  polygon  
N10  G1  X0  Y0  
N30  X10  Y20  
N40  X20  Y40  
N50  X30  Y30  PW=0.5  
N60  X40  Y45  
N70  X50  Y0  
  
  
Example:  BSPLINE,  all  weights  1  
N10  G1  X0  Y0  F300  G64  
N20  BSPLINE  
N30  X10  Y20  
N40  X20  Y40  
N50  X30  Y30  
N60  X40  Y45  
N70  X50  Y0  
...  
  
  
840Dsl  SINUMERIK    Operate   Page  49   M104M104  
  
Notes  
   Section  3  
3.31  Path  action  
                Spline  interpolation                                      
  
SPLINEPATH  
  
This  statement  is  used  to  define  the  axes  involved  in  the  spline.  A  maxi-­
mum  of  5  axes  is  possible.  
If  SPLINEPATH  is  not  programmed,  the  first  3  axes  of  the  channel  are  
traversed  as  a  spline  group.  
A  special  block  is  used  for  the  definition.  The  block  contains  the  following  
statement:  
  
SPLINEPATH(n,X,Y,Z,...  )  ;;  n  =  1,  fixed  value  X,Y,Z,...  path  axis  names  
  
  
Example  spline  grouping,  e.g.  with  three  path  axes:  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Programming  code:  
N10  G1  X10  Y20  Z30  F350  
N11  SPLINEPATH(1,X,Y,Z)  
N13  CSPLINE  BAUTO  EAUTO  X20  Y30  Z40  
N14  X30  Y40  Z50  
...  
N100  G1  X...  Y....  ;;  Deselect  spline  interpolation  
  
  
M104M104   Page  50   840Dsl  SINUMERIK    Operate  
Notes  
  
   Section  3  
FIFOCTRL  control  of  preprocessing  buffer  
  
During  machining  of  large  NC-­Files  for  example  free  form  surfaces,  it  is  
possible  for  the  preprocessing  buffer  to  run  empty.  (See  example  below:    
fill  level  of  interpolation  buffer  0%)  This  can  cause  hesitations  during  ma-­
chining  or  even  a  complete  stop  until  the  buffer  Files  up  again.  To  avoid  
this  it  is  absolutely  necessary  to  turn  on  the  preprocessing  buffer  control  
with  the  function  FIFOCTRL  
  
  
3.32  Path  action  
                Control  of  preprocessing  buffer  FIFOCTRL                                                
  
  
840Dsl  SINUMERIK    Operate   Page  51   M104M104  
  
Notes  
   Section  3  
3.33  Path  action  
                Friction  compensation                                      
  
Friction  compensation  (quadrant  error  compensation)  
  
General  explanation:  
  
Friction  occurs  predominantly  in  the  gearing  and  guideways.  Static  friction  
is  especially  noticeable  in  the  machine  axes.  Because  it  takes  a  greater  
force  to  initiate  a  movement  (breakaway)  than  to  continue  it,  a  greater  fol-­
lowing  error  occurs  at  the  beginning  of  a  movement.    
  
The  same  phenomenon  occurs  on  a  change  of  direction  where  static  fric-­
tion  causes  a  jump  in  frictional  force.  If,  for  example,one  axis  is  acceler-­
ated  from  a  negative  to  a  positive  velocity,  it  sticks  for  a  short  time  as  the  
velocity  passes  through  zero  because  of  the  changing  friction  conditions.    
This  behaviour  is  particularly  apparent  on  circular  contours  on  which  one  
axis  is  moving  at  maximum  path  velocity  and  the  other  is  stationary  at  
quadrant  transitions.  With  the  aid  of  friction  compensation  these  so-­called  
"quadrant  errors"  can  be  almost  completely  eliminated.  
  
Application:  
  
Friction  compensation  can  cause  under  certain  circumstances  marks  on  
the  workpiece  surface  and  should  therefore  be  disabled  for  mould  and  die  
applications.  Is  the  first  milling  not  satisfactory  and  there  is  still  a  friction  
adaptive  friction  compensation
adapted  injection  amplitude must  be  activated  for  cases  where  high  
accuracy  is  required.  
  
  
  
  
  
  
  
  
Disable  Friction  Compensation  (Axes  MD)  
  
32500  FRICT_COMP_ENABLE=  0    The  Friction  compensation  is  not  released  for  
the  axes.  There  for  no  Friction  compensation  values  are  being  added.  
  In
je
ct
io
n  
am
pl
itu
de
    
  
  
Example  
  
  
M104M104   Page  52   840Dsl  SINUMERIK    Operate  
  
                                                                                                            
  
  
S
in
um
er
ik
 
840Dsl  SINUMERIK    Operate                  Page  1                                                                                                                                                                                      M105M105  
  
This  document  was  produced  for  training  purposes.                                                                                                                                                                                                                                                                                                                                                                
                        
Tool  radius  compensation  
Brief  description  
Objective  of  the  Module:  
With  help  of  this  module  you  get  to  learn  the  purpose  and  use  of  tool  radius  compensation  in  con-­
junction  with  3-­axis  surface  machining  and  5-­sxis  multi-­axis  surface  machining.  
  
Description  of  the  Module:  
This  Module  explains  the  function  and  application  possibilities  of  various  tool  radius  compensation    
for  3-­axis  surface  machining  and  5-­sxis  multi-­axis  surface  machining  through  practical  examples.  
M105  
Contents  :  
Theory  of  tool  radius  correction  
Practical  application  examples  
  
M105M105   Page  2   840Dsl  SINUMERIK    Operate  
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
                                                          
    M105  
   M105  
      
      Notes    
  
  
840Dsl  SINUMERIK  Operate                                                                                                                              Page  3                                                                                                                                                                                              M105M105  
Tool  radius  compensation:  Description  
This  Module  explains  the  function  and  application  
possibilities  of  various  tool  radius  compensation    
for  3-­axis  surface  machining  and  5-­sxis  multi-­axis  
surface  machining  through  practical  examples.  
                
            
Tool  radius    
compensation:  
END  
Tool  radius    
compensation:  
START  
Theory  on  tool  
radius  correction  
Practical  applica-­
tion  examples  
  
  
M105M105   Page  4   840Dsl  SINUMERIK    Operate  
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  5   M105M105  
  
Notes  
  
  
Section  1  1.1    Theory  of  tool  radius  compensation                Face  milling  with  CUT3DF  
3D-­Tool  radius  compensation  with  CUT3DF  
  
Face  milling  
  
Description:  
  
Tool  compensation  makes  a  CNC  program  independent  of  the  tool  radius.  
Tool  radius  compensation  in  the  2  ½  D  range  is  a  familiar  concept.  In  the  
3D  range,  however,  especially  with  5-­axis  milling,  it  can  be  very  different.  
  
For  radius  compensation  in  face  milling  with  CUT3DF,  it  is  not  enough  sim-­
ply  to  specify  the  cutter  geometry.  The  compensation  direction  is  also  re-­
quired.  The  compensation  direction  is  calculated  from  the  surface  normal,  
the  tool  direction  and  the  tool  geometry.  This  perpendicular  is  known  as  
the  surface  normal  or  surface  normal  vector.  It  is  calculated  fromthe  cur-­
rent  tool  orientation  and  the  perpendicular  to  the  workpiece  surface.  
  
Application:  
  
In  the  special  case  of  a  spherical  cut-­
ter,  for  example:  
For  a  path  in  the  work  area  the  com-­
pensation  must  be  made  perpendicu-­
larly  to  the  surface  on  which  the  path  
is  running.  This  means  that  the  com-­
pensation  direction  is  described  by  
the  normal  vector  1,  2  of  the  surface  
at  the  insertion  point.  The  compensa-­
tion  options  in  Sinumerik  840D  allow  
the  tool  offset  to  be  calculated  using  
the  surface  normal  vector.  Previously,                                                                                                            
very  few  CAM  systems  were  capable                                                                                                                    
of  providing  the  surface  normal  with  
every  CNC  block.  
  
If  the  surface  normal,  tool  radius  and  
also  the  geometry  of  the  cutter  tip  are  
known,  Sinumerik  840D  can  calculate  
the  new  tool  insertion  point  PE  if  tool  
radius  compensation  (CUT3DF)  is  
enabled.  The  illustration  shows  all  the  
dimensions  used  by  the  control  sys-­
tem  and  the  relevant  geometrical  data  
for  the  cutter  tip.  
  
  
  
Note:  
  
Generally  speaking,  only  small  radius  changes  relative  to  the  standard  tool  
(radius  used  for  calculations  by  the  CAM  program)  can  be  corrected.  A  
smaller  cutter  radius  is  easy  to  calculate  but  results  in  a  different  peak-­to-­
valley  height.  With  a  larger  radius  there  is  a  risk  of  collision  between  the  
tool  and  the  workpiece  contour.  
  
  
M105M105   Page  6   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  1   1.2    Theory  of  tool  radius  compensation                Face  milling  with  CUT3DF  
  
Face  milling  
  
For  this  type  of  3D  milling,  you  require  line-­by-­line  definition  of  3D  paths  on  
the  workpiece  surface.  The  tool  shape  and  dimensions  are  taken  into  ac-­
count  in  the  calculations  that  are  normally  performed  in  CAM.  In  addition  to  
the  NC  blocks,  the  postprocessor  writes  the  tool  orientations  (when  five-­
axis  transformation  is  active)  and  the  G  code  for  the  desired  3D  tool  
offset  into  the  parts  program.  This  feature  offers  the  machine  operator  the  
option  of  using  slightly  smaller  tools  than  that  used  to  calculate  the  NC  
paths.  
  
  
Example:  
  
NC  blocks  have  been  calculated  with  a  10  mm  mill.  In  this  case,  the  work-­
piece  could  also  be  machined  with  a  mill  diameter  of  9.9  mm,  although  this  
would  result  in  a  different  surface  profile.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Milling  cutting  tool  shapes  and  tool  data  
  
The  table  below  gives  an  overview  of  the  tool  shapes,  which  may  be  used  
in  face  milling  operations,  as  well  as  tool  data  limit  values.  The  shape  of  
the  tool  shaft  is  not  taken  into  consideration  -­  the  tools  120  and  156  are  
identical  in  their  effect.  
If  a  different  type  number  is  used  in  the  NC  program  than  the  one  listed  in  
the  table,  the  system  automatically  uses  tool  type  110  die-­sinking  cutter.  
An  alarm  is  output  if  the  tool  data  limit  values  are  violated.  
  
  
840Dsl  SINUMERIK    Operate   Page  7   M105M105  
  
Notes  
  
  
Section  1  1.3    Theory  of  tool  radius  compensation                Face  milling  with  CUT3DF  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Tool  length  offset  
  
The  tool  tip  is  the  reference  point  for  length  offset  
(intersection  longitudinal  axis/surface).    
  
3D  tool  offset,  tool  change  
  
A  new  tool  with  changed  dimensions  (R,  r,  a)  or  a  different  form  may  
only  be  specified  with  the  programming  of  G41  or  G42  (transition  G40  
to  G41  or  G42,  reprogramming  of  G41  G42).  This  rule  does  not  apply  
to  any  other  tool  data,  e.g.,  tool  lengths,  so  that  tools  to  which  
such  data  apply  can  be  fitted  without  reprogramming  G41  or  G42  .  
  
  
M105M105   Page  8   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  1   1.4    Theory  of  tool  radius  compensation                Use  of  surface  normal  vectors  
  
Programming  the  path  curvature  
  
Surface  description  
The  path  curvature  is  described  by  surface  normal  vectors  with  the  follow-­
ing  components:  
  
G1  X  Y  Z  A4=,  B4=,  C4=      
Programming  of  Start  surface  normal  vector  at  block  start  
  
G1  X  Y  Z  A5=,  B5=,  C5=      
Programming  of  End  surface  normal  vector  at  block  end  
  
This  Information  is  used  for  5-­Axis  free  form  surfacing  in  conjunction  with  
CUT3DF  
  
Example:  5-­Axis  face  milling  
  
Face  milling  is  used  to  machine  curved  surfaces  of  any  kind.  For  this  type  
of  3D  milling,  you  require  line-­by-­line  definition  of  3D  paths  X  Y  Z  on  the  
workpiece  surface,  the  tool  orientation  as  directional  vector  with  A3=  B3=  
C3=  or  as  angles  A2=  B2=  C2=  and  the  surface  normal  vectors  A5=  B5=  
C5=  and/or  A4=  B4=  C4=  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
If  a  block  only  contains  the  start  vector,  the  surface  normal  vector  will  re-­
main  constant  throughout  the  block.  If  a  block  only  contains  the  end  vector,  
interpolation  will  run  from  the  end  value  of  the  previous  block  via  large-­
radius  circular  interpolation  to  the  programmed  end  value.  
  
If  both  start  and  end  vectors  are  programmed,  interpolation  runs  between  
the  two  directions,  also  via  large-­radius  circular  interpolation.  This  allows  
continuously  smooth  paths  to  be  created.    
  
  
  
  
840Dsl  SINUMERIK    Operate   Page  9   M105M105  
  
Notes  
  
  
Section  1  1.5    Theory  of  tool  radius  compensation                Use  of  surface  normal  vectors  
  
Regardless  of  the  active  G17  to  G19  level,  in  the  initial  setting,  surface  nor-­
mal  vectors  point  in  the  Z  direction.    
  
The  length  of  a  vector  is  meaningless.  
  
Vector  components  that  have  not  been  programmed  are  set  to  zero.  
  
With  active  ORIWKS  (see  "Reference  of  the  orientation  axes  (ORIWKS,  
ORIMKS)"),  the  surface  normal  vectors  relate  to  the  active  frame  and  ro-­
tate  when  the  frame  rotates.  
  
Machine  manufacturer  
  
The  surface  normal  vector  must  be  perpendicular  to  the  path  tangent,  
within  a  limit  value  set  via  machine  data,  otherwise  an  alarm  will  be  output.  
  
  
Face  milling  with  LEAD  and  TILT  
  
  
Function:  
  
LEAD  and  TILT  is  another  option  to  program  tool  orientation  in  combina-­
tion  with  definition  of  surface  normal  vector    
  
LEAD  Angle  for  programming  of  Tool  orientation.  
Angle  relative  to  the  surface  normal  vector  in  the  plane  
put  up  by  the  path  tangent  and  the  surface  normal  vector  
  
TILT  Angle  for  programming  of  Tool  orientation.  
Angle  in  the  plane,  perpendicular  to  the  path  tangent  
relative  to  the  surface  normal  vector  
  
  
M105M105   Page  10   840Dsl  SINUMERIK    Operate  
Notes  
  
  
  
Section  1   1.6    Theory  of  tool  radius  compensation                Use  of  surface  normal  vectors    
  
Application:    
  
Milling  of  free  form  surfaces  with  change  in  tool  orientation,  as  well  as            5
-­Axis  face  milling  for  mould  &  die  machining  
  
Example:  
  
The  resulting  Tool  orientation  is  defined  through:  
  
-­    Path  tangent  
-­    Surface  normal

Mais conteúdos dessa disciplina