SINUMERIK 840D sl NC programming. Programming Manual (2020) - page 2

 

  Index      Manuals     SINUMERIK 840D sl NC programming. Programming Manual (2020)

 

Search            copyright infringement  

 

   

 

   

 

Content      ..      1      2      3      ..

 

 

 

SINUMERIK 840D sl NC programming. Programming Manual (2020) - page 2

 

 

Fundamentals
2.5 Tool offsets
Tool parameters
The following diagram provides an overview of which turning tool parameters are entered in the
compensation memory:
/
7
;
*
;=
7
5
6
3
/
=
① Cutting edge position (1 ... 9) for machining behind the turning center
P
Tool tip
S
Cutting edge center point
R
Cutting edge radius
T
Tool carrier reference point
T'
Tool holder reference point
L1
Geometry - length 1
L2
Geometry - length 2
L1'
Base dimension - length 1
L2'
Base dimension - length 2
L3'
Base dimension - length 3
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
77
Fundamentals
2.5 Tool offsets
Tool parameters
Meaning
$TC_DP1
Tool type
$TC_DP2
Cutting edge position
$TC_DP3
Geometry - length 1
$TC_DP4
Geometry - length 2
$TC_DP6
Geometry - radius (cutting edge radius)
$TC_DP21
Base dimension - length 1
$TC_DP22
Base dimension - length 2
$TC_DP23
Base dimension - length 3
• Wear values corresponding to the requirements.
• Set other values to 0.
2.5.5.6
Special tools
The following tool types are available in the "Special tools" group:
700
Slotting saw
710
3D probe
711
Edge probe
712
Mono probe
713
L probe
714
Star probe
725
Calibration tool
730
Stop
731
Spindle sleeves
732
End support
NC programming
78
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.5 Tool offsets
Tool parameters
The following diagram provides an overview of which tool parameters for "Slotting saw" tool
type are entered in the compensation memory:
E
/
N
/ G
/ E
N
7
T'
Tool carrier reference point
L1
Geometry - length 1
L2
Geometry - length 2
d
Diameter
b
Slot width
k
Projection
Tool parameters
Meaning
$TC_DP1
Tool type
$TC_DP3
Geometry - length 1
$TC_DP4
Geometry - length 2
$TC_DP6
Diameter
$TC_DP7
Slot width
$TC_DP8
Projection
$TC_DP21
Base dimension length 1
$TC_DP22
Base dimension length 2
$TC_DP23
Base dimension length 3
• Wear values corresponding to the requirements.
• Other values should be set to 0.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
79
Fundamentals
2.5 Tool offsets
2.5.6
Activating / deactivating tool offsets (D, D0):
Cutting edges 1 to 8 of a tool (with active tool management 12) can be assigned different tool
offset data blocks (e.g. different correction values for the left and right cutting edges of a
grooving tool).
The offset data (including the data for the tool length compensation) of a special cutting edge
is activated by calling the D number. When D0 is programmed, offsets for the tool have no effect.
A tool radius compensation must also be activated by G41/G42.
Note
Tool length compensations take immediate effect when the D number is programmed. If no D
number is programmed, the default setting defined by the machine data is active for a tool
change (→ see machine manufacturer's specifications).
Syntax
D<No>
X... Y... Z...
G41/G42 X... Y... Z...
G40
D0
Meaning
D:
Address for activating an offset data block for the active tool
The tool length compensation is applied with the first programmed traverse of the
associated length compensation axis.
Notice:
A tool length compensation can also take effect without D programming, if the auto-
matic activation of a tool edge has been configured for the tool change (→ see ma-
chine manufacturer's specifications).
<No>:
The tool offset data block to be activated is specified via the D number.
The type of D programming depends on the configuration of the machine (→ see
information provided by the machine manufacturer).
There are the following options:
• D number = cutting edge number
D numbers ranging from 1 to max. 12 are available for every tool T<No> (without
TOOLMAN) or T="Name" (with TOOLMAN). These D numbers are assigned directly
to the tool cutting edges. An offset data set ($TC_DPx[<t>,<d>]) is assigned to each
D number (= cutting edge number).
• Free selection of D numbers
The D numbers can be freely assigned to the cutting edge numbers of a tool. A
machine data specifies the upper limit for the D numbers that may be used.
Range of values:
0 ... 32000
D0:
Deactivating the offset data block for the active tool
NC programming
80
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.5 Tool offsets
G41:
Command for activating the tool radius compensation with machining direction left
of the contour
G42:
Command for activating the tool radius compensation with machining direction right
of the contour
G40:
Command for deactivating the tool radius compensation
Additional information on G40/G41/G42 is provided in the section "Tool radius compensation
(Page 251)".
Examples
Example 1: Tool change with T command (turning)
Program code
Comment
N10, T1, D1
; Load tool T1 and activate tool offset data block D1 of T1.
N11 G0 X... Z...
; The tool length compensations are applied.
N50, T4, D2
; Load tool T4 and activate tool offset data block D2 of T4.
N70 G0 Z... D1
; Activate other cutting edge D1 for tool T4.
Example 2: Different correction values for the left and right cutting edges of a grooving tool
1
3DUW SURJUDP
1
7
1
* ;
=
1
* ' ;
1
' =
1
;
1
=
① Plunge turning tool (T2)
② Cutting edge D1
③ Cutting edge D6
See also
Tool radius compensation (Page 68)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
81
Fundamentals
2.5 Tool offsets
Further information
Change in the tool offset data
In the standard setting, a change in the tool offset data takes only effect the next time the T or
D number is programmed.
The following machine data can be used to specify that entered tool offset data are activated
immediately:
MD9440 $MM_ACTIVATE_SEL_USER
WARNING
Risk of collision
If MD9440 is set, tool offsets resulting from changes in tool offset data during the part program
stop, are applied when the part program is continued.
2.5.7
Suppressing tool offsets (SUPD)
The SUPD instruction allows you to suppress the tool offsets block by block.
Tool offset deselection with D0 provides the benefit that the tool offset data are retained with
SUPD. As a result, the tool offset data need not be reactivated by programming the D number.
SUPD is only used to suppress the tool length compensation, e.g. in part program blocks in which
the zero point shall be included in calculation instead of the tool length. It is not recommended
to use it with active G41/G42 for additional suppression of the tool radius compensations.
Syntax
D<No.>
X... Y... Z...
X... Y... Z... SUPD
D0
Meaning
SUPD:
G command for deactivating the offset data block for the active tool in the active block
Effectiveness:
Non-modal
Constraints
• SUPD shall only be used in linear blocks.
• SUPD cannot be used in synchronized actions.
NC programming
82
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.5 Tool offsets
• SUPD may not be used in conjunction with the following functions:
- 3D tool radius compensation for 3D face milling (CUT3DFxx)
- Curve tables (CTAB)
• The use of SUPD with active tool radius compensation (G41/G42) is possible, but not
recommended.
To activate the function nevertheless, the following setting data must be set to "0":
SD42480 $SC_STOP_CUTCOM_STOPRE = 0
This prevents that the program is interrupted with active G41/G42.
Example
When traversing, the tool length shall be suppressed in the subprogram SUB_SUP.
Part program
Program code
Comment
N300 $P_UIFR[1]=CTRANS(X,1000,Y,400,Z,-120)
N310 T="BALL_D3"
N320 M6
N330 TRAFOOF
N340 G54 G0 Z49 D1
N350 G0 X1100 Y500 C0 A0
N360 SUB_SUP
; Calling the subroutine.
N370 G0 X1200
N380 M30
Subprogram with D0
Program code
Comment
N10 PROC SUB_SUP
N20 DEF INT NUMBER
N30 NUMBER=$P_TOOL
N40 G0 Z49 D0
; Deselection of the tool offsets
N50 D=NUMBER
; Reselection of tool offsets.
N60 RET
Subprogram with SUPD
Program code
Comment
N10 PROC SUB_SUP
N40 G0 Z49 SUPD
; Suppression of tool offsets in
the active block.
N60 RET
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
83
Fundamentals
2.5 Tool offsets
2.5.8
Programmable tool offset (TOFFL, TOFF, TOFFR, TOFFLR):
Based on the TOFFx addresses, the user can modify the effective tool length and the effective
tool radius in the NC program, without changing the tool offset data stored in the compensation
memory.
These programmed offsets are deleted again at the end of the program.
Syntax
Tool length offset
TOFFL=<Value>
TOFFL[1]=<Value> TOFFL[2]=<Value> TOFFL[3]=<Value>
TOFF[<GeoAx>]=<Value>
The tool length can be changed simultaneously in all three components. However, commands
of the TOFFL/TOFFL[1..3] group and commands of the TOFF[<geometry axis>] group may not
be used simultaneously in one block. Similarly TOFFL and TOFFL[1] may not be written
simultaneously in one block.
If all three tool length components are not programmed in one block, the components not
programmed remain unchanged. In this way, it is possible to build up offsets for several
components block-by-block. However, this only applies as long as the tool components have
been modified only with either TOFFL or TOFF. Changing the programming version from TOFFL
to TOFF or vice versa deletes any previously programmed tool length offsets (see example 3).
Tool radius offset
TOFFR=<Value>
Simultaneous tool length offset and tool radius offset
TOFFLR=<Value>
Meaning
TOFFL:
Correction of the effective tool length
TOFFL can be programmed with or without index:
TOFFL=...
The programmed offset value is applied in the same direction as the
tool length component L1 stored in the compensation memory.
The TOFFL and TOFFL[1] instructions have an identical effect.
TOFFL[1]=...
The programmed offset value is effective in the same direction as
the tool length components L1, L2 and L3 stored in the offset
TOFFL[2]=...
memory.
TOFFL[3]=...
Note:
How these tool length compensation values are calculated in the axes is determined by
the tool type and the current working plane (G17/G18/G19).
NC programming
84
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.5 Tool offsets
TOFF:
Correction of the tool length in the component parallel to the specified geometry axis
TOFF is applied in the direction of the tool length component which is effective with non-
rotated tool (orientable tool carrier or orientation transformation) parallel to the geom-
etry axis specified in the index.
Note:
A frame does not influence the assignment of the programmed values to the tool length
components. This means that the workpiece coordinate system (WCS) is not used to
assign the tool length components to the geometry axes, but rather the tool coordinate
system in the basic tool position.
<GeoAx>:
Identifier of the geometry axis
TOFFR:
Correction of the effective tool radius
TOFFR changes the effective tool radius with active tool radius compensation by the
programmed offset value.
TOFFLR:
Correction of the effective tool length in the component L1 and the effective tool radius
Note:
For tools with corner rounding (types 111, 121, 131 and 156), TOFFLR also corrects the
corner radius.
<Value>:
Offset value
Type:
REAL
Examples
Example 1: Positive tool length offset
The active tool is a drill with length L1 = 100 mm.
The active plane is G17. This means that the drill points in the Z direction.
The effective drill length is to be increased by 1 mm. The following variants are available for
programming this tool length offset:
• TOFFL=1
• TOFFL[1]=1
• TOFF[Z]=1
Example 2: Negative tool length offset
The active tool is a drill with length L1 = 100 mm.
The active plane is G18. This means that the drill points in the Y direction.
The effective drill length is to be decreased by 1 mm. The following variants are available for
programming this tool length offset:
• TOFFL=-1
• TOFFL[1]=-1
• TOFF[Y]=1
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
85
Fundamentals
2.5 Tool offsets
Example 3: Change of programming version from TOFFL to TOFF
The active tool is a milling tool. The active plane is G17.
Program code
Comment
N10 TOFFL[1]=3 TOFFL[3]=5
; Effective offsets: L1=3, L2=0, L3=5
N20 TOFFL[2]=4
; Effective offsets: L1=3, L2=4, L3=5
N30 TOFF[Z]=1.3
; Effective offsets: L1=0, L2=0, L3=1.3
Example 4: Assignment of the offset values after a plane change
Program code
Comment
N10 $TC_DP1[1,1]=120
N20 $TC_DP3[1,1]= 100
; Tool length L1=100 mm.
N30 T1 D1 G17
N40 TOFF[Z]=1.0
; Offset in Z direction (corresponds to L1 for G17).
N50 G0 X0 Y0 Z0
; Machine axis position X0 Y0 Z101
N60 G18 G0 X0 Y0 Z0
; Machine axis position X0 Y100 Z1.
N70 G17
N80 TOFFL=1.0
; Offset in L1 direction (corresponds to Z for G17).
N90 G0 X0 Y0 Z0
; Machine axis position X0 Y0 Z101.
N100 G18 G0 X0 Y0 Z0
; Machine axis position X0 Y101 Z0.
In this example, the offset of 1 mm in the Z axis is retained when changing to G18 in block N60;
the effective tool length in the Y axis is the unchanged tool length of 100 mm.
However, in block N100, the offset is effective in the Y axis when changing to G18 as it was
assigned to tool length L1 in the programming, and this length component is effective in the Y
axis with G18.
Example 5: Simultaneous tool length offset and tool radius offset
a, end milling cutter without corner rounding (tool type 120):
Program code
Comment
TOFFLR=0.1
; Effective offsets:
; Tool length offset (L1) = 5
; Tool radius offset = 5
b, end mill with corner rounding (tool type 121):
Program code
Comment
TOFFLR=0.1
; Effective offsets:
; Tool length offset (L1) = 0.1
; Tool radius offset = 0.1
; Offset corner radius = 0.1
NC programming
86
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.5 Tool offsets
Further information
Tool length offsets
Depending on the type of programming, programmed tool length offsets are assigned either to
the tool length components L1, L2 and L3 (TOFFL) stored in the compensation memory or to the
geometry axes (TOFF). The programmed offsets are treated accordingly for a plane change (G17/
G18/G19 ↔ G17/G18/G19):
• If the offset values are assigned to the tool length components, the directions in which the
programmed offsets apply are replaced accordingly.
• If the offset values are assigned to the geometry axes, a plane change does not affect the
assignment in relation to the coordinate axes.
The following setting data is evaluated when assigning the programmed offset values to the tool
length components:
SD42940 $SC_TOOL_LENGTH_CONST (change of tool length components on change of planes).
SD42950 $SC_TOOL_LENGTH_TYPE (assignment of the tool length offset independent of tool
type).
If this setting data has valid values not equal to 0, then these have priority over the contents of
G group 6 (plane selection G17/G18/G19) or the tool type ($TC_DP1[<T no.>, <D no.>])
contained in the tool data. This means that this setting data affects the evaluation of the offsets
in the same way as the tool length components L1 to L3.
Tool radius offset
The TOFFR address has almost the same effect as the OFFN (Page 251) address. There is only a
difference with active peripheral curve transformation (TRACYL) and active slot side
compensation. In this case, the tool radius is affected by OFFN with a negative sign, but by TOFFR
with a positive sign.
OFFN and TOFFR can be effective simultaneously. They then generally have an additive effect
(except for slot side compensation).
Tool change
All offset values are retained during a tool change (cutting edge change). This means that they
are also effective for the new tool (new cutting edge).
System variables for reading the current offset values
The currently effective offsets can be read with the following system variables:
System variable
Meaning
$P_TOFFL [<n>]
Reads the current offset value of TOFFL (for n = 0) or TOFFL[1...3] (for
n = 1, 2, 3) in the preprocessing context.
with 0 ≤ n ≤ 3
$P_TOFF [<GeoAx>]
Reads the current offset value of TOFF[<GeoAx>] in the preprocessing
context.
$P_TOFFR
Reads the current offset value of TOFFR in the preprocessing context.
$P_TOFFCR
Reads the current offset value of the corner radius in the preprocessing
context.
$AC_TOFFL[<n>]
Reads the current offset value of TOFFL (for n = 0) or TOFFL[1...3] (for
n = 1, 2, 3) in the main run context (synchronized actions).
with 0 ≤ n ≤ 3
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
87
Fundamentals
2.5 Tool offsets
System variable
Meaning
$AC_TOFF[<GeoAx>]
Reads the current offset value of TOFF[<GeoAx>] in the main run context
(synchronized actions).
$AC_TOFFR
Reads the current offset value of TOFFR in the main run context
(synchronized actions).
$AC_TOFFCR
Reads the current offset value of the corner radius in the main run con-
text (synchronized actions).
Note
The system variables $AC_TOFFL, $AC_TOFF, AC_TOFFR and AAC_TOFFCR trigger an automatic
preprocessing stop when reading from the preprocessing context (NC program).
Applications
The "Programmable tool offset" function is especially interesting for ball mills and milling tools
with corner radii as these are often calculated in the CAM system to the ball center instead of the
ball tip. However, the tool tip is generally measured when the tool is measured, and stored as
tool length in the compensation memory.
For the 3D tool radius compensation with a ball mill it is advantageous to correct the tool length
and radius by the same value simultaneously. The TOFFLR address is available to the user for this
purpose.
NC programming
88
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.6 Spindle motion
2.6
Spindle motion
2.6.1
Spindle speed (S), spindle direction of rotation (M3, M4, M5)
The spindle speed and direction of rotation values set the spindle in rotary motion and provide
the conditions for chip removal.
;
;
;
=
Other spindles may be available in addition to the main spindle (e.g. the counterspindle or an
actuated tool on turning machines). As a rule, the main spindle is declared the master spindle
in the machine data. This assignment can be changed using an NC command.
Syntax
S... / S<n>=...
M3 / M<n>=3
M4 / M<n>=4
M5 / M<n>=5
SETMS(<
n>)
SETMS
Meaning
S…:
Spindle speed in rpm for the master spindle
S<n>=...:
Spindle speed in rpm for spindle <n>
Note:
The speed specified with S0=… applies to the master spindle.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
89
Fundamentals
2.6 Spindle motion
M3:
Direction of spindle rotation clockwise for master spindle
M<n>=3:
Spindle direction of rotation clockwise for spindle <n>
M4:
Direction of spindle rotation counter-clockwise for master spindle
M<n>=4:
Spindle direction of rotation counter-clockwise for spindle <n>
M5:
Spindle stop for master spindle
M<n>=5:
Spindle stop for spindle <n>
SETMS(<n>):
Set spindle <n> as master spindle
SETMS:
If SETMS is programmed without a spindle name, the configured master spindle
is used instead.
Note
Up to three S-values can be programmed per NC block, e.g.:
S... S2=... S3=...
Note
SETMS must be in a separate block.
Example
S1 is the master spindle, S2 is the second spindle. The part is to be machined from two sides. To
do this, it is necessary to divide the operations into steps. After the cut-off point, the
synchronizing device (S2) takes over machining of the workpiece after the cut off. To do this, this
spindle S2 is defined as the master spindle to which G95 then applies.
6
6
Program code
Comment
N10 S300 M3
; Speed and direction of rotation for drive spindle = pre-
set master spindle.
; Machining of the right-hand workpiece side.
N100 SETMS(2)
; S2 is now the master spindle.
N110 S400 G95 F…
; Speed for new master spindle.
; Machining of the left-hand workpiece side.
NC programming
90
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.6 Spindle motion
Program code
Comment
N160 SETMS
; Switching back to master spindle S1.
Further information
Interpretation of the S value for the master spindle
If function G331 or G332 is active in G group 1 (modally valid motion commands), the
programmed S-value will always be interpreted as the speed in rpm. Otherwise, the
interpretation of the S-value will depend upon G group 15 (feedrate type): If G96, G961 or G962
is active, the S-value is interpreted as a constant cutting rate in m/min; otherwise, it is interpreted
as a speed in rpm.
Changing from G96/G961/G962 to G331/G332 sets the value of the constant cutting rate to
zero; changing from G331/G332 to a function within the G group 1 other than G331/G332 sets
the speed value to zero. The corresponding S-values have to be reprogrammed if required.
Preset M commands M3, M4, M5
In a block with axis commands, functions M3, M4, M5 are activated before the axis movements
commence (basic setting on the control).
Example:
Program code
Comment
N10 G1 F500 X70 Y20 S270 M3
; The spindle ramps up to 270 rpm and the move-
ments then executed in X and Y.
N100 G0 Z150 M5
; Spindle stop before the retraction movement
in Z.
Note
Machine data can be used to set when axis movements should be executed; either once the
spindle has powered up to the setpoint speed, or immediately after the programmed switching
operations have been traversed.
Working with multiple spindles
Five spindles (master spindle plus four additional spindles) can be available in one channel at the
same time.
One of the spindles is defined in machine data as the master spindle. Special functions such as
thread cutting, tapping, revolutional feedrate, and dwell time apply to this spindle. For the
remaining spindles (e.g. a second spindle and an actuated tool) the numbers corresponding to
the speed and the direction of rotation / spindle stop must be specified.
Example:
Program code
Comment
N10 S300 M3 S2=780 M2=4
; Master spindle: 300 rpm, CW rotation
2nd spindle: 780 rpm, CCW rotation
Programmable switchover of master spindle
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
91
Fundamentals
2.6 Spindle motion
The SETMS(<n>) command can be used in the NC program to define any spindle as the master
spindle. SETMS must be in a separate block.
Example:
Program code
Comment
N10 SETMS (2)
; Spindle 2 is now the master spindle.
Note
The speed specified with S..., along with the functions programmed with M3, M4, M5, now
apply to the newly declared master spindle.
If SETMS is programmed without a spindle name, the master spindle programmed in the
machine data is used instead.
2.6.2
Tool cutting speed (SVC)
As an alternative to the spindle speed, the tool cutting speed, which is more commonly used in
practice, can be programmed for milling operations.
① Spindle speed
② Tool radius
③ Tool cutting speed
The control uses the radius of the active tool to calculate the effective spindle speed from the
programmed tool cutting speed:
S = (SVC * 1000) / (RT * 2π)
with: S:
Spindle speed in rpm
SVC:
Tool cutting speed in m/min or ft/min
RT:
Radius of the active tool in mm
The tool type ($TC_DP1) of the active tool is not taken into account.
NC programming
92
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.6 Spindle motion
The programmed tool cutting speed is independent of path feedrate F and G function group 15
(feedrate type). The direction of rotation and the spindle start are implemented via M3 and M4,
and the spindle stop via M5.
A change to the tool radius data in the offset memory will be applied the next time a tool offset
is selected or the next time the active offset data is updated.
Changing the tool or selecting/deselecting a tool offset data set generates a recalculation of the
effective spindle speed.
Requirements
Programming of the tool cutting speed requires:
• The geometric ratios of a rotating tool (milling cutter or drilling tool)
• An active tool offset data set
Syntax
T... D... SVC[<n>]=<Value>
S... M3/M4
Meaning
SVC:
Keyword for programming of the tool cutting speed
[<n>]:
Number of spindle
This address extension specifies which spindle the programmed cutting speed is
to be applied for. In the absence of an address extension, the rate is always
applied to the master spindle.
Note:
A separate cutting speed can be preset for each spindle.
Note:
Programming SVC without an address extension requires that the master spindle
has the active tool. If the master spindle changes, the user will need to select a
tool accordingly.
<Value>:
Value of tool cutting speed
Unit:
m/min (for G71/G710) or ft/min (for G70/G700)
T... D...:
The tool radius must be established in the block with SVC. Thus, a corresponding
tool including tool offset data block must either be active or selected in the block.
There is no fixed sequence for SVC and T/D selection during programming in the
same block.
S... M3/M4:
Programming of the spindle speed will effect deselection of the tool cutting
speed.
Note:
Switching between SVC programming and S programming is possible at any
time, even while the spindle is rotating. In each case, the value that is not active
is deleted.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
93
Fundamentals
2.6 Spindle motion
Note
SVC programming is not possible if the following spindle feedrate movements are active:
• Constant cutting speed: G96/G961/G962 S... (Page 98)
• Constant grinding wheel peripheral speed: SUG (Page 103)
• Position spindle: SPOS/SPOSA/M19 (Page 117)
•
; Switch master spindle over to axis mode: M70 (Page 117)
Conversely, programming one of these functions will effect a deselection of SVC (tool cutting
speed).
Note
Maximum tool speed
System variable $TC_TP_MAX_VELO[<tool number>] can be used to preset a maximum tool
speed (spindle speed).
If no speed limit has been defined, there will be no monitoring.
Note
The tool paths of "standard tools" generated, e.g. using CAD systems which already take the tool
radius into account and only contain the deviation from the standard tool in the tool nose radius,
are not supported in conjunction with SVC programming.
Examples
The following shall apply to all examples: Tool carrier = spindle (for standard milling)
Example 1: Milling cutter 6 mm radius
Program code
Comment
N10 G0 X10 T1 D1
; Selection of milling tool with, e.g.
$TC_DP6[1,1] = 6 (tool radius = 6 mm)
N20 SVC=100 M3
; Cutting speed = 100 m/min
⇒ Resulting spindle speed:
S = (100 m/min * 1000) / (6.0 mm * 2 * 3.14) =
2653.93 rpm
N30 G1 X50 G95 FZ=0.03
; SVC and tooth feedrate
Example 2: Tool selection and SVC in the same block
Program code
Comment
N10 G0 X20
N20 T1 D1 SVC=100
; Tool and offset data set selection together with
SVC in block (no specific sequence).
N30 X30 M3
; Spindle start with CW direction of rotation, cut-
ting speed 100 m/min
NC programming
94
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.6 Spindle motion
Program code
Comment
N40 G1 X20 F0.3 G95
; SVC and revolutional feedrate
Example 3: Defining cutting speeds for two spindles
Program code
Comment
N10 SVC[3]=100 M6 T1 D1
N20 SVC[5]=200
; The tool radius of the active tool offset is the
same for both spindles. The effective speed is dif-
ferent for spindle 3 and spindle 5.
Example 4:
Assumptions:
Master or tool change is determined by the tool carrier:
MD20124 $MC_TOOL_MANAGEMENT_TOOL CARRIER > 1
In the event of a tool change the old tool offset is retained. A tool offset for the new tool is only
activated when D is programmed:
MD20270 $MC_CUTTING_EDGE_DEFAULT = - 2
Program code
Comment
N10 $TC_MPP1[9998,1]=2
; Magazine location is tool carrier
N11 $TC_MPP5[9998,1]=1
; Magazine location is tool carrier 1
N12 $TC_MPP_SP[9998,1]=3
; Tool carrier 1 is assigned to spindle 3
N20 $TC_MPP1[9998,2]=2
; Magazine location is tool carrier
N21 $TC_MPP5[9998,2]=4
; Magazine location is tool carrier 4
N22 $TC_MPP_SP[9998,2]=6
; Tool carrier 4 is assigned to spindle 6
N30 $TC_TP2[2]="WZ2"
N31 $TC_DP6[2,1]=5.0
; Radius = 5.0 mm of T2, offset D1
N40 $TC_TP2[8]="WZ8"
N41 $TC_DP6[8,1]=9.0
; Radius = 9.0 mm of T8, offset D1
N42 $TC_DP6[8,4]=7.0
; Radius = 7.0 mm of T8, offset D4
N100 SETMTH(1)
; Set master tool carrier number
N110 T="WZ2" M6 D1
; Tool T2 is loaded and offset D1 is activated.
N120 G1 G94 F1000 M3=3 SVC=100
; S3 = (100 m/min * 1000) / (5.0 mm * 2 * 3.14) = 3184.71 rpm
N130 SETMTH(4)
; Set master tool carrier number
N140 T="WZ8"
; Corresponds to T8="WZ8"
N150 M6
; Corresponds to M4=6
Tool "WZ8" is in the master tool carrier, but because
MD20270=-2, the old tool offset remains active.
N160 SVC=50
; S3 = (50 m/min * 1000) / (5.0 mm * 2 * 3.14) = 1592.36 rpm
The offset applied to tool carrier 1 is still active and as-
signed to spindle 3.
N170 D4
; Offset D4 of the new tool "WZ8" becomes active (in tool
carrier 4).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
95
Fundamentals
2.6 Spindle motion
Program code
Comment
N180 SVC=300
; S6 = (300 m/min * 1000) / (7.0 mm * 2 * 3.14) = 6824.39 rpm
Spindle 6 is assigned to tool carrier 4.
Example 5:
Assumptions:
Spindles are tool carriers at the same time:
MD20124 $MC_TOOL_MANAGEMENT_TOOL CARRIER = 0
In the event of a tool change, tool offset data set D4 is selected automatically:
MD20270 $MC_CUTTING_EDGE_DEFAULT = 4
Program code
Comment
N10 $TC_MPP1[9998,1]=2
; Magazine location is tool carrier
N11 $TC_MPP5[9998,1]=1
; Magazine location is tool carrier 1 = spindle 1
N20 $TC_MPP1[9998,2]=2
; Magazine location is tool carrier
N21 $TC_MPP5[9998,2]=3
; Magazine location is tool carrier 3 = spindle 3
N30 $TC_TP2[2]="WZ2"
N31 $TC_DP6[2,1]=5.0
; Radius = 5.0 mm of T2, offset D1
N40 $TC_TP2[8]="WZ8"
N41 $TC_DP6[8,1]=9.0
; Radius = 9.0 mm of T8, offset D1
N42 $TC_DP6[8,4]=7.0
; Radius = 7.0 mm of T8, offset D4
N100 SETMS(1)
; Spindle 1 = master spindle
N110 T="WZ2" M6 D1
; Tool T2 is loaded and offset D1 is activated.
N120 G1 G94 F1000 M3 SVC=100
; S1 = (100 m/min * 1000) / (5.0 mm * 2 * 3.14) = 3184.71 rpm
N200 SETMS(3)
; Spindle 3 = master spindle
N210 M4 SVC=150
; S3 = (150 m/min * 1000) / (5.0 mm * 2 * 3.14) = 4777.07 rpm
Refers to tool offset D1 of T="WZ2", S1 continues to turn at
previous speed.
N220 T="WZ8"
; Corresponds to T8="WZ8"
N230 M4 SVC=200
; S3 = (200 m/min * 1000) / (5.0 mm * 2 * 3.14) = 6369.43 rpm
Refers to tool offset D1 of T="WZ2".
N240 M6
; Corresponds to M3=6
Tool "WZ8" is in the master spindle, tool offset D4 of the
new tool becomes active.
N250 SVC=50
; S3 = (50 m/min * 1000) / (7.0 mm * 2 * 3.14) = 1137.40 rpm
Offset D4 on master spindle is active.
N260 D1
; Offset D1 of new tool "WZ8" active.
N270 SVC[1]=300
; S1 = (300 m/min * 1000) / (9.0 mm * 2 * 3.14) = 5307.86 rpm
S3 = (50 m/min * 1000) / (9.0 mm * 2 * 3.14) = 884.64 rpm
Further information
Tool radius
NC programming
96
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.6 Spindle motion
The following tool offset data (associated with the active tool) affect the tool radius when:
• $TC_DP6 (radius - geometry)
• $TC_DP15 (radius - wear)
• $TC_SCPx6 (offset for $TC_DP6)
• $TC_ECPx6 (offset for $TC_DP6)
The following are not taken into account:
• Online radius compensation
• Allowance on the programmed contour (OFFN)
Tool radius compensation (G41/G42)
Although tool radius compensation (G41/G42) and SVC both relate to the tool radius, they are
not functionally linked and are independent of one another.
Tapping without compensating chuck (G331, G332)
SVC programming is also possible in conjunction with G331 or G332.
Synchronized actions
SVC cannot be programmed from synchronized actions.
Reading the cutting speed and the spindle speed programming variant
The cutting speed of a spindle and the speed programming variant (spindle speed S or tool
cutting speed SVC) can be read using system variables:
• With preprocessing stop in the part program via system variables:
$AC_SVC[<n>]
Effective cutting speed when the current main run block for
spindle with number <n> was preprocessed.
$AC_S_TYPE[<n>]
Effective spindle speed programming variant when the cur-
rent main run block for spindle with number <n> was pre-
processed.
Value:
Meaning:
1
Spindle speed S in rpm
2
Tool cutting speed SVC in m/min or ft/min
• Without preprocessing stop in the part program via system variables:
$P_SVC[<n>]
Programmed cutting speed for spindle <n>
$P_S_TYPE[<n>]
Programmed spindle speed programming variant for spindle
<n>
Value:
Meaning:
1
Spindle speed S in rpm
2
Tool cutting speed SVC in m/min or ft/min
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
97
Fundamentals
2.6 Spindle motion
2.6.3
Constant cutting rate (G96/G961/G962, G97/G971/G972, G973, LIMS, SCC)
If the "Constant cutting speed" function is active, the spindle speed is modified as a function of
the respective workpiece diameter so that the cutting speed S in m/min or ft/min remains
constant at the tool edge.
① Constant cutting rate
② Increased spindle speed
③ Reduced spindle speed
This results in the following advantages:
• Uniformity and consequently improved surface quality of turned parts
• Machining with less wear on tools
Syntax
Activating/deactivating constant cutting speed for the master spindle:
G96/G961/G962 S...
G97/G971/G972/G973
Speed limitation for the master spindle:
LIMS=<value>
LIMS[<spindle>]=<value>
Other reference axis for G96/G961/G962:
SCC[<axis>]
Note
SCC[<Axis>] can be programmed together with G96/G961/G962 or separately.
NC programming
98
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.6 Spindle motion
Meaning
G96:
Revolutional feedrate (as for G95 (Page 105)) and constant cutting speed
G95 is activated automatically with G96. If G95 has not been activated previously, a new
feedrate value F... has to be specified when G96 is called.
G961:
Linear feedrate (as for G94 (Page 105)) and constant cutting speed
G962:
Linear feedrate or revolutional feedrate and constant cutting speed
S...:
In conjunction with G96, G961 or G962, S... is not interpreted as a spindle speed but
rather as a cutting speed. The cutting speed is always applied to the master spindle.
Unit:
m/min (for G71/G710) or ft/min (for G70/G700)
Range of values:
0.1 m/min to 9999 9999.9 m/min
G97:
Revolutional feedrate and constant spindle speed (constant cutting speed OFF)
G971:
Linear feedrate and constant spindle speed (constant cutting speed OFF)
G972:
Linear feedrate or revolutional feedrate and constant spindle speed (constant cutting
speed OFF)
G973:
Revolutional feedrate without spindle speed limitation and constant spindle speed (G97
without LIMS for ISO mode)
Note:
After G97 (or G971 ... G973), S... is again interpreted as a spindle speed in rpm. In the
absence of a new spindle speed being specified, the last speed set with G96 (respectively
G961 or G962) is retained.
LIMS:
Speed limitation for the master spindle (only applied if G96/G961/G97 active)
On machines with selectable master spindles, limitations of differing values can be pro-
grammed for up to four spindles within one block.
<spindle>:
Number of spindle
<value>:
Spindle speed upper limit in rpm
SCC:
If any of the G96/G961/G962 functions are active, SCC[<axis>] can be used to assign any
geometry axis as a reference axis.
Note
If G96/G961/G962 is selected for the first time, a constant cutting speed S... must be entered; if
G96/G961/G962 is selected again, the entry is optional.
Note
The speed limitation programmed with LIMS must not exceed the speed limit programmed with
G26 or defined in the setting data.
Note
The reference axis for G96/G961/G962 must be a geometry axis assigned to the channel at the
time when SCC[<axis>] is programmed. SCC[<axis>] can also be programmed when any of the
G96/G961/G962 functions are active.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
99
Fundamentals
2.6 Spindle motion
Examples
Example 1: Activating the constant cutting speed with speed limitation
Program code
Comment
N10 SETMS (3)
N20 G96 S100 LIMS=2500
; Constant cutting speed = 100 m/min,
max. speed = 2500 rpm
N60 G96 G90 X0 Z10 F8 S100 LIMS=444
; Max. speed = 444 rpm
Example 2: Defining speed limitation for four spindles
Speed limitations are defined for spindle 1 (master spindle) and spindles 2, 3, and 4:
Program code
N10 LIMS=300 LIMS[2]=450 LIMS[3]=800
LIMS[4]=1500
Example 3: Y-axis assignment for face cutting with X axis
Program code
Comment
N10 G18 LIMS=3000 T1 D1
; Speed limitation at 3000 rpm
N20 G0 X100 Z200
N30 Z100
N40 G96 S20 M3
; Constant cutting speed = 20 m/min, is dependent
upon X axis.
N50 G0 X80
N60 G1 F1.2 X34
; Face cutting in X at 1.2 mm/revolution.
N70 G0 G94 X100
N80 Z80
N100 T2 D1
N110 G96 S40 SCC[Y]
; Y axis is assigned to G96 and G96 is activated (can
be achieved in a single block). Constant cutting
speed = 40 m/min, is dependent upon X axis.
N140 Y30
N150 G01 F1.2 Y=27
; Plunge-cutting in Y, feedrate F = 1.2 mm/revolution.
N160 G97
; Constant cutting speed off.
N170 G0 Y100
Further information
Calculation of the spindle speed
NC programming
100
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.6 Spindle motion
The SZS position of the face axis (radius) is the basis for calculating the spindle speed from the
programmed cutting rate.
Note
Frames between WCS and SZS (e.g. programmable frames such as SCALE, TRANS or ROT) are
taken into account in the calculation of the spindle speed and can bring about a change in speed
(for example, if there is a change in the effective diameter in the case of SCALE).
Speed limitation LIMS
If a workpiece that varies greatly in diameter needs to be machined, it is advisable to specify a
speed limit for the spindle with LIMS (maximum spindle speed). This prevents excessively high
speeds with small diameters. LIMS is only applied if G96, G961 and G97 are active. LIMS is not
applied if G971 is selected. On loading the block into the main run, all programmed values are
transferred into the setting data.
Note
The speed limits changed with LIMS in the part program are taken into the setting data and
therefore remain saved after the end of program.
However, if the speed limits changed with LIMS are no longer to apply after the end of program,
the following definition must be inserted in the GUD block of the machine manufacturer:
REDEF $SA_SPIND_MAX_VELO_LIMS PRLOC
Deactivating the constant cutting rate (G97/G971/G972/G973)
After G97 (or G971 ... G973), S... is again interpreted as a spindle speed in rpm. In the absence
of a new spindle speed being specified, the last speed set with G96 (respectively G961 or G962)
is retained.
The G96/G961 function can also be deactivated with G94 or G95. In this case, the last speed
programmed S... is used for subsequent machining operations.
G97 can be programmed without G96 beforehand. The function then has the same effect as
G95; LIMS can also be programmed.
Using G973, the constant cutting rate can be deactivated without activating a spindle speed
limitation.
Note
The transverse axis must be defined in machine data.
Rapid traverse G0
With rapid traverse G0, there is no change in speed.
Exception:
If the contour is approached in rapid traverse and the next NC block contains a G1/G2/G3/... path
command, the speed is adjusted in the G0 approach block for the next path command.
Other reference axis for G96/G961/G962
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
101
Fundamentals
2.6 Spindle motion
If any of the G96/G961/G962 functions are active, SCC[<axis>] can be used to assign any
geometry axis as a reference axis. If the reference axis changes, which will in turn affect the TCP
(tool center point) reference position for the constant cutting rate, the resulting spindle speed
will be reached via the set braking or acceleration ramp.
Axis exchange of the assigned channel axis
The reference axis property for G96/G961/G962 is always assigned to a geometry axis. In the
event of an axis exchange involving the assigned channel axis, the reference axis property for
G96/G961/G962 is retained in the old channel.
A geometry axis exchange will not affect how the geometry axis is assigned to the constant
cutting rate. If the TCP reference position for G96/G961/G962 is affected by a geometry axis
exchange, the spindle will reach the new speed via a ramp.
If no new channel axis is assigned as a result of a geometry axis exchange (e.g. GEOAX(0,X)), the
spindle speed will be frozen in accordance with G97.
Examples for geometry axis exchange with assignments of the reference axis:
Program code
Comment
N05 G95 F0.1
N10 GEOAX(1, X1)
; Channel axis X1 becomes the first geometry axis.
N20 SCC[X]
; First geometry axis (X) becomes the reference axis
; for G96/G961/G962.
N30 GEOAX(1, X2)
; Channel axis X2 becomes the first geometry axis.
N40 G96 M3 S20
; Reference axis for G96 is channel axis X2.
Program code
Comment
N05 G95 F0.1
N10 GEOAX(1, X1)
; Channel axis X1 becomes the first geometry axis.
N20 SCC[X1]
; X1 and implicitly the first geometry axis (X) becomes
the reference axis for G96/G961/G962.
N30 GEOAX(1, X2)
; Channel axis X2 becomes the first geometry axis.
N40 G96 M3 S20
; Reference axis for G96 is X2 or X, no alarm.
Program code
Comment
N05 G95 F0.1
N10 GEOAX(1, X2)
; Channel axis X2 becomes the first geometry axis.
N20 SCC[X1]
; X1 is not a geometry axis, alarm.
Program code
Comment
N05 G0 Z50
N10 X35 Y30
N15 SCC[X]
; Reference axis for G96/G961/G962 is X.
N20 G96 M3 S20
; Constant cutting rate ON at 10 mm/min.
N25 G1 F1.5 X20
; Face cutting in X at 1.5 mm/revolution.
NC programming
102
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.6 Spindle motion
Program code
Comment
N30 G0 Z51
N35 SCC[Y]
; Reference axis for G96 is Y,
reduction of spindle speed (Y30).
N40 G1 F1.2 Y25
; Face cutting in Y at 1.2 mm/revolution.
2.6.4
Switching constant grinding wheel peripheral speed (GWPSON, GWPSOF) on/
off:
With the predefined procedures GWPSON(...) and GWPSOF(...), the constant grinding wheel
peripheral speed (GWPS) for grinding tools (tool type: 400 to 499) is switched on and off.
Syntax
GWPSON(<TNo>)
S<n>=... :
GWPSOF(<TNo>)
Meaning
GWPSON(...):
Switch on the constant grinding wheel peripheral speed
GWPSOF(...):
Switch off the constant grinding wheel peripheral speed
<TNo>:
T number
Note:
Only required if the constant grinding wheel peripheral speed is to be switch-
ed on or off for an inactive grinding wheel rather than the active grinding
wheel that is currently in use.
S<n>=…:
Grinding wheel peripheral speed in m/s or ft/s for spindle <n>
S0=... or S... :
Grinding wheel peripheral speed for the master spindle
Query status
The following system variable can be used to query from the part program whether the constant
grinding wheel peripheral speed is active for a specific spindle.
$P_GWPS[<n>] ; where <n> = spindle number
Value
Meaning
0 (= FALSE)
GWPS is inactive.
1 (= TRUE)
GWPS is active.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
103
Fundamentals
2.6 Spindle motion
2.6.5
Programmable spindle speed limitation (G25, G26)
The minimum and maximum spindle speeds defined in the machine and setting data can be
modified by means of a part program command.
Programmed spindle speed limitations are possible for all spindles of the channel.
Syntax
G25 S… S1=… S2=…
G26 S… S1=… S2=…
Meaning
G25:
Lower spindle speed limit
G26:
Upper spindle speed limit
S... S1=… S2=…
:
Minimum or maximum spindle speed(s)
Note:
A maximum of three spindle speed limits can be programmed for
each block.
Range of values:
0.1 to 9999 9999.9 rpm
Note
A spindle speed limitation programmed with G25 or G26 overwrites the speed limits in the
setting data and, therefore, remains stored even after the end of the program.
However, if the speed limits changed with G25/G26 are no longer to apply after the end of
program, the following definitions must be inserted in the GUD block of the machine
manufacturer:
REDEF $SA_SPIND_MIN_VELO_G25 PRLOC
REDEF $SA_SPIND_MAX_VELO_G26 PRLOC
Example
Program code
Comment
N10 G26 S1400 S2=350 S3=600
; Upper speed limit for master spindle, spindle 2 and
spindle 3.
NC programming
104
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
2.7
Feed control
2.7.1
Feedrate (G93, G94, G95, F, FGROUP, FL, FGREF)
These commands are used in the NC program to set the feedrates for all axes involved in the
machining sequence.
Syntax
G93
G94
G95
F<value>
FGROUP(<axis_1>,<axis_2>,...)
FGREF[<rotary axis>]=<reference radius>
FL[<axis>]=<value>
Meaning
G93:
Path feed type: Inverse-time feedrate [rpm]
G94:
Path feed type: Linear feedrate [mm/min], [inch/min] or [degrees/min]
G95:
Path feed type: Revolutional feedrate [mm/revolution] or [inch/revolution]
The revolutional feedrate can be derived from a master spindle, any other spindle or a
rotary axis.
F<value>
Path feedrate for all or the path axes selected with FGROUP.
FGROUP:
Definition of the path axes to which the F-programmed path feed refers
FGREF:
FGREF is used to program the effective radius (<reference radius>) for each of the
rotary axes specified under FGROUP
FL:
Limit velocity for synchronized/path axes
The unit set with G94 applies
One FL value can be programmed per axis (channel axes, geometry axis or orientation
axis)
<axis>:
Name of a channel axis, type: AXIS
Examples
Example 1: Mode of operation of FGROUP
The following example is intended to demonstrate the effect of FGROUP on the path and path
feedrate. The variable $AC_TIME contains the time of the block start in seconds. It can only be
used in synchronized actions.
Program code
Comment
N100 G0 X0 A0
N110 FGROUP(X,A)
N120 G91 G1 G710 F100
; Feedrate = 100mm/min or 100 degrees/min
N130 DO $R1=$AC_TIME
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
105
Fundamentals
2.7 Feed control
Program code
Comment
N140
X10
; Feedrate = 100 mm/min, path = 10 mm, R1
= approx. 6 s
N150
DO $R2=$AC_TIME
N160
X10 A10
; Feedrate = 100 mm/min, path = 14.14 mm,
R2 = approx. 8 s
N170
DO $R3=$AC_TIME
N180
A10
; Feedrate = 100 degrees/min, path = 10 de-
grees, R3 = approx. 6 s
N190
DO $R4=$AC_TIME
N200
X0.001 A10
; Feedrate = 100 mm/min, path = 10 mm, R4
= approx. 6 s
N210
G700 F100
; Feedrate = 2540 mm/min or 100 degrees/min
N220
DO $R5=$AC_TIME
N230
X10
; Feedrate = 2540 mm/min, path = 254 mm, R5
= approx. 6 s
N240
DO $R6=$AC_TIME
N250
X10 A10
; Feedrate = 2540 mm/min, path = 254.2 mm,
R6 = approx. 6 s
N260
DO $R7=$AC_TIME
N270
A10
; Feedrate = 100 degrees/min, path = 10 de-
grees, R7 = approx. 6 s
N280
DO $R8=$AC_TIME
N290
X0.001 A10
; Feedrate = 2540 mm/min, path = 10 mm, R8
= approx. 0.288 s
N300
FGREF[A]=360/(2*$PI)
; Set 1 degree = 1 inch via the effective
radius
N310
DO $R9=$AC_TIME
N320
X0.001 A10
; Feedrate = 2540 mm/min, path = 254 mm, R9
= approx. 6 s
N330
M30
Example 2: Traverse synchronized axes with limit speed FL
The path velocity of the path axes is reduced if the synchronized axis Z reaches the limit velocity.
Program code
N10 G0 X0 Y0
N20 FGROUP(X)
N30 G1 X1000 Y1000 G94 F1000 FL[Y]=500
N40 Z-50
Example 3: Helical interpolation
Path axes X and Y traverse with the programmed feedrate, the infeed axis Z is a synchronized
axis.
NC programming
106
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
<
<
;
=
Program code
Comment
N10 G17 G94 G1 Z0 F500
; Feed of the tool.
N20 X10 Y20
; Approach the starting posi-
tion.
N25 FGROUP(X,Y)
; Axes X/Y are path axes, Z is
a synchronized axis.
N30 G2 X10 Y20 Z-15 I15 J0 F1000 FL[Z]=200
; On the circular path, the
feedrate is 1,000 mm/min, tra-
versing in the Z direction is
synchronized.
N100 FL[Z]=$MA_AX_VELO_LIMIT[0,Z]
; The limit speed is deselec-
ted by reading the speed from
the MD. Read the value from
the MD.
N110 M30
; End of program
Further information
Feedrate for path axes (F)
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.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
107
Fundamentals
2.7 Feed control
<
0RYHPHQW LQ <
;
0RYHPHQW LQ ;
The feedrate is specified under address F. Depending on the default setting in the machine data,
the units of measurement specified with the G commands are either in mm or inch.
One F value can be programmed per NC block. The feedrate unit is defined using one of the G
commands G93/G94/G95. The feedrate F acts only on path axes and remains active until a new
feedrate is programmed. Separators are permitted after the address F.
Examples:
F100 or F 100
F.5
F=2*FEED
Feedrate type (G93/G94/G95)
The G commands G93, G94 and G95 are modal. In the event of switching between G93, G94 and
G95, the path feedrate value has to be reprogrammed. When machining with rotary axes, the
feedrate can also be specified in degrees/min.
Inverse-time feedrate (G93)
The inverse-time feedrate specifies the time required to execute the motion commands in a
block.
Unit: rpm
Example:
N10 G93 G01 X100 F2
Means: The programmed path is traversed in 0.5 min.
NC programming
108
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
<
*
;
)
;
PLQ
Note
If the path lengths vary greatly from block to block, a new F value should be specified in each
block with G93. When machining with rotary axes, the feedrate can also be specified in degrees/
min.
Feedrate for synchronized axes
The feedrate programmed under address F applies to all the path axes programmed in a block
but not to the synchronized axes. The synchronized axes are controlled such that they require
the same time for their path as the path axes, and all axes reach their end point at the same time.
Limit velocity for synchronized axes (FL)
The FL command can be used to program a limit velocity for synchronized axes. In the absence
of a programmed FL, the rapid traverse velocity applies. FL is deselected by assignment to MD
(MD36200 $MA_AX_VELO_LIMIT).
Traverse path axis as synchronized axis (FGROUP)
FGROUP is used to define whether a path axis should be traversed with path feedrate or as a
synchronized axis. In helical interpolation, for example, it is possible to define that only two
geometry axes, X and Y, are to be traversed at the programmed feedrate. The infeed axis Z is the
synchronized axis in this case.
Example: FGROUP(X,Y)
Change FGROUP
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
109
Fundamentals
2.7 Feed control
The setting made with FGROUP can be changed:
1. By reprogramming FGROUP: e.g. FGROUP(X,Y,Z)
2. By programming FGROUP without a specific axis: FGROUP()
In accordance with FGROUP(), the initial setting in the machine data applies: Geometry axes
are now once again traversed in the path axis grouping.
Note
With FGROUP, axis identifiers must be the names of channel axes.
Units of measurement for feedrate F
In addition to the geometrical settings G700 and G710, the G commands are also used to define
the measuring system for the feedrates F. In other words:
• For G700: [inch/min]
• For G710: [mm/min]
Note
G70/G71 have no effect on feedrate settings.
Unit of measurement for synchronized axes with limit speed FL
The unit set for F using G command G700/G710 is also valid for FL.
Unit for rotary and linear axes
For linear and rotary axes which are combined with FGROUP and traverse a path together, the
feedrate is interpreted in the unit of the linear axes (depending on the default with G94/G95, in
mm/min or inch/min and mm/rev or inch/rev).
The tangential velocity of the rotary axis in mm/min or inch/min is calculated according to the
following formula:
F[mm/min] = F'[degrees/min] * π * D[mm]/360[degrees]
where: F:
Tangential velocity
F':
Angular velocity
π:
Circle constant
D:
Diameter
NC programming
110
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
)
)
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 interpreted as a path feed in the usual way by reference
to the F value. This requires the specification of an effective radius (reference radius) for each of
the rotary axes involved.
The unit of the reference radius depends on the G70/G71/G700/G710 setting.
All axes involved must be included in the FGROUP command to be taken into account in the
calculation of the path feedrate.
In order to ensure compatibility with the behavior with no FGREF programming, the factor 1
degree = 1 mm is activated on system power up and RESET. This corresponds to a reference
radius of FGREF= 360 mm/(2π) = 57.296 mm.
Note
This default is independent of the active basic system
(MD10240 $MN_SCALING_SYSTEM_IS_METRIC) and the currently active G70/G71/G700/G710
setting.
Special situations:
Program code
N100 FGROUP(X,Y,Z,A)
N110 G1 G91 A10 F100
N120 G1 G91 A10 X0.0001 F100
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
111
Fundamentals
2.7 Feed control
With this type of programming, the F value programmed in N110 is evaluated as the rotary axis
feedrate in degrees/min, while the feedrate evaluation in N120 is either 100 inch/min or 100
mm/min, dependent upon the currently active G70/G71/G700/G710 setting.
NOTICE
Feedrate difference
FGREF evaluation also works if only rotary axes are programmed in the block. The normal F
value interpretation as degree/min applies in this case only if the radius reference corresponds
to the FGREF default:
• For G71/G710: FGREF[A]=57.296
• For G70/G700: FGREF[A]=57.296/25.4
Read reference radius
The value of the reference radius of a rotary axis can be read using system variables:
• In synchronized actions or with preprocessing stop in the part program via system variable:
$AA_FGREF[<axis>]
Current main run value
• Without preprocessing stop in the part program via system variable:
$PA_FGREF[<axis>]
Programmed value
If no values are programmed, the default 360 mm/(2π) = 57.296 mm (corresponding to 1 mm
per degree) will be read in both variables.
For linear axes, the value in both variables is always 1 mm.
Read path axes affecting velocity
The axes involved in path interpolation can be read using system variables:
• In synchronized actions or with preprocessing stop in the part program via system variables:
$AA_FGROUP[<axis>]
Returns the value "1" if the specified axis affects the path
velocity in the current main run record by means of the
basic setting or through FGROUP programming. Other-
wise, the variable returns the value "0".
$AC_FGROUP_MASK
Returns a bit key of the channel axes programmed
with FGROUP which are to affect the path velocity.
• Without preprocessing stop in the part program via system variables:
$PA_FGROUP[<axis>]
Returns the value "1" if the specified axis affects the path
velocity by means of the basic setting or through FGROUP
programming. Otherwise, the variable returns the value
"0".
$P_FGROUP_MASK
Returns a bit key of the channel axes programmed
with FGROUP which are to affect the path velocity.
Path reference factors for orientation axes with FGREF
NC programming
112
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
With orientation axes the mode of operation of the FGREF[] factors is dependent upon
whether the change in the orientation of the tool is implemented by means of rotary axis or
vector interpolation.
In the case of rotary axis interpolation, as is the case with rotary axes, the relevant FGREF
factors of the orientation axes are calculated individually as reference radius for the axis paths.
In the case of vector interpolation, an effective FGREF factor, which is calculated as the
geometric mean value of the individual FGREF factors, is applied.
FGREF[effective] = nth root of [(FGREF[A] * FGREF[B]...)]
where: A:
Axis identifier of 1st orientation axis
B:
Axis identifier of 2nd orientation axis
C:
Axis identifier of 3rd orientation axis
n:
Number of orientation axes
Example:
Since there are two orientation axes for a standard 5-axis transformation, the effective factor is,
therefore, the root of the product of the two axial factors:
FGREF[effective] = square root of [(FGREF[A] * FGREF[B])]
Note
It is, therefore, possible to use the effective factor for orientation axes FGREF to define a
reference point on the tool to which the programmed path feedrate refers.
2.7.2
Traverse positioning axes (POS, POSA, POSP, FA, WAITP, WAITMC)
Positioning axes are traversed independently of the path axes at a separate, axis-specific
feedrate. There are no interpolation commands. With the POS/POSA/POSP commands, the
positioning axes are traversed and the sequence of motions coordinated at the same time.
The following are typical examples of positioning axes:
• Pallet feed equipment
• Gauging stations
WAITP can be used to identify a position in the NC program where the program is to wait until
an axis programmed with POSA in a previous NC block reaches its end position.
WAITMC loads the next NC block immediately when the specified wait marker is received.
Syntax
POS[<axis>]=<position>
POSA[<axis>]=<position>
POSP[<axis>]=(<end position>,<partial length>,<mode>)
FA[<axis>]=<value>
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
113
Fundamentals
2.7 Feed control
WAITP(<axis>) ; Programming in a separate NC block.
WAITMC(<wait marker>)
Meaning
POS/POSA:
Move positioning axis to specified position
POS and POSA have the same functionality but differ in their block change behavior:
• POS delays the enabling of the NC block until the position has been reached.
• POSA enables the NC block even if the position has not been reached.
<axis>:
Name of the axis to be traversed (channel or geometry axis
identifier)
<position>:
Axis position to be approached
Type:
REAL
POSP:
Move positioning axis to specified end position in sections
<end position>:
Axis end position to be approached
<partial length>:
Length of a section
<mode>:
Approach mode
= 0:
For the last two sections, the path remaining until
the end position is split into two residual sections
of equal size (preset).
= 1:
The partial length is adjusted so that the total of all
calculated partial lengths corresponds exactly to
the path up to the end position.
Note:
POSP is used specifically to program oscillating motion (Page 953).
FA:
Feedrate for the specified positioning axis
<axis>:
Name of the axis to be traversed (channel or geometry axis identifier)
<Value>:
Feedrate
Unit:
mm/min or inch/min or degrees/min
Note:
Up to 5 FA values can be programmed for each NC block.
WAITP:
Wait for a positioning axis to be traversed
The subsequent blocks are not processed until the specified positioning axis pro-
grammed in a previous NC block with POSA has reached its end position (with exact
stop fine).
<axis>:
Name of the axis (channel or geometry axis identifier) for which
the WAITP command is to be applied
Note:
With WAITP, an axis can be made available as an oscillating axis or for traversing as
a concurrent positioning axis (via PLC).
WAITMC:
Wait for the specified wait marker to be received
When the wait marker is received, the next NC block is loaded immediately.
<wait marker>:
Number of the wait marker
NC programming
114
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
CAUTION
Travel with POSA
If a command, which implicitly causes a preprocessing stop, is read in a following block, this
block is not executed until all other blocks which are already preprocessed and stored have
been executed. The previous block is stopped in exact stop (as G9).
Examples
Example 1: Travel with POSA and access to machine status data
The control generates an internal preprocessing stop on access to machine status data ($A...).
Machining is stopped until all preprocessed and saved blocks have been executed in full.
Program code
Comment
N40 POSA[X]=100
N50 IF $AA_IM[X]==R100 GOTOF LABEL1
; Access to machine status data.
N60 G0 Y100
N70 WAITP(X)
N80 LABEL1:
N...
Example 2: Wait for end of travel with WAITP
Pallet feed equipment
Axis U:
Pallet store
Transport of workpiece pallet to working area
Axis V:
Transfer line to a gauging station where spot checks are carried out to assist the
process
Program code
Comment
N10 FA[U]=100 FA[V]=100
; Axis-specific feedrate specifica-
tions for the individual position-
ing axes U and V.
N20 POSA[V]=90 POSA[U]=100 G0 X50 Y70
; Traverse positioning and path ax-
es.
N50 WAITP(U)
; Program execution does not resume
until axis U reaches the end point
programmed in N20.
…
Further information
Travel with POSA
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
115
Fundamentals
2.7 Feed control
Block step enable or program execution is not affected by POSA. The movement to the end
position can be performed during execution of subsequent NC blocks.
Travel with POS
The next block is not executed until all axes programmed under POS reach their end positions.
Wait for end of travel with WAITP
After a WAITP, assignment of the axis to the NC program is no longer valid; this applies until the
axis is programmed again. This axis can then be operated as a positioning axis through the PLC,
or as a reciprocating axis from the NC program/PLC or HMI.
Block change in the braking ramp with IPOBRKA and WAITMC
An axis is only decelerated if the wait marker has not yet been reached or if another end-of-block
criterion is preventing the block change. After a WAITMC, the axis starts immediately if no other
end-of-block criterion is preventing the block change.
2.7.3
Position-controlled spindle mode (SPCON, SPCOF)
The position-controlled operation of the spindle is explicitly activated or deactivated using the
SPCON or SPCOF command.
Note
The switching on of the position control mode with SPCON requires a maximum of three position
control cycles.
Syntax
SPCON
SPCON(<n>)
SPCON(<n>,<m>,...)
SPCOF
SPCOF(<n>)
SPCOF(<n>,<m>,...)
Meaning
SPCON
Activate position-controlled mode
The specified spindle is switched over from speed control to position control.
SPCON s modal and is retained until SPCOF.
SPCOF
Deactivate position-controlled mode
The specified spindle is switched over from position control to speed control.
<n>,<m>,...
Spindle numbers
:
Without specifying a spindle number: Master spindle of the channel
NC programming
116
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
Note
For a synchronous spindle with setpoint coupling, it is not permissible that the leading spindle
is switched into the speed-controlled mode using SPCOF.
2.7.4
Positioning spindles (SPOS, SPOSA, M19, M70, WAITS)
SPOS, SPOSA or M19 can be used to set spindles to specific angular positions, e.g. during tool
change.
SPOS, SPOSA and M19 induce a temporary switchover to position-controlled mode until the next
M3/M4/M5/M41 to M45.
Positioning in axis mode
The spindle can also be operated as a path axis, synchronized axis or positioning axis at the
address defined in the machine data. When the axis identifier is specified, the spindle is in axis
mode. M70 switches the spindle directly to axis mode.
End of positioning
The end-of-motion criterion when positioning the spindle can be programmed using FINEA,
CORSEA, IPOENDA or IPOBRKA.
The program advances to the next block if the end of motion criteria for all spindles or axes
programmed in the current block plus the block change criterion for path interpolation are
fulfilled.
Synchronization
In order to synchronize spindle movements, WAITS can be used to wait until the spindle position
is reached.
Requirements
The spindle to be positioned must be capable of operation in position-controlled mode.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
117
Fundamentals
2.7 Feed control
Syntax
Position spindle:
SPOS=<value> / SPOS[<n>]=<value>
SPOSA=<value> / SPOSA[<n>]=<value>
M19 / M<n>=19
Switch spindle over to axis mode:
M70 / M<n>=70
Define end-of-motion criterion:
FINEA / FINEA[S<n>]
COARSEA / COARSEA[S<n>]
IPOENDA / IPOENDA[S<n>]
IPOBRKA / IPOBRKA(<axis>[,<instant in time>]) ; Programming in a separate NC
block.
Synchronize spindle movements:
WAITS / WAITS(<n>,<m>) ; Programming in a separate NC block.
Meaning
SPOS / SPOSA:
Set spindle to specified angle
SPOS and SPOSA have the same functionality but differ in their block change be-
havior:
• With SPOS, the NC block is only enabled once the position has been reached.
• With SPOSA, the block is enabled even if the position has not been reached.
<n>:
Number of the spindle to be positioned.
If a spindle number is not specified or if the spindle number is set
to "0", SPOS or SPOSA will be applied to the master spindle.
<value>:
Angular position to which the spindle is to be set.
Unit:
Degrees
Type:
REAL
The following options are available for programming the position
approach mode:
=AC(<value>):
Absolute dimensions
Range of values:
0 … 359.9999
=IC(<value>):
Incremental dimensions
Range of values:
0 … ±99 999.999
=DC(<value>):
Approach absolute value directly
=ACN(<value>):
Absolute dimension, approach in negative
direction
=ACP(<value>):
Absolute dimension, approach in positive di-
rection
=<value>:
as DC(<value>)
NC programming
118
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
M<n>=19:
Set the master spindle (M19 or M0=19) or spindle with the number <n> (M<n>=19)
to the angular position preset with SD43240 $SA_M19_SPOS with the position
approach mode preset in SD43250 $SA_M19_SPOSMODE.
The NC block is not enabled until the position has been reached.
M<n>=70:
Switch the master spindle (M70 or M0=70) or spindle with the number <n>
(M<n>=70) over to axis mode.
No defined position is approached. The NC block is enabled after the switchover has
been performed.
FINEA:
Motion end when "Exact stop fine" reached
COARSEA:
Motion end when "Exact stop coarse" reached
IPOENDA:
End of motion on reaching "interpolator stop"
S<n>:
Spindle for which the programmed end-of-motion criterion is to be effective
<n>:
Spindle number
If a spindle is not specified in [S<n>] or a spindle number of "0" is specified, the
programmed end-of-motion criterion will be applied to the master spindle.
IPOBRKA:
A block change is possible in the braking ramp.
<axis>:
Channel axis identifier
<instant in
Instant in time of the block change with reference to the
time>:
braking ramp
Unit:
Percent
Range of values:
100 (application point of the braking
ramp) to 0 (end of the braking ramp)
If a value is not assigned to the <instant in time> parameter,
the current value of the setting data is applied:
SD43600 $SA_IPOBRAKE_BLOCK_EXCHANGE
Note:
IBOBRKA with an instant in time of "0" is identical to IPOENDA.
WAITS:
Synchronization command for the specified spindle(s)
The subsequent blocks are not processed until the specified spindle(s) programmed
in a previous NC block with SPOSA has (have) reached its (their) end position(s)
(with exact stop fine).
WAITS after M5:
Wait for the specified spindle(s) to come to a standstill.
WAITS after M3/M4:
Wait for the specified spindle(s) to reach their setpoint
speed.
<n>,<m>:
Numbers of the spindles to which the synchronization
command is to be applied.
If a spindle number is not specified or if the spindle
number is set to "0", WAITS will be applied to the mas-
ter spindle.
Note
Three spindle positions are possible for each NC block.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
119
Fundamentals
2.7 Feed control
Note
With incremental dimensions IC(<value>), spindle positioning can take place over several
revolutions.
Note
If position control was activated with SPCON prior to SPOS, this remains active until SPCOF is
issued.
Note
The control detects the transition to axis mode automatically from the program sequence.
Explicit programming of M70 in the part program is, therefore, essentially no longer necessary.
However, M70 can continue to be programmed, e.g. to increase the legibility of the part
program.
Further information
Positioning with SPOSA
The block step enable or program execution is not affected by SPOSA. The spindle positioning
can be performed during execution of subsequent NC blocks. The program moves onto the next
block if all the functions (except for spindle) programmed in the current block have reached their
block end criterion. The spindle positioning operation may be programmed over several blocks
(see WAITS).
Note
If a command, which implicitly causes a preprocessing stop, is read in a following block,
execution of this block is delayed until all positioning spindles are stationary.
Positioning with SPOS/M19
The block step enabling condition is met when all functions programmed in the block reach their
end-of-block criterion (e.g. all auxiliary functions acknowledged by the PLC, all axes at their end
point) and the spindle reaches the programmed position.
Velocity of the movements:
The velocity and the delay response for positioning are stored in the machine data. The
configured values can be modified by programming or by synchronized actions, see:
• Feedrate for positioning axes / spindles (FA, FPR, FPRAON, FPRAOF) (Page 122)
• Programmable acceleration compensation (ACC) (Page 125)
Specification of spindle positions:
As the G90/G91 commands are not effective here, the corresponding dimensions apply
explicitly, e.g. AC, IC, DC, ACN, ACP. If no specifications are made, traversing automatically takes
place as for DC.
Synchronize spindle movements with WAITS
NC programming
120
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
WAITS can be used to identify a point at which the NC program waits until one or more spindles
programmed with SPOSA in a previous NC block reach their positions.
Example:
Program code
Comment
N10 SPOSA[2]=180 SPOSA[3]=0
N40 WAITS(2,3)
; The block waits until spindles 2 and 3 have
reached the positions specified in block N10.
WAITS can be used after M5 to wait until the spindle(s) has (have) stopped. WAITS can be used
after M3/M4 to wait until the spindle(s) has (have) reached the specified speed/direction of
rotation.
Note
If the spindle has not yet been synchronized with synchronization marks, the positive direction
of rotation is taken from the machine data (state on delivery).
Position spindle from rotation (M3/M4)
When M3 or M4 is active, the spindle comes to a standstill at the programmed value.
'LUHFWLRQ RI URWDWLRQ
'LUHFWLRQ RI URWDWLRQ
'&
$&
'&
$&
3URJUDPPHG
3URJUDPPHG
DQJOH
DQJOH
There is no difference between DC and AC dimensioning. In both cases, rotation continues in the
direction selected by M3/M4 until the absolute end position is reached. With ACN and ACP,
deceleration takes place if necessary, and the appropriate approach direction is taken. With IC,
the spindle rotates additionally to the specified value starting at the current spindle position.
Position a spindle from standstill (M5)
The exact programmed distance is traversed from standstill (M5).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
121
Fundamentals
2.7 Feed control
2.7.5
Feedrate for positioning axes / spindles (FA, FPR, FPRAON, FPRAOF)
It is also possible to derive the revolutional feedrate for path and synchronized axes or for
individual positioning axes/spindles from another rotary axis or spindle.
Positioning axes such as workpiece transport systems, tool turrets and end supports are
traversed independently of path and synchronized axes. A separate feedrate is therefore
defined for each positioning axis.
A separate axial feedrate can also be programmed for spindles.
Syntax
Feedrate for positioning axis:
FA[<axis>]=…
Axis feedrate for spindle:
FA[SPI(<n>)]=…
FA[S<n>]=…
Derive revolutional feedrate for path/synchronized axes:
FPR (<rotary axis>)
FPR(SPI(<n>))
FPR(S<n>)
Derive rotational feedrate for positioning axes/spindles:
FPRAON(<axis>,<rotary axis>)
FPRAON(<axis>,SPI(<n>))
FPRAON(<axis>,S<n>)
FPRAON(SPI(<n>),<rotary axis>)
FPRAON(S<n>,<rotary axis>)
FPRAON(SPI(<n>),SPI(<n>))
FPRAON(S<n>,S<n>)
FPRAOF(<axis>,SPI(<n>), etc.)
FPRAOF(<axis>,S<n>, etc.)
Meaning
FA[...]=... :
Feedrate for the specified positioning axis or positioning speed (axial fee-
drate) for the specified spindle
Unit:
mm/min or inch/min or degrees/min
Range of values:
… 999,999.999 mm/min, degrees/min
… 39 999.9999 inch/min
FPR(...):
FPR is used to identify the rotary axis (<rotary axis>) or spindle
(SPI(<n>)/S<n>) from which the revolutional feedrate for the revolutional
feedrate of the path and synchronized axes programmed under G95 is to be
derived.
NC programming
122
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
FPRAON(...):
Derive rotational feedrate for positioning axes and spindles
The first parameter (<axis>/SPI(<n>)/S<n>) identifies the positioning
axis/spindle to be traversed with revolutional feedrate.
The second parameter (<rotary axis>/SPI(<n>)/S<n>) identifies the
rotary axis/spindle from which the revolutional feedrate is to be derived.
Note:
The second parameter can be omitted, in which case the feedrate will be
derived from the master spindle.
FPRAOF(...):
FPRAOF is used to deselect the derived revolutional feedrate for the speci-
fied axes or spindles.
<axis>:
Axis identifier (positioning or geometry axis)
SPI(<n>)/S<n>:
Spindle identifier
SPI(<n>) and S<n> are identical in terms of function.
<n>:
Spindle number
Note:
SPI converts spindle numbers into axis identifiers. The transfer
parameter (<n>) must contain a valid spindle number.
Note
The programmed feedrate FA[...] is modal.
Up to five feedrates for positioning axes or spindles can be programmed in each NC block.
Note
The derived feedrate is calculated according to the following formula:
Derived feedrate = programmed feedrate * absolute master feedrate
Examples
Example 1: Synchronous spindle coupling
With synchronous spindle coupling, the positioning speed of the following spindle can be
programmed independently of the master spindle, e.g. for positioning operations.
Program code
Comment
FA[S2]=100
; Positioning speed of the following spindle (spindle 2) = 100
degrees/min
Example 2: Derived revolutional feedrate for path axes
Path axes X, Y must be traversed at the revolutional feedrate derived from rotary axis A:
Program code
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
123
Fundamentals
2.7 Feed control
Program code
N40 FPR(A)
N50 G95 X50 Y50 F500
Example 3: Derive revolutional feedrate for master spindle
Program code
Comment
N30 FPRAON(S1,S2)
; The revolutional feedrate for the master spindle (S1)
must be derived from spindle 2.
N40 SPOS=150
; Position master spindle.
N50 FPRAOF(S1)
; Deselect derived revolutional feedrate for the master
spindle.
Example 4: Derive revolutional feedrate for positioning axis
Program code
Comment
N30 FPRAON(X)
; The revolutional feedrate for positioning axis X
must be derived from the master spindle.
N40 POS[X]=50 FA[X]=500
; The positioning axis is traversing at 500 mm/revo-
lution of the master spindle.
N50 FPRAOF(X)
Further information
FA[…]
The feedrate type is always G94. When G70/G71 is active, the unit is metric/inches according to
the default setting in the machine data. G700/G710 can be used to modify the unit in the
program.
Note
If no FA is programmed, the value defined in the machine data applies.
FPR(…)
As an extension of the G95command (revolutional feedrate referring to the master spindle), FPR
allows the revolutional feedrate to be derived from any chosen spindle or rotary axis. G95
FPR(…) is valid for path and synchronized axes.
If the rotary axis/spindle specified in the FPR command is operating on position control, then the
setpoint linkage is active. Otherwise the actual-value linkage is effective.
FPRAON(…)
FPRAON is used to derive the revolutional feedrate for positioning axes and spindles from the
current feedrate of another rotary axis or spindle.
FPRAOF(…)
NC programming
124
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
The revolutional feedrate can be deactivated for one or a number of axes/spindles
simultaneously with the FPRAOF command.
2.7.6
Programmable feedrate override (OVR, OVRRAP, OVRA)
The velocity of path/positioning axes and speed of spindles can be modified in the NC program.
Syntax
OVR=<value>
OVRRAP=<value>
OVRA[<axis>]=<value>
OVRA[SPI(<n>)]=<value>
OVRA[S<n>]=<value>
Meaning
OVR:
Feedrate modification for path feedrate F
OVRRAP:
Feedrate modification for rapid traverse velocity
OVRA:
Feedrate modification for positioning feedrate FA or for spindle speed S
<axis>:
Axis identifier (positioning or geometry axis)
SPI(<n>)/S<n>:
Spindle identifier
SPI(<n>) and S<n> are identical in terms of function.
<n>:
Spindle number
Note:
SPI converts spindle numbers into axis identifiers. The transfer
parameter (<n>) must contain a valid spindle number.
<value>:
Feedrate modification in percent
The value refers to or is combined with the feedrate override set on the
machine control panel.
Range of values:
0 … 200%, integral
Note:
With path and rapid traverse override, the maximum velocities set in the
machine data is not overshot.
2.7.7
Programmable acceleration compensation (ACC)
In critical program sections, it may be necessary to limit the acceleration to below the maximum
values, e.g. to prevent mechanical vibrations from occurring.
The programmable acceleration override can be used to modify the acceleration for each path
axis or spindle via a command in the NC program. The limit is effective for all types of
interpolation. The values defined in the machine data apply as 100% acceleration.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
125
Fundamentals
2.7 Feed control
Syntax
ACC[<axis>]=<value>
ACC[SPI(<n>)]=<value>
ACC(S<n>)=<value>
Deactivate:
ACC[...]=100
Syntax
ACC:
Acceleration change for the specified path axis or speed change for the
specified spindle.
<axis>:
Channel axis name of path axis
SPI(<n>)/S<n>:
Spindle identifier
SPI(<n>) and S<n> are identical in terms of function.
<n>:
Spindle number
Note:
SPI converts spindle numbers into axis identifiers. The transfer
parameter (<n>) must contain a valid spindle number.
<value>:
Acceleration change in percent
The value refers to or is combined with the feedrate override set on the
machine control panel.
Range of values:
1 to 200%, integers
Note
With a greater acceleration rate, the values permitted by the manufacturer may be exceeded.
Example
Program code
Comment
N50 ACC[X]=80
; The axis slide in the X direction should only be trav-
ersed with 80% acceleration.
N60 ACC[SPI(1)]=50
; Spindle 1 should only accelerate or brake with 50% of
the acceleration capacity.
Further information
Acceleration override programmed with ACC
The acceleration override programmed with ACC[...] is always taken into consideration for the
output, the same as in system variables $AA_ACC. Readout in the part program and in
synchronized actions takes place at different times in the NC processing run.
NC programming
126
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
In the part program
The value written in the part program is then only taken into consideration in system variable
$AA_ACC as written in the part program if ACC was not changed in the meantime by a
synchronized action.
In synchronized actions
The following therefore applies: The value written to a synchronized action is then only
considered in system variable $AA_ACC as written to the synchronized action if ACC was not
changed in the meantime by a part program.
The specified acceleration can also be changed using synchronized actions.
Example:
Program code
N100 EVERY $A_IN[1] DO POS[X]=50 FA[X]=2000 ACC[X]=140
The actual acceleration value can be called with system variable $AA_ACC[<Axis >] Machine
data can be used to determine whether the ACC value last set should apply on RESET/parts
program end or whether it should be set to 100%.
2.7.8
Feedrate with handwheel override (FD, FDA)
The FD and FDA commands can be used to traverse axes with handwheels during execution of
the part program. The programmed settings for traversing the axes are then overlaid with the
handwheel pulses evaluated as path or velocity inputs.
Path axes
In the case of path axes, the programmed path feedrate can be overlaid. The handwheel is
evaluated as the 1st geometry axis of the channel. The handwheel pulses evaluated per
interpolation cycle, dependent on the direction of rotation, correspond to the path velocity to be
overlaid. The path velocity limit values which can be achieved by means of handwheel override
are:
• Minimum: 0
• Maximum: Machine data limit values of the path axes involved in traversing
Note
Path feedrate
The path feedrate F and the handwheel feedrate FD cannot be programmed in the same NC
block.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
127
Fundamentals
2.7 Feed control
Positioning axes
In the case of positioning axes, the travel path or velocity can be overlaid as an axial value. The
handwheel assigned to the axis is evaluated.
• Path override
The handwheel pulses evaluated dependent on the direction of rotation correspond to the
axis path to be traveled. Only handwheel pulses in the direction of the programmed position
are evaluated.
• Velocity override
The handwheel pulses evaluated per interpolation cycle dependent on the direction of
rotation correspond to the axial velocity to be overlaid. The path velocity limit values which
can be achieved by means of handwheel override are:
- Minimum: 0
- Maximum: Machine data limit values of the positioning axis
Syntax
FD=<velocity>
FDA[<axis>]=<velocity>
Meaning
FD=<velocity>:
Path feedrate and enabling of velocity override with
handwheel
<velocity>:
• Value = 0: Not allowed!
• Value ≠ 0: Path velocity
FDA[<axis>]=<velocity>:
Axial feedrate
<velocity>:
• Value = 0: Path default with handwheel
• Value ≠ 0: Axial velocity
<axis>:
Axis identifier of positioning axis
Note
FD and FDA are non-modal.
NC programming
128
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
Example
=
;
Path definition: The grinding wheel oscillating in the Z direction is traversed to the workpiece in
the X direction with the handwheel.
The operator can continue to feed manually until the sparks are flying uniformly. Activating
"Delete distance-to-go" switches to the next NC block and machining continues in AUTOMATIC
mode.
Further information
Traverse path axes with velocity override (FD=<velocity>)
The following conditions must be met for the part program block in which path velocity override
is programmed:
• Path command G1, G2 or G3 active
• Exact stop G60 active
• Linear feedrate G94 active
Feedrate override
The feedrate override only affects the programmed path velocity and not the velocity
component generated with the handwheel (exception: (except if feed override = 0).
Example:
Program code
Description
N10 X… Y… F500
; Feedrate = 500 mm/min
N20 X… Y… FD=700
; Feedrate = 700 mm/min and velocity override
with handwheel.
; Acceleration from 500 to 700 mm/min in N20. The handwheel
can be used to vary the speed dependent on the direction of rotation between 0
and the maximum value (machine data).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
129
Fundamentals
2.7 Feed control
Traverse positioning axes with path default (FDA[<axis>]=0)
In the NC block with programmed FDA[<axis>]=0 the feed is set to zero so that the program
cannot generate any travel movement. The programmed travel movement to the target position
is now controlled exclusively by the operator rotating the handwheel.
Example:
Program code
Description
N20 POS[V]=90 FDA[V]=0
; Target position = 90 mm, axial feedrate = 0 mm/min and
path override with handwheel.
; Velocity of axis V at start of block = 0 mm/min.
; Path and speed defaults are set using handwheel pulses
Direction of movement, travel velocity
The axes follow the path set by the handwheel in the direction of the sign. Forward and
backwards travel is possible dependent on the direction of rotation. The faster the handwheel
rotates, the higher the traversing speed.
Traversing range:
The traversing range is limited by the starting position and the programmed end point.
Traverse positioning axis with velocity override (FDA[<axis>]=<velocity>)
In NC blocks with programmed FDA[…]=…, the feedrate from the last programmed FA value is
accelerated or decelerated to the value programmed under FDA. Starting from the current
feedrate FDA, the handwheel can be turned to accelerate the programmed movement to the
target position or decelerate it to zero. The values set as parameters in the machine data serve
as the maximum velocity.
Example:
Program code
Description
N10 POS[V]=… FA[V]=100
; Axial feedrate = 100 mm/min
NC programming
130
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
Program code
Description
N20 POS[V]=100 FAD[V]=200
; Axial target position = 100, axial feedrate = 200 mm/min
; and velocity override with handwheel.
; Acceleration from 100 to 200 mm/min in N20. The
; Handwheel can be used to vary the velocity depending on the direc-
tion of rotation
; between 0 and the maximum value (machine data).
Traversing range:
The traversing range is limited by the starting position and the programmed end point.
2.7.9
Feedrate optimization for curved path sections (CFTCP, CFC, CFIN)
With activated correction mode G41/G42, the programmed feedrate for the milling tool radius
first refers to the milling tool center path (refer to Chapter "Coordinate transformations (frames)
(Page 305)").
When you mill a circle (the same applies to polynomial and spline interpolation) the extent to
which the feedrate varies at the cutter edge is so significant under certain circumstances that it
can impair the quality of the machined part.
Example: Milling a small outside radius with a large tool. The path that the outside of the milling
tool must travel is considerably longer than the path along the contour.
<
;
Because of this, machining at the contour takes place with a very low feedrate. To prevent
adverse effects, the feedrate needs to be controlled accordingly for curved contours.
Syntax
CFTCP
CFC
CFIN
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
131
Fundamentals
2.7 Feed control
Meaning
CFTCP:
Constant feedrate on the milling cutter center path
The control keeps the feedrate constant and feedrate overrides are deactivated.
CFC:
Constant feedrate at the contour (tool cutting edge).
This function is preset per default.
CFIN:
Constant feedrate at the tool cutting edge only at concave contours, otherwise on the
milling cutter center path.
The feedrate is reduced for inside radii.
Example
In this example, the contour is first produced with a CFC-corrected feedrate. During finishing, the
cutting base is also machined with CFIN. This prevents the cutting base being damaged at the
outside radii by an excessively high feedrate.
<
;
Program code
Comment
N10 G17 G54 G64 T1 M6
N20 S3000 M3 CFC F500 G41
N30 G0 X-10
N40 Y0 Z-10
; Feed to first cutting depth
N50 CONTOUR1
; Subprogram call
N40 CFIN Z-25
; Feed to second cutting depth
N50 CONTOUR1
; Subprogram call
N60 Y120
N70 X200 M30
NC programming
132
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
Further information
Constant feedrate along the contour with CFC
&RQVWDQW
5HGXFHG
,QFUHDVHG
The feedrate is reduced for inside radii and increased for outside radii. This ensures a constant
velocity at the tool cutting edge and thus at the contour.
2.7.10
Several feedrate values in one block (F, ST, SR, FMA, STA, SRA)
The "Multiple feedrates in one block" function can be used to activate different feedrate values
for an NC block, a dwell time or a retraction motion-synchronously, dependent on external
digital and/or analog inputs.
Syntax
Path motion
F=... F7=... F6=... F5=... F4=... F3=... F2=... ST=... SR=...
Axial motion:
FA[<Ax>]=... FMA[7,<Ax>]=... FMA[6,<Ax>]=... FMA[5,<Ax>]=...
FMA[4,<Ax>]=... FMA[3,<Ax>]=... FMA[2,<Ax>]=... STA[<Ax>]=...
SRA[<Ax>]=...
Meaning
F=... :
The path feedrate is programmed under the ad-
dress F and remains valid during the absence of
an input signal.
Effective:
Modal
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
133
Fundamentals
2.7 Feed control
F2=... to F7=... :
In addition to the path feedrate, up to six further
feedrates can be programmed in the block. The
numerical expansion indicates the bit number of
the input that activates the feedrate when
changed:
Effective:
Non-modal
ST=... :
Dwell time in s (for grinding technology: sparking-
out time)
Input bit:
1
Effective:
Non-modal
SR=... :
Retraction path
The unit for the retraction path refers to the cur-
rent valid unit of measurement (mm or inch).
Input bit:
0
Effective:
Non-modal
FA[<Ax>]=... :
The axial feedrate is programmed under the ad-
dress FA and remains valid during the absence of
an input signal.
Effective:
Modal
FMA[2,<Ax>]=... to FMA[7,<Ax>]=... :
In addition to the axial feedrate FA up to six fur-
ther feedrates per axis can be programmed in the
block with FMA. The first parameter indicates the
bit number of the input and the second the axis
for which the feedrate is to apply.
Effective:
Non-modal
STA[<Ax>]=...:
Axial dwell time in s (for grinding technology:
sparking-out time)
Input bit:
1
Effective:
Non-modal
SRA[<Ax>]=...:
Axial retraction path
Input bit:
0
Effective:
Non-modal
<Ax>:
Axis for which the feedrate is to apply
Note
Priority of the signals
The signals are scanned in ascending order starting at input bit 0 (I0). Therefore, the retraction
motion has the highest priority and the feedrate F7 the lowest priority. Dwell time and retraction
motion end the feedrate motions that were activated with F2 to F7.
The signal with the highest priority determines the current feedrate.
NC programming
134
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
Note
Delete distance-to-go
If input bit 1 is activated for the dwell time or bit 0 for the return path, the distance to go for the
path axes or the relevant single axes is deleted and the dwell time or return started.
Note
Retraction path
The unit for the retraction path refers to the current valid unit of measurement (mm or inch).
The reverse stroke is always made in the opposite direction to the current motion. SR/SRA always
programs the value for the reverse stroke. No sign is programmed.
Note
POS instead of POSA
If feedrates, dwell time or return path are programmed for an axis on account of an external
input, this axis must not be programmed as POSA axis (positioning axis over multiple blocks) in
this block.
Note
Status query
It is also possible to poll the status of an input for synchronous commands of various axes.
Note
LookAhead
Look Ahead is also active for multiple feedrates in one block. In this way, the current feedrate can
be restricted by the Look Ahead value.
Examples
Example 1: Path motion
Program code
Comment
G1 X48 F1000 F7=200 F6=50 F5=25 F4=5 ST=1.5 SR=0.5
; Path feedrate = 1000
; Additional path feedrate values:
; 200 (input bit 7)
; 50 (input bit 6)
; 25 (input bit 5)
; 5 (input bit 4)
; Dwell time 1.5 s
; Retraction 0.5 mm
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
135
Fundamentals
2.7 Feed control
Example 2: Axial motion
Program code
Comment
POS[A]=300 FA[A]=800 FMA[7,A]=720 FMA[6,A]=640
; Feedrate for axis A = 800
FMA[5,A]=560 STA[A]=1.5 SRA[A]=0.5
; Additional feedrate values for axis A: 720
(input bit 7)
; 640 (input bit 6)
; 560 (input bit 5)
; Axial dwell time: 1.5 s
; Axial retraction: 0.5 mm
Example 3: Multiple operations in one block
Program code
Comment
N20 T1 D1 F500 G0 X100
Initial setting
N25 G1 X105 F=20 F7=5 F3=2.5 F2=0.5 ST=1.5 SR=0.5
; Normal feedrate with F,
; roughing with F7,
; finishing with F3,
; smooth-finishing with F2,
; dwell time 1.5 s,
; retraction path 0.5 mm
2.7.11
Non-modal feedrate (FB)
The "Non-modal feedrate" function can be used to define a separate feedrate for a single block.
After this block, the previous modal feedrate is active again.
Syntax
FB=<value>
Meaning
FB:
Feedrate for current block only
<VALUE>:
The programmed value must be greater than zero.
Values are interpreted based on the active feedrate type:
• G94: feedrate in mm/min or degrees/min
• G95: feedrate in mm/rev or inch/rev
• G96: constant cutting rate
NC programming
136
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
Note
If no traversing motion is programmed in the block (e.g. computation block), the FB has no
effect.
If no explicit feedrate for chamfering/rounding is programmed, then the value of FB also applies
for any chamfering/rounding contour element in this block.
Feedrate interpolations FLIN, FCUB, etc. are also possible without restriction.
Simultaneous programming of FB and FD (handwheel travel with feedrate override) or F (modal
path feedrate) is not possible.
Example
Program code
Comment
N10 G0 X0 Y0 G17 F100 G94
;Initial setting
N20 G1 X10
; Feedrate 100 mm/min
N30 X20 FB=80
; Feedrate 80 mm/min
N40 X30
; Feedrate is 100 mm/min again.
2.7.12
Tooth feedrate (G95 FZ)
)HHG SDWK SHU
WRRWK
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
137
Fundamentals
2.7 Feed control
The control uses the $TC_DPNT (number of teeth) tool parameter associated with the active tool
offset data block to calculate the effective revolutional feedrate for each traversing block from
the programmed tooth feedrate.
F = FZ * $TC_DPNT
with: F:
Revolutional feedrate in mm/rev or inch/rev
FZ:
Tooth feedrate in mm/tooth or inch/tooth
$TC_DPNT:
System variable tool parameter: Number of teeth/rev
The tool type ($TC_DP1) of the active tool is not taken into account.
The programmed tooth feedrate is independent of the tool change and the selection/
deselection of a tool offset data block; it is retained in modal format.
A change to the $TC_DPNT tool parameter associated with the active tool cutting edge will be
applied the next time a tool offset is selected or the next time the active offset data is updated.
Changing the tool or selecting/deselecting a tool offset data block generates a recalculation of
the effective revolutional feedrate.
Note
The tooth feedrate refers only to the path (axis-specific programming is not possible).
Syntax
G95 FZ...
Meaning
G95:
Type of feedrate: Revolutional feedrate in mm/rev or inch/rev (dependent upon G700/G710)
For G95 see "Feedrate (G93, G94, G95, F, FGROUP, FL, FGREF) (Page 105)"
FZ:
Tooth feedrate
Activation:
with G95
Effectiveness:
Modal
Unit:
mm/tooth or inch/tooth (dependent upon G700/G710)
NOTICE
Tool change/Changing the master spindle
A subsequent tool change or changing the master spindle must be taken into account by the
user by means of corresponding programming, e.g. reprogramming FZ.
NC programming
138
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
NOTICE
Tool operations undefined
Technological concerns such as climb milling or conventional milling, front face milling or
peripheral face milling, etc., along with the path geometry (straight line, circle, etc.), are not
taken into account automatically. Therefore, these factors have to be given consideration when
programming the tooth feedrate.
Note
Switchover between G95 F... and G95 FZ...
With switchover between G95 F... (revolution feedrate) and G95 FZ... (tooth feedrate),
the inactive feedrate value is deleted in each case.
Note
Derive feedrate with FPR
As is the case with the revolutional feedrate, FPR can also be used to derive the tooth feedrate
of any rotary axis or spindle (see "Feedrate for positioning axes / spindles (FA, FPR, FPRAON,
FPRAOF) (Page 122)").
Examples
Example 1: Milling cutter with 5 teeth ($TC_DPNT = 5)
Program code
Comment
N10 G0 X100 Y50
N20 G1 G95 FZ=0.02
; Tooth feedrate 0.02 mm/tooth
N30 T3 D1
; Load tool and activate tool offset data block.
M40 M3 S200
; Spindle speed 200 rpm
N50 X20
; Milling with:
FZ = 0.02 mm/tooth
effective revolutional feedrate:
F = 0.02 mm/tooth * 5 teeth/rev = 0.1 mm/rev
or
F = 0.1 mm/rev * 200 rpm = 20 mm/min
Example 2: Switchover between G95 F... and G95 FZ...
Program code
Comment
N10 G0 X100 Y50
N20 G1 G95 F0.1
; Revolutional feedrate 0.1 mm/rev
N30 T1 M6
N35 M3 S100 D1
N40 X20
N50 G0 X100 M5
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
139
Fundamentals
2.7 Feed control
Program code
Comment
N60 M6 T3 D1
; Load tool with e.g. five teeth ($TC_DPNT = 5).
N70 X22 M3 S300
N80 G1 X3 G95 FZ=0.02
; Change G95 F… to G95 FZ…, tooth feedrate active with
0.02 mm/tooth.
Example 3: Derive tooth feedrate of a spindle (FBR)
Program code
Comment
…
N41 FPR(S4)
; Tool in spindle 4 (not the master spindle).
N51 G95 X51 FZ=0.5
; Tooth feedrate 0.5 mm/tooth dependent upon spindle S4.
Example 4: Subsequent tool change
Program code
Comment
N10 G0 X50 Y5
N20 G1 G95 FZ=0.03
; Tooth feedrate 0.03 mm/tooth
N30 M6 T11 D1
; Load tool with e.g. seven teeth ($TC_DPNT = 7).
N30 M3 S100
N40 X30
; Effective revolutional feedrate 0.21 mm/rev
N50 G0 X100 M5
N60 M6 T33 D1
; Load tool with e.g. five teeth ($TC_DPNT = 5).
N70 X22 M3 S300
N80 G1 X3
; Tooth feedrate modal 0.03 mm/tooth,
effective revolutional feedrate 0.15 mm/rev
Example 5: Changing the master spindle
Program code
Comment
N10 SETMS (1)
; Spindle 1 is the master spindle.
N20 T3 D3 M6
; Tool 3 is changed to spindle 1.
N30 S400 M3
; Speed S400 of spindle 1 (and therefore T3).
N40 G95 G1 FZ0.03
; Tooth feedrate 0.03 mm/tooth
N50 X50
; Path motion, the effective feedrate is dependent upon:
- The tooth feedrate FZ
- The speed of spindle 1
- The number of teeth of the active tool T3
N60 G0 X60
N100 SETMS(2)
; Spindle 2 becomes the master spindle.
N110 T1 D1 M6
; Tool 1 is changed to spindle 2.
N120 S500 M3
; Speed S500 of spindle 2 (and therefore T1).
NC programming
140
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.7 Feed control
Program code
Comment
N130 G95 G1 FZ0.03 X20
; Path motion, the effective feedrate is dependent upon:
- The tooth feedrate FZ
- The speed of spindle 2
- The number of teeth of the active tool T1
Note
Following the change in the master spindle (N100), a tool actuated by spindle 2 must be
substituted (N110).
Further information
Changing between G93, G94 and G95
FZ can also be programmed when G95 is not active, although it will have no effect and is deleted
when G95 is selected. In other words, when changing between G93, G94, and G95, in the same
way as with F, the FZ value is also deleted.
Reselection of G95
Reselecting G95 when G95 is already active has no effect (unless a change between F and FZ has
been programmed).
Non-modal feedrate (FB)
When G95 FZ... (modal) is active, a non-modal feedrate FB... is interpreted as a tooth
feedrate.
SAVE mechanism
In subprograms with the SAVE attribute FZ is written to the value prior to the subprogram
starting (in the same way as F).
Multiple feedrate values in one block
The "Multiple feedrate values in one block" function is not possible with tooth feedrate.
Synchronized actions
FZ cannot be programmed from synchronized actions.
Read tooth feedrate and path feedrate type
The tooth feedrate and the path feedrate type can be read using system variables.
• With preprocessing stop in the part program via system variables:
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
141
Fundamentals
2.7 Feed control
$AC_FZ
Tooth feedrate effective when the current main run block was prepro-
cessed.
$AC_F_TYPE
Path feedrate type effective when the current main run block was pre-
processed.
Value:
Meaning:
0
mm/min
1
mm/rev
2
inch/min
3
inch/rev
11
mm/tooth
33
inch/tooth
• Without preprocessing stop in the part program via system variables:
$P_FZ
Programmed tooth feedrate
$P_F_TYPE
Programmed path feedrate type
Value:
Meaning:
0
mm/min
1
mm/rev
2
inch/min
3
inch/rev
11
mm/tooth
33
inch/tooth
Note
If G95 is not active, the $P_FZ and $AC_FZ variables will always return a value of zero.
NC programming
142
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.8 Geometry settings
2.8
Geometry settings
2.8.1
Settable zero offset (G54 to G57, G505 to G599, G53, G500, SUPA, G153)
The G54 to G57 and G505 to G599 commands activate the settable work offsets for offsetting
the workpiece coordinate system compared with the basic coordinate system set from the user
interface.
Syntax
Switching on:
G54
G57
G505
G599
Switching off or suppressing:
G500 / G53 / G153 / SUPA
Meaning
G54 to G57:
Call of the 1st to 4th settable work offset (WO)
G505 to G599:
Call of the 5th to 99th settable work offset
G500:
Deactivation of the current settable work offset
G500=Zero frame:
Deactivation of the settable work offset
until the next call, activation of the entire
(default setting; contains no off-
basic frame ($P_ACTBFRAME).
set, rotation, mirroring or scaling)
G500 not equal to 0:
Activation of the first settable work offset
($P_UIFR[0]) and activation of the entire
basic frame ($P_ACTBFRAME) or possibly a
modified basic frame is activated.
G53:
G53 suppresses the settable work offset and the programmable work offset
non-modally.
G153:
G153 has the same effect as G53 and also suppresses the entire basic frame.
SUPA:
SUPA has the same effect as G153 and also suppresses:
• Handwheel offsets (DRF)
• Overlaid movements
• External work offset
• PRESET offset
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
143
Fundamentals
2.8 Geometry settings
Example
Three workpieces that are arranged on a palette according to the work offset values G54 to G56
are to be machined in succession. The machining sequence is programmed in subprogram L47.
<
0
<
;
<
<
;
;
;0
75$16 ;
0
Program code
Comment
N10 G0 G90 X10 Y10 F500 T1
; Approach
N20 G54 S1000 M3
; Call of the first WO, spindle clockwise
N30 L47
; Program pass as subprogram
N40 G55 G0 Z200
; Call of the second WO, Z via obstruction
N50 L47
; Program pass as subprogram
N60 G56
; Call of the third WO
N70 L47
; Program pass as subprogram
N80 G53 X200 Y300 M30
; Suppress work offset, end of program
2.8.2
Settable work offset (G54 to G57, G505 to G599, G53, G500, SUPA, G153):
Further information
Further information
Settable work offset
A settable work offset is in principle a set frame (Page 305). Consequently, the following
components and frame values are also available for a settable work offset:
• Offset
• Rotation
• Scaling
• Scale
NC programming
144
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.8 Geometry settings
<%.6
<:.6
;:.6
<:.6
;:.6
;
%.6
① Initial position in the BCS
② Offset
③ Offset + rotation
④ Offset + scaling
The frame values for the settable work offsets are input from the user interface:
SINUMERIK Operate: "Parameters" > "Work offsets" > "Details" operating area
Parameterized number of parameterizable frames (G505 - G599)
The number of user-specific settable work offsets (G505 - G599) can be set for each specific
channel via:
MD28080 $MC_MM_NUM_USER_FRAMES = <number>
See also
Programmable work offset (G58, G59) (Page 314)
2.8.3
Selection of the working plane (G17/G18/G19)
The specification of the working plane, in which the desired contour is to be machined, also
defines the following functions:
• The plane for tool radius compensation
• The infeed direction for tool length offset depending on the tool type
• The plane for circular interpolation
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
145

 

 

 

 

 

 

 

Content      ..      1      2      3      ..