|
|
Changes from cycle version SW4.4 and higher
A.5 Changes to names of cycle programs and GUD modules
A.5
Changes to names of cycle programs and GUD modules
The following measuring programs have been renamed or deleted from measuring cycle
version 2.6:
Cycle Name of GUD up to Version 7.5
Cycle Name as of Version 2.6
CYC_JMC
Cycle131
CYC_JMA
Cycle132
Cycle198
CUST_MEACYC
Cycle199
CUST_MEACYC
Cycle100
Program is no longer available.
Cycle101
Program is no longer available.
Cycle105
Program is no longer available.
Cycle106
Program is no longer available.
Cycle107
Program is no longer available.
Cycle108
Program is no longer available.
Cycle113
Program is no longer available.
Cycle118
Program is no longer available.
Cycle972
Program is no longer available.
E_SP_NPV
Program is no longer available.
CYC_JM
Program is no longer available.
GUD5
Module no longer available.
GUD6
Module no longer available.
GUD7
Module no longer available.
GUD7_MC
Module no longer available.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
357
Glossary
Actual/set difference
Difference between measured and expected value.
Asynchronous subroutine
Part program that can be started asynchronously to (independently of) the current program
status using an interrupt signal (e.g. "Rapid NC input" signal).
Calibration
When calibrating, the trigger points of the probe are identified and saved in the cycle setting data
from SD 54600.
Calibration tool
Is a special tool (usually a cylindrical stylus), whose dimensions are known and that is used for
precisely determining the distances between the machine zero and the probe trigger point (of
the workpiece probe).
Collision monitoring
In the context of measuring cycles, this is a function that monitors all intermediate positions
generated within the measuring cycle for the switching signal of the probe. When the probe
switches, motion is stopped immediately and an alarm message is output.
Delete distance-to-go
If a measuring point is to be approached, a traverse command is transmitted to the position
control loop and the probe is moved towards the measuring point. A point behind the expected
measuring point is defined as setpoint position. As soon as the probe makes contact, the actual
axis value at the time the switching position is reached is measured and the drive is stopped. The
remaining "distance-to-go" is deleted.
Differential measurement
Differential measurement means that the 1st measuring point is measured twice, once with a
180 degree spindle reversal (rotation of the probe), i.e. opposite the cycle start position and
once with the spindle position that was available at the start of the cycle. This procedure allows
uncalibrated probes to be used without imposing less stringent precision requirements!
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
363
Glossary
Dimensional difference check
Is a tolerance parameter, and when a limit (S_DIF) is reached the tool is probably worn and must
be replaced. The dimensional difference check has no effect on generation of the compensation
value.
Empirical value
The empirical values are used to suppress constant dimensional deviations that are not subject
to a trend.
Flying measurement
This method processes the probe signal directly in the NC.
Hirth joint
Fixed but disconnectable connection between 2 shafts to, e.g. lock the rotational position of a
rotary axis. It was invented at the beginning of the 20th century by Albert Hirth.
Kinematic chain
The kinematic chain is the description of the kinematic structure of a machine. It consists of an
arbitrary number of interconnected elements. Parallel subchains can branch off from a
kinematic chain. Only one active kinematic chain is available in the control. The active kinematic
chain starts with the root element. A kinematic chain is defined in the spatially-fixed coordinates
of the world coordinate system.
Lower tolerance limit
When measuring a dimensional deviation as the lower tolerance limit (S_TLL) ranging between
"2/3 tolerance of workpiece" and "Dimensional difference control", this is regarded 100 % as tool
offset. The previous average value is deleted.
Mean value
The mean value calculation takes account of the trend of the dimensional deviations of a
machining series. The → weighting factor k - used as basis for forming the mean value - is
selectable.
Mean value calculation alone is not enough to ensure constant machining quality. The
measured dimensional deviation can be corrected for constant deviations without a trend by
using an
→ empirical value.
Measure tool
To measure the tool, the new tool is moved up to the probe which is either permanently fixed or
swiveled into the working range. The automatically derived tool geometry is entered in the
relevant tool offset data set.
Measuring cycles
364
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Glossary
Measure workpiece
For workpiece measurement, a probe is moved up to the clamped workpiece in the same way as
a tool. The flexibility of measuring cycles makes it possible to perform nearly all measurements
required on a milling or turning machine.
Measurement path
Measurement path DFA defines the distance between the starting position and the expected
switching position (setpoint) of the probe.
Measuring accuracy
The measurement accuracy that can be obtained is dependent on the following factors:
• Repeat accuracy of the machine
• Repeat accuracy of the probe
• Resolution of the measuring system
The repeat accuracy of the controls for "on-the-fly measurement" is ± 1µm.
Measuring at an angle
A measuring variant used to measure a hole, spigot (shaft), groove, or a web at any angle. The
measurement path is traveled at a certain set angle defined in the WCS.
Measuring blanks
The blank measurement determines the position, deviation, and work offset of the workpiece in
the result of a → workpiece measurement.
Measuring in JOG
It contains the following functions:
• Semi-automatic calculation of tool geometry and storage in the tool offset memory
• Semi-automatic calculation and setting of reference points and storage in work offset
memory
The function is operated with softkeys and input displays.
Measuring variant
The measuring variant of each measuring cycle is defined in parameter S_MVAR. The parameter
can have certain integer values for each measuring cycle, which are checked for validity within
the cycle.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
365
Glossary
Modulo axis
The modulo position of the axis is an additional information for the absolute axis position. It
displays the desired target position in a different way.
Mono probe
A mono(directional) probe is a probe that can only deflect in one direction. It can only be used
for workpiece measurement on milling machines and machining centers with slight limitations.
Multi probe
A multi(directional) probe is one that can deflect in three dimensions.
Multiple measurement at the same location
Parameter S_NMSP can be used to determine the number of measurements at the same point.
The actual/set difference is determined arithmetically.
Offset angle position
When using a → mono probe, for machine-specific reasons it may be necessary to correct the
position of the probe using the tool data in mono probe type 712.
Offset axis
With some measuring variants, for example, measuring an angle in CYCLE998, positioning in
another axis that must be defined, (also called offset axis) can be performed between
measurements in the measuring axis. This must be defined in parameter S_MA with offset axis/
measuring axis.
Paraxial measurement
A measuring variant used for paraxial measurement of a workpiece, such as a hole, spigot
(shaft), rectangle, etc. The measuring path is traversed paraxially in the WCS.
Part chain
The part chain is a part chain of the kinematic chain and runs parallel to the tool chain. The part
chain begins in the root element and ends at the workpiece clamping.
Positional deviation
The positional deviation (skew) describes the difference between the spindle center and the
probe ball center ascertained by calibration. It is compensated for by the measuring cycles.
Measuring cycles
366
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Glossary
Probe ball diameter
The active diameter of the probe ball. It is ascertained during calibration and stored in the
measuring cycle data.
Probe type
To measure tool and workpiece dimensions, an electronic touch-trigger probe is required that
provides a signal change (edge) when deflected.
Probes are distinguished according to the number of measuring directions.
• Multi-directional (3D, multi probe)
• Mono-directional (mono probe)
Reference groove
A groove located in the working area (permanent feature of the machine) whose precise
position is known and that can be used to calibrate workpiece probes.
Safe area
The safe area S_TSA does not affect the offset value; it is used for diagnostics. If this limit is
reached, there is a defect in the probe or the set position is incorrect.
Setpoint
In the "on-the-fly measurement" procedure, a position is specified as the setpoint value for the
cycle at which the signal of the touch-trigger probe is expected.
Superimposition
Superimposition
Tool carrier
The tool carrier is used for machines on which the orientation between the tool and the
workpiece can be changed. The tool carrier is a static transformation, i.e. the orientation that is
set once during operation is permanent and cannot be changed during the procedure. Among
other things, changes in the tool length components occur due to the change of orientation. The
tool carrier imports the necessary calculations for the change of orientation and offset.
Tool chain
The tool chain is a part chain of the kinematic chain and runs parallel to the part chain. The tool
chain begins in the root element and ends at the tool holder.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
367
Glossary
Tool name
Name of the tool in the tool list.
Trigger point
When calibrating, the trigger points of the probe are determined and saved in the channel-
specific setting data from SD 54600 and higher for the corresponding axis direction.
Upper tolerance limit
When measuring a dimensional deviation as the upper tolerance limit (S_TU) ranging between
"2/3 tolerance of workpiece" and "Dimensional difference control", this is regarded 100% as tool
offset. The previous average value is deleted.
Weighting factor for averaging
The weighting factor k can be applied to allow different weighting to be given to an individual
measurement. A new measurement result thus has only a limited effect on the new tool offset
as a function of k.
Work offset (WO)
In the result of a measurement, the actual-setpoint value difference is stored in the data set of
any settable work offset.
Work offset range
This tolerance range (lower limit S_TZL) corresponds to the absolute value of maximum
random dimensional deviations. If the absolute value of the actual/set difference is less than the
work offset range, the offset is not applied.
Measuring cycles
368
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Preface
Fundamental safety
1
instructions
2
Principles of programming
SINUMERIK
3
Drive commands
SINUMERIK 840D sl / SINUMERIK
ONE / SINUMERIK 828D
4
Motion commands
ISO Milling
5
Additional functions
Programming Manual
A
Abbreviations
B
G code table
C
Data Description
D
Data lists
E
Interrupts
6
Appendix
Valid for
control system
SINUMERIK 840D sl / 840DE sl / SINUMERIK ONE /
SINUMERIK 828D
10/2020
6FC5398-7BP40-3BA1
Table of contents
Preface
3
1
Fundamental safety instructions
9
1.1
General safety instructions
9
1.2
Warranty and liability for application examples
10
1.3
Security information
11
2
Principles of programming
13
2.1
Introductory comments
13
2.1.1
Siemens mode
13
2.1.2
ISO dialect mode
13
2.1.3
Switching between the modes
13
2.1.4
Display of the G code
14
2.1.5
Maximum number of axes/axis identifiers
14
2.1.6
Decimal point programming
14
2.1.7
Comments
15
2.1.8
Skip block
16
2.2
Preconditions for the feed
17
2.2.1
Rapid traverse
17
2.2.2
Path feed (F function)
17
2.2.3
Fixed feedrates F0 to F9
19
2.2.4
Linear feed (G94)
21
2.2.5
Inverse-time feed (G93)
21
2.2.6
Revolutional feedrate (G95)
22
3
Drive commands
23
3.1
Interpolation commands
23
3.1.1
Rapid traverse (G00)
23
3.1.2
Linear interpolation (G01)
24
3.1.3
Circular interpolation (G02, G03)
25
3.1.4
Contour definition programming and addition of chamfers or radiuses
28
3.1.5
Helical interpolation (G02, G03)
31
3.1.6
Involute interpolation (G02.2, G03.2)
32
3.1.7
Cylindrical interpolation (G07.1)
33
3.2
Reference point approach with G functions
36
3.2.1
Reference point approach with intermediate point (G28)
36
3.2.2
Checking the reference position (G27)
38
3.2.3
Reference point approach with reference point selection (G30)
38
4
Motion commands
41
4.1
The coordinate system
41
4.1.1
Machine coordinate systems (G53)
41
4.1.2
Workpiece coordinate system (G92)
43
4.1.3
Resetting the tool coordinate system (G92.1)
43
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
5
Table of contents
4.1.4
Selection of a workpiece coordinate system
44
4.1.5
Writing work offset/tool offsets (G10)
44
4.1.6
Local coordinate system (G52)
45
4.1.7
Selection of the plane (G17, G18, G19)
46
4.1.8
Parallel axes (G17, G18, G19)
47
4.1.9
Rotation of the coordinate system (G68, G69)
48
4.1.10
3D rotation G68/G69
49
4.2
Defining the input modes of the coordinate values
51
4.2.1
Absolute/incremental dimensioning (G90, G91)
51
4.2.2
Inch/metric input (G20, G21)
52
4.2.3
Scaling (G50, G51)
53
4.2.4
Programmable mirroring (G50.1, G51.1)
56
4.3
Time-controlled commands
58
4.3.1
Dwell time (G04)
58
4.4
Tool offset functions
59
4.4.1
Tool offset data memory
59
4.4.2
Tool length compensation (G43, G44, G49)
59
4.4.3
Cutter radius compensation (G40, G41, G42)
62
4.4.4
Collision detection
66
4.5
S-, T-, M- and B functions
70
4.5.1
Spindle function (S function)
70
4.5.2
Tool function
70
4.5.3
Additional function (M function)
70
4.5.4
M functions of spindle control
71
4.5.5
M functions for subroutine calls
72
4.5.6
Macro call via M function
72
4.5.7
M functions
73
4.6
Controlling the feedrate
74
4.6.1
Automatic corner override G62
74
4.6.2
Compressor in the ISO dialect mode
76
4.6.3
Exact stop (G09, G61), Continuous-path mode (G64), tapping (G63)
77
5
Additional functions
79
5.1
Program supporting functions
79
5.1.1
Fixed drilling cycles
79
5.1.2
Deep hole drilling cycle with chip breakage (G73)
84
5.1.3
Fine drilling cycle (G76)
86
5.1.4
Drilling cycle, preboring (G81)
89
5.1.5
Drilling cycle, preboring (G82)
91
5.1.6
Deep hole drilling cycle with chip removal (G83)
93
5.1.7
Drilling cycle (G85)
95
5.1.8
Boring cycle (G86)
97
5.1.9
Boring cycle, reverse countersinking (G87)
99
5.1.10
Drilling cycle (G89), return with G01
101
5.1.11
Cycle "Tapping without compensating chuck" (G84)
103
5.1.12
"Drilling a left-hand thread without compensating chuck" cycle (G74)
106
5.1.13
Left or right tapping cycle (G84 or G74)
108
5.1.14
Deselection of a fixed cycle (G80)
110
5.1.15
Program example with a tool length compensation and fixed cycles
111
5.1.16
Multiple-start threads with G33
113
ISO Milling
6
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Table of contents
5.2
Programmable data input (G10)
114
5.2.1
Changing the tool offset value
114
5.2.2
Working area limitation (G22, G23)
114
5.2.3
M function for calling subroutines (M98, M99)
115
5.3
Eight-digit program number
117
5.4
Polar coordinates (G15, G16)
119
5.5
Polar coordinates interpolation (G12.1, G13.1)
120
5.6
Measuring functions
122
5.6.1
Rapid lift with G10.6
122
5.6.2
Measuring with "delete distance-to-go" (G31)
122
5.6.3
Measuring with G31, P1 - P4
125
5.6.4
Interrupt program with M96, M97
126
5.6.5
"Tool life control" function
128
5.7
Macro programs
129
5.7.1
Differences with subroutines
129
5.7.2
Macro program call (G65, G66, G67)
129
5.7.3
Macro call via G function
135
5.8
Special functions
139
5.8.1
Contour repetition (G72.1, G72.2)
139
5.8.2
Switchover modes for DryRun and skip levels
141
A
Abbreviations
143
B
G code table
151
C
Data Description
155
C.1
General machine data
155
C.2
Channel-specific machine data
167
C.3
Axis-specific setting data
180
C.4
Channel-specific setting data
181
C.5
Channel-specific cycle machine data
183
D
Data lists
187
D.1
Machine data
187
D.2
Setting data
189
D.3
Variables
190
E
Interrupts
193
6
Appendix
195
6.1
Documentation overview SINUMERIK ONE
195
6.2
Documentation overview SINUMERIK 840D sl
196
6.3
Documentation overview SINUMERIK 828D
197
Glossary
199
Index
223
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
7
Fundamental safety instructions
1
1.1
General safety instructions
WARNING
Danger to life if the safety instructions and residual risks are not observed
If the safety instructions and residual risks in the associated hardware documentation are not
observed, accidents involving severe injuries or death can occur.
• Observe the safety instructions given in the hardware documentation.
• Consider the residual risks for the risk evaluation.
WARNING
Malfunctions of the machine as a result of incorrect or changed parameter settings
As a result of incorrect or changed parameterization, machines can malfunction, which in turn
can lead to injuries or death.
• Protect the parameterization against unauthorized access.
• Handle possible malfunctions by taking suitable measures, e.g. emergency stop or
emergency off.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
9
Fundamental safety instructions
1.2 Warranty and liability for application examples
1.2
Warranty and liability for application examples
Application examples are not binding and do not claim to be complete regarding configuration,
equipment or any eventuality which may arise. Application examples do not represent specific
customer solutions, but are only intended to provide support for typical tasks.
As the user you yourself are responsible for ensuring that the products described are operated
correctly. Application examples do not relieve you of your responsibility for safe handling when
using, installing, operating and maintaining the equipment.
ISO Milling
10
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Fundamental safety instructions
1.3 Security information
1.3
Security information
Siemens provides products and solutions with industrial security functions that support the
secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary
to implement - and continuously maintain - a holistic, state-of-the-art industrial security
concept. Siemens’ products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems,
machines and networks. Such systems, machines and components should only be connected to
an enterprise network or the internet if and to the extent such a connection is necessary and only
when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please
visit
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they are available
and that the latest product versions are used. Use of product versions that are no longer
supported, and failure to apply the latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
under
services/cert.html#Subscriptions).
Further information is provided on the Internet:
Industrial Security Configuration Manual (https://support.industry.siemens.com/cs/ww/en/
view/108862708)
WARNING
Unsafe operating states resulting from software manipulation
Software manipulations, e.g. viruses, Trojans, or worms, can cause unsafe operating states in
your system that may lead to death, serious injury, and property damage.
• Keep the software up to date.
• Incorporate the automation and drive components into a holistic, state-of-the-art industrial
security concept for the installation or machine.
• Make sure that you include all installed products into the holistic industrial security concept.
• Protect files stored on exchangeable storage media from malicious software by with suitable
protection measures, e.g. virus scanners.
• On completion of commissioning, check all security-related settings.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
11
Principles of programming
2
2.1
Introductory comments
2.1.1
Siemens mode
The following conditions are valid in the Siemens mode:
• The default of the G commands can be defined for each channel via the machine data 20150
$MC_GCODE_RESET_VALUES.
• No language commands from the ISO dialects can be programmed in the Siemens mode.
2.1.2
ISO dialect mode
The following conditions are valid in the active ISO dialect mode:
• The ISO dialect mode can be set with machine data as the default setting of control system.
The control system reboots by default in the ISO dialect mode subsequently.
• Only G functions from the ISO dialect can be programmed; the programming of Siemens G
functions is not possible in the ISO Mode.
• Mixing of ISO dialect and Siemens language in the same NC block is not possible.
• Switching between ISO Dialect M and ISO Dialect T with a G command is not possible.
• Subroutines that are programmed in the Siemens mode can be called.
• If Siemens functions are to be used, one must first switch to the Siemens mode.
2.1.3
Switching between the modes
The following G functions can be used to switch between the Siemens mode and the ISO dialect
mode:
• G290 - Siemens NC programming language active
• G291 - ISO Dialect NC Programming language active
The active tool, the tool offsets and work offsets are not influenced by the switchover.
G290 and G291 must be programmed alone in an NC block.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
13
Principles of programming
2.1 Introductory comments
2.1.4
Display of the G code
The G code is displayed in the same language (Siemens or ISO Dialect) as the relevant current
block. If the display of the blocks is suppressed with DISPLOF, the G codes continue to be
displayed in the language in which the active block is displayed.
Example
The G functions of the ISO dialect mode are used to call the Siemens standard cycles. To do this,
DISPLOF is programmed at the start of the relevant cycle; this way the G functions that are
programmed in the ISO dialect language continue to be displayed.
PROC CYCLE328 SAVE DISPLOF
N10
N99 RET
Procedure
The Siemens shell cycles are called via main programs. The Siemens mode is selected
automatically by calling the shell cycle.
With DISPLOF, the block display is frozen on calling the cycle; the display of the G code continues
in the ISO Mode.
The G codes that were changed in the shell cycle, are reset to their original status at the end of
the cycle with the "SAVE" attribute.
2.1.5
Maximum number of axes/axis identifiers
The maximum number of axes in the ISO dialect mode is 9. The axis identifiers for the first three
axes are defined permanently with X, Y and Z. All other axes can be identified with the letters A,
B, C, U, V and W.
2.1.6
Decimal point programming
In the ISO dialect mode, there are two notations for evaluating programmed values without
decimal point:
• Pocket calculator notation
Values without decimal points are interpreted as mm, inch or degree.
• Standard notation
Values without decimal point are multiplied by a conversion factor.
The setting is done over MD10884 $MN_EXTERN_FLOATINGPOINT_PROG.
There are two different conversion factors, IS-B and IS-C. This weighting is related to the
addresses X Y Z U V W A B C I J K Q R and F.
Example:
ISO Milling
14
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Principles of programming
2.1 Introductory comments
Linear axis in mm:
• X 100.5
corresponds to a value with decimal point: 100.5 mm
• X 1000
- Pocket calculator notation: 1,000 mm
- Standard notation:
IS-B: 1,000* 0.001= 1 mm
IS-C: 1,000* 0.0001= 0.1 mm
ISO dialect milling
Table 2-1
Different conversion factors for IS-B and IS-C
Address
Unit
IS-B
IS-C
Linear axis
mm
0,001
0,0001
inch
0,0001
0,00001
Rotary axis
Degree
0,001
0,0001
F feed G94 (mm/inch per min.)
mm
1
1
inch
0,01
0,01
F feed G95 (mm/inch per min.)
mm
0,01
0,01
inch
0,0001
0,0001
F thread lead
mm
0,01
0,01
inch
0,0001
0,0001
C chamfer
mm
0,001
0,0001
inch
0,0001
0,00001
R radius, G10 toolcorr
mm
0,001
0,0001
inch
0,0001
0,00001
Q
mm
0,001
0,0001
inch
0,0001
0,00001
I, J, K IPO parameters
mm
0,001
0,0001
inch
0,0001
0,00001
G04 X or U
s
0,001
0,001
A angle contour definition
Degree
0,001
0,0001
G74, G84 tapping cycles
$MC_EXTERN_FUNCTION_MASK
Bit8 = 0 F as feed such as G94, G95
Bit8 = 1 F as thread lead
2.1.7
Comments
In the ISO dialect mode, brackets are interpreted as comment signs. In the Siemens mode, ";" is
interpreted as comment. To simplify matters, an ";" is also understood as comment in the ISO
dialect mode.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
15
Principles of programming
2.1 Introductory comments
If the comment start sign '(' is used inside a comment again, the comment is ended only if all the
open brackets are closed again.
Example:
N5 (comment) X100 Y100
N10 (comment(comment)) X100 Y100
N15 (comment(comment) X100) Y100
X100 Y100 is executed in block N5 and N10, but only Y100 in block N15, because the first
bracket is closed only after X100. Everything up to that point is interpreted as comment.
2.1.8
Skip block
The sign of skipping or suppression of blocks "/" can be used at any convenient position in a block,
i.e. even in the middle of the block. If the programmed block skip level is active on the date of
the compilation, the block is not compiled from this point up to the end of the block. An active
block skip level has the same effect as a block end.
Example:
N5 G00 X100. /3 YY100 --> Alarm 12080 "Syntax error"
N5 G00 X100. /3 YY100 --> no alarm, if block skip level 3 is active
Block skip signs within a comment are not interpreted as block skip signs
Example:
N5 G00 X100. ( /3 Part1 ) Y100
;the Y axis is traversed even when the block skip level 3 is active
The block skip levels /1 to /9 can be active. Block skip values <1 and >9 lead to alarm 14060
"Impermissible skip level for differential block skip".
The function is mapped to the existing Siemens skip levels. Unlike the ISO Dialect original, "/" and
"/1" are separate skip levels that must also be activated separately.
Note
The "0" in "/0" can be omitted.
ISO Milling
16
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Principles of programming
2.2 Preconditions for the feed
2.2
Preconditions for the feed
The following Section describes the feed function with which the feedrate (covered path per
minute or per rotation) of a cutting tool is defined.
2.2.1
Rapid traverse
Rapid traverse is used for positioning (G00) as well as for manual traverse with rapid traverse
(JOG). In rapid traverse, each axis is traversed with the rapid traverse rate set for the individual
axes. The rapid traversing rate is defined by the machine manufacturer and it is specified by the
machine data for the individual axes. As the axes traverse independently of each other, each axis
reaches its target point at a different time. Hence, the resulting tool path is generally not a
straight line.
2.2.2
Path feed (F function)
Note
Unless something else is specified, the unit "mm/min" always stands for feedrate of the cutting
tool in this documentation.
The feed with which a tool should be traversed in linear interpolation (G01) or circular
interpolation (G02, G03) is designated with the address character "F".
The feed of the cutting tool in "mm/min" is specified after the address character "F".
The permissible range of F values is specified in the documentation of the machine
manufacturer.
Possibly, the feed is limited by the servo system and the mechanical system in the upward
direction. The maximum feed is set in the machine data and limited to the value defined there
before an overshoot.
The path feed is generally composed of the individual speed components of all geometry axes
participating in the movement and refers to the cutter center (see the two following figures).
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
17
Principles of programming
2.2 Preconditions for the feed
3URJUDPPLQJ H[DPSOH ZLWK WKH
IROORZLQJ SURJUDP
*
,QFUHPHQWDO GLPHQVLRQLQJ
*
;
<
)
3DWK YHORFLW\ LQ
WDQJHQWLDO GLUHFWLRQ
PP PLQ
PP PLQ
<
PP PLQ
;
Figure 2-1
Linear interpolation with 2 axes
3URJUDPPLQJ H[DPSOH ZLWK WKH
IROORZLQJ SURJUDP
&HQWHU SRLQW
*
LQFUHPHQWDO GLPHQVLRQLQJ
*
;
<
,
)
PP PLQ
)\
<
)[
;
Figure 2-2
Circular interpolation with 2 axes
In 3D interpolation, the feed of the resulting straight lines programmed with F are maintained
in the space.
ISO Milling
18
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Principles of programming
2.2 Preconditions for the feed
3URJUDPPLQJ H[DPSOH ZLWK
<
WKH IROORZLQJ SURJUDP
*
;
<
=
)
(QG SRLQW
PP PLQ
6WDUW SRLQW
;
=
Figure 2-3
Feed in case of 3D interpolation
Note
If "F0" is programmed and the function "Fixed feedrate" is not active, then the Alarm 14800
"Programmed path velocity less than or equal to zero" is output.
2.2.3
Fixed feedrates F0 to F9
Activate feed values
Ten different feed values pre-set via setting data can be activated with F0 to F9. To activate the
rapid traverse rate with F0, the corresponding speed must be entered in the setting data 42160
$SC_EXTERN_FIXED_FEEDRATE_F1_F9[0].
The feed values for F0 to F9 are entered in the setting data as real values. An evaluation of the
input values is not undertaken.
The function is activated via the machine data 22920 $MC_EXTERN_FIXED_FEEDRATE_F1_ON.
If the machine data is set to FALSE, F1 - F9 is interpreted as normal feed programming, e.g. F2
= 2 mm/min, F0=0 mm/min.
If the machine data = TRUE, the feed values for F0 - F9 are fetched from the setting data 42160
$SC_EXTERN_FIXED_FEEDRATE_F1_F9[ ]. If the value 0 exists in one of the setting data, then the
corresponding address extension of feed 0 is activated during the programming.
Example
$SC_FIXED_FEEDRATE_F1_F9[0] = 5000
$SC_FIXED_FEEDRATE_F1_F9[1] = 1000
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
19
Principles of programming
2.2 Preconditions for the feed
$SC_FIXED_FEEDRATE_F1_F9[2] = 500
N10 X10 Y10 Z10 F0 G94
;Approach position at 5000 mm/min
N20 G01 X150 Y30 F1
;Feed 1000 mm/min active
N30 Z0 F2
;Position approached at 500 mm/min
N40 Z10 F0
;Approach position at 5000 mm/min
Table 2-2
Setting data for the default setting of feedrate F
F function
Setting Data
F0
$SC_EXTERN_FIXED_FEEDRATE_F1_F9[0]
F1
$SC_EXTERN_FIXED_FEEDRATE_F1_F9[1]
F2
$SC_EXTERN_FIXED_FEEDRATE_F1_F9[2]
F3
$SC_EXTERN_FIXED_FEEDRATE_F1_F9[3]
F4
$SC_EXTERN_FIXED_FEEDRATE_F1_F9[4]
F5
$SC_EXTERN_FIXED_FEEDRATE_F1_F9[5]
F6
$SC_EXTERN_FIXED_FEEDRATE_F1_F9[6]
F7
$SC_EXTERN_FIXED_FEEDRATE_F1_F9[7]
F8
$SC_EXTERN_FIXED_FEEDRATE_F1_F9[8]
F9
$SC_EXTERN_FIXED_FEEDRATE_F1_F9[9]
Note: Input format = REAL
Note
If the function is activated with MD $MC_EXTERN_FIXED_FEEDRATE_F1_ON and if the feed
value from the setting data is not to be active with F1 to F9, then the feed value is programmed
as actual value. If, for instance, a feed value should be programmed at 1 mm/min, the feed must
be programmed with F1.0 instead of F1.
If the "DRY RUN" (test run) switch is set to "ON", all the feed commands are traversed at the feed
set for the test run.
The Feed Override function is effective even for the fixed feedrates F0 to F9.
The feed set in the setting data is stored even after the control system is switched off.
In a macro call with G65/G66, the value programmed with F is stored in the system variable $C_F,
i.e. the numeric values 0 to 9 are stored.
If, in a cycle call, a fixed feed (F0 - F9) is programmed in a machining program, the feed value is
read from the relevant setting data and stored in the variable $C_F.
Example
$SC_FIXED_FEEDRATE_F1_F9[0] = 1500.0
ISO Milling
20
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Principles of programming
2.2 Preconditions for the feed
$SC_FIXED_FEEDRATE_F1_F9[1] = 550.0
N10 X10 Y10 Z10 F0 G94
;Positioning with 1500
N20 G01 X150 Y30 F1
;Feed 550 mm/min active
N40 Z10 F0
;Positioning with 1500
Note
While macroprogramming with G65/66, the programmed value for the address F is always
stored in the cycle system variable. For F1 to F9, for example, the value 1 to 9 is entered in the
cycle system variable $C_F. The address signifies a transfer variable here and has no direct
reference to the feed.
The same is true of the thread lead programming in G33 - G34 with the address F. No feed is
programmed with F here, instead the distance between two threads during a spindle revolution.
In cycle programming (e.g., G81 X.. Y.. Z.. R.. P.. Q.. F..), the feed is always programmed under
the address F. In a part program block with a cycle call over a G function (G81 - G87 etc.), the
corresponding feed value during the programming of F1 to F9 is written from the corresponding
setting data in the variable $C_F.
Restriction
In the ISO dialect mode, the feed values are changed in the setting data with a handwheel. In the
Siemens mode, the feeds can be influenced only like a directly programmed feed, e.g. through
the override switch.
2.2.4
Linear feed (G94)
On specifying G94, the feed given after the address character F is executed in the mm/min, inch/
min or degree/min unit.
2.2.5
Inverse-time feed (G93)
On specifying G93, the feed given after the address character F is executed in the 1/min unit. G93
is a modally effective G function.
Example
N10 G93 G1 X100 F2 ;
i.e., the programmed path is traversed within half a minute.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
21
Principles of programming
2.2 Preconditions for the feed
2.2.6
Revolutional feedrate (G95)
On entering G95, the feed is executed in the mm/revolution unit or inch/revolution related to the
master spindle.
Note
All of the commands are modal. If the G feed command is switched among G93, G94 or G95, the
path feed must be reprogrammed. The feed can also be specified in degree/revolution for the
machining with rotary axes.
ISO Milling
22
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Drive commands
3
3.1
Interpolation commands
The positioning and interpolation commands, with which the tool path along the programmed
contour, such as a straight line or a circular arc, is monitored, are described in the next Section.
3.1.1
Rapid traverse (G00)
You can use rapid traverse to position the tool rapidly, to traverse around the workpiece or to
approach tool change points.
The following G functions can be used to call the positioning (refer to following table):
Table 3-1
G function for positioning
G function
Function
G group
G00
Rapid traverse
01
G01
Linear movement
01
G02
Circle/helix in the clockwise direction
01
G02.2
Involute in the clockwise direction
01
G03
Circle/helix in the counterclockwise direction
01
G03.2
Involute in the counterclockwise direction
01
Positioning (G00)
Format
G00 X... Y... Z... ;
Explanation
The tool movement programmed with G00 is executed at the highest possible traversing speed
(rapid traverse). The rapid traverse rate is defined separately for each axis in machine data. If the
rapid traverse movement is executed simultaneously on several axes, the rapid traverse rate is
determined by the axis which requires the most time for its section of the path.
Axes that are not programmed in a G00 block are not traversed. In positioning, the individual
axes traverse independently of each other with the rapid traverse rate specified for each axis. The
precise speeds of your machine can be consulted in the documentation of the manufacturer.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
23
Drive commands
3.1 Interpolation commands
< D[LV
3URJUDPPLQJ H[DPSOH
*
;
<
=
; D[LV
5DSLG WUDYHUVH UDWH
; D[LV PP PLQ
< D[LV PP PLQ
= D[LV PP PLQ
= D[LV
Figure 3-1
Positioning in the run state with 3 simultaneously controllable axes
Note
As in positioning with G00, the axes traverse independently of each other (not interpolated),
each axis reaches its end point at a different time. Hence, one must be very careful in positioning
with several axes, so that a tool does not collide with a workpiece of the tool during the
positioning.
Linear interpolation (G00)
Linear interpolation with G00 is defined by setting the machine data 20732
$MC_EXTERN_GO_LINEAR_MODE. Here, all programmed axes traverse in rapid traverse with
linear interpolation and reach their target positions simultaneously.
3.1.2
Linear interpolation (G01)
With G01 the tool travels on paraxial, inclined or straight lines arbitrarily positioned in space.
Linear interpolation permits machining of 3D surfaces, grooves, etc.
Format
G01 X... Y... Z... F... ;
In G01, the linear interpolation is executed with the path feed. The axes that are not specified in
the block with G01 are not traversed. The linear interpolation is programmed as in the example
given above.
ISO Milling
24
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Drive commands
3.1 Interpolation commands
Feed F for path axes
The feedrate is specified under the address F. Depending on the default setting in the machine
data, the units of measurement specified with the G commands (G93, G94, G95) are either in
mm or inch.
One F value can be programmed per NC block. The unit of feedrate is defined over one of the
mentioned G commands. The feed F acts only on path axes and remains active until a new feed
value is programmed. Separators are permitted after address F.
Note
An alarm is triggered while executing a G01 block if no feed was programmed in a block with
G01 or in the previous blocks.
The end point can be specified either as absolute or as incremental. Details are available in
Chapter "Absolute/incremental dimensioning".
3URJUDPPLQJ H[DPSOH
< D[LV
*
;
<
=
)
PP PLQ
7DQJHQWLDO YHORFLW\
; D[LV
= D[LV
Figure 3-2
Linear interpolation
3.1.3
Circular interpolation (G02, G03)
Format
To start the circular interpolation, please execute the commands specified in the following table.
Table 3-2
Commands to be executed for circular interpolation
Element
Command
Description
Designation of the plane
G17
Circular arc in Plane X-Y
G18
Circular arc in Plane Z-X
G19
Circular arc in Plane Y-Z
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
25
Drive commands
3.1 Interpolation commands
Element
Command
Description
Direction of rotation
G02
clockwise
G03
counterclockwise
End-point position
Two axes from X, Y or Z
End-point position in a workpiece coordinate
system
Two axes from X, Y or Z
Distance of start point - end point with sign
Distance between start point -
Two axes from I, J or K
Distance start point - circle center with sign
center
Radius of circular arc
R
Radius of circular arc
Feed
F
Speed along the circular arc
Designation of the plane
With the commands specified below, a tool traverses along the specified circular arc in the plane
X-Y, Z-X or Y-Z, so that the feed specified with "F" is maintained on the circular arc.
• in Plane X-Y:
G17 G02 (or G03) X... Y... R... (or I... J... ) F... ;
• in Plane Z-X:
G18 G02 (or G03) Z... X... R... (or K... I... ) F... ;
• in the Plane Y-Z:
G19 G02 (or G03) Y... Z... R... (or J... K... ) F... ;
Before the circle radius programming (with G02, G03), one must first select the desired
interpolation plane with G17, G18 or G19. Circular interpolation is not allowed for the 4th and
5th axes, if these are linear axes.
Plane selection is also used to select the plane in which the tool radius compensation (G41/G42)
is performed. The Plane X-Y (G17) is automatically set after activating the control system.
G17
X-Y plane
G18
Z-X plane
G19
Y-Z plane
The working planes should be specified, in general.
Circles can also be created outside the selected working plane. In this case, the axis addresses
(specification of circle end positions) determine the circular plane.
Circular interpolation is possible in the Xβ, Zβ or Yβ plane while selecting an optional 5th linear
axis, which also contains a 5th axis besides the X-Y, Y-Z and Z-X planes (β=U, V or W)
• Circular interpolation in the Xβ plane
G17 G02 (or G03) X... β... R... (or I... J... ) F... ;
• Circular interpolation in the Zβ plane
G18 G02 (or G03) Z... β... R... (or K... I... ) F... ;
ISO Milling
26
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Drive commands
3.1 Interpolation commands
• Circular interpolation in the Yβ plane
G19 G02 (or G03) Y... β... R... (or J... K... ) F... ;
• If the address characters for the 4th and 5th axes are omitted - such as in the commands
"G17 G02 X... R... (or I... J... ) F... ;", then the X-Y plane is selected automatically as the
interpolation plane. Circular interpolation with the 4th and 5th axes is not possible if these
additional axes are rotary axes.
Direction of rotation
The direction of rotation of the circular arc is to be specified as given in the following figure.
G02
clockwise
G03
counterclockwise
< D[LV
; D[LV
= D[LV
*
*
*
*
*
*
; D[LV
= D[LV
< D[LV
3ODQH ; < *
3ODQH = ; *
3ODQH < = *
Figure 3-3
Direction of rotation of the circular arc
End point
The end point can be specified corresponding to the definition with G90 or G91 as absolute or
incremental (not in G Code System A!).
If the specified end point does not lie on the circular arc, the system outputs Alarm 14040 "Error
in end point of circle".
Possibilities of programming circular movements
The control system offers two options of programming circular movements.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
27
Drive commands
3.1 Interpolation commands
The circular motion is described by the:
• Center point and end point in the absolute or incremental dimension (default)
• Radius and end point in Cartesian coordinates
For a circular interpolation with a central angle <= 180 degree, the programming should be
"R > 0" (positive).
For a circular interpolation with a central angle > 180 degree, the programming should be "R
< 0" (negative).
3URJUDPPLQJ H[DPSOH
*
*
;
< 5s
)
r RU JUHDWHU
(QG SRLQW
r RU OHVVHU
5
5!
6WDUW SRLQW
Figure 3-4
Circular interpolation with specification of Radius R
Feed
During the circular interpolation, the feed can be specified exactly as during linear interpolation
(see Chapter "Linear interpolation (G01)").
3.1.4
Contour definition programming and addition of chamfers or radiuses
Chamfers or radii can be inserted after each traversing block between linear and circular
contours. For example, to deburr sharp workpiece edges.
The following combinations are possible when inserting:
• between two straight lines
• between two circular arcs
• between a circular arc and a straight line
• between a straight line and a circular arc
Format
,A...;Angle
,C...;Chamfer
ISO Milling
28
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Drive commands
3.1 Interpolation commands
,R...;Rounding
Example
N10 G1 X10. Y100. F1000 G17
N20 ,A140 C7.5
N30 X80. Y70. ,A95.824 R10
;
;
=
;
=
5DGLXV
r
5
&KDPIHU
;
=
r
;
=
=
Figure 3-5
3 straight lines
ISO dialect mode
In the ISO dialect, address A or C can be used as axis name, to designate an angle as well as also
to designate an angle or a chamfer on the contour.
Address R can either be a cycle parameter or an identifier for the radius of a contour.
To differentiate between these two possibilities, a comma "," must be used when programming
the contour definition before the address "A", "R" or "C". If an angle is programmed before "C" or
"R", then an additional comma does not have to be set. When a radius and a chamfer are
programmed together in a block, e.g.
N333 X100 ,A10 C20 R15, regardless of the programming sequence a radius is always inserted
in the contour. The chamfer is ignored.
Siemens mode
The identifiers for chamfer and radius are defined in the Siemens mode using the machine data.
Name conflicts can be avoided this way. There should be no comma before the identifier for the
radius or chamfer. The following machine data (MD) is used:
MD for the radius: $MN_RADIUS_NAME
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
29
Drive commands
3.1 Interpolation commands
MD for the chamfer: $MN_CHAMFER_NAME
Selecting the plane
Chamfering or corner rounding is possible only in the plane specified through the plane selection
(G17, G18 or G19). These functions cannot be used on parallel axes.
Note
No chamfer/rounding is inserted, if
• No straight- or circular contour is available in the plane,
• A movement takes place outside the plane,
• The plane is changed or a number of blocks specified in the machine data, which do not
contain any information about traversing (e.g., only command outputs), is exceeded.
Coordinate system
After a block that changes the coordinate system (G92 or G52 to G59) or that contains a
command for reference point approach (G28 to G30), then it is neither permissible to have a
command for chamfering nor for rounding corners.
Thread cutting
It is not permissible to specify corner rounding in thread cutting blocks.
ISO Milling
30
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Drive commands
3.1 Interpolation commands
3.1.5
Helical interpolation (G02, G03)
With helical interpolation, two motions are superimposed and executed in parallel:
• A plane circular motion on which
• A vertical linear motion is superimposed.
3URJUDPPLQJ H[DPSOH
=
*
*
;
<
5
=
)
(QG SRLQW
<
)
5
6WDUW SRLQW
;
Figure 3-6
Helical interpolation
Note
G02 and G03 are modal. The circular motion is performed in those axes that are defined by
the specification of the working plane.
For detailed description of the interpolation parameters in case of helical interpolation, refer
to "Programming Manual Fundamentals".
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
31
Drive commands
3.1 Interpolation commands
3.1.6
Involute interpolation (G02.2, G03.2)
Overview
The involute of a circle is a curve traced out from the end point on a "piece of string" unwinding
from the curve. The involute interpolation allows trajectories along an involute. It is executed in
the plane in which the base circle is defined. If the starting point and the end point are not in this
plane, then, analogous to the helical interpolation for circles, there is a superimposition to a
curve in space.
<
1
HQG SRLQW
;
<
1
1
&5
1
VWDUW SRLQW
;
;
<
An involute can be traversed in space in case of additional specification of paths vertical to the
active plane.
Format
G02.2 X... Y... Z... I... J... K... R
G03.2 X... Y... Z... I... J... K... R
G02.2:
Travel on an involute in clockwise direction
G03.2:
Travel on an involute in counterclockwise direction
X Y Z:
End point in Cartesian coordinates
I J K:
Center of the base circle in cartesian coordinates
R:
Radius of the base circle
ISO Milling
32
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Drive commands
3.1 Interpolation commands
Supplementary conditions
Both the starting point and the end point must be outside the area of the base circle of the
involute (circle with radius R around the center point specified by I, J, K). If this condition is not
satisfied, an alarm is generated and the program execution is aborted.
Note
For more information about machine data and supplementary conditions that are relevant to
involute interpolation, please see
References: /FB1/, A2 Chapter "Settings for involute interpolation".
3.1.7
Cylindrical interpolation (G07.1)
Randomly running grooves can be cut on cylindrical workpieces with Function G07.1 (cylindrical
interpolation). The path of the grooves is programmed with reference to the unwinded, plane
surface of the cylinder.
The G functions specified below can be used to switch the operation of cylindrical interpolation
on or off.
Table 3-3
G functions for activating/deactivating the cylindrical interpolation
G function
Function
G group
G07.1
Operation with cylindrical interpolation
16
Format
G07.1 A (B, C) r
;Activation of operation with cylindrical interpolation
G07.1 A (B, C) 0
;Deselection of operation with cylindrical interpolation
A, B, C: Address of the rotary axis
r: Radius of the cylinder
No other commands should be present in the block containing G07.1.
The G07.1 command is modal. Once G07.1 is specified, the cylindrical interpolation remains
active till G07.1 A (B, C) is deselected. The cylindrical interpolation is deactivated in closed
position or after NC RESET.
Note
G07.1 is based on the Siemens option TRACYL. Appropriate machine data is to be set for this.
The corresponding data on this is available in the manual "Extended Functions", Section M1,
TRACYL.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
33
Drive commands
3.1 Interpolation commands
Programming example
At the cylindrical plane (it arises because the circumference of a cylindrical workpiece is rolled
off), in which the Z-axis is accepted as the linear axis and the A-axis as the rotary axis, the
following program is written:
Figure 3-7
G07.1 - Programming example
Program
M19
G40
G00 Z30. A-10.
G07.1 A57.296
;Operation with cylindrical interpolation ON
;(workpiece radius = 57.926)
G90
G42 G01 A0 F200
G00 X50.
G01 A90. F100
G02 A120. Z60. R30
G01 Z90.
Z120. A150.
Z150.
G03 Z150. A210. R30.
G02 Z120. A240. R30
G01 A300.
Z30. A330.
A360.
G00 X100.
G40 G01 A370.
G07.1 A0
;Operation with cylindrical interpolation OFF
G00 A0
ISO Milling
34
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Drive commands
3.1 Interpolation commands
Programming in operation with cylindrical interpolation
Only the following G functions can be used in cylindrical interpolation: G00, G01, G02, G03,
G04, G40, G41, G42, G65, G66, G67, G90, G91 and G07.1. In operation with G00 only those
axes can be used that are not involved at the cylindrical plane.
The following axes cannot be used as a positioning axis or a reciprocating axis:
1. The geometry axis in the peripheral direction of the surface of the cylinder (Y axis)
2. The additional linear axis for groove side offset (Z axis)
Relations between the cylindrical interpolation and operations with reference to the coordinate
system
• The functions mentioned below should not be used in operation with cylindrical
interpolation.
- Mirroring
- Scaling (G50, G51)
- Rotation of the coordinate system (G68)
- Setting the basic coordinate system
• The relevant overrides (rapid traverse, JOG, spindle speed) are effective.
• On deselecting this operation with cylindrical interpolation, the interpolation plane that was
selected before the operation with the cylindrical interpolation was called becomes active
again.
• To perform the tool length compensation, the command for the tool length compensation is
to be written before specifying the G07.1 command.
• The work offset (G54 - G59) is also to be written before specifying the G07.1 command.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
35
Drive commands
3.2 Reference point approach with G functions
3.2
Reference point approach with G functions
3.2.1
Reference point approach with intermediate point (G28)
Format
G28 X... Y... Z... ;
The commands "G28 X... Y... Z... ;" can be used to traverse the programmed axes to their
reference point. Here, the axes are first traversed to the specified position with rapid traverse,
and from there to the reference point automatically. The axes not programmed in the block with
G28 are not traversed to their reference point.
Reference position
When the machine has been powered up (where incremental position measuring systems are
used), all the axes must approach their reference mark. Only then can traversing movements be
programmed. The reference point can be approached in the NC program with G28. The
reference point coordinates are defined with the machine data 34100 $_MA_REFP_SET_POS[0]
up to [3]). A total of four reference positions can be defined.
3URJUDPPLQJ H[DPSOH
*
*
*
;
<
=
= D[LV
5HIHUHQFH SRLQW
D IL[HG SRLQW LQ WKH PDFKLQH
'HOD\ RI = D[LV /6
3RVLWLRQLQJ
%
5HWXUQ WR UHIHUHQFH SRLQW
$
,QWHUSRODWLRQ SRLQW DV LQWHUPHGLDWH SRLQW
6WDUW SRLQW
GXULQJ SRVLWLRQLQJ
=
'HOD\ RI < D[LV /6
<
< D[LV
Figure 3-8
Automatic reference point approach
ISO Milling
36
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Drive commands
3.2 Reference point approach with G functions
Return to reference point
Note
The G28 function is implemented with the shell cycle cycle328.spf. A transformation must not
be programmed for an axis which is to approach the reference point with G28 which must
approach the reference mark. The transformation is deactivated in cycle328.spf with command
TRAFOOF.
Automatic reference point approach for rotary axes
Rotary axes can be used for automatic reference point approach exactly as linear axes. The
approach direction of the reference traverse is defined with the machine data 34010 MD_
$MA_REFP_CAM_DIR_IS_MINUS.
%
%
$
$
r
r
r
r
5HWXUQ WR UHIHUHQFH SRLQW 7KH SRVLWLYH WUDYHUVLQJ GLUHFWLRQ ZDV VHOHFWHG DV WKH
GLUHFWLRQ RI UHWXUQ WR WKH UHIHUHQFH SRLQW
Figure 3-9
Return to reference point - rotary axes
Additions to the commands for automatic reference point approach:
Tool radius compensation and defined cycles
G28 should not be used in operation with tool radius compensation (G41, G42) or in a defined
cycle!
WARNING
Deactivation of the tool radius compensation
G28 is used to interrupt the tool radius compensation (G40) with eventual axis traverse
movement to the reference point. Hence, tool radius compensation is to be deactivated before
G28 is issued.
Tool offset in G28
In G28, the interpolation point is approached with the current tool offset. The tool offset is
deselected when the reference point is finally approached.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
37
Drive commands
3.2 Reference point approach with G functions
3.2.2
Checking the reference position (G27)
Format
G27 X... Y... Z... ;
This function is used to check whether the axes are on their reference point.
Test procedure
If the check with G27 is successful, the processing is continued with the next part program block.
If one of the axes programmed with G27 is not on the reference point, Alarm 61816 "Axes not
on reference point" is triggered and the Automatic mode is interrupted.
Note
Function G27 is implemented with the cycle cycle 328.spf as with G28.
To avoid a positioning error, the function "mirroring" should be deselected before executing G27.
3.2.3
Reference point approach with reference point selection (G30)
Format
G30 Pn X... Y... Z... ;
For the commands "G30 Pn X... Y... Z;" the axes are positioned on the specified intermediate
point in the continuous-path mode, and finally traversed to the reference point selected with P2
- P4. With "G30 P3 X30. Y50.;", the X- and Y-axes return to the third reference point. The second
reference point is selected on omitting "P". Axes that are not programmed in a G30 block are also
not traversed.
Reference point positions
The positions of all the reference points are always determined in relation to the first reference
point. The distance of the first reference point from all subsequent reference points is set in the
following machine data:
Table 3-4
Reference points
Element
MD
2nd reference point
$_MA_REFP_SET_POS[1]
3rd reference point
$_MA_REFP_SET_POS[2]
4th reference point
$_MA_REFP_SET_POS[3]
ISO Milling
38
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Drive commands
3.2 Reference point approach with G functions
Note
Further details of the points that were considered in the programming of G30 can be found in
Section "Reference point approach with intermediate point (G28)". Function G30 is
implemented with cycle 330.spf.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
39
Drive commands
3.2 Reference point approach with G functions
ISO Milling
40
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Motion commands
4
4.1
The coordinate system
The position of a tool is defined uniquely by its coordinates in the coordinate system. These
coordinates are defined through axis positions. If, for instance, the three involved Axes are
denoted by X, Y and Z, the coordinates are specified as follows:
X... Y... Z...
=
<
;
Figure 4-1
Tool positions specified with X... Y... Z...
The following coordinate systems are used to specify the coordinates:
1. Machine coordinate systems (G53)
2. Workpiece coordinate system (G92)
3. Local coordinate system (G52)
4.1.1
Machine coordinate systems (G53)
Defining machine coordinate system
The machine zero defines the machine coordinate system MCS. All other reference points refer
to the machine zero.
The machine zero is a fixed point on the machine tool which can be referenced by all (derived)
measuring systems.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
41
Motion commands
4.1 The coordinate system
This is not necessary if an absolute measuring system is used.
Format
(G90) G53 X... Y... Z... ;
X, Y, Z: absolute dimension word
Selection of machine coordinate system (G53)
G53 suppresses the programmable and adjustable work offset . Traversing in the machine
coordinate system on the basis of G53 are always programmed if the tool is to traverse to a
machine-specific position.
Compensation deselection
If MD10760 $MN_G53_TOOLCORR = 0, then the active tool length and tool radius compensation
remains active in a block with G53
If MD10760 $MN_G53_TOOLCORR = 1, then the active tool length and tool radius
compensations in a block are suppressed with G53.
Reference
MD24004 $MC_CHBFRAME_POWERON_MASK, Bit 0 is used to define whether channel-specific
basic frames during Power On are to be reset.
Displacements and rotations are set to 0, scalings to 1.
Mirroring is switched off.
Value = 0: Basic frame is retained at Power ON
Value = 1: Basic frame is reset at Power On.
0DFKLQH FRRUGLQDWH V\VWHP
0DFKLQH ]HUR
˟
˞
5HIHUHQFH SRVLWLRQ
Figure 4-2
Reference
ISO Milling
42
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Motion commands
4.1 The coordinate system
4.1.2
Workpiece coordinate system (G92)
Before machining, you must create a coordinate system for the workpiece, the so-called work
piece coordinate system. This section describes different methods of setting, selecting and
changing a workpiece coordinate system.
Setting a tool coordinate system
The following two methods can be used to set a tool coordinate system:
1. With G92 in the part program
2. manually through the HMI operator panel
Format
(G90) G92 X... Y... Z... ;
The base point traverses to the specified position on outputting an absolute command. The
difference between tool tips and the base point is compensated through the tool length
compensation; this way the tool tip can traverse to the target position in any case.
4.1.3
Resetting the tool coordinate system (G92.1)
With G92.1 X.. (G Code System A with G50.3 P0) one can reset a shifted coordinate system
before the shift. The tool coordinate system is reset to the coordinate system that is defined by
the active adjustable work offsets (G54-G59). The tool coordinate system is set to the reference
position if no adjustable work offset is active. G92.1 resets shifts carried out through G92 or G52.
However, only the axes that are programmed, are reset.
Example 1:
N10 G0 X100 Y100
;Display: WCS: X100 Y100
MCS: X100 Y100
N20 G92 X10 Y10
;Display: WCS: X10 Y10
MCS: X100 Y100
N30 G0 X50 Y50
;Display: WCS: X50 Y50
MCS: X140 Y140
N40 G92.1 X0 Y0
;Display: WCS: X140 Y140
MCS: X140 Y140
Example 2:
N10 G10 L2 P1 X10 Y10
N20 G0 X100 Y100
;Display: WCS: X100 Y100
MCS: X100 Y100
N30 G54 X100 Y100
;Display: WCS: X100 Y100
MCS: X110 Y110
N40 G92 X50 Y50
;Display: WCS: X50 Y50
MCS: X110 Y110
N50 G0 X100 Y100
;Display: WCS: X100 Y100
MCS: X160 Y160
N60 G92.1 X0 Y0
;Display: WCS: X150 Y150
MCS: X160 Y160
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
43
Motion commands
4.1 The coordinate system
4.1.4
Selection of a workpiece coordinate system
As mentioned above, the user can select one of the already set workpiece coordinate systems.
1. G92
Absolute commands function in connection with a workpiece coordinate system only if a
workpiece coordinate system was selected earlier.
2. Selection of a workpiece coordinate system from a selection of specified workpiece
coordinate systems via the HMI operator panel
A workpiece coordinate system can be selected by specifying a G function in the area G54 to
G59 and G54 P{1...100}.
Workpiece coordinate systems are setup after the reference point approach after Power On.
The closed position of the coordinate system is G54.
4.1.5
Writing work offset/tool offsets (G10)
The workpiece coordinate systems defined through G54 to G59 or G54 P{1 ... 93} can be
changed with the following two processes.
1. Data inputting at HMI operator panel
2. with the program commands G10 or G92 (setting actual value, spindle speed limitation)
Format
Modified by G10:
G10 L2 Pp X... Y... Z... ;
p=0:
External workpiece work offset
p=1 to 6:
The value of the workpiece work offset corresponds to the workpiece coordi-
nate system G54 to G59 (1 = G54 to 6 = G59)
X, Y, Z:
Workpiece work offset for each axis during an absolute command (G90). Value
that must be added during an incremental command (G91) for each axis to
the specified workpiece work offset.
G10 L20 Pp X... Y... Z... ;
p=1 to 93:
The value of the workpiece work offset corresponds to the workpiece coordi-
nate system G54 P1 ... P93. The number of work offsets (1 to 93) can be set
through MD18601 $MN_MM_NUM_GLOBAL_USER_FRAMES or MD28080
$MC_MM_NUM_USER_FRAMES.
X, Y, Z:
Workpiece work offset for each axis during an absolute command (G90). Value
that must be added during an incremental command (G91) for each axis to
the specified workpiece work offset.
Modified by G92:
G92 X... Y... Z... ;
ISO Milling
44
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Motion commands
4.1 The coordinate system
Explanations
Modified by G10:
G10 can be used to change each workpiece coordinate system individually. If the work offset
with G10 is to be written only when the G10 block is executed on the machine (main run block),
then MD20734 $MC_EXTERN_FUNCTION_MASK, Bit 13 must be set. An internal STPPRE is
executed in that case with G10. The machine data bits affect all G10 commands in the ISO Dialect
T and ISO Dialect M.
Modified by G92:
By specifying G92 X... Y... Z..., a workpiece coordinate system that was selected earlier with a G
command G54 to G59 or G54 P{1 ...93}, can be shifted and thus a new workpiece coordinate
system can be set. If X, Y and Z are programmed incrementally, the workpiece coordinate system
is defined in such a way that the current tool position matches the total of the specified
incremental value and the coordinates of the previous tool position (shift of coordinate system).
Finally, the value of the coordinate system shift is added to each individual value of the
workpiece work offset. To put it another way: All workpiece coordinate systems are shifted
systematically by the same value.
Example
The tool in operation with G54 is positioned at (190, 150), and the workpiece coordinate system
1 (X' - Y') is created each time in G92X90Y90 with a shift of Vector A.
<
<ಫ
* :RUNSLHFH FRRUGLQDWH V\VWHP
7RRO SRVLWLRQ
;ಫ
$
;
Figure 4-3
Example of setting coordinates
4.1.6
Local coordinate system (G52)
For programming simplification, a type of workpiece coordinate system can be setup to create
a program in the workpiece coordinate system. This part coordination system is also called local
coordinate system.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
45
Motion commands
4.1 The coordinate system
Format
G52 X... Y... Z... ; Setting the local coordinate system
G52 X0 Y0 Z0 ; Deselection of the local coordinate system
X, Y, Z: Origin of the local coordinate system
Explanations
G52 can be used to program work offsets for all path and positioning axes in the direction of the
specified axis. This way one can work with changing zero points, e.g. during repetitive
machining operations at different workpiece positions.
G52 X... Y... Z... is a work offset around the offset values programmed in the relevant specified
axis directions. The last specified adjustable work offset (G54 to G59, G54 P1 - P93) serves as
reference.
* :RUNSLHFH FRRUGLQDWH V\VWHP
ORFDO FRRUGLQDWH V\VWHP
*
ORFDO FRRUGLQDWH V\VWHP
*
*
*
* :RUNSLHFH FRRUGLQDWH V\VWHP
0DFKLQH FRRUGLQDWH V\VWHP
2ULJLQ RI PDFKLQH FRRUGLQDWH V\VWHP
5HIHUHQFH SRLQW
Figure 4-4
Setting the local coordinate system
4.1.7
Selection of the plane (G17, G18, G19)
The selection of the plane in which the circular interpolation, tool radius compensation and
rotation of the coordinate system took place is done by specifying the following G functions.
Table 4-1
G functions for selecting the plane
G function
Function
G group
G17
X-Y plane
02
G18
Z-X plane
02
G19
Y-Z plane
02
The plane is defined as described below (with the help of the example of Plane X-Y):
ISO Milling
46
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Motion commands
4.1 The coordinate system
The horizontal axis in the first quadrant is the Axis +X, and the vertical axis in the same quadrant
is Y-.
< D[LV
; D[LV
Figure 4-5
Selection of plane
• The Plane X-Y (G17) is selected automatically after activating the control system.
• The command for moving an individual axis can be specified independently of the plane
selection by G17, G18 or G19. Thus for instance, the Z axis can be shifted by specifying "G17
Z
;".
• The plane in which the tool radius compensation is executed with G41 or G42 is defined by
specifying G17, G18 or G19.
4.1.8
Parallel axes (G17, G18, G19)
An axis located parallel to one of the three main axes of the coordinate system can be activated
by using the function G17 (G18, G19) <Axis name>.
The three main axes are, e.g., X, Y and Z.
Example
G17 U0 Y0
The parallel axis U is activated when the X axis in the G17 plane is replaced.
Explanations
• An associated parallel axis can be defined for each geometry axis with machine data
$MC_EXTERN_PARALLEL_GEOAX[ ].
• Only geometry axes from a plane defined with (G17, G18, G19) can be replaced.
• On replacing the axes, normally all shifts (frames) - with the exception of the handwheel and
external shifts, the working area limitation and the protection areas - are deleted. The
following machine data is to be set to prevent the values from being deleted:
Shifts (frames)
$MN_FRAME_GEOAX_CHANGE_MODE
Protection areas
$MC_PROTAREA_GEOAX_CHANGE_MODE
Working area limitation
$MN_WALIM_GEOAX_CHANGE_MODE
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
47
Motion commands
4.1 The coordinate system
• Details are available in the machine data description.
• Alarm 12726 "Impermissible plane selection with parallel axes" is output if a main axis is
programmed along with the associated parallel axis with a command for selecting the plane.
4.1.9
Rotation of the coordinate system (G68, G69)
Properties of G68 and G69
A coordinate system can be rotated with the following G functions.
Table 4-2
G functions for rotating a coordinate system
G function
Function
G group
G68
Rotation of the coordinate system
16
G69
Deselection of Rotation of the coordinate system
16
G68 and G69 are modal G functions of the G group 16. G69 is set automatically on activating the
control system and resetting the NC.
The blocks containing G68 and G69 should not contain any other G functions.
The rotation of the coordinate system is called with G68 and deselected with G69.
Format
G68 X_ Y_ R_ ;
X_, Y_ :
Absolute coordinate values of the rotation center. The actual position is accepted as the rotation
center if these are omitted.
R_ :
ISO Milling
48
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Motion commands
4.1 The coordinate system
Angle of rotation as a function of G90/G91 absolute or incremental. If R is not specified, the value
of the channel-specific setting from the setting data 42150 $SC_DEFAULT_ROT_FACTOR_R is
used as angle of rotation.
• By specifying G17 (or G18, G19) G68 X... Y... R... ; " the commands specified in the following
blocks are rotated by the angle specified with R around the point (X, Y). The angle of rotation
can be specified in units of 0.001 degree.
; < &HQWHU RI URWDWLRQ
5
$QJOH RI URWDWLRQ ಯ ಯ PHDQV URWDWLRQ LQ
FRXQWHU FORFNZLVH GLUHFWLRQ LV WR EH
VSHFLILHG DV DEVROXWH YDOXH
5
;<
Figure 4-6
Rotation of a coordinate system
• The deselection of the coordinate system rotation takes place through G69.
• G68 is executed in the plane that was selected through G68. The 4th and 5th axes must be
linear axes.
G17: X-Y plane
G18: Z-X plane
G19: Y-Z plane
Additions to the commands for rotating the coordinate systems
• To rotate a coordinate system, MD28081 $MC_MM_NUM_BASE_FRAMES must be set to a
value of >= 3.
• If "X" and "Y" are omitted, the current position is used as the rotation center for the coordinate
rotation.
• The positional data for the rotation of a coordinate system are specified in the rotated
coordinate system.
• If you program a change of plane (G17 to G19) after a rotation, the angles of rotation
programmed for the axes are retained and continue to apply in the new working plane. It is
therefore advisable to deactivate the rotation before a change of plane.
4.1.10
3D rotation G68/G69
The G code G68 is extended for 3D rotation.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
49
Motion commands
4.1 The coordinate system
Format
G68 X.. Y.. Z.. I.. J.. K.. R..
X.. Y.. Z..:
Coordinates of the pivot point related to the current workpiece zero. If no coor-
dinate is programmed, the pivot point lies in the workpiece zero. The value is
always interpreted as absolute. The coordinates of the pivot point act as a work
offset. G90/G91 in the block does not affect the G68 command.
I.. J.. K..:
Vector in pivot point. The coordinate system is rotated around this vector at
angle R.
R..:
Angle of rotation. The angle of rotation is always absolute. If no angle is pro-
grammed, the angle from the setting data 42150 $SA_DEFAULT_ROT_FAC-
TOR_R is active. G68 must be alone in the block.
The 2D or 3D rotation differentiation takes place only through the programming of the vector I,
J, K. If there is no vector in the block, G68 2DRot is selected. If there is a vector in the block, G68
3DRot is selected.
If a vector is programmed with the length 0 (I0, Y0, K0), the Alarm 12560 "Programmed value
outside the permissible limits" is triggered.
Two rotations can be switched one after the other with G68. If so far no G68 is active in a block
containing G68, then the rotation is written to the channel-specific basic frame 2. If G68 is
already active, the rotation is written to the channel-specific basic frame 3. Thus, both rotations
follow one another.
The 3D rotation is ended with G69. If two rotations are active, both are deselected with G69. G69
must not be alone in the block.
ISO Milling
50
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Motion commands
4.2 Defining the input modes of the coordinate values
4.2
Defining the input modes of the coordinate values
4.2.1
Absolute/incremental dimensioning (G90, G91)
Whether the dimensions after an axis address should be absolute or relative (incremental) is
specified with these G commands.
Properties of G90, G91
Table 4-3
G commands for defining the absolute/incremental dimensioning
G command
Function
G group
G90
Absolute dimensioning
03
G91
Incremental dimensioning
03
• G90 and G91 are modal G functions of the G group 03. If G90 and G91 are programmed in
the same block, the last G function in the block is effective.
• The closed position of G90 or G91 is set in machine data MD20154
$MC_EXTERN_GCODE_RESET_VALUES[2].
Format
• The programmed values are interpreted as absolute axis positions for all axis positions
programmed according to G90, e.g. X, Y, Z.
• The programmed values are interpreted as incremental axis positions for all axis positions
programmed according to G91, e.g. X, Y, Z.
<
$EVROXWH GLPHQVLRQ *
<
,QFUHPHQWDO GLPHQVLRQ *
3
3
3
3
3
3
;
;
Figure 4-7
Absolute and incremental dimensioning (G90, G91)
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
51
Motion commands
4.2 Defining the input modes of the coordinate values
4.2.2
Inch/metric input (G20, G21)
Workpiece-related axes can be programmed in metric or inch dimensions alternately, depending
on the dimensioning in the production drawing. The input unit is selected with the following G
functions.
Table 4-4
G command for selecting the unit of measurement
G command
Function
G group
G20
Input in "inch"
06
G21
Input in "mm"
06
Format
G20 and G21 are always to be programmed at the start of the block and should not exist along
with other commands in a block. The following values are processed in the selected unit of
measurement while executing the G function for selecting the unit of measurement: All the
following programs, offset values, certain parameters as well as certain manual operation and
readout data.
*
*
'HILQLQJ WKH LQSXW IRUPDW LQFK
Figure 4-8
Programming example
Additions to the commands for defining the unit of measurement
• The closed position is defined via the machine data MD20154
$MC_EXTERN_GCODE_RESET_VALUES[5].
• During changeover, the values of the work offsets are changed completely.
• If the unit of measurement is changed over during program execution, the following must be
executed in advance:
While using a workpiece coordinate system (G54 to G59), this is to be traced back to the basic
coordinate system.
All tool offsets are to be deactivated (G41 to G48).
• The following is to be done after switching the measuring system from G20 to G21:
G92 must be executed before specifying the traversing commands for the axes (to setup the
coordinate system).
• G20 and G21 are not used to switch the hand wheel- and incremental weighting. This takes
place through the PLC program. The machine data responsible for this is called
$MA_JOG_INCR_WEIGHT.
ISO Milling
52
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Motion commands
4.2 Defining the input modes of the coordinate values
4.2.3
Scaling (G50, G51)
Properties of G50, G51
The form defined by a part program can be enlarged or reduced according to the required scale.
The desired scaling can be selected and deselected via the following functions.
Table 4-5
G functions for selecting the scale
G command
Function
G group
G50
Scaling OFF
11
G51
Scaling ON
11
The selection for scaling and mirroring takes place with G51. A distinction is made between two
options in scaling:
• Axial scaling with the parameters I, J, K
If I, J, K is not programmed in the G51 block, the relevant default value from the setting data
43120 $A_DEFAULT_SCALE_FACTOR_AXIS is effective.
Negative axial scaling factors lead additionally to mirroring.
• Scaling in all axes with the scaling factor P
If P is not written in the block G51, the default value from the setting data is effective.
Negative P values are not possible.
Format
There are two different types of scaling.
Scaling along all axes with the same scaling factor
G51 X... Y... Z... P... ; Start scaling
G50; Deselection of scaling
X, Y, Z: Center coordinate value for the scaling (absolute command)
P: Scaling factor
Scaling along each individual axis with different scaling factors
G51 X... Y... Z... I... J... K... ; Start scaling
G50; Deselection of scaling
X, Y, Z: Reference point of scaling (absolute command)
I, J, K: Scaling factor for the X-, Y- and Z-axis
The type of the scaling factor depends on MD22914 $MC_AXES_SCALE_ENABLE.
$MC_AXES_SCALE_ENABLE = 0:
The scaling factor is specified with "P". If "I,J,K" is programmed in this setting, the setting data
42140 $SC_DEFAULT_SCALE_FACTOR_P is used for the scaling factor.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
53
Motion commands
4.2 Defining the input modes of the coordinate values
$MC_AXES_SCALE_ENABLE = 1:
The scaling factor is specified with "I,J,K". If only "P" is programmed in this MD setting, the setting
data 43120 $SA_DEFAULT_SCALE_FACTOR_AXIS is used for the scaling factors.
Weighting of scaling factors
The scaling factors are multiplied either with 0.001 or 0.00001. The factors are selected with
MD22910 $MC_WEIGHTING_FACTOR_FOR_SCALE=0, scaling factor 0.001,
$MC_WEIGHTING_FACTOR_FOR_SCALE=1, scaling factor 0.00001.
The workpiece zero is always the reference point for the scaling. A reference point cannot be
programmed.
Programmable mirroring (negative scaling)
A mirror image can be created with a negative value of the axial scaling factor.
To do this, MD22914 $MC_AXES_SCALE_ENABLE = 1 must be active. If I, J or. K is omitted from
the blocks with G51, the values preset in the setting data 43120
$SA_DEFAULT_SCALE_FACTOR_AXIS are activated.
Example
_N_0512_MPF
;(Part program)
N01 G291
N10 G17 G90 G00 X0 Y0
;Start position for the approach motion
N30 G90 G01 G94 F6000
N32 M98 P0513
;1) Contour programmed as in the subroutine
N34 G51 X0. Y0. I-1000 J1000
;2) Contour, mirrored on X
N36 M98 P0513
N38 G51 X0. Y0. I-1000 J-1000
;3) Contour, mirrored on X and Y
N40 M98 P0513
N42 G51 X0. Y0. I1000 J-1000
;4) Contour, mirrored on Y
N44 M98 P0513
N46 G50
;Deselection of scaling and mirroring
N50 G00 X0 Y0
N60 M30
_N_0513_MPF
;(Subroutine of 00512)
N01 G291
N10 G90 X10. Y10.
N20 X50
N30 Y50
N40 X10. Y10.
N50 M99
ISO Milling
54
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Motion commands
4.2 Defining the input modes of the coordinate values
6WDUW SRLQW
Figure 4-9
Scaling for each axis and programmable mirroring
Tool offset
This scaling is not valid for cutter radius compensations, tool length compensations and tool
offset values.
Commands for reference point approach and for changing the coordinate system
The G27, G28 and G30 functions as well as commands related to the coordinate system (G52 to
G59, G92), should not be used when scaling is active.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
55
Motion commands
4.2 Defining the input modes of the coordinate values
4.2.4
Programmable mirroring (G50.1, G51.1)
G51.1 can be used to mirror workpiece shapes on coordinate axes. All programmed traversing
movements are then executed as mirrored.
<
$[LV RI V\PPHWU\ ;
$[LV RI V\PPHWU\
<
;
3URJUDPPHG FRQWRXU RULJLQDO
6\PPHWULFDO PDSSLQJ ZLWK UHIHUHQFH WR WKH OLQH WKDW UXQV SDUDOOHO WR < DQG LQWHUVHFWV ; DW
6\PPHWULFDO PDSSLQJ ZLWK UHIHUHQFH WR WKH 3RLQW
6\PPHWULFDO PDSSLQJ ZLWK UHIHUHQFH WR WKH OLQH WKDW UXQV SDUDOOHO WR ; DQG LQWHUVHFWV < DW
Figure 4-10
Programmable Mirroring
Format
X, Y, Z: Positions and mirroring axis
G51.1: Command for activating the mirroring
Mirroring takes place on a mirroring axis which is parallel to X, Y or Z and whose position is
programmed with X, Y or Z. G51.1 X0 is used to mirror on the X axis, G51.1 X10 is used to mirror
on a mirroring axis that runs 10 mm parallel to the X axis.
Example
N1000 G51.1 X... Y... Z...
; Activate mirroring
;
All the axis positions mirrored in the following
;
blocks are mirrored at the mirroring axis programmed
; in N1000
ISO Milling
56
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Motion commands
4.2 Defining the input modes of the coordinate values
;
;
;
G50.1 X... Y... Z..
; Deselection of programmable mirroring
Required machine data
G51.1 uses the channel-specific basic frame [1]. Hence, MD28081
$MC_MM_NUM_BASE_FRAMES > = 2 is to be set.
Mirroring with reference to a single axis in a specified plane
The following commands can change if the mirroring is used on one of the axes in the specified
plane as described below:
Table 4-6
Individual axes in specified plane
Command
Explanation
Circular interpolation
G02 and G03 are exchanged mutually
Cutter radius compensation
G41 and G42 are exchanged with each other
Coordinate rotation
The "clockwise" (CW) and "counter-clockwise" (CCW) directions of rota-
tion are exchanged mutually.
Commands for reference point approach and for changing the coordinate system
The G27, G28 and G30 functions as well as commands related to the coordinate system (G52 to
G59, G92, etc), should not be used when mirroring is active.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
57
Motion commands
4.3 Time-controlled commands
4.3
Time-controlled commands
4.3.1
Dwell time (G04)
One can use G04 to interrupt workpiece machining between two NC blocks for a programmed
time/number of spindle revolutions, e.g. for backing off.
One can set with MD20734 $MC_EXTERN_FUNCTION_MASK, whether the dwell time for Bit 2
is to be interpreted as time (s or ms) or alternatively as spindle revolutions. If
$MC_EXTERN_FUNCTION_MASK, Bit 2=1 is set, the dwell time is interpreted in seconds if G94
is active; it is specified in spindle revolutions (R) if G95 is selected.
Format
G04 X_; or G04 P_;
X_: Time display (commas possible)
P_: Time display (commas not possible)
• The dwell time (G04 ..) must be programmed alone in a block.
If the values of X and U are programmed in the standard notation (without decimal point), they
are converted to internal units, depending on IS B, IS C (for input resolution, see Chapter
"Decimal point programming"). P is always interpreted in internal units.
N5 G95 G04 X1000
Standard notation: 1000*0.001 = 1 Spindle revolution
Calculator notation: 1000 spindle revolutions
ISO Milling
58
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Motion commands
4.4 Tool offset functions
4.4
Tool offset functions
4.4.1
Tool offset data memory
The Siemens tool data memory must be used, as programs in the Siemens Mode and in the ISO
Direct Mode must run alternately on the control system. Hence, length, geometry and wear
exists in each tool offset data memory. In the Siemens mode, the offset data memory is
addressed with "T" (Tool No.) and "D" (cutting edge no.). abbreviated as T/D No.
In programs that are written in ISO dialect, the tool offset no. is addressed with "D" (radius) or H
(length), denoted hereafter as D/H No.
For unique assignment between D and H numbers or the T/D number, one must add the
$TC_DPH[t,d] element to the tool data offset memory. The D/H number is input in ISO dialect in
this element.
Table 4-7
Example: Set tool offset data
T
D/cutting edge
ISO_H
Radius
Length
$TC_DPH
1
1
10
1
2
11
1
3
12
2
1
13
2
2
14
2
3
15
For an assignment of tool length compensations of the geometry axes that is independent of the
plane selection, the setting data $SC_TOOL_LENGTH_CONST must contain the value "17".
Length 1 is always assigned to the Z axis in this case.
4.4.2
Tool length compensation (G43, G44, G49)
In tool length compensation, the amount of the specified values in the program stored in the tool
offset data memory is added to the Z axis or subtracted from it to undertake a offset of the
programmed paths according to the length of the cutting tool.
Commands
While executing the tool length compensation, the addition or subtraction of the tool offset data
is determined through the used G function and the direction of offset is determined with the H
functions.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
59
Motion commands
4.4 Tool offset functions
G functions used for the tool length compensation
The tool length compensation is called with the following G functions.
Table 4-8
G functions used for the tool length compensation
G function
Function
G group
G43
Addition
08
G44
Subtraction
08
G49
Deselection
08
• G43 and G44 are modal and remain active till they are deselected through G49. The tool
length compensation is deselected with G49. H00 can also be used to deselect the tool
length compensation.
• By specifying "G43 (or G44) Z... H... ; " the tool offset amount specified with the H function
is added to or subtracted from the specified position of the Z axis, and the Z axis then
traverses to the corrected target position, i.e., the target position of the Z axis specified in the
program is shifted by the magnitude of the tool offset.
• By specifying "(G01) Z... ; G43 (or G44) H... ; " the Z axis traverses the path that corresponds
to the tool offset amount specified via the H function.
• By specifying "G43 (or G44) Z...H...H... ; " the Z axis traverses the path that corresponds to the
difference between the previous tool offset amount and the new tool offset amount.
H function for specification of the tool offset direction
The direction of tool offset is determined by the sign of the tool length compensation that is
activated by the H function, and the programmed G function.
Table 4-9
Signs are present before the amount of tool offset and direction of tool offset
Signs of tool offset amount (H function)
positive
negative
G43
Tool offset in positive direction
Tool offset in negative direction
G44
Tool offset in negative direction
Tool offset in positive direction
ISO Milling
60
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
Motion commands
4.4 Tool offset functions
3URJUDPPLQJ H[DPSOH
+
2IIVHW
+
2IIVHW
3RVLWLRQ GDWD LQGLFDWRU
LQFOXGLQJ RIIVHW
= D[LV RQO\
1
*
=
1
*
*
;
<
1
*
=
+
1
* ,=
)O
1
*
= +
1
*
;
<
1
*
=
+,
1
*
=
)
1
*
=
+
3URJUDPPHG SRVLWLRQ
3URJUDPPHG SRVLWLRQ
7RRO SRVLWLRQ
7RRO SRVLWLRQ
Figure 4-11
Tool position offset
Settings
• The machine data $MC_TOOL_CORR_MOVE_MODE determines whether the tool length
compensation is to be undertaken with the selection of the tool offset or only during the
programming of an axis motion.
$MC_CUTTING_EDGE_DEFAULT = 0 defines that initially no tool length compensation is
active during a tool change.
$MC_AUXFU_T_SYNC_TYPE defines whether the output of the T function to the PLC takes
place during or after the traversing movement.
$MC_RESET_MODE_MASK, Bit 6, can be used to define that the currently active tool length
compensation will remain active even after a RESET.
• The cutter radius compensation can also be called for an operation with tool length
compensation.
Tool length compensation in several axes
Tool length compensation can also be activated for several axes. A display of the resulting tool
length compensation is not possible any more in that case.
ISO Milling
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
61
Motion commands
4.4 Tool offset functions
4.4.3
Cutter radius compensation (G40, G41, G42)
In cutter radius compensation, the programmed tool paths are shifted automatically by the
radius of the cutting tool used. The path to be corrected (radius of the cutting tool) can be stored
in the tool offset data memory using the NC operator panel. The tool offsets can also be
overwritten with the G10 command in the part program; G10 cannot be used to create new
tools.
The tool offset data in the program is called by specifying the number of the tool offset data
memory with a D function.
Commands
The cutter radius compensation is called with the following G functions.
Table 4-10
G functions for calling the cutter radius compensation
G function
Function
G group
G40
Deselection of the tool radius compensation
07
G41
Tool radius compensation (tool works in
07
machining direction to the left of the con-
tour)
G42
Tool radius compensation (tool works in
07
machining direction to the right of the con-
tour)
The tool radius compensation is called by executing G41 or G42 and deselected through G40.
The offset direction is determined through the specified G function (G41, G42) and the offset
amount is determined through the D function.
*
FRUUHFWLRQ WR WKH OHIW
'
7RRO
3URJUDPPHG SDWK
'
*
FRUUHFWLRQ WR WKH ULJKW
Figure 4-12
Cutter radius compensation
• A negative offset value of the tool radius is equivalent to a change of compensation side
(G41, G42). The D function must either be programmed in the same block as G41 or G42 or
in a previous block. D00 means tool radius = "0".
• The selection of the plane in which the tool radius is active is done with G17, G18 or G19. The
G function used to select the plane is to be programmed in the same block as G41 or G42 or
in the block before G41 or G42.
ISO Milling
62
Programming Manual, 10/2020, 6FC5398-7BP40-3BA1
|