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

 

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

 

Search            copyright infringement  

 

   

 

   

 

Content      ..     1      2      3      4      ..

 

 

 

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

 

 

Fundamentals
2.8 Geometry settings
=
<
;
*
*
*
Syntax
G17/G18/G19, etc.
Meaning
G17:
Working plane X/Y
Infeed direction Z, plane selection 1st - 2nd geometry axis
G18:
Working plane Z/X
Infeed direction Y, plane selection 3rd - 1st geometry axis
G19:
Working plane Y/Z
Infeed direction X, plane selection 2nd - 3rd geometry axis
Note
In the default setting, G17 (X/Y plane) is defined for milling and G18 (Z/X plane) is defined for
turning.
When calling the tool path correction G41/G42 (see Section "Tool radius compensation
(Page 251)"), the working plane must be defined so that the control can correct the tool length
and radius.
Example
The "conventional" approach for milling is:
1. Define working plane (G17 default setting for milling).
2. Select tool type (T) and tool offset values (D).
NC programming
146
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.8 Geometry settings
3. Switch on path correction (G41).
4. Program traversing movements.
Program code
Comment
N10 G17 T5 D8
; Call of working plane X/Y, tool call. Tool
length offset is performed in the Z
direction.
N20 G1 G41 X10 Y30 Z-5 F500
; Radius compensation is performed in the X/
Y plane.
N30 G2 X22.5 Y40 I50 J40
; Circular interpolation / tool radius
compensation in the X/Y plane.
Further information
General
It is recommended that the working plane G17 to G19 be selected at the start of the program.
In the default setting, the Z/X plane is preset for turning G18.
<
*
;
*
*
=
The control system requires the specification of the working plane for the calculation of the
direction of rotation. Additional information is provided in the section "Circular interpolation
(Page 188)".
Machining on inclined planes
Rotate the coordinate system with ROT (Page 316) to position the coordinate axes on the
inclined surface. The working planes rotate accordingly.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
147
Fundamentals
2.8 Geometry settings
Tool length compensation on inclined planes
As a general rule, the tool length compensation always refers to the fixed, non-rotated working
plane.
Note
The tool length components can be calculated according to the rotated working planes with the
functions for "Tool length compensation for orientable tools".
The compensation plane is selected with CUT2D, CUT2DF. Additional information and a
description of the available calculation methods is provided in Chapter "Tool radius
compensation (Page 251)".
The control provides convenient coordinate transformation functions for the spatial definition
of the working plane. Additional information is provided in the section "Coordinate
transformations (frames) (Page 305)".
2.8.4
Dimensions
The basis of most NC programs is a workpiece drawing with specific dimensions.
These dimensions can be:
• In absolute dimensions or in incremental dimensions
• In millimeters or inches
• In radius or diameter (for turning)
Specific programming commands are available for the various dimension options so that the
data from a dimension drawing can be transferred directly (without conversion) to the NC
program.
NC programming
148
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.8 Geometry settings
2.8.4.1
Absolute dimensions (G90, AC)
With absolute dimensions, the position specifications always refer to the zero point of the
currently valid coordinate system, i.e. the absolute position is programmed, on which the tool
is to traverse.
Modal absolute dimensions
Modal absolute dimensions are activated with the G90 command. Generally it applies to all axes
programmed in subsequent NC blocks.
Non-modal absolute dimensions
With preset incremental dimensions (G91), the AC command can be used to set non-modal
absolute dimensions for individual axes.
Note
Non-modal absolute dimensions (AC) are also possible for spindle positioning (SPOS, SPOSA)
and interpolation parameters (I, J, K).
Syntax
G90
<axis>=AC(<value>)
Meaning
G90:
Command for the activation of modal absolute dimensions
AC:
Command for the activation of non-modal absolute dimensions
<axis>:
Axis identifier of the axis to be traversed
<value>:
Position setpoint of the axis to be traversed in absolute dimensions
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
149
Fundamentals
2.8 Geometry settings
Examples
Example 1: Milling
=
;
<
;
Program code
Comment
N10 G90 G0 X45 Y60 Z2 T1 S2000 M3
; Absolute dimension input, in rapid tra-
verse to position XYZ, tool selection,
spindle on with clockwise direction of
rotation.
N20 G1 Z-5 F500
; Linear interpolation, feed of the tool.
N30 G2 X20 Y35 I=AC(45) J=AC(35)
; Clockwise circular interpolation, cir-
cle end point and circle center point in
absolute dimensions.
N40 G0 Z2
; Traverse
N50 M30
; End of block
Note
For information on the input of the circle center point coordinates I and J, see Section "Circular
interpolation".
Example 2: Turning
NC programming
150
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.8 Geometry settings
;
=
:
Program code
Comment
N5 T1 D1 S2000 M3
; Loading of tool T1, spindle on with
clockwise direction of rotation.
N10 G0 G90 X11 Z1
; Absolute dimension input, in rapid tra-
verse to position XZ.
N20 G1 Z-15 F0.2
; Linear interpolation, feed of the tool.
N30 G3 X11 Z-27 I=AC(-5) K=AC(-21)
; Counter-clockwise circular interpola-
tion, circle end point and circle center
point in absolute dimensions.
N40 G1 Z-40
; Traverse
N50 M30
; End of block
Note
For information on the input of the circle center point coordinates I and J, see Section "Circular
interpolation".
See also
Absolute and incremental dimensions for turning and milling (G90/G91) (Page 155)
2.8.4.2
Incremental dimensions (G91, IC)
With incremental dimensions, the position specification refers to the last point approached, i.e.
the programming in incremental dimensions describes by how much the tool is to be traversed.
Modal incremental dimensions
Modal incremental dimensions are activated with the G91 command. Generally it applies to all
axes programmed in subsequent NC blocks.
Non-modal incremental dimensions
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
151
Fundamentals
2.8 Geometry settings
With preset absolute dimensions (G90), the IC command can be used to set non-modal
incremental dimensions for individual axes.
Note
Non-modal incremental dimensions (IC) are also possible for spindle positioning
(SPOS, SPOSA) and interpolation parameters (I, J, K).
Syntax
G91
<axis>=IC(<value>)
Meaning
G91:
Command for the activation of modal incremental dimensions
IC:
Command for the activation of non-modal incremental dimensions
<axis>:
Axis identifier of the axis to be traversed
<value>:
Position setpoint of the axis to be traversed in incremental dimensions
G91 extension
For certain applications, such as scratching, it is necessary that only the programmed distance
is traversed in incremental dimensions. The active zero offset or tool length offset is not
traversed.
This behavior can be set separately for the active zero offset and tool length offset via the
following setting data:
SD42440 $SC_FRAME_OFFSET_INCR_PROG (zero offsets in frames)
SD42442 $SC_TOOL_OFFSET_INCR_PROG (tool length offsets)
Value
Meaning
0
With incremental programming (incremental dimensions) of an axis, the zero offset or the tool
length offset is not traversed.
1
With incremental programming (incremental dimensions) of an axis, the zero offset or the tool
length offset is traversed.
NC programming
152
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.8 Geometry settings
Examples
Example 1: Milling
=
;
<
;
Program code
Comment
N10 G90 G0 X45 Y60 Z2 T1 S2000 M3
; Absolute dimension input, in rapid tra-
verse to position XYZ, tool selection,
spindle on with clockwise direction of
rotation
N20 G1 Z-5 F500
; Linear interpolation, feed of the tool.
N30 G2 X20 Y35 I0 J-25
; Clockwise circular interpolation, cir-
cle end point in absolute dimensions, cir-
cle center point in incremental dimen-
sions.
N40 G0 Z2
; Traverse
N50 M30
; End of block
Note
For information on the input of the circle center point coordinates I and J, see Section "Circular
interpolation".
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
153
Fundamentals
2.8 Geometry settings
Example 2: Turning
;
=
:
Program code
Comment
N5 T1 D1 S2000 M3
; Loading of tool T1, spindle on with clockwise di-
rection of rotation.
N10 G0 G90 X11 Z1
; Absolute dimension input, in rapid
traverse to position XZ.
N20 G1 Z-15 F0.2
; Linear interpolation, feed of the tool.
N30 G3 X11 Z-27 I-8 K-6
; Counter-clockwise circular interpolation, circle
end point in absolute dimensions, circle center point
in incremental dimensions.
N40 G1 Z-40
; Traverse
N50 M30
; End of block
Note
For information on the input of the circle center point coordinates I and J, see Section "Circular
interpolation".
Example 3: Incremental dimensions without traversing of the active zero offset
Settings:
• G54 contains an offset in X of 25
• SD42440 $SC_FRAME_OFFSET_INCR_PROG = 0
Program code
Comment
N10 G90 G0 G54 X100
N20 G1 G91 X10
; Incremental dimensions active, traversing in X of 10 mm
(the zero offset is not traversed).
NC programming
154
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.8 Geometry settings
Program code
Comment
N30 G90 X50
; Absolute dimensions active, traverse to position X75 (the
zero offset is traversed).
See also
Absolute and incremental dimensions for turning and milling (G90/G91) (Page 155)
2.8.4.3
Absolute and incremental dimensions for turning and milling (G90/G91)
The two following figures illustrate the programming with absolute dimensions (G90) or
incremental dimensions (G91) using turning and milling technology examples.
Milling:
<
;
*
*
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
155
Fundamentals
2.8 Geometry settings
Turning:
;
=
*
*
Note
On conventional turning machines, it is usual to consider incremental traversing blocks in the
transverse axis as radius values, while diameter specifications apply for the reference
dimensions. This conversion for G90 is performed using the commands DIAMON, DIAMOF
or DIAM90.
2.8.4.4
Absolute dimensions for rotary axes (DC, ACP, ACN)
The non-modal and G90/G91-independent commands DC, ACP and ACN are available for
positioning rotary axes in absolute dimensions.
DC, ACP and ACN differ in the basic approach strategy:
'&
0D[LPXP WUDYHUVLQJ
UDQJH
$&3
$&1
NC programming
156
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.8 Geometry settings
Syntax
<Rotary axis>=DC(<Value>)
<Rotary axis>=ACP(<Value>)
<Rotary axis>=ACN(<Value>)
Meaning
<Rotary axis>:
Identifier of the rotary axis that is to be traversed (e.g. A, B or C)
DC:
Command to directly approach the position
The rotary axis approaches the programmed position directly along the shortest
path. The rotary axis traverses a maximum range of 180°.
ACP:
Command to approach the position in the positive direction
The rotary axis traverses to the programmed position in the positive direction of
axis rotation (counter-clockwise).
ACN:
Command to approach the position in the negative direction
The rotary axis traverses to the programmed position in the negative direction of
axis rotation (clockwise).
<Value>:
Rotary axis position to be approached in absolute dimensions
Value range:
0 - 360 degrees
Note
The positive direction of rotation (clockwise or counter-clockwise) is set in the machine data.
Note
The traversing range between 0° and 360° must be set in the machine data (modulo behavior)
for positioning where the direction is specified (ACP, ACN). G91 or IC must be programmed to
traverse modulo rotary axes more than 360° in a block.
Note
The commands DC, ACP and ACN can also be used for spindle positioning (SPOS, SPOSA) from
standstill.
Example: SPOS=DC(45)
Example
Milling on a rotary table
The tool is stationary, the table turns to 270° in a clockwise direction. A circular groove/slot is
machined.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
157
Fundamentals
2.8 Geometry settings
=
;
<
r
;
Program code
Comment
N10 SPOS=0
; Spindle in position control.
N20 G90 G0 X-20 Y0 Z2 T1
; Absolute dimensions, feed in tool T1 in rapid tra-
verse.
N30 G1 Z-5 F500
; Lower tool with the feedrate.
N40 C=ACP(270)
; Table turns clockwise to 270 degrees (positive),
the tool mills a circular groove.
N50 G0 Z2 M30
; Retraction, end of program.
2.8.4.5
Metric/inch dimension system (G70/G71, G700/G710)
Using the commands of G group 13 (inch/metric system of units) within a part program, you can
switch over between the metric and inch system of units.
Activation
In order that commands G700 and G710 are available, the extended system of units
functionality must be switched on (MD10260 $MN_CONVERT_SCALING_SYSTEM = 1).
Syntax
G70
G71
G700
G710
NC programming
158
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.8 Geometry settings
Meaning
G70:
Activating the inch system of units
The inch system of units is used to read and write geometrical data in units of length.
Technological data in units of length (e.g. feedrates, tool offsets, adjustable work offsets,
machine data and system variables) is read and written using the parameterized basic sys-
tem.
G group:
13
Initial setting:
Settable via MD20150 $MC_GCODE_RESET_VALUES
Effectiveness:
Modal
G71:
Activating the metric system of units
The metric system of units is used to read and write geometrical data in units of length.
Technological data in units of length (e.g. feedrates, tool offsets, adjustable work offsets,
machine data and system variables) is read and written using the parameterized basic sys-
tem.
G group:
13
Initial setting:
Settable via MD20150 $MC_GCODE_RESET_VALUES
Effectiveness:
Modal
G700:
Activating the inch system of units
All geometrical and technological data in units of length is read and written using the inch
system of units.
G group:
13
Initial setting:
Settable via MD20150 $MC_GCODE_RESET_VALUES
Effectiveness:
Modal
G710:
Activating the metric system of units
All geometrical and technological data in units of length is read and written using the metric
system of units.
G group:
13
Initial setting:
Settable via MD20150 $MC_GCODE_RESET_VALUES
Effectiveness:
Modal
NOTICE
Axis-specific data of rotary axes
Axis-specific data of rotary axes is read and written using the parameterized basic system.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
159
Fundamentals
2.8 Geometry settings
Example
The basic system is metric (MD10240 $MN_SCALING_SYSTEM_IS_METRIC = 1). However, the
workpiece drawing has dimensions shown in inches. This is the reason why within the part
program, the inch system of units is selected. After the inch dimensions have been processed,
the metric system of units is again selected.
<
*
*
*
*
;
ೀ
ೀ
Program code
Comment
N10 G0 G90 X20 Y30 Z2 S2000 M3 T1
; X=20 mm, Y=30 mm, Z=2 mm, F=rapid traverse
mm/min
N20 G1 Z-5 F500
; Z=-5 mm, F=500 mm/min
N30 X90
; X=90 mm
N40 G70 X2.75 Y3.22
; programmed system of units: inch
; X=2.75 inch, Y=3.22 inch, F=500 mm/min
N50 X1.18 Y3.54
; X=1.18 inch, Y=3.54 inch, F=500 mm/min
N60 G71 X20 Y30
; programmed system of units: Metric
; X=20 mm, Y=30 mm, F=500 mm/min
N70 G0 Z2
; Z=2 mm, F=rapid traverse mm/min
N80 M30
; end of program
Further information
Reading and writing data in the case of G70/G71 and G700/G710
Data area
G70 / G71
G700 / G710
Read
Write
Read
Write
Display, decimal places (WCS)
P
P
P
P
Display, decimal places (MCS)
G
G
G
G
Feedrates
G
G
P
P
Position data X, Y, Z
P
P
P
P
Interpolation parameters I, J, K
P
P
P
P
NC programming
160
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.8 Geometry settings
Data area
G70 / G71
G700 / G710
Read
Write
Read
Write
Circle radius (CR)
P
P
P
P
Polar radius (RP)
P
P
P
P
Thread pitch
P
P
P
P
Programmable FRAME
P
P
P
P
Settable FRAMES
G
G
P
P
Basic frames
G
G
P
P
External work offsets
G
G
P
P
Axial preset offset
G
G
P
P
Working area limits (G25/G26)
G
G
P
P
Protection areas
P
P
P
P
Tool offsets
G
G
P
P
Length-related machine data
G
G
P
P
Length-related setting data
G
G
P
P
Length-related system variables
G
G
P
P
GUDs
G
G
G
G
LUDs
G
G
G
G
PUDs
G
G
G
G
R parameters
G
G
G
G
Siemens cycles
P
P
P
P
Jog/handwheel increment factor
G
G
G
G
P: Writing/reading is performed in the programmed system of units.
G: Writing/reading is performed in the configured basic system
Synchronized actions
Note
Reading position data in synchronized actions
If a system of units has not been explicitly programmed in the synchronized action (condition
component and/or action component) length-related position data in the synchronized action
will always be read in the parameterized basic system.
Further information: Function Manual, Synchronized Actions
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
161
Fundamentals
2.8 Geometry settings
2.8.4.6
Channel-specific diameter/radius programming (DIAMON, DIAM90, DIAMOF,
DIAMCYCOF)
During turning, the dimensions for the transverse axis can be specified in the diameter (①) or
in the radius (②):
;
:
=
;
:
=
So that the dimensions from a technical drawing can be transferred directly (without
conversion) to the NC program, channel-specific diameter or radius programming is activated
using the modal commands DIAMON, DIAM90, DIAMOF, and DIAMCYCOF.
Note
The channel-specific diameter/radius programming refers to the geometry axis defined as
transverse axis via MD20100 $MC_DIAMETER_AX_DEF (→ see machine manufacturer's
specifications).
Only one transverse axis per channel can be defined via MD20100.
Syntax
DIAMON
DIAM90
DIAMOF
Meaning
DIAMON:
Command for the activation of the independent channel-specific diameter program-
ming.
The effect of DIAMON is independent of the programmed dimensions mode (absolute
dimensions G90 or incremental dimensions G91):
• For G90:
Dimensions in the diameter
• For G91:
Dimensions in the diameter
NC programming
162
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.8 Geometry settings
DIAM90:
Command for the activation of the dependent channel-specific diameter program-
ming.
The effect of DIAM90 depends on the programmed dimensions mode:
• For G90:
Dimensions in the diameter
• For G91:
Dimensions in the radius
DIAMOF:
Command for the deactivation of the channel-specific diameter programming
Channel-specific radius programming takes effect when diameter programming is
deactivated. The effect of DIAMOF is independent of the programmed dimensions
mode:
• For G90:
Dimensions in the radius
• For G91:
Dimensions in the radius
DIAMCYCOF:
Command for the deactivation of channel-specific diameter programming during cy-
cle processing.
In this way, computations in the cycle can always be made in the radius. The last G
command active in this group remains active for the position indicator and the basic
block indicator.
Note
With DIAMON or DIAM90, the transverse-axis actual values will always be displayed as a
diameter. This also applies to reading of actual values in the workpiece coordinate system
with MEAS, MEAW, $P_EP[x] and $AA_IW[x].
Example
Program code
Comment
N10 G0 X0 Z0
; Approach starting point.
N20 DIAMOF
; Diameter programming off.
N30 G1 X30 S2000 M03 F0.7
; X axis = transverse axis, radius programming
active; traverse to radius position X30.
N40 DIAMON
; The diameter programming is active for the
transverse axis.
N50 G1 X70 Z-20
; Traverse to diameter position X70 and Z-20.
N60 Z-30
N70 DIAM90
; Diameter programming for absolute dimensions
and radius programming for incremental dimen-
sions.
N80 G91 X10 Z-20
; Incremental dimensions active.
N90 G90 X10
; Absolute dimensions active.
N100 M30
; End of program
Additional information
Diameter values (DIAMON/DIAM90)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
163
Fundamentals
2.8 Geometry settings
The diameter values apply for the following data:
• Actual value display of the transverse axis in the workpiece coordinate system
• JOG mode: Increments for incremental dimensions and manual handwheel travel
• Programming of end positions:
Interpolation parameters I, J, K for G2/G3, if these have been programmed absolutely
with AC.
If I, J, K are programmed incrementally (IC), the radius is always calculated.
• Reading actual values in the workpiece coordinate system for:
MEAS, MEAW, $P_EP[X], $AA_IW[X]
2.8.4.7
Axis-specific diameter/radius programming (DIAMONA, DIAM90A, DIAMOFA,
DIACYCOFA, DIAMCHANA, DIAMCHAN, DAC, DIC, RAC, RIC)
In addition to channel-specific diameter programming, the axis-specific diameter programming
function enables the modal or non-modal dimensions and display in the diameter for one or
more axes.
Note
The axis-specific diameter programming is only possible for axes that are permitted as further
transverse axes for the axis-specific diameter programming via
MD30460 $MA_BASE_FUNCTION_MASK (→ see machine manufacturer's specifications).
Syntax
Modal axis-specific diameter programming for several transverse axes in the channel:
DIAMONA[<axis>]
DIAM90A[<axis>]
DIAMOFA[<axis>]
DIACYCOFA[<axis>]
Acceptance of the channel-specific diameter/radius programming:
DIAMCHANA[<axis>]
DIAMCHAN
Non-modal axis-specific diameter/radius programming:
<axis>=DAC(<value>)
<axis>=DIC(<value>)
<axis>=RAC(<value>)
<axis>=RIC(<value>)
NC programming
164
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.8 Geometry settings
Meaning
Modal axis-specific diameter programming
DIAMONA:
Command for the activation of the independent axis-specific diameter program-
ming
The effect of DIAMONA is independent of the programmed dimensions mode
(G90/G91 or AC/IC):
• For G90, AC:
Dimensions in the diameter
• For G91, IC:
Dimensions in the diameter
DIAM90A:
Command for the activation of the dependent axis-specific diameter programming
The effect of DIAM90A depends on the programmed dimensions mode:
• For G90, AC:
Dimensions in the diameter
• For G91, IC:
Dimensions in the radius
DIAMOFA:
Command for the deactivation of the axis-specific diameter programming
Axis-specific radius programming takes effect when diameter programming is de-
activated. The effect of DIAMOFA is independent of the programmed dimensions
mode:
• For G90, AC:
Dimensions in the radius
• For G91, IC:
Dimensions in the radius
DIACYCOFA:
Command for the deactivation of axis-specific diameter programming during cycle
processing.
In this way, computations in the cycle can always be made in the radius. The last G
command active in this group remains active for the position indicator and the basic
block indicator.
<axis>:
Axis identifier of the axis for which the axis-specific diameter programming is to be
activated.
Permitted axis identifiers are as follows:
• Geometry/channel axis name
or
• Machine axis name
Range of values:
The axis specified must be a known axis in the channel.
Other conditions:
• The axis must be permitted for the axis-specific diameter
programming via MD30460 $MA_BASE_FUNC-
TION_MASK.
• Rotary axes are not permitted to serve as transverse axes.
Acceptance of the channel-specific diameter/radius programming
DIAMCHANA:
With the DIAMCHANA[<axis>] command, the specified axis accepts the channel
status of the diameter/radius programming and is then assigned to the channel-
specific diameter/radius programming.
DIAMCHAN:
With the DIAMCHAN command, all axes permitted for the axis-specific diameter
programming accept the channel status of the diameter/radius programming and
are then assigned to the channel-specific diameter/radius programming.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
165
Fundamentals
2.8 Geometry settings
Non-modal axis-specific diameter/radius programming
The non-modal axis-specific diameter/radius programming specifies the dimension type as a diameter or
radius value in the part program and synchronized actions. The modal status of diameter/radius pro-
gramming remains unchanged.
DAC:
The DAC command sets the following dimensions to non-modal for the specified
axis:
Diameter in absolute dimensions
DIC:
The DIC command sets the following dimensions to non-modal for the specified
axis:
Diameter in incremental dimensions
RAC:
The RAC command sets the following dimensions to non-modal for the specified
axis:
Radius in absolute dimensions
RIC:
The RIC command sets the following dimensions to non-modal for the specified
axis:
Radius in incremental dimensions
Note
With DIAMONA[<axis>] or DIAM90A[<axis>], the transverse-axis actual values are always
displayed as a diameter. This also applies to reading of actual values in the workpiece coordinate
system with MEAS, MEAW, $P_EP[x] and $AA_IW[x].
Note
During the replacement of an additional transverse axis because of a GET request, the status of
the diameter/radius programming in the other channel is accepted with RELEASE[<axis>].
Examples
Example 1: Modal axis-specific diameter/radius programming
X is the transverse axis in the channel, axis-specific diameter programming is permitted for Y.
Program code
Comment
N10 G0 X0 Z0 DIAMON
; Channel-specific diameter programming active for X.
N15 DIAMOF
; Channel-specific diameter programming off.
N20 DIAMONA[Y]
; Modal axis-specific diameter programming active for Y.
N25 X200 Y100
; Radius programming active for X.
N30 DIAMCHANA[Y]
; Y accepts the status of the channel-specific diameter/
radius programming and is assigned to this.
N35 X50 Y100
; Radius programming active for X and Y.
N40 DIAMON
; Channel-specific diameter programming on.
N45 X50 Y100
; Diameter programming active for X and Y.
NC programming
166
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.8 Geometry settings
Example 2: Non-modal axis-specific diameter/radius programming
X is the transverse axis in the channel, axis-specific diameter programming is permitted for Y.
Program code
Comment
N10 DIAMON
; Channel-specific diameter pro-
gramming on.
N15 G0 G90 X20 Y40 DIAMONA[Y]
; Modal axis-specific diameter
programming active for Y.
N20 G01 X=RIC(5)
; Dimensions effective in this
block for X: Radius in incremen-
tal dimensions.
N25 X=RAC(80)
; Dimensions effective in this
block for X: Radius in absolute
dimensions.
N30 WHEN $SAA_IM[Y]> 50 DO POS[X]=RIC(1)
; X is command axis.
Dimensions effective in this
block for X: Radius in incremen-
tal dimensions.
N40 WHEN $SAA_IM[Y]> 60 DO POS[X]=DAC(10)
; X is command axis.
Dimensions effective in this
block for X: Radius in absolute
dimensions.
N50 G4 F3
Further information
Diameter values (DIAMONA/DIAM90A)
The diameter values apply for the following data:
• Actual value display of the transverse axis in the workpiece coordinate system
• JOG mode: Increments for incremental dimensions and manual handwheel travel
• Programming of end positions:
Interpolation parameters I, J, K for G2/G3, if these have been programmed absolutely
with AC.
If I, J, K are programmed incrementally (IC), the radius is always calculated.
• Reading actual values in the workpiece coordinate system for:
MEAS, MEAW, $P_EP[X], $AA_IW[X]
Non-modal axis-specific diameter programming (DAC, DIC, RAC, RIC)
The statements DAC, DIC, RAC, RIC are permissible for any commands for which channel-
specific diameter programming is relevant:
• Axis position: X..., POS, POSA
• Oscillation: OSP1, OSP2, OSS, OSE, POSP
• Interpolation parameters: I, J, K
• Contour definition: Straight line with angle specification
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
167
Fundamentals
2.8 Geometry settings
• Rapid retraction: POLF[AX]
• Traversing in the tool direction: MOVT
• Smooth approach and retraction:
G140 to G143, G147, G148, G247, G248, G347, G348, G340, G341
2.8.5
Position of workpiece for turning
Axis identifiers
The two geometry axes perpendicular to one another are usually called:
Longitudinal axis
= Z axis (abscissa)
Transverse axis
= X axis (ordinate)
Workpiece zero
Whereas the machine zero is permanently defined, the workpiece zero can be freely selected on
the longitudinal axis. Generally the workpiece zero is on the front or rear side of the workpiece.
Both the machine and the workpiece zero are on the turning center. The settable offset on the
X axis is therefore zero.
;
;
0DFKLQH
:RUNSLHFH
:RUNSLHFH
0
:
]HUR SRLQW
IURQW
=
0DFKLQH
ZRUNSLHFH
*
*
R 75$16
;
;
0DFKLQH
:RUNSLHFH
:RUNSLHFH
0
:
]HUR SRLQW
UHDU
=
0DFKLQH
ZRUNSLHFH
*
*
RU 75$16
M
Machine zero
W
Workpiece zero
Z
Longitudinal axis
X
Transverse axis
G54 to G599
Call for the position of the workpiece zero
or TRANS
NC programming
168
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.8 Geometry settings
Transverse axis
Generally the dimensions for the transverse axis are diameter specifications (double path
dimension compared to other axes):
;
0
:
=
/RQJLWXGLQDO D[LV
The geometry axis that is to serve as transverse axis is defined in the machine data (→ machine
manufacturer).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
169
Fundamentals
2.9 Motion commands
2.9
Motion commands
2.9.1
General information about the travel commands
Contour elements
The programmed workpiece contour can be made up of the following contour elements:
• Straight lines
• Circular arcs
• Helical curves (through overlaying of straight lines and circular arcs)
Travel commands
The following travel commands are available for the creation of these contour elements:
• Rapid traverse motion (G0)
• Linear interpolation (G1)
• Circular interpolation clockwise (G2)
• Circular interpolation counter-clockwise (G3)
The travel commands are modal.
Target positions
A motion block contains the target positions for the axes to be traversed (path axes,
synchronized axes, positioning axes).
The target positions can be programmed in Cartesian coordinates or in polar coordinates.
Note
The axis address may only be programmed once per block.
Starting point - target point
The traversing motion is always for the last point reached to the programmed target position.
This target position is then the starting position for the next travel command.
NC programming
170
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Workpiece contour
NOTICE
Tool operation undefined
Before machining, the workpiece must be positioned in such a way that the tool or workpiece
cannot be damaged.
The motion blocks produce the workpiece contour when performed in succession:
;
=
Figure 2-1
Motion blocks for turning
Figure 2-2
Motion blocks for milling
2.9.2
Travel commands with Cartesian coordinates (G0, G1, G2, G3, X..., Y..., Z...)
The position specified in the NC block with Cartesian coordinates can be approached with rapid
traverse motion G0, linear interpolation G1 or circular interpolation G2 /G3.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
171
Fundamentals
2.9 Motion commands
Syntax
G0 X... Y... Z...
G1 X... Y... Z...
G2 X... Y... Z
G3 X... Y... Z
Meaning
G0:
Command for the activation of rapid traverse motion
G1:
Command for the activation of linear interpolation
G2:
Command for the activation of clockwise circular interpolation
G3:
Command for the activation of counter-clockwise circular interpolation
X...:
Cartesian coordinate of the target position in the X direction
Y...:
Cartesian coordinate of the target position in the Y direction
Z...:
Cartesian coordinate of the target position in the Z direction
Note
In addition to the coordinates of the target position X..., Y..., Z..., the circular
interpolation G2 / G3 also requires further data (e.g. the circle center point coordinates; see
"Overview (Page 188)").
Example
;
;
<
<
=
;
;
Program code
Comment
N10 G17 S400 M3
; Selection of the working plane, spindle clockwise
N20 G0 X40 Y-6 Z2
; Approach of the starting position specified with Cartesian
coordinates in rapid traverse
N30 G1 Z-3 F40
; Activation of the linear interpolation, feed of the tool
NC programming
172
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Program code
Comment
N40 X12 Y-20
; Travel on an inclined line to an end position specified with
Cartesian coordinates
N50 G0 Z100 M30
; Retraction in rapid traverse for tool change
2.9.3
Travel commands with polar coordinates
2.9.3.1
Reference point of the polar coordinates (G110, G111, G112)
The point from which the dimensioning starts is called the pole.
The pole can be specified in Cartesian or polar coordinates.
The reference point for the pole coordinates is clearly defined with the G110 to G112
commands. Absolute or incremental dimension inputs therefore have no effect.
Syntax
G110/G111/G112 X… Y… Z…
G110/G111/G112 AP=… RP=…
Meaning
G110 ...:
With the command G110, the following pole coordinates refer to the last position
reached.
G111 ...:
With the command G111, the following pole coordinates refer to the zero point of
the current workpiece coordinate system.
G112 ...:
With the command G112, the following pole coordinates refer to the last valid
pole.
Note:
The commands G110...G112 must be programmed in a separate NC block.
X… Y… Z…:
Specification of the pole in Cartesian coordinates
AP=… RP=…:
Specification of the pole in polar coordinates
AP=…:
Polar angle
Angle between the polar radius and the horizontal axis of the working
plane (e.g. X axis for G17). The positive direction of rotation runs coun-
ter-clockwise.
Range of values:
± 0…360°
RP=…:
Polar radius
The specification is always in absolute positive values in [mm] or
[inch].
Note
It is possible to switch block-by-block in the NC program between polar and Cartesian
dimensions. It is possible to return directly to the Cartesian system by using Cartesian coordinate
identifiers (X..., Y..., Z...). The defined pole is moreover retained up to program end.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
173
Fundamentals
2.9 Motion commands
Note
If no pole has been specified, the zero point of the current workpiece coordinate system applies.
Example
Poles 1 to 3 are defined as follows:
<
• Pole 1 with G111 X… Y…
*
;
• Pole 2 with G110 X… Y…
• Pole 3 with G112 X… Y…
3ROH
r
*
<
3ROH
*
<
r
3ROH
*
<
;
*
;
*
;
2.9.3.2
Travel commands with polar coordinates (G0, G1, G2, G3, AP, RP)
Travel commands with polar coordinates are useful when the dimensions of a workpiece or part
of the workpiece are measured from a central point and the dimensions are specified in angles
and radii (e.g. for drilling patterns).
<
r
r
r
r
r
;
P
NC programming
174
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Syntax
G0/G1/G2/G3 AP=… RP=…
Meaning
G0:
Command for the activation of rapid traverse motion
G1:
Command for the activation of linear interpolation
G2:
Command for the activation of clockwise circular interpolation
G3:
Command for the activation of counter-clockwise circular interpolation
AP:
Polar angle
Angle between the polar radius and the horizontal axis of the working plane (e.g. X axis
for G17). The positive direction of rotation runs counter-clockwise.
Range of values:
± 0…360°
The angle can be specified either incremental or absolute:
AP=AC(...):
Absolute dimension input
AP=IC(...):
Incremental dimension input
With incremental dimension input, the last programmed angle applies
as reference.
The polar angle remains stored until a new pole is defined or the working plane is changed.
RP:
Polar radius
The specification is always in absolute positive values in [mm] or [inch].
The polar radius remains stored until a new value is entered.
Note
The polar coordinates refer to the pole specified with G110 ... G112 and apply in the working
plane selected with G17 to G19.
Note
The 3rd geometry axis, which lies perpendicular to the working plane, can also be specified in
Cartesian coordinates (see the following diagram). This enables spatial parameters to be
programmed in cylindrical coordinates.
Example: G17 G0 AP… RP… Z…
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
175
Fundamentals
2.9 Motion commands
=
53
$3
Supplementary conditions
• No Cartesian coordinates such as interpolation parameters, axis addresses, etc. may be
programmed for the selected working plane in NC blocks with polar end point coordinates.
• If a pole has not been defined with G110 ... G112, then the zero point of the current
workpiece coordinate system is automatically considered as the pole:
<
r
r
;
NC programming
176
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
• Polar radius RP = 0
The polar radius is calculated from the distance between the starting point vector in the pole
plane and the active pole vector. The calculated polar radius is then saved as modal.
This applies irrespective of the selected pole definition (G110 ... G112). If both points have
been programmed identically, this radius = 0 and alarm 14095 is generated.
• Only polar angle AP has been programmed
If no polar radius RP has been programmed in the current block, but a polar angle AP, then
when there is a difference between the current position and pole in the workpiece
coordinates, this difference is used as polar radius and saved as modal. If the difference = 0,
then the pole coordinates are specified again and the modal polar radius remains at zero.
Example
Creation of a drilling pattern
The positions of the holes are specified in polar
<
coordinates.
Each hole is machined with the same produc-
tion sequence:
r
r
Rough-drilling, drilling as dimensioned, ream-
ing …
r
The machining sequence is stored in the sub-
program.
r
r
;
Program code
Comment
N10 G17 G54
; Working plane X/Y, workpiece zero.
N20 G111 X43 Y38
; Specification of the pole.
N30 G0 RP=30 AP=18 Z5
; Approach starting point, specification in cy-
lindrical coordinates.
N40 L10
; Subprogram call.
N50 G91 AP=72
; Approach next position in rapid traverse, polar
angle in incremental dimensions, polar radius
from block N30 remains saved and does not have to
be specified.
N60 L10
; Subprogram call.
N70 AP=IC(72)
N80 L10
…
N90 AP=IC(72)
N100 L10
…
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
177
Fundamentals
2.9 Motion commands
Program code
Comment
N110 AP=IC(72)
N120 L10
…
N130 G0 X300 Y200 Z100 M30
; Retract tool, end of program.
See also
Overview (Page 188)
2.9.4
Rapid traverse movements
2.9.4.1
Activating rapid traverse (G0)
The traversing of the path axes at rapid traversing velocity is activated with the G command G0.
Syntax
G0 X… Y… Z…
G0 RP=… AP=…
Meaning
G0:
Traversing the axis with rapid traverse velocity
Effective:
Modal
X... Y... Z...:
Specifying the end point in Cartesian coordinates
RP=... AP=... :
Specifying the end point in polar coordinates
NC programming
178
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Examples
Example 1: Milling
<
;
Program code
Comment
N10 G90 S400 M3
; Absolute dimension input, spindle clockwise
N20 G0 X30 Y20 Z2
; Approach the starting position
N30 G1 Z-5 F1000
; Tool infeed
N40 X80 Y65
; Traversing along a straight line
N50 G0 Z2
N60 G0 X-20 Y100 Z100 M30
; Retract tool, end of program
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
179
Fundamentals
2.9 Motion commands
Example 2: Turning
;
=
Program code
Comment
N10 G90 S400 M3
; Absolute dimension input, spindle clockwise
N20 G0 X25 Z5
; Approach the starting position
N30 G1 G94 Z0 F1000
; Tool infeed
N40 G95 Z-7.5 F0.2
N50 X60 Z-35
; Traversing along a straight line
N60 Z-50
N70 G0 X62
N80 G0 X80 Z20 M30
; Retract tool, end of program
2.9.4.2
Switch on/off linear interpolation for rapid traverse movements (RTLION, RTLIOF)
Independently of the default setting (MD20730 $MC_G0_LINEAR_MODE), the interpolation
response for rapid traverse movements can also be set in the part program using the commands
of the G group 55.
Syntax
RTLIOF
RTLION
NC programming
180
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Meaning
RTLIOF:
G command for switching off the linear interpolation
⇒ In the rapid traversing mode (G0), the non-linear interpolation is active. All of
the path axes reach their end points independently of one another.
Effective:
Modal
RTLION:
G command for switching on the linear interpolation
⇒ In the rapid traversing mode (G0), the linear interpolation is active. All of the
path axes reach their end points simultaneously.
Effective:
Modal
Note
Preconditions for RTLIOF
To ensure, with RTLIOF non-linear interpolation, the following conditions must be fulfilled:
• No transformation (TRAORI, TRANSMIT, etc.) active.
• G60 active (stop at the block end).
• No compressor active (COMPOF).
• No tool radius compensation active (G40).
• No contour handwheel selected.
• No nibbling active.
If one of these conditions is not met, linear interpolation is as with RTLION.
Example
Program code
Comment
; Linear interpolation is the default:
; MD20730 $MC_GO_LINEAR_MODE == TRUE
N30 RTLIOF
; Switch off linear interpolation.
N40 G0 X0 Y10
; G0 blocks are traversed using non-linear inter-
polation.
N50 G41 X20 Y20
; TRC active ⇒ G0 blocks are traversed using lin-
ear interpolation.
N60 G40 X30 Y30
; TRC not active ⇒ G0 blocks are traversed using
non-linear interpolation.
N70 RTLION
; Switch on linear interpolation.
Further information
Reading the current interpolation behavior
The current interpolation behavior can be read via the system variables $AA_G0MODE.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
181
Fundamentals
2.9 Motion commands
2.9.4.3
Adapt tolerances for rapid traverse motion (STOLF, CTOLG0, OTOLG0)
The tolerances for rapid traverse motion (G0 tolerances) configured using machine data can be
temporarily adapted in the part program. In so doing, the settings in the machine data are not
changed. After channel or end of program reset, the configured tolerances become effective
again.
Requirements
G0 tolerances are only effective in compliance with the following conditions:
• One of the following functions is active:
- Compressor function COMP...
- Smoothing function G642 or G645
- Orientation smoothing OST
- Orientation smoothing ORISON
- Smoothing for path-relevant orientation ORIPATH
• Several (≥ 2) consecutive G0 blocks in the part program.
For a single G0 block, the G0 tolerances are not effective, as at the transition from non G0
motion to G0 motion (and vice versa), the "lower tolerance" always applies (workpiece
processing tolerance)!
Syntax
Adaptation of the relative G0 tolerance
STOLF=<Value>
Adaptation of the absolute G0 tolerances
CTOLG0=<Value>
OTOLG0=<Value>
NC programming
182
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Meaning
STOLF:
Address for programming a temporarily effective tolerance factor for rapid traverse motion
<Value>:
G0 tolerance factor
Type:
REAL
Value:
≥ 0:
The G0 tolerance factor can be greater or less than 1.0. If
the factor is equal to 1.0 (default value), then the same
tolerances are active for rapid traverse motion as for non-
rapid traverse motion. Normally, the tolerance factor is set
to > 1.0.
The programmed G0 tolerance factor remains effective un-
til it is overwritten by renewed STOLF programming, re-
placed by CTOLG0/OTOLG0 programming or deleted by
channel or end of program reset.
< 0:
the programmed tolerance factor is deleted
⇒ The tolerance value preset in the machine data becomes
effective again.
CTOLG0:
Address for programming a temporarily effective contour tolerance factor for rapid traverse
motion
<Value>:
Absolute value for the contour tolerance
Type:
REAL
Value:
≥ 0:
The programmed absolute value for the contour tolerance
remains effective until it is overwritten by renewed CTOLG0
programming, replaced by STOLF programming or deleted
by channel or end of program reset.
< 0:
the programmed tolerance value is deleted
⇒ The tolerance value preset in the machine data becomes
effective again.
OTOLG0:
Address for programming a temporarily effective orientation tolerance factor for rapid tra-
verse motion
<Value>:
Absolute value for the orientation tolerance
Type:
REAL
Value:
≥ 0:
The programmed absolute value for the orientation toler-
ance remains effective until it is overwritten by renewed
OTOLG0 programming, replaced by STOLF programming or
deleted by channel or end of program reset.
< 0:
the programmed tolerance value is deleted
⇒ The tolerance value preset in the machine data becomes
effective again.
Note
The last programmed address always has priority, as shown in the following examples:
• When CTOLG0 is programmed with active STOLF, the tolerance value programmed with
CTOLG0 is applied to smooth the contour.
• When OTOLG0 is programmed with active STOLF, the tolerance value programmed with
OTOLG0 is applied to smooth the orientation.
• After programming STO again, the tolerance factor for the contour and orientation tolerance
is applied.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
183
Fundamentals
2.9 Motion commands
Examples
Example 1: Adaptation of the relative G0 tolerance
Program code
Comment
COMPCAD G645 G1 F10000
; Compressor function COMPCAD
X... Y... Z...
; The machine and setting data apply here.
X... Y... Z...
X... Y... Z...
G0 X... Y... Z...
G0 X... Y... Z...
; Machine data $MC_G0_TOLERANCE_FACTOR (e.g. =3) is ef-
fective here, i.e. a smoothing tolerance of:
$MC_G0_TOLERANCE_FACTOR * $MA_COMPRESS_POS_TOL
CTOL=0.02
STOLF=4
G1 X... Y... Z...
; A contour tolerance of 0.02 mm is applied starting
from here.
X... Y... Z...
X... Y... Z...
G0 X... Y... Z...
X... Y... Z...
; From here, a G0 tolerance factor of 4 applies, i.e. a
contour tolerance of 0.08 mm.
Example 2: Adaptation of the absolute G0 tolerances
The following absolute G0 tolerances should be preset in the machine data:
• G0 contour tolerance: 0.1
• G0 orientation tolerance: 1.0
These tolerances should be temporarily adapted in the part program:
Program code
Comment
COMPCAD G645 G1 F10000
; Compressor function COMPCAD
X... Y... Z...
; The configured workpiece machining tolerances apply
from here.
X... Y... Z...
X... Y... Z...
G0 X... Y... Z...
G0 X... Y... Z...
; The configured absolute G0 tolerances apply here.
CTOLG0=0.2 OTOLG0=2.0
; Programming the absolute G0 tolerances.
G1 X... Y... Z...
X... Y... Z...
X... Y... Z...
G0 X... Y... Z...
X... Y... Z...
; The programmed G0 tolerances apply from here.
NC programming
184
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Further information
Reading the G0 tolerance factor
The currently active tolerance factor for rapid traverse motion can be read using system
variables:
• In synchronized actions or with preprocessing stop in the part program via system variable:
$AC_STOLF
Active G0 tolerance factor
G0 tolerance factor, which was effective when processing the
actual main run block.
• Without preprocessing stop in the part program via system variable:
$P_STOLF
Programmed G0 tolerance factor
If no value with STOLF is programmed in the active part program, then these two system
variables return the value configured in the machine data.
If no rapid traverse (G0) is active in a block, then these system variables always supply a value
of 1.
Reading absolute G0 tolerances
The currently active absolute tolerances for rapid traverse motion can be read via system
variables.
• In synchronized actions or with preprocessing stop in the part program via the system
variables:
$AC_CTOL_G0_ABS
Active contour tolerance for G0 motion
G0 contour tolerance that was active when the current main
run block was preprocessed.
$AC_OTOL_ G0_ABS
Active orientation tolerance for G0 motion
G0 orientation tolerance that was active when the current
main run block was preprocessed.
• Without preprocessing stop in the part program via system variables:
$P_CTOL_ G0_ABS
Programmed contour tolerance for G0 motion
$P_OTOL_ G0_ABS
Programmed orientation tolerance for G0 motion
If no absolute G0 tolerances with CTOLG0 and OTOLG0 are programmed in the active part
program, then these system variables supply the values configured in the machine data.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
185
Fundamentals
2.9 Motion commands
2.9.5
Linear interpolation (G1)
With G1 the tool travels on paraxial, inclined or straight lines arbitrarily positioned in space.
Linear interpolation permits machining of 3D surfaces, grooves, etc.
Syntax
G1 X… Y… Z … F…
G1 AP=… RP=… F…
Meaning
G1:
Linear interpolation with feedrate (linear interpolation)
X... Y... Z...:
End point in Cartesian coordinates
AP=...:
End point in polar coordinates, in this case polar angle
RP=...:
End point in polar coordinates, in this case polar radius
F...:
Feedrate speed in mm/min. The tool travels at feedrate F along a straight line
from the current starting point to the programmed destination point. You can
enter the destination point in Cartesian or polar coordinates. The workpiece is
machined along this path.
Example: G1 G94 X100 Y20 Z30 A40 F100
The end point on X, Y, Z is approached at a feedrate of 100 mm/min; the rotary
axis A is traversed as a synchronized axis, ensuring that all four movements are
completed at the same time.
Note
G1 is modal.
Spindle speed S and spindle direction M3/M4 must be specified for the machining.
Axis groups, for which path feedrate F applies, can be defined with FGROUP. You will find more
information in the "Path behavior" section.
NC programming
186
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Examples
Example 1: Machining of a groove (milling)
The tool travels from the starting point to the end point in the X/Y direction. Infeed takes place
simultaneously in the Z direction.
<
<
=
;
Program code
Comment
N10 G17 S400 M3
; Selection of the working plane, spindle clockwise
N20 G0 X20 Y20 Z2
; Approach the starting position
N30 G1 Z-2 F40
; Tool infeed
N40 X80 Y80 Z-15
; Travel on an inclined line
N50 G0 Z100 M30
; Retraction for tool change
Example 2: Machining of a groove (turning)
;
;
<
<
=
;
;
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
187
Fundamentals
2.9 Motion commands
Program code
Comment
N10 G17 S400 M3
; Selection of the working plane, spindle clockwise
N20 G0 X40 Y-6 Z2
; Approach the starting position
N30 G1 Z-3 F40
; Tool infeed
N40 X12 Y-20
; Travel on an inclined line
N50 G0 Z100 M30
; Retraction for tool change
2.9.6
Circular interpolation
2.9.6.1
Overview
Circular interpolation enables the machining of full circles or arcs.
Figure 2-3
Application example: Milling a circular way
Programming options
The control system offers various options of programming circular movements. This allows the
user to implement almost any type of drawing dimension directly.
• Circular interpolation with center point and end point (G2/G3, X... Y... Z..., I... J... K...)
(Page 189)
• Circular interpolation with radius and end point (G2/G3, X... Y... Z..., CR) (Page 191)
• Circular interpolation with opening angle and end point / center point (G2/G3, X... Y... Z... /
I... J... K..., AR) (Page 193)
• Circular interpolation with polar coordinates (G2/G3, AP, RP) (Page 195)
• Circular interpolation with intermediate point and end point (CIP, X... Y... Z..., I1... J1... K1...)
(Page 197)
• Circular interpolation with tangential transition (CT, X... Y... Z...) (Page 200)
NC programming
188
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Plane for the circular interpolation
The control needs the working plane parameter (Page 145) to calculate the direction of rotation
for the circle (G2 is clockwise or G3 is counter-clockwise).
=
*
;
<
*
*
*
*
*
*
*
*
Exception:
It is also possible to create circles outside the selected working plane (not if the opening angle is
specified). In this case, the axis identifiers that the programmer specifies as circle end point
determine the circle plane.
2.9.6.2
Circular interpolation with center point and end point (G2/G3, X... Y... Z..., I... J... K...)
Circular interpolation version, that uses the center point and end point of a circular contour
element for the interpolation.
If the circle is programmed without an end point, the result is a full circle.
Syntax
G2/G3 X… Y… Z… I… J… K…
G2/G3 X… Y… Z… I=AC(…) J=AC(…) K=(AC…)
Meaning
G2:
Circular interpolation clockwise
Effective:
Modal
G3:
Circular interpolation counter-clockwise
Effective:
Modal
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
189
Fundamentals
2.9 Motion commands
X... Y... Z... :
Circle end point in Cartesian coordinates.
Depending on the currently valid dimensional notation setting G90/G91
or ...=AC(...) / ...=IC(...), the circle end point coordinates are inter-
preted either in the absolute dimension or in the incremental dimension.
I... J... K... :
Interpolation parameters to state the circle center point coordinates in the
directions X, Y, Z
Per default, the circle center point coordinates are stated in the incremental
dimension in relation to the circle starting point.
If the circle center point coordinates are stated in the absolute dimension in
relation to workpiece zero, the interpolation parameters I, J, K must be pro-
grammed as follows:
I=AC(…) J=AC(…) K=AC(…)
Note
An interpolation parameter with value 0 can be omitted, but the associated
second parameter must always be specified.
Note
The default setting G90/G91 absolute or incremental dimensions is only valid for the circle end
point.
Examples
Example 1: Milling
6WDUWLQJ SRLQW RI FLUFOH
<
,
(QG SRLQW RI
W
FLUFOH
;
,
$&
Center point data using incremental dimensions
N10 G0 X67.5 Y80.211
N20 G3 X17.203 Y38.029 I-17.5 J-30.211 F500
Center point data using absolute dimensions
N10 G0 X67.5 Y80.211
N20 G3 X17.203 Y38.029 I=AC(50) J=AC(50)
NC programming
190
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Example 2: Turning
;
=
Center point data using incremental dimensions
N120 G0 X12 Z0
N125 G1 X40 Z-25 F0.2
N130 G3 X70 Z-75 I-3.335 K-29.25
N135 G1 Z-95
Center point data using absolute dimensions
N120 G0 X12 Z0
N125 G1 X40 Z-25 F0.2
N130 G3 X70 Z-75 I=AC(33.33) K=AC(-54.25)
N135 G1 Z-95
2.9.6.3
Circular interpolation with radius and end point (G2/G3, X... Y... Z..., CR)
Circular interpolation version, that uses the radius and end point of a circular contour element
for the interpolation.
Note
Full circles (traversing angle 360 °) can not be programmed with this version.
Syntax
G2/G3 X… Y… Z… CR=±...
Meaning
G2:
Circular interpolation clockwise
Effective:
Modal
G3:
Circular interpolation counter-clockwise
Effective:
Modal
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
191
Fundamentals
2.9 Motion commands
X... Y... Z... :
Circle end point in Cartesian coordinates.
Depending on the currently valid dimensional notation setting G90/G91
or ...=AC(...) / ...=IC(...), the end point coordinates are interpreted
either in the absolute dimension or in the incremental dimension.
CR=±... :
Circle radius
The sign indicates whether the traversing angle is to be greater than or less
than 180°. A positive sign can be omitted.
CR=+... :
Traversing angle ≤ 180°
CR=-... :
Traversing angle > 180°
Note
There is no practical limitation on the maximum size of the programmable
radius.
Examples
Example 1: Milling
<
&5
&5
;
Program code
N10 G0 X67.5 Y80.511
N20 G3 X17.203 Y38.029 CR=34.913 F500
NC programming
192
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Example 2: Turning
;
=
Program code
N125 G1 X40 Z-25 F0.2
N130 G3 X70 Z-75 CR=30
N135 G1 Z-95
2.9.6.4
Circular interpolation with opening angle and end point / center point (G2/G3, X... Y...
Z... / I... J... K..., AR)
Circular interpolation version, that uses the opening angle and center point or end point of a
circular contour element for the interpolation.
Note
Full circles (traversing angle 360 °) can not be programmed with this version.
Syntax
G2/G3 X… Y… Z… AR=...
G2/G3 I… J… K… AR=...
Meaning
G2:
Circular interpolation clockwise
Effective:
Modal
G3:
Circular interpolation counter-clockwise
Effective:
Modal
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
193
Fundamentals
2.9 Motion commands
X... Y... Z... :
Circle end point in Cartesian coordinates.
Depending on the currently valid dimensional notation setting G90/G91
or ...=AC(...) / ...=IC(...), the circle end point coordinates are inter-
preted either in the absolute dimension or in the incremental dimension.
I... J... K... :
Interpolation parameters to state the circle center point coordinates in the
directions X, Y, Z
Per default, the circle center point coordinates are stated in the incremental
dimension in relation to the circle starting point.
If the circle center point coordinates are stated in the absolute dimension in
relation to workpiece zero, the interpolation parameters I, J, K must be pro-
grammed as follows:
I=AC(…) J=AC(…) K=AC(…)
Note
An interpolation parameter with value 0 can be omitted, but the associated
second parameter must always be specified.
AR=... :
Opening angle
Range of val-
0° ... 360°
ues:
Examples
Example 1: Milling
6WDUWLQJ SRLQW RI FLUFOH
<
,
2SHQLQJ DQJOH
;
Program code
N10 G0 X67.5 Y80.211
N20 G3 X17.203 Y38.029 AR=140.134 F500
N20 G3 I-17.5 J-30.211 AR=140.134 F500
NC programming
194
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Example 2: Turning
;
=
Program code
N125 G1 X40 Z-25 F0.2
N130 G3 X70 Z-75 AR=135.944
N130 G3 I-3.335 K-29.25 AR=135.944
N130 G3 I=AC(33.33) K=AC(-54.25) AR=135.944
N135 G1 Z-95
2.9.6.5
Circular interpolation with polar coordinates (G2/G3, AP, RP)
Circular interpolation version, that uses the circle end point in polar coordinates for the
interpolation.
The following rule applies:
• The pole lies at the circle center.
• The polar radius corresponds to the circle radius.
Syntax
G2/G3 absolute pressure=... Recipe procedure=...
Meaning
G2:
Circular interpolation clockwise
Effective:
Modal
G3:
Circular interpolation counter-clockwise
Effective:
Modal
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
195
Fundamentals
2.9 Motion commands
Absolute
Circle end point in polar coordinates.
pressure=...
Absolute
Polar angle
Recipe
pressure=..
procedure=... :
. :
Recipe
Polar radius (≙ circle radius)
procedure=.
.. :
Examples
Example 1: Milling
<
;
Program code
N10 G0 X67.5 Y80.211
N20 G111 X50 Y50
N30 G3 RP=34.913 AP=200.052 F500
NC programming
196
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Example 2: Turning
;
=
Program code
N125 G1 X40 Z-25 F0.2
N130 G111 X33.33 Z-54.25
N135 G3 RP=30 AP=142.326
N140 G1 Z-95
2.9.6.6
Circular interpolation with intermediate point and end point (CIP, X... Y... Z..., I1... J1...
K1...)
The circular interpolation version programmed with the G command CIP allows the
interpolation of arcs lying at an incline in the space.
The circular motion is described by the intermediate point and the end point of the circular
contour.
The traversing direction is determined by the order of the starting point → intermediate point →
end point.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
197
Fundamentals
2.9 Motion commands
<
<
,
,QWHUPHGLDWH SRLQW
-
;
=
Syntax
CIP X… Y… Z… I1=AC(…) J1=AC(…) K1=(AC…)
Meaning
CIP:
Circular interpolation through intermediate point
Effective:
Modal
X... Y... Z... :
Circle end point in Cartesian coordinates.
Depending on the currently valid dimensional notation setting G90/G91
or ...=AC(...) / ...=IC(...), the circle end point coordinates are inter-
preted either in the absolute dimension or in the incremental dimension.
I1... J1... K1... :
Interpolation parameters to state the circle intermediate point coordinates in
the directions X, Y, Z
Depending on the currently valid dimensional notation setting G90/G91
or ...=AC(...) / ...=IC(...), the circle intermediate point coordinates
are interpreted either in the absolute dimension or in the incremental dimen-
sion.
Note
An interpolation parameter with value 0 can be omitted, but the associated
second parameter must always be specified.
Note
The default settings G90/G91 (absolute or incremental dimensions) are only valid for the circle
intermediate point and the circle end point.
With incremental dimensions G91 or ...=IC(...) active, the circle starting point is used as
the reference for the intermediate point and the end point.
NC programming
198
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Note
Turning technology
The diameter programming of the interpolation parameter for the transverse axis is not
supported with CIP in the circular-path programming. The interpolation parameter for the
transverse axis must therefore be programmed in the radius.
Examples
Example 1: Milling
In order to machine an inclined circular groove, a circle is described by specifying the
intermediate point with three interpolation parameters, and the end point with three
coordinates.
<
<
;
=
Program code
Comment
N10 G0 G90 X130 Y70.70 S800 M3
; Approach starting point.
N20 G17 G1 Z-2 F100
; Feed of the tool.
N30 CIP X80 Y120 Z-10 I1=IC(-85.35) J1=IC(-35.35) K1=-6
; Circle end point and inter-
mediate point.
; Coordinates for all three
geometry axes.
N40 M30
; End of program
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
199
Fundamentals
2.9 Motion commands
Example 2: Turning
;
=
Program code
Comment
N125 G1 G90 X40 Z-25 F0.2
N130 CIP X70 Z-75 I1=IC(26.665) K1=IC(-29.25)
; Interpolation parameter I1 for
transverse axis must be program-
med in the radius.
; or
; N130 CIP X70 Z-75 I1=46.665 K1=-54.25
N135 G1 Z-95
2.9.6.7
Circular interpolation with tangential transition (CT, X... Y... Z...)
The circular interpolation version programmed with the G command CT allows the interpolation
of arcs that connect tangentially to the previously programmed contour element.
The circle is defined by the start and end points, and the tangent direction at the start point.
Note
Tangent direction at the start point.
The tangent direction in the starting point of a CT block is determined from the end tangent of
the programmed contour of the last block with a traversing motion.
There can be any number of blocks without traversing information between this block and the
current block.
NC programming
200
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
W
6
(
0
S
Start point
E
End point
M
Center of circle
r
Circle radius
t
End tangents of the programmed contour of the last block with a traversing movement.
Figure 2-4
Tangentially to the straight section 1-2 connecting circular path S-E
6
/
&7
&7
/
&7
/
(
Figure 2-5
Tangentially connecting circular paths depend on the previous contour element
Syntax
CT X… Y… Z…
Meaning
CT:
Circular interpolation with tangential transition
Effective:
Modal
X... Y... Z... :
Circle end point in Cartesian coordinates.
Depending on the currently valid dimensional notation setting G90/G91
or ...=AC(...) / ...=IC(...), the circle end point coordinates are inter-
preted either in the absolute dimension or in the incremental dimension.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
201
Fundamentals
2.9 Motion commands
Examples
Example 1: Milling
<
;
Program code
Comment
N10 G0 Z100
N20 G17 T1 M6
N30 G0 X0 Y0 Z2 M3 S300 D1
N40 Z-5 F1000
; Feed in tool.
N50 G41 X30 Y25 G1 F1000
; Switch on tool radius compensation.
N60 Y35
; Mill contour.
N70 X60 Y70
N80 CT X80 Y55
; Circular-path programming with tangential transi-
tion.
N90 X90 Y35
N100 G1 X100
N110 Y25
N120 X30
N130 G0 G40 X0 Y0
; Switch off tool radius compensation.
N140 Z100
; Retract tool.
N140 M30
Example 2: Turning
NC programming
202
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
;
=
Program code
Comment
N110 G1 X23.293 Z0 F10
N115 X40 Z-30 F0.2
N120 CT X58.146 Z-42
; Circular-path programming with tangential transition.
N125 G1 X70
Further information
Splines
In the case of splines, the tangential direction is defined by the straight line through the last two
points. In the case of A and C splines with active ENAT or EAUTO, this direction is generally not
the same as the direction at the end point of the spline.
The transition of B splines is always tangential, the tangent direction is defined as for A or C
splines and active ETAN.
Frame change
If a frame change takes place between the block that defines the tangent and the CT block, the
tangent is also subjected to this change.
Limit case
If the extension of the start tangent runs through the end point, a straight line is produced
instead of a circle (limit case: circle with infinite radius). In this special case, TURN must either not
be programmed or the value must be TURN=0.
Note
When the values tend towards this limit case, circles with an unlimited radius are produced and
machining with TURN unequal to 0 is generally aborted with an alarm due to violation of the
software limits.
Position of the circle plane
The position of the circle plane depends on the active plane (G17-G19).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
203
Fundamentals
2.9 Motion commands
If the tangent of the previous block does not lie in the active plane, its projection into the active
plane is used.
If the start and end points do not have the same position components perpendicular to the active
plane, a helix is produced instead of a circle.
2.9.7
Helical interpolation (G2/G3, TURN)
The helical interpolation enables, for example, the production of threads or oil grooves.
With helical interpolation, two motions are superimposed and executed in parallel:
• A plane circular motion on which
• A vertical linear motion is superimposed.
Syntax
G2/G3 X… Y… Z… I… J… K… TURN=
G2/G3 X… Y… Z… I… J… K… TURN=
G2/G3 AR=… I… J… K… TURN=
G2/G3 AR=… X… Y… Z… TURN=
G2/G3 AP… RP=… TURN=
Meaning
G2:
Travel on a circular path in clockwise direction
G3:
Travel on a circular path in counter-clockwise direction
X Y Z :
End point in Cartesian coordinates
I J K :
Circle center point in Cartesian coordinates
NC programming
204
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
AR:
Opening angle
TURN= :
Number of additional circular passes in the range from 0 to 999
AP= :
Polar angle
RP= :
Polar radius
Note
G2 and G3 are modal.
Example
<
<
;
=
Program code
Comment
N10 G17 G0 X27.5 Y32.99 Z3
; Approach the starting posi-
tion.
N20 G1 Z-5 F50
; Feed of the tool.
N30 G3 X20 Y5 Z-20 I=AC(20) J=AC(20) TURN=2
; Helix with the specifica-
tions: Execute two full cir-
cles after the starting posi-
tion, then travel to end
point.
N40 M30
; End of program
Additional information
Motion sequence
1. Approach starting point
2. Execute the full circles programmed with TURN=.
3. Approach circle end position, e.g. as part rotation.
4. Execute steps 2 and 3 across the infeed depth.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
205
Fundamentals
2.9 Motion commands
The pitch, with which the helix is to be machined is calculated from the number of full circles plus
the programmed circle end position (executed across the infeed depth).
6WDUWLQJ SRLQW
)XOO FLUFOH
)XOO FLUFOH
)XOO FLUFOH
(QG SRLQW DV
SDUWLDO UHYROX
WLRQ
7DUJHW SRLQW
Programming the end point for helical interpolation
Please refer to circular interpolation for a detailed description of the interpolation parameters.
Programmed feedrate
For helical interpolation, it is advisable to specify a programmed feedrate override (CFC).
FGROUP can be used to specify which axes are to be traversed with a programmed feedrate. For
more information please refer to the Path behavior section.
2.9.8
Involute interpolation (INVCW, INVCCW)
The involute of a circle is the path taken by the end of an idealized string as it unwraps around
a curve.
Involute interpolation allows path trajectories along an involute. It is executed in the plane in
which the basic circle is defined and runs from the programmed starting point to the
programmed end point.
NC programming
206
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
<
&LUFOH FHQWHU SRLQW ; <
5DGLXV
6WDUWLQJ
;<
SRLQW
;
%DVLF FLUFOH
(QG SRLQW
The end point can be programmed in two ways:
1. Directly via Cartesian coordinates
2. Indirectly by specifying an opening angle (also refer to the programming of the opening
angle for circular-path programming)
If the starting point and the end point are in the plane of the basic circle, then, analogous to the
helical interpolation for circles, there is a superimposition to a curve in space.
With additional specification of paths perpendicular to the active plane, an involute can be
traversed in space (comparable to the helical interpolation for circles).
Syntax
INVCW X... Y... Z... I... J... K... CR=...
INVCCW X... Y... Z... I... J... K... CR=...
INVCW I... J... K... CR=... AR=...
INVCCW I... J... K... CR=... AR=...
Meaning
INVCW:
Command to travel on an involute in the clockwise direction
INVCCW:
Command to travel on an involute in the counter-clockwise direction
X... Y... Z... :
Direct programming of the end point in Cartesian coordinates
I... J... K... :
Interpolation parameters for defining the center point of the basic circle
in Cartesian coordinates
Note:
The coordinate specifications refer to the starting point of the involute.
CR=... :
Radius of the basic circle
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
207
Fundamentals
2.9 Motion commands
AR=... :
Indirect programming of the end point by specifying an opening angle
(angle of rotation)
The origin of the opening angle is the line from the circle center point
to the starting point.
AR > 0:
The path of the involute moves away from the basic
circle.
AR < 0:
The path of the involute moves towards the basic circle.
For AR < 0, the maximum angle of rotation is restricted by
the fact that the end point must always be outside the
basic circle.
Indirect programming of the end point by specifying an opening angle
NOTICE
Opening angle undefined
When the end point is indirectly programmed by specifying an opening angle AR, the sign of
the angle must be taken into account, as a sign change would result in another involute and
therefore another path.
This is demonstrated in the following example:
(QG SRLQWV
$5
6WDUWLQJ SRLQW
The specifications of the radius and center point of the basic circle as well as the starting point
and direction of rotation (INVCW/INVCCW) are the same for involutes 1 and 2. The only
difference is in the sign of the opening angle:
• With AR > 0, the path is on involute 1 and end point 1 is approached.
• With AR < 0, the path is on involute 2 and end point 2 is approached.
NC programming
208
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Supplementary conditions
• Both the starting point and the end point must be outside the area of the basic circle of the
involute (circle with radius CR around the center point specified by I, J, K). If this condition is
not satisfied, an alarm is generated and the program processing is canceled.
• The two options for programming the end point (directly via Cartesian coordinates or
indirectly via the specification of an opening angle) are mutually exclusive. Consequently,
only one of the two programming options may be used in a block.
• If the programmed end point does not lie exactly on the involute defined by the starting point
and basic circle, interpolation takes place between the two involutes defined by the starting
and end points (see following figure).
6WDUWLQJ
5DGLXV
SRLQW
(QG SRLQW
%DVLF FLUFOH
0D[
GHYLDWLRQ
The maximum deviation of the end point is determined by a machine data (→ machine
manufacturer). If the deviation of the programmed end point in the radial direction is greater
than the value defined by this MD, then an alarm is generated and program processing is
canceled.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
209
Fundamentals
2.9 Motion commands
Examples
Example 1: Counter-clockwise involute from the starting point to the programmed end
point and back again as clockwise involute
<
1
HQG SRLQW
;
<
1
1
&5
1
VWDUWLQJ SRLQW
;
;
<
Program code
Comment
N10 G1 X10 Y0 F5000
; The starting position is ap-
proached.
N15 G17
; Selection of the X/Y plane as ma-
chining plane.
N20 INVCCW X32.77 Y32.77 CR=5 I-10 J0
; Counter-clockwise involute, end
point in Cartesian coordinates.
N30 INVCW X10 Y0 CR=5 I-32.77 J-32.77
; Clockwise involute, starting
point is end point from N20, new
end point is starting point from
N20, new circle center point refers
to a new starting point and is the
same as the old circle center point.
NC programming
210
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
Example 2: Counter-clockwise involute with indirect programming of the end point by
specifying an opening angle
<
&5
6WDUWLQJ SRLQW
;
;
<
$5
Program code
Comment
N10 G1 X10 Y0 F5000
; The starting position is approached.
N15 G17
; Selection of the X/Y plane as machining
plane.
N20 INVCCW CR=5 I-10 J0 AR=360
; Counter-clockwise involute and away from
the basic circle (as positive angle speci-
fication) with one full revolution (360 de-
grees).
2.9.9
Contour definitions
2.9.9.1
Contour definition programming
Function
The contour definition programming is used for the quick input of simple contours.
Programmable are contour definitions with one, two, three or more points with the transition
elements chamfer or rounding, through specification of Cartesian coordinates and/or angles
(ANG or ANG1 and ANG2).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
211
Fundamentals
2.9 Motion commands
Additional arbitrary NC addresses can be used, e.g. address letters for further axes (single axes
or axis perpendicular to the machining plane), auxiliary function specifications, G commands,
velocities, etc. in the blocks that describe contour definitions.
Note
Contour calculator
The contour definitions can be programmed easily with the aid of the contour calculator. This is
a user interface tool that enables the programming and graphic display of simple and complex
workpiece contours. The contours programmed using the contour calculator are transferred to
the part program.
Further information: Operating Manual
Parameterizing
The identifiers for angle, radius and chamfer are defined via machine data:
MD10652 $MN_CONTOUR_DEF_ANGLE_NAME (name of the angle for contour definitions)
MD10654 $MN_RADIUS_NAME (name of the radius for contour definitions)
MD10656 $MN_CHAMFER_NAME (name of the chamfer for contour definitions)
Note
See the machine manufacturer's specifications.
2.9.9.2
Contour definitions: One straight line
Note
In the following description it is assumed that:
• G18 is active (⇒ active working plane is the Z/X plane).
(However, the programming of contour definitions is also possible without restrictions with
G17 or G19.)
• The following identifiers have been defined for angle, radius and chamfer:
- ANG (angle)
- RND (radius)
- CHR (chamfer)
The end point of the straight line is defined by the following specifications:
• Angle ANG
• One Cartesian end point coordinate (X2 or Z2)
NC programming
212
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.9 Motion commands
;
;
=
$1*
;
=
=
ANG:
Angle of the straight line
X1, Z1:
Start coordinates
X2, Z2:
End point coordinates of the straight line
Syntax
X… ANG=…
Z… ANG=…
Meaning
X... :
End point coordinate in the X direction
Z... :
End point coordinate in the Z direction
ANG:
Identifier for angle programming
The specified value (angle) refers to the abscissa of the active working plane (Z axis
with G18).
Example
Program code
Comment
N10 X5 Z70 F1000 G18
; Approach the starting position
N20 X88.8 ANG=110
; Straight line with angle specification
N30 ...
or
Program code
Comment
N10 X5 Z70 F1000 G18
; Approach the starting position
N20 Z39.5 ANG=110
; Straight line with angle specification
N30 ...
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
213
Fundamentals
2.9 Motion commands
2.9.9.3
Contour definitions: Two straight lines
Note
In the following description it is assumed that:
• G18 is active (⇒ active working plane is the Z/X plane).
(However, the programming of contour definitions is also possible without restrictions with
G17 or G19.)
• The following identifiers have been defined for angle, radius and chamfer:
- ANG (angle)
- RND (radius)
- CHR (chamfer)
The end point of the first straight line can be programmed by specifying the Cartesian
coordinates or by specifying the angle of the two straight lines. The end point of the second
straight line must always be programmed with Cartesian coordinates. The intersection of the
two straight lines can be designed as a corner, curve or chamfer.
;
;
=
$1*
&DQ DOVR EH URXQGLQJ
RU FKDPIHU
;
=
$1*
;
=
=
ANG1:
Angle of the first straight line
ANG2:
Angle of the second straight line
X1, Z1:
Start coordinates of the first straight line
X2, Z2:
End point coordinates of the first straight line or
start coordinates of the second straight line
X3, Z3:
End point coordinates of the second straight line
Syntax
Programming of the end point of the first straight line by specifying the angle
• Corner as transition between the straight lines:
NC programming
214
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1

 

 

 

 

 

 

 

 

Content      ..     1      2      3      4      ..