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

 

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

 

Search            copyright infringement  

 

   

 

   

 

Content      ..     3      4      5      6     ..

 

 

 

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

 

 

Fundamentals
2.10 Tool radius compensation
The search for the intersection is then identical to the procedure for G461.
1
<
$X[LOLDU\ FXUYH
;
&HQWHUSRLQW SDWK ZLWK WRRO
UDGLXV FRPSHQVDWLRQ
3URJUDPPHG FRQWRXU
1
1
Retraction behavior with G462 (see example)
With G462, the corner generated by N10 and N20 in the example program is not machined to
the full extent actually possible with the tool used. However, this behavior may be necessary if
the part contour (as distinct from the programmed contour), to the left of N20 in the example,
is not permitted to be violated even with y values greater than 10 mm.
Corner behavior with KONT
If KONT is active (travel round contour at start or end point), the behavior differs according to
whether the end point is in front of or behind the contour.
• End point in front of contour
If the end point is in front of the contour, the retraction behavior is the same as with NORM.
This property does not change even if the last contour block for G451 is extended with a
straight line or a circle. Additional circumnavigation strategies to avoid a contour violation in
the vicinity of the contour end point are therefore not required.
• End point behind contour
If the end point is behind the contour, a circle or straight line is always inserted depending on
G450/G451. In this case, G460-462 has no effect. If the last traversing block in this situation
has no intersection with a preceding block, an intersection with the inserted contour
element or with the straight line of the end point of the bypass circle to the programmed
endpoint can result.
If the inserted contour element is a circle (G450), and this forms an interface with the
preceding block, this is equal to the interface that would occur with NORM and G461. In
general, however, a remaining section of the circle still has to be traversed. For the linear part
of the retraction block, no further calculation of intersection is required.
In the second case, if no interface of the inserted contour element with the preceding blocks
is found, the intersection between the retraction straight line and a preceding block is
traversed.
Therefore, a behavior that deviates from G460 can only occur with active G461 or G462
either if NORM is active or the behavior with KONT is geometrically identical to that with
NORM.
2.10.5
Activation/deactivation of collision detection ("bottleneck detection") (CDON,
CDOF, CDOF2)
Collision monitoring ("bottleneck detection") with active tool radius compensation is activated
or deactivated in the NC program with the commands of G group 23.
NC programming
284
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.10 Tool radius compensation
Syntax
G41/G42 CDON
CDOF/CDOF2
Meaning
CDON:
Activating collision detection ("bottleneck detection")
With CDON it is possible to check over an adjustable (MD20240) number of blocks whether
the tool paths of non-adjacent or non-sequential blocks intersect. This look-ahead function
allows possible collisions to be detected in advance and permits the control to actively avoid
them.
CDOF:
Deactivating collision detection ("bottleneck detection")
With CDOF, a search is made in the previous traversing block (at inside corners) for a
common intersection for the current block; if necessary the search is extended to even
earlier blocks. If an intersection is found, no further blocks are examined. With outside
corners, an intersection is always found between two consecutive blocks.
Note:
CDOF can be used to avoid the faulty detection of bottlenecks which may occur due to lack
of information in the NC program, for example.
CDOF2:
Deactivating collision detection for 3D circumferential milling
The tool offset direction is determined from adjacent block parts with CDOF2. CDOF2 is only
effective for 3D circumferential milling (CUT3Dx) and has the same meaning as CDOF for all
other types of machining (e.g. CUT2D or CUT3DFD).
Effect of collision detection using an example
The NC program describes the center point path of a standard tool. The contour for a tool that
is actually used results in undersize, which is shown unrealistically large to demonstrate the
geometric relationships in the following figure.
The control also only has an overview of three blocks in the example:
MD20240 $MC_CUTCOM_MAXNUM_CHECK_BLOCKS = 3
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
285
Fundamentals
2.10 Tool radius compensation
3DUWLDO FRQWRXU
&RPSHQVDWHG
QRPLQDO SDWK
2IIVHW SRLQW
&RPSHQVDW
RIIVHW FXUYH
LQ VWDUWLQJ
LQJ PRWLRQ
SRLQW
RI 1
1
1
1
1
3URJUDPPHG
RULJLQDO SDWK
2IIVHW SRLQW
VWDQGDUG WRRO
LQ HQG SRLQW
RI 1
Since an intersection exists only between the offset curves of the two blocks N10 and N40, the
two blocks N20 and N30 would have to be omitted. In the example, the control does not know
in block N40 if N10 has to be completely processed. Only a single block can therefore be omitted.
With active CDOF2, the compensation motion shown in the figure is executed and not stopped.
In this situation, an active CDOF or CDON would result in an alarm.
2.10.6
2 1/2 D tool offset (CUT2D, CUT2DD, CUT2DF, CUT2DFD)
The 2½ D tool radius compensation should be used if, when machining inclined surfaces,
the workpiece is to be rotated, and not the tool alignment. This function is activated using
commands CUT2D, CUT2DD, CUT2DF oder CUT2DFD.
Tool length offset
The tool length compensation is always taken into account referred to the machining plane that
is not rotated and is fixed in space.
2½ D tool radius compensation for contour tools
2½ D tool radius compensation for contour tools is activated, if, together with CUT2D, CUT2DD,
CUT2DF or CUT2DFD, one of the two commands G41 (tool radius compensation left of the
contour) or G42 (tool radius compensation right of the contour) is programmed. It is used for
automatic cutting-edge selection in the case of non-axially symmetrical tools that can be used
for piece-by-piece machining of individual contour segments.
Note
If 2½ D tool radius compensation is not activated, a contour tool behaves like a standard tool,
which only has the first cutting edge.
2½ tool radius compensation referred to a differential tool
2½ D tool radius compensation, referred to a differential tool, is activated using theCUT2DD or
CUT2DFD commands. It should be applied if the programmed contour refers to the center point
NC programming
286
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.10 Tool radius compensation
path of a differential tool, and a tool other than a differential tool is used for machining. When
calculating the 2½ D tool radius compensation, only the wear of the radius of the active tool
($TC_DP_15) and the possibly programmed tool offsetOFFN (Page 251) and TOFFR (Page 84) are
taken into account. The basic radius ($TC_DP6) of the active tool is not taken into account.
Syntax
CUT2D
CUT2DD
CUT2DF
CUT2DFD
Meaning
CUT2D:
Activating the 2½ D radius compensation
CUT2DD:
Activating the 2½ D radius compensation referred to a differential tool
CUT2DF:
Activating 2½ D radius compensation, tool radius compensation relative to the current
frame and/or inclined plane
CUT2DFD:
Activating 2½ D radius compensation, tool radius compensation relative to the current
frame and/or inclined plane
Further information
Contour tools
• Enabling
Tool radius compensation for contour tools is enabled on a channel-specific basis using:
MD28290 $MC_MM_SHAPED_TOOLS_ENABLE
• Tool type
Contour tool types are defined on a channel-specific basis using:
MD20370 $MC_SHAPED_TOOL_TYPE_NO
• Cutting edge
A number of cutting edges (D numbers) can be assigned to each contour tool in any
sequence. The maximum number of cutting edges per tool is parameterized using:
MD18106 $MN_MM_MAX_CUTTING_EDGE_PERTOOL
The first cutting edge of a contour tool is the cutting edge, which is selected when activating
the tool. If, e.g. in a program, using the commands T3 D5, the fifth cutting edge (D5) of the
third tool (T3) is activated, then D5 and the following cutting edges define with one part, or
altogether, the contour tool. The cutting edges located before D5 are ignored.
2½ D tool radius compensation without rotating the correction plane (CUT2D, CUT2DD)
If a frame that contains a rotation is programmed, then for CUT2D or CUT2DD, the plane in which
the tool radius compensation (correction plane) takes place is not rotated at the same time.
The tool radius compensation is taken into account, referred to the non rotated machining
plane (G17, G18, G19). The tool length compensation acts relative to the correction plane.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
287
Fundamentals
2.10 Tool radius compensation
=
=
;
;
For machining inclined surfaces, the tool offsets must be appropriately defined or calculated
based on the functions for "Tool length compensation for tools that can be orientated".
2½ D tool radius compensation with rotation of the compensation plane (CUT2DF,
CUT2DFD)
If a frame is programmed that contains a rotation, then for CUT2DF or CUT2DFD, the plane in
which the tool radius compensation takes place (correction plane) is also rotated. The tool
radius compensation is taken into account, referred to the rotated machining plane (G17, G18,
G19). However, the tool length compensation still acts relative to the non-rotated machining
plane.
Requirement: At the machine, the tool orientation must be able to be adjusted perpendicular
to the rotated machining plane, and set for machining.
=
=
;
;
NC programming
288
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.10 Tool radius compensation
Note
The tool length compensation continues to be active relative to the non-rotated working plane.
For further information see the "Tools" Function Manual.
2.10.7
Keep tool radius compensation constant (CUTCONON, CUTCONOF)
The "Keep tool radius compensation constant" function is used to suppress tool radius
compensation for a number of blocks, whereby a difference between the programmed and the
actual tool center path traveled set up by tool radius compensation in the previous blocks is
retained as the compensation. It can be an advantage to use this method when several
traversing blocks are required during line milling in the reversal points, but the contours
produced by the tool radius compensation (follow strategies) are not wanted. It can be used
independently of the type of tool radius compensation (21/2D, 3D face milling, 3D
circumferential milling).
Syntax
CUTCONON
CUTCONOF
Meaning
CUTCONON:
Command to activate the "Keep tool radius compensation constant" function
CUTCONOF:
Command to deactivate the "Keep tool radius compensation constant" function
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
289
Fundamentals
2.10 Tool radius compensation
Example
<
&RQWRXU ZLWKRXW 75&
1
1
1
1
&RQWRXU ZLWK 75&
1
1
1
1
;
Program code
Comment
N10
; Definition of tool d1.
N20 $TC_DP1[1,1] = 110
; Type
N30 $TC_DP6[1,1]= 10.
; Radius
N40
N50 X0 Y0 Z0 G1 G17 T1 D1 F10000
N60
N70 X20 G42 NORM
N80 X30
N90 Y20
N100 X10 CUTCONON
; Activation of the compensation sup-
pression.
N110 Y30 KONT
; If required, insert bypass circle
when deactivating the compensation
suppression.
N120 X-10 CUTCONOF
N130 Y20 NORM
; No bypass circle when deactivating
the TRC.
N140 X0 Y0 G40
N150 M30
NC programming
290
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.10 Tool radius compensation
Further information
Tool radius compensation is normally active before the compensation suppression and is still
active when the compensation suppression is deactivated again. In the last traversing block
before CUTCONON, the offset point in the block end point is approached. All following blocks in
which offset suppression is active are traversed without offset. However, they are offset by the
vector from the end point of the last offset block to its offset point. These blocks can have any
type of interpolation (linear, circular, polynomial).
The deactivation block of the compensation suppression, i.e. the block that contains
CUTCONOF, is compensated normally. It starts in the offset point of the starting point. One linear
block is inserted between the end point of the previous block, i.e. the last programmed
traversing block with active CUTCONON, and this point.
Circular blocks, for which the circle plane is perpendicular to the compensation plane (vertical
circles), are treated as though they had CUTCONON programmed. This implicit activation of the
offset suppression is automatically canceled in the first traversing block that contains a
traversing motion in the offset plane and is not such a circle. Vertical circle in this sense can only
occur during circumferential milling.
2.10.8
Tools with a relevant cutting edge position
In the case of tools with a relevant tool point direction (turning and grinding tools - tool types
400-599; see Section "Sign evaluation wear"), a change from G40 to G41/G42 or vice-versa is
treated as a tool change. If a transformation is active (e.g., TRANSMIT), this leads to a
preprocessing stop (decoding stop) and hence possibly to deviations from the intended part
contour.
This original functionality changes with regard to:
1. Preprocessing stop on TRANSMIT
2. Calculation of intersection points at approach and retraction with KONT
3. Tool change with active tool radius compensation
4. Tool radius compensation with variable tool orientation at transformation
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
291
Fundamentals
2.10 Tool radius compensation
Further information
The original functionality has been modified as follows:
• A change from G40 to G41/G42 and vice-versa is no longer treated as a tool change.
Therefore, a preprocessing stop no longer occurs with TRANSMIT.
• The straight line between the tool edge center points at the block start and block end is used
to calculate intersection points with the approach and retraction block. The difference
between the tool edge reference point and the tool edge center point is superimposed on this
movement.
On approach and retraction with KONT (tool circumnavigates the contour point, see above
subsection "Contour approach and retraction"), superimposition takes place in the linear part
block of the approach or retraction motion. The geometric conditions are therefore identical
for tools with and without a relevant tool point direction. Deviations from the previous
behavior occur only in relatively rare cases where the approach or retraction block does not
intersect with an adjacent traversing block, see the following figure:
/DVW SRVLWLRQ RI WKH
&XWWLQJ HGJH FHQWHU SRLQW
2Q WKH FRQWRXU
3URJUDPPHG UHWUDFWLRQ
&XWWLQJ HGJH FHQWHU
EORFN
SRLQW
7RRO HQG SRVLWLRQ
&XWWLQJ HGJH UHIHUHQFH SRLQW
&HQWHU SDWK
%ORFN
ZLWKRXW
/DVW SRVLWLRQ RI WKH FXWWLQJ HGJH FHQWHU SRLQW
LQWHUIDFH WR
SUHYLRXV
EORFN
&XWWLQJ HGJH UHIHUHQFH SRLQW
• In circle blocks and in motion blocks containing rational polynomials with a denominator
degree > 4, it is not permitted to change a tool with active tool radius compensation in cases
where the distance between the tool edge center point and the tool edge reference point
changes. With other types of interpolation, it is now possible to change when a
transformation is active (e.g., TRANSMIT).
• For tool radius compensation with variable tool orientation, the transformation from the tool
edge reference point to the tool edge center point can no longer be performed by means of
a simple zero offset. Tools with a relevant tool point direction are therefore not permitted for
3D peripheral milling (an alarm is output).
Note
The subject is irrelevant with respect to face milling as only defined tool types without
relevant tool point direction are permitted for this operation anyway. (A tool with a type,
which has not been explicitly approved, is treated as a ball end mill with the specified radius.
A tool point direction parameter is ignored).
NC programming
292
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.11 Path action
2.11
Path action
2.11.1
Exact stop (G60, G9, G601, G602, G603)
In exact stop traversing mode, all path axes and special axes involved in the traversing motion
that are not traversed modally, are decelerated at the end of each block until they come to a
standstill.
Exact stop is used when sharp outside corners have to be machined or inside corners finished to
exact dimensions.
The exact stop specifies how exactly the corner point has to be approached and when the
transition is made to the next block:
• "Exact stop fine"
The block change is performed as soon as the axis-specific tolerance limits for "Exact stop
fine" are reached for all axes involved in the traversing motion.
"Exact stop fine" is set via: MD36010 $MA_STOP_LIMIT_FINE[<Axis>]
• "Exact stop coarse"
The block change is performed as soon as the axis-specific tolerance limits for "Exact stop
coarse" are reached for all axes involved in the traversing motion.
"Exact stop coarse" is set via: MD36000 $MA_STOP_LIMIT_COARSE[<Axis>]
• "Interpolator end"
The block change is performed as soon as the control has calculated a set velocity of zero for
all axes involved in the traversing motion. The actual position or the following error of the
axes involved are not taken into account
Syntax
G60 ...
G9 ...
G601/G602/G603, etc.
Meaning
G60:
Command for activation of the modal exact stop
G9:
Command for activation of the non-modal exact stop
G601:
Command for activation of the exact stop criterion "Exact stop fine"
G602:
Command for activation of the exact stop criterion "Exact stop coarse"
G603:
Command for activation of the exact stop criterion "Interpolator end"
Note
The commands for activating the exact stop criteria (G601/G602/G603) are only effective if G60
or G9 is active.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
293
Fundamentals
2.11 Path action
Example
Program code
Comment
N5 G602
; Criterion "Exact stop coarse" selected.
N10 G0 G60 Z...
; Exact stop modal active.
N20 X... Z...
; G60 continues to act.
N50 G1 G601
; Criterion "Exact stop fine" selected.
N80 G64 Z...
; Switchover to continuous-path mode.
N100 G0 G9
; Exact stop acts only in this block.
N110 ...
; Continuous-path mode active again.
Further information
G60, G9
G9 generates the exact stop in the current block, G60 in the current block and in all following
blocks.
Continuous-path mode commands G64 or G641 - G645 are used to deactivate G60.
G601, G602
%ORFN FKDQJH HQDEOH
ZLWK *
ZLWK *
3URJUDPPHG
SDWK
The movement is decelerated and stopped briefly at the corner point.
Note
Do not set the limits for the exact stop criteria any tighter than necessary. The tighter the limits,
the longer it takes to position and approach the target position.
G603
NC programming
294
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.11 Path action
The block change is initiated when the control has calculated a set velocity of zero for the axes
involved. At this point, the actual value lags behind by a proportionate factor depending on the
dynamic response of the axes and the path velocity. The workpiece corners can now be rounded.
3URJUDPPHG SDWK
%ORFN FKDQJH
WUDYHUVHG
3DWK
ZLWK )
WUDYHUVHG
3DWK
ZLWK )
)
)
Configured exact stop criterion
A channel-specific setting can be made for G0 and the other commands in the 1st G group
indicating that contrary to the programmed exact stop criterion, a preset criterion should be
used automatically (see the machine manufacturer's specifications).
2.11.2
Continuous-path mode (G64, G641, G642, G643, G644, G645, ADIS, ADISPOS)
In continuous-path mode, the path velocity at the end of the block (for the block change) is not
decelerated to a level which would permit the fulfillment of an exact stop criterion. The objective
of this mode is, in fact, to avoid rapid deceleration of the path axes at the block-change point so
that the axis velocity remains as constant as possible when the program moves to the next block.
To achieve this objective, the "Look-head" function is also activated when continuous-path mode
is selected.
Continuous-path mode with smoothing facilitates the tangential shaping and/or smoothing of
angular block transitions caused by local changes in the programmed contour.
Continuous path mode:
• Rounds the contour
• Reduces machining times by eliminating braking and acceleration processes that are
required to fulfill the exact-stop criterion
• Improves cutting conditions because of the more constant velocity
Continuous-path mode is suitable if:
• A contour needs to be traversed as quickly as possible (e.g. with rapid traverse)
• The exact contour may deviate from the programmed contour within a specific tolerance for
the purpose of obtaining a continuous contour
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
295
Fundamentals
2.11 Path action
Continuous-path mode is not suitable if:
• A contour needs to be traversed precisely
• An absolutely constant velocity is required
Note
Continuous-path mode is interrupted by blocks which trigger a preprocessing stop implicitly,
e.g. due to:
• Access to specific machine status data ($A...)
• Auxiliary function outputs
Syntax
G64 ...
G641 ADIS=…
G641 ADISPOS=…
G642 ...
G643 ...
G644 ...
G645 ...
Meaning
G64:
Continuous-path mode with reduced velocity as per the overload factor
G641:
Continuous-path mode with smoothing as per distance criterion
ADIS=... :
Distance criterion with G641 for path functions G1, G2, G3, etc.
ADISPOS=... :
Distance criterion with G641 for rapid traverse G0
The distance criterion (= rounding clearance) ADIS or ADISPOS describes the
maximum distance the rounding block may cover before the end of the block, or
the distance after the end of block within which the rounding block must be
terminated respectively.
Note:
If ADIS/ADISPOS is not programmed, a value of "zero" applies and the traversing
behavior therefore corresponds to G64. The rounding clearance is automatically
reduced (by up to 36%) for short traversing distances.
G642:
Continuous-path mode with smoothing within the defined tolerances
In this mode, under normal circumstances smoothing takes place within the
maximum permissible path deviation. However, instead of these axis-specific
tolerances, observation of the maximum contour deviation (contour tolerance)
or the maximum angular deviation of the tool orientation (orientation tolerance)
can be configured.
Note:
Expansion to include contour and orientation tolerance is only supported on
systems featuring the "Polynomial interpolation" option.
NC programming
296
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.11 Path action
G643:
Continuous-path mode with smoothing within the defined tolerances (block-in-
ternal)
G643 differs from G642 in that is not used to generate a separate rounding block;
instead, axis-specific block-internal rounding movements are inserted. The round-
ing clearance can be different for each axis.
G644:
Continuous-path mode with smoothing with maximum possible dynamic re-
sponse
Note:
G644 is not available with an active kinematic transformation. The system
switches internally to G642.
G645:
Continuous-path mode with smoothing and tangential block transitions within
the defined tolerances
G645 has the same effect on corners as G642. With G645, rounding blocks are
also only generated on tangential block transitions if the curvature of the original
contour exhibits a jump in at least one axis.
Note
Rounding cannot be used as a substitute for smoothing (RND). The user should not make any
assumptions with respect to the appearance of the contour within the rounding area. The type
of rounding can depend on dynamic conditions, e.g. on the tool path velocity. Rounding on the
contour is therefore only practical with small ADIS values. RND must be used if a defined contour
is to be traversed at the corner.
Note
If a rounding movement initiated by G641, G642, G643, G644 or G645 is interrupted, the
starting or end point of the original traversing block (as appropriate for REPOS mode) will be
used for subsequent repositioning (REPOS), rather than the interruption point.
Example
<
<
([DFW VWRS ILQH
;
=
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
297
Fundamentals
2.11 Path action
The two outside corners on the groove are to be approached exactly. Otherwise machining
should be performed in continuous-path mode.
Program code
Comment
N05DIAMOF
; Radius as dimension
N10 G17 T1 G41 G0 X10 Y10 Z2 S300 M3
; Approach starting position, acti-
vate spindle, path compensation.
N20 G1 Z-7 F8000
; Feed in tool.
N30 G641 ADIS=0.5
; Contour transitions are smoothed.
N40 Y40
N50 X60 Y70 G60 G601
; Approach position exactly with ex-
act stop fine.
N60 Y50
N70 X80
N80 Y70
N90 G641 ADIS=0.5 X100 Y40
; Contour transitions are smoothed.
N100 X80 Y10
N110 X10
N120 G40 G0 X-20
; Deactivate path compensation
N130 Z10 M30
; Retract tool, end of program.
Further information
Continuous-path mode G64
In continuous-path mode, the tool travels across tangential contour transitions with as constant
a path velocity as possible (no deceleration at block boundaries). LookAhead deceleration is
applied before corners and blocks with exact stop.
&RQVWDQW YHORFLW\
NC programming
298
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.11 Path action
Corners are also traversed at a constant velocity. In order to minimize the contour error, the
velocity is reduced according to an acceleration limit and an overload factor.
Note
The extent of smoothing the contour transitions depends on the feedrate and the overload
factor. The overload factor can be set in MD32310 $MA_MAX_ACCEL_OVL_FACTOR.
Setting MD20490 $MC_IGNORE_OVL_FACTOR_FOR_ADIS means that block transitions will
always be rounded irrespective of the set overload factor.
The following points should be noted in order to prevent an undesired stop in path motion (relief
cutting):
• Auxiliary functions, which are enabled after the end of the motion or before the next motion,
interrupt the continuous path mode (exception: fast auxiliary functions).
• Positioning axes always traverse according to the exact stop principle, positioning window
fine (as for G601). If an NC block has to wait for positioning axes, continuous-path mode is
interrupted on the path axes.
However, intermediate blocks containing only comments, calculation blocks or subprogram
calls do not affect continuous-path mode.
Note
If FGROUP does not contain all the path axes, there is often a step change in the velocity at block
transitions for those axes excluded from FGROUP; the control limits this change in velocity to the
permissible values set in MD32300 $MA_MAX_AX_ACCEL and
MD32310 $MA_MAX_ACCEL_OVL_FACTOR. This braking operation can be avoided through the
application of a smoothing function, which smooths the specific positional interrelationship
between the path axes.
LookAhead predictive velocity control
In continuous-path mode, the control automatically determines the velocity control for several
NC blocks in advance. This enables acceleration and deceleration across multiple blocks with
almost tangential transitions.
Look Ahead is particularly suitable for the machining of motion sequences comprising short
traverse paths with high path feedrates.
The number of NC blocks included in the Look Ahead calculation can be defined in machine data.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
299
Fundamentals
2.11 Path action
)HHGUDWH
SURJUDPPHG
)
* 3UHGLFWLYH YHORFLW\ FRQWURO
* &RQVWDQW VSHHG SKDVH FDQQRW EH UHDFKHG
1
1
1
1
1
1
1
1
1
1
1
1
%ORFN SDWK
Continuous-path mode with smoothing as per distance criterion (G641)
With G641, the control inserts transition elements at contour transitions. The smoothing
clearance ADIS (or ADISPOS for G0) specifies the maximum extent to which corners can be
smooth (rounded). Within this smoothing clearance, the control can ignore the configured path
and replace it with a dynamically optimized path.
Disadvantage: Only one ADIS value is available for all axes.
The effect of G641 is similar to RNDM; however, it is not restricted to the axes of the working
plane.
Just the same as G64, G641 works with lookahead predictive velocity control. Smoothing blocks
with a high degree of curvature are approached with a reduced velocity.
Example:
Program code
Comment
N10 G641 ADIS=0.5 G1 X... Y...
; The smoothing block must begin no more than
0.5 mm before the programmed end of the block
and must finish 0.5 mm after the end of the
block. This setting remains modal.
0D[
bPP
HQG RI SURJUDP
PHG FRQWRXU
$',6 $',6326
PD[
bPP
NC programming
300
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.11 Path action
Note
Smoothing cannot and should not replace the functions for defined smoothing (RND, RNDM,
ASPLINE, BSPLINE, CSPLINE).
Smoothing with axial precision with G642
With G642, smoothing does not take place within a defined ADIS range; instead, the axial
tolerances defined with MD33100 $MA_COMPRESS_POS_TOL are applied. The smoothing
clearance is determined based on the shortest smoothing path of all axes. This value is taken into
account when generating a smoothing block.
Block-internal smoothing with G643
The maximum deviations from the precise contour in the case of smoothing with G643 are
defined for each axis using machine data MD33100 $MA_COMPRESS_POS_TOL.
G643 is not used to generate a separate smoothing block, but axis-specific block-internal
smoothing motion is inserted. In the case of G643, the smoothing clearance of each axis can be
different.
Smoothing with contour and orientation tolerance with G642/G643
MD20480 $MC_SMOOTHING_MODE can be used to configure smoothing with G642 and G643
so that instead of axis-specific tolerances, a contour tolerance and an orientation tolerance can
be applied.
The contour tolerance and orientation tolerance are set in the channel-specific setting data:
SD42465 $SC_SMOOTH_CONTUR_TOL (maximum contour deviation)
SD42466 $SC_SMOOTH_ORI_TOL (maximum angular deviation of the tool orientation)
The setting data can be programmed in the NC program; this means that it can be specified
differently for each block transition. Very different specifications for the contour tolerance and
the tolerance of the tool orientation can only take effect with G643.
Note
Expansion to include contour and orientation tolerance is only supported on systems featuring
the "Polynomial interpolation" option.
Note
An orientation transformation must be active for smoothing within the orientation tolerance.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
301
Fundamentals
2.11 Path action
Smoothing with greatest possible dynamic response in G644
Smoothing with maximum possible dynamic response is configured in the thousands place with
MD20480 $MC_SMOOTHING_MODE.
Value
Meaning
0
Specification of maximum axial deviations with:
MD33100 $MA_COMPRESS_POS_TOL
1
Specification of maximum smoothing path by programming:
ADIS=... or ADISPOS=...
2
Specification of the maximum possible frequencies of each axis occurring in the smoothing
range with:
MD32440 $MA_LOOKAH_FREQUENCY
The smoothing range is defined such that no frequencies in excess of the specified maximum
can occur during smoothing motion.
3
When smoothing with G644, neither the tolerance nor the smoothing clearance is monitored.
Each axis traverses around a corner with the maximum possible dynamic response.
With SOFT, both the maximum acceleration and the maximum jerk of each axis is maintained.
With the BRISK command, the jerk is not limited; instead, each axis travels at the maximum
possible acceleration.
Smoothing of tangential block transitions with G645
With G645, the smoothing motion is defined so that the acceleration of all axes involved remains
smooth (no jumps) and the parameterized maximum deviations from the original contour
(MD33120 $MA_PATH_TRANS_POS_TOL) are not exceeded.
In the case of angular non-tangential block transitions, the smoothing behavior is the same as
with G642.
NC programming
302
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.11 Path action
No intermediate smoothing blocks
An intermediate smoothing block is not inserted in the following cases:
•
The axis stops between the two blocks.
This occurs when:
- The following block contains an auxiliary function output before the motion.
- The following block does not contain a path motion.
- An axis is traversed for the first time as a path axis for the following block when it was
previously a positioning axis.
- An axis is traversed for the first time as a positioning axis for the following block when it
was previously a path axis.
- The previous block traverses geometry axes and the following block does not.
- The following block traverses geometry axes and the previous block does not.
- Before tapping, the following block uses G33 as preparatory function and the previous
block does not.
- A change is made between BRISK and SOFT.
- Axes involved in the transformation are not completely assigned to the path motion (e.g.
for oscillation, positioning axes).
•
The smoothing block would slow down part program execution.
This occurs:
- Between very short blocks.
Since each block requires at least one interpolator clock cycle, the added intermediate
block would double the machining time.
- If a block transition G64 (continuous-path mode without smoothing) can be traversed
without a reduction in velocity.
Smoothing would increase the machining time. This means that the value of the
permitted overload factor (MD32310 $MA_MAX_ACCEL_OVL_FACTOR) affects whether a
block transition is rounded or not. The overload factor is only taken into account for
smoothing with G641 / G642. The overload factor has no effect in the case of smoothing
with G643 (this behavior can also be set for G641 and G642 by setting
MD20490 $MC_IGNORE_OVL_FACTOR_FOR_ADIS to TRUE).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
303
Fundamentals
2.11 Path action
• Smoothing is not parameterized.
This occurs when:
- for G641 in G0 blocks, ADISPOS=0 (preassignment!).
- for G641 in non G0 blocks, ADISPOS=0 (preassignment!).
- for G641, for transition from G0 to non-G0 or non-G0 to G0, the lower of the values from
ADISPOS and ADIS applies.
- for G642/G643, all axis-specific tolerances are zero.
• The block does not contain traversing motion (zero block).
This occurs when:
- Synchronized actions are active.
Normally, the Interpreter eliminates zero blocks. However, if synchronized actions are
active, this zero block is included and also executed. In so doing, an exact stop is initiated
corresponding to the active programming. This allows the synchronized action to also
switch.
- Zero blocks are generated by program jumps.
Continuous-path mode in rapid traverse G0
Also for rapid traverse motion, one of the listed functions G60/G9 or G64 - respectively G641 -
G645 - must be specified. Otherwise, the default in the machine data is used.
NC programming
304
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
2.12
Coordinate transformations (frames)
2.12.1
Frames
Frame
The frame is a self-contained arithmetic rule that transforms one Cartesian coordinate system
into another Cartesian coordinate system.
Basic frame (basic offset)
The basic frame describes coordinate transformation from the basic coordinate system (BCS) to
the basic zero system (BZS) and has the same effect as settable frames.
See Basic coordinate system (BCS) (Page 38).
Settable frames
Settable frames are the configurable zero offsets which can be called from within any NC
program with the G54 to G57 and G505 to G599 commands. The offset values are predefined by
the user, and stored in the zero offset memory on the controller. They are used to define the
settable zero system (SZS).
See:
• Settable zero system (SZS) (Page 40)
• Settable zero offset (G54 to G57, G505 to G599, G53, G500, SUPA, G153) (Page 143)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
305
Fundamentals
2.12 Coordinate transformations (frames)
Programmable frames
Sometimes it is useful or necessary within an NC program, to move the originally selected
workpiece coordinate system (or the "settable zero system") to another position and, if required,
to rotate it, mirror it and/or scale it. This can be achieved using programmable frames.
=
=
5RWDWLRQ E\
<
= D[LV
<
=
<
;
;
;
See Frame instructions (Page 307).
NC programming
306
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
2.12.2
Frame instructions
Function
The statements for programmable frames apply in the current NC program. They function as
either additive or substitute elements:
• Substitute statement
Deletes all previously programmed frame statements. The reference is provided by the last
settable zero offset called (G54 to G57, G505 to G599).
<
<
;
<
75$16
;
75$16
;
• Additive statement
Appended to existing frames. The reference is provided by the currently set workpiece zero
or the last workpiece zero programmed with a frame statement.
<
<
;
<
$75$16
;
75$16
;
Application example
1. Move the zero point of the workpiece coordinate system (WCS).
2. Rotate the workpiece coordinate system (WCS) to orientate a plane parallel to the desired
work plane.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
307
Fundamentals
2.12 Coordinate transformations (frames)
=
=
<
<
;
;
Syntax
Substituting statements
Additive statements
TRANS X… Y… Z…
ATRANS X… Y… Z…
ROT X… Y… Z…
AROT X… Y… Z…
ROT RPL=…
AROT RPL=…
ROTS/CROTS X... Y...
AROTS X... Y...
SCALE X… Y… Z…
ASCALE X… Y… Z…
MIRROR X0/Y0/Z0
AMIRROR X0/Y0/Z0
Meaning
;
;
;
;
=
=
=
75$16 $75$16
527
=
$527
;
; ;
=
=
=
6&$/( $6&$/(
0,5525 $0,5525
NC programming
308
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
TRANS/ATRANS:
Workpiece coordinate system offset in the direction of the specified ge-
ometry axis or axes
ROT/AROT:
Workpiece coordinate system rotation:
• By linking individual rotations around the specified geometry axis or
axes
or
• Around the angle RPL=... in the current working plane
(G17/G18/G19)
Direction of rotation:
=
<
;
Rotation sequence:
With RPY notation:
Z, Y', X''
With Euler angle:
Z, X', Z''
Range of values:
The angles of rotation are only defined unam-
biguously in the following ranges:
With RPY notation:
-180 ≤ x ≤ 180
-90 < y < 90
-180 ≤ z ≤ 180
With Euler angle:
0 ≤ x < 180
-180 ≤ y ≤ 180
-180 ≤ z ≤ 180
ROTS/AROTS:
Workpiece coordinate system rotation by means of the specification of
solid angles
The orientation of a plane in space is defined unambiguously by speci-
fying two solid angles. Therefore, up to two solid angles may be pro-
grammed:
ROTS/AROTS X... Y... / Z... X... / Y... Z...
CROTS:
CROTS works in the same way as ROTS but refers to the valid frame in the
database.
SCALE/ASCALE:
Scaling in the direction of the specified geometry axis or axes to increase/
reduce the size of a contour
MIRROR/AMIRROR:
Workpiece coordinate system mirroring by means of mirroring (direction
change) the specified geometry axis
Value:
Freely selectable (in this case: "0")
Supplementary conditions
• Frame statements must be programmed in a separate NC block.
• Frame statements can be used individually or combined as required.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
309
Fundamentals
2.12 Coordinate transformations (frames)
• Frame statements are executed in the programmed sequence.
• Additive statements are frequently used in subprograms. The basic statements defined in the
main program are not lost after the end of the subprogram if the subprogram has been
programmed with the SAVE attribute.
2.12.3
Programmable work offset (TRANS, ATRANS)
The TRANS command moves the WCS absolutely based on the SZS created with a settable work
offset (G54 ... G57, G505 ... G599).
The ATRANS command moves additively the WCS created with TRANS.
Milling:
Turning:
=
;
=0
<0
<
=
0
:
:
;
75$16
;0
*
Syntax
TRANS X… Y… Z…
ATRANS X… Y… Z…
Meaning
TRANS:
Absolute offset of the WCS with reference to the workpiece zero (SZS) set with
a settable work offset (G54 ... G57, G505 ... G599).
Alone in the block:
yes
ATRANS:
Additive zero offset of the WCS with reference to the parameterized workpiece
zero set with TRANS
Alone in the block:
yes
X... Y... Z... :
Offset values in the direction of the specified geometry axes
NC programming
310
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
Examples
Example 1: Milling
With this workpiece, the shapes
<0
shown recur in a program.
<
The machining sequence for this
shape is stored in a subprogram.
;
Zero offset is used to set the work-
piece zeros required in each case and
then call the subprogram.
<
<
;
;
;0
Program code
Comment
N10 G1 G54
; Working plane X/Y, workpiece zero
N20 G0 X0 Y0 Z2
; Approach starting point
N30 TRANS X10 Y10
; Absolute offset
N40 L10
; Subprogram call
N50 TRANS X50 Y10
; Absolute offset
N60 L10
; Subprogram call
N70 M30
; End of program
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
311
Fundamentals
2.12 Coordinate transformations (frames)
Example 2: Turning
;
=
0
:
Program code
Comment
N10 TRANS X0 Z150
; Absolute offset
N15 L20
; Subprogram call
N20 TRANS X0 Z140 (or ATRANS Z-10)
; Absolute offset
N25 L20
; Subprogram call
N30 TRANS X0 Z130 (or ATRANS Z-10)
; Absolute offset
N35 L20
; Subprogram call
Further information
TRANS X... Y... Z...
Translation through the offset values programmed in the specified axis directions (path,
synchronized axes and positioning axes). The reference is provided by the last settable work
offset called (G54 to G57, G505 to G599).
NOTICE
No original frame
The TRANS command resets all frame components of the previously activated programmable
frame.
NC programming
312
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
TRANS
TRANS
Note
ATRANS can be used to program an offset to be added to existing frames.
ATRANS X... Y... Z...
Translation through the offset values programmed in the specified axis directions. The currently
set or last programmed zero point is used as the reference.
ATRANS
TRANS
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
313
Fundamentals
2.12 Coordinate transformations (frames)
2.12.4
Programmable work offset (G58, G59)
The G58 and G59 functions can be used to substitute translation components of
the programmable work offset (TRANS/ATRANS) (Page 310) with specific axes:
• G58: Absolute translation component (coarse offset)
• G59: Additive translation component (fine offset)
=
=0
<0
7UDQVODWLRQ
<
;
DGGLWLYH 7UD
*
$75$16
;0
Requirements
The G58 and G59 functions can only be used if fine offset has been configured
(MD24000 $MC_FRAME_ADD_COMPONENTS = 1).
Syntax
G58 <axis_1><value_1> ... <axis_3><value_3>
G59 <axis_1><value_1> ... <axis_3><value_3>
Meaning
G58:
G58 replaces the absolute translation component of the programmable work offset
for the specified axis, but the programmed additive offset remains valid. The refer-
ence is provided by the last settable work offset called (G54 ... G57, G505 ... G599).
Alone in the block: yes
G59:
G59 replaces the additive translation component of the programmable work offset
for the specified axis, but the programmed absolute offset remains valid.
Alone in the block: yes
<axis_n>:
Geometry axis in channel
<value_n>:
Offset values in the direction of the specified geometry axis
NC programming
314
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
Example
Program code
Comment
N50 TRANS X10 Y10 Z10
; Absolute translation component X10 Y10 Z10
N60 ATRANS X5 Y5
; Additive translation component X5 Y5
→ total offset: X15 Y15 Z10
N70 G58 X20
; Absolute translation component X20
→ total offset X25 Y15 Z10
N80 G59 X10 Y10
; Additive translation component X10 Y10
→ total offset X30 Y20 Z10
Further information
The absolute translation component (coarse offset) is modified by the following statements:
• TRANS
• G58
• CTRANS
• CFINE
• $P_PFRAME[X,TR]
The additive translation component (fine offset) is modified by the following statements:
• ATRANS
• G59
• CTRANS
• CFINE
• $P_PFRAME[X,FI]
Examples
Command
Coarse offset VC
Fine offset VF
TRANS X10
VC = 10
unchanged
G58 X10
VC = 10
unchanged
$P_PFRAME[X,TR]=10
VC = 10
unchanged
ATRANS X10
unchanged
VF = VF + 10
G59 X10
unchanged
VF = 10
$P_PFRAME[X,FI]=10
unchanged
VF = 10
CTRANS(X,10)
VC = 10
VF = 0
CTRANS()
VC = 0
VF = 0
CFINE(X,10)
VC = 0
VF = 10
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
315
Fundamentals
2.12 Coordinate transformations (frames)
2.12.5
Programmable rotation (ROT, AROT, RPL)
The workpiece coordinate system can be rotated in space with the ROT/AROT statements. The
statements refer exclusively to the programmable frame $P_PFRAME.
<
<
=
=
;
;
Syntax
ROT <1st GeoAx><angle> <2nd GeoAx><angle> <3rd GeoAx><angle>
ROT RPL=<angle>
AROT <1st GeoAx><angle> <2nd GeoAx><angle> <3rd GeoAx><angle>
AROT RPL=<angle>
Note
The rotations of the workpiece coordinate system are performed via Euler angles.
Meaning
ROT:
Absolute rotation
Reference frame:
Programmable frame $P_PFRAME
Reference point:
Zero point of the current workpiece coordinate system set
with G54 ... G57, G505 ... G599
AROT:
Additive rotation
Reference frame:
Programmable frame $P_PFRAME
Reference point:
Zero point of the current workpiece coordinate system set
with G54 ... G57, G505 ... G599
<nth GeoAx>:
Identifier of the nth geometry axis around which rotation is to be performed with
the specified angle.
The value 0° is implicitly set as angle of rotation for a geometry axis that has not
been programmed.
NC programming
316
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
RPL:
Rotation around the geometry axis perpendicular to the active plane (G17, G18,
G19) by the specified angle
Reference frame:
Programmable frame $P_PFRAME
Reference point:
Zero point of the current workpiece coordinate system set
with G54 ... G57, G505 ... G599
<Angle>
Angle specification in degrees.
Value range:
-360° ≤ angle ≤ 360°
Examples
Example 1: Rotation in the G17 plane
With this workpiece, the shapes
<
shown recur in a program. In addition
to the work offset, rotations have to
be performed, as the shapes are not
arranged paraxially.
r
r
;
Program code
Comment
N10 G17 G54
; Working plane X/Y, workpiece zero
N20 TRANS X20 Y10
; Absolute offset
N30 L10
; Subprogram call
N40 TRANS X55 Y35
; Absolute offset
N50 AROT RPL=45
; Additive rotation around the Z axis perpendicular
to the G17 plane through 45°
N60 L10
; Subprogram call
N70 TRANS X20 Y40
; Absolute offset
(resets all previous offsets)
N80 AROT RPL=60
; Additive rotation around the Z axis perpendicular
; to the G17 plane through 60°
N90 L10
; Subprogram call
N100 G0 X100 Y100
; Retraction
N110 M30
; End of program
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
317
Fundamentals
2.12 Coordinate transformations (frames)
Example 2: Spatial rotation around the Y axis
In this example, paraxial and inclined
=
workpiece surfaces are to be ma-
chined in a clamping.
r
Condition:
The tool must be aligned perpendic-
;
ular to the inclined surface in the ro-
tated Z direction.
<
;
Program code
Comment
N10 G17 G54
; Working plane X/Y, workpiece zero
N20 TRANS X10 Y10
; Absolute offset
N30 L10
; Subprogram call
N40 ATRANS X35
; Additive offset
N50 AROT Y30
; Additive rotation around the Y axis
N60 ATRANS X5
; Additive offset
N70 L10
; Subprogram call
N80 G0 X300 Y100 M30
; Retraction, end of program
NC programming
318
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
Example 3: Multi-face machining
In this example, identical shapes are machined
in two workpiece surfaces perpendicular to
one another via subprograms. In the new co-
=
ordinate system on the right-hand workpiece
<
surface, infeed direction, working plane and
the zero point have been set up as on the top
surface. Therefore, the conditions required for
the subprogram execution still apply: Working
;
plane G17, coordinate plane X/Y, infeed direc-
tion Z.
<
;
=
Program code
Comment
N10 G17 G54
; Working plane X/Y, workpiece zero
N20 L10
; Subprogram call
N30 TRANS X100 Z-100
; Absolute offset of the WCS
=
<
=
;
<
75$16 ;
=
;
N40 AROT Y90
; Additive rotation of the WCS around Y through 90°
=
<
<
$527 <
;
=
;
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
319
Fundamentals
2.12 Coordinate transformations (frames)
Program code
Comment
N50 AROT Z90
; Additive rotation of the WCS around Z through 90°
<
<
;
$527 =
=
=
;
N60 L10
; Subprogram call
N70 G0 X300 Y100 M30
; Retraction, end of program
Further information
Rotation in the active plane
When programming using RPL=…, the WCS is rotated around the axis perpendicular to the active
plane.
<
<
527
;
=
;
=
Figure 2-23
Rotation around the Y axis or in the G18 plane
WARNING
Plane change
If a plane change (G17, G18, G19) is programmed after a rotation, the current angles of rotation
of the respective axes are retained and are also effective in the new plane. It is therefore
strongly recommended that the current angles of rotation be reset to 0 before a plane change:
• N100 ROT X0 Y0 Z0 ; explicit angle programming
• N100 ROT ; implicit angle programming
Absolute rotation with ROT X... Y... Z...
The WCS is rotated around the specified axes to the programmed angles of rotation.
NC programming
320
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
<
<
;
=
=
;
① Angle of rotation
Figure 2-24
Absolute rotation around the Z axis
Additive rotation with AROT X... Y... Z...
The WCS is rotated further around the specified axes through the programmed angles of
rotation.
<
<
527
<
$527
;
=
=
;
;
① Angle of rotation
Figure 2-25
Absolute and additive rotation around the Z axis
Rotation of the working plane
During a rotation using ROT/AROT, the working plane (G17, G18, G19) also rotates.
Example: Working plane G17
The WCS is positioned on the top surface of the workpiece. Using offset and rotation, the
coordinate system is moved to one of the side faces. Working plane G17 also rotates. In this way,
traversing motions can still be programmed in the G17 plane via X and Y and infeeds via Z.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
321
Fundamentals
2.12 Coordinate transformations (frames)
Requirement:
The tool must be perpendicular to the working plane and the positive direction of the infeed axis
points in the direction of the tool base.
Specifying CUT2DF activates the tool radius compensation in the rotated plane.
=
<
;
<
=
;
2.12.6
Programmable frame rotations with solid angles (ROTS, AROTS, CROTS)
Rotations of the workpiece coordinate system can be specified in solid angles with the ROTS,
AROTS and CROTS statements. Solid angles are the angles formed by the intersections of the
plane rotated in space with the main planes of the not yet rotated WCS.
Note
Geometry axis identifiers
The following definition is made as an example for the further description:
• 1st geometry axis: X
• 2nd geometry axis: Y
• 3rd geometry axis: Z
As shown in the following figure, the programming of ROTS Xα Yβ results in an alignment of
the G17 plane of the WCS parallel to the displayed inclined plane. The position of the zero point
of the WCS remains unchanged.
The orientation of the rotated WCS is defined so that the first rotated axis lies in the plane formed
by this and the 3rd axis of the original coordinate system. In the example: X' is in the original X/
Z plane.
NC programming
322
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
$
%
&
]
]
]
\
\
\
]
[
\
]
\
]
[
[
[
\
[
[
①
Inclined plane
α, β, γ
Solid angle
A
Alignment of the G17 plane parallel to the inclined plane:
• 1st rotation
Rotation of x around y through angle α ⇒
x'-axis parallel to the inclined plane
• 2nd rotation
Rotation of y' around x' through β ⇒
y'-axis parallel to the inclined plane
⇒ z'-axis parallel to the inclined plane
⇒ G17 parallel to the inclined plane
B
Alignment of the G18 plane parallel to the inclined plane:
• 1st rotation
Rotation of z around x through the angle γ ⇒
z'-axis parallel to the inclined plane
• 2nd rotation
Rotation of x' around z' through angle α ⇒
x'-axis parallel to the inclined plane
⇒ y'-axis parallel to the inclined plane
⇒ G18 parallel to the inclined plane
C
Alignment of the G19 plane parallel to the inclined plane:
• 1st rotation
Rotation of y around z through the angle β ⇒
y'-axis parallel to the inclined plane
• 2nd rotation
Rotation of z' around y' through angle γ ⇒
z'-axis parallel to the inclined plane
⇒ x'-axis parallel to the inclined plane
⇒ G19 parallel to the inclined plane
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
323
Fundamentals
2.12 Coordinate transformations (frames)
Syntax
Requirements
The position of a plane in space is clearly defined by two solid angles. The plane would be "over-
defined" by the specification of a third solid angle. It is therefore not permitted.
If only one solid angle is programmed, the rotation of the WCS is identical to ROT, AROT (see
Section "Programmable rotation (ROT, AROT, RPL) (Page 316)").
Through the two programmed axes, a plane is specified according to the plane definitions for
G17, G18, G19. This defines the sequence of the coordinate axes (1st axis / 2nd axis of the plane)
or the sequence of the rotations through the solid angles:
Plane
1st axis
2nd axis
G17
X
Y
G18
Z
X
G19
Y
Z
Alignment of the G17 plane ⇒ solid angle for X and Y
• 1st rotation: X around Y through the angle α
• 2nd rotation: Y around X' through the angle β
• Orientation: X' is in the original Z/X plane.
ROTS X<α> Y<β>
AROTS X<α> Y<β>
CROTS X<α> Y<β>
Alignment of the G18 plane ⇒ solid angle for Z and X
• 1st rotation: Z around X through the angle γ
• 2nd rotation: X around Z' through the angle α
• Orientation: Z' is in the original Y/Z plane
ROTS Z<γ> X<α>
AROTS Z<γ> X<α>
CROTS Z<γ> X<α>
Alignment of the G19 plane ⇒ solid angle for Y and Z
• 1st rotation: Y around Z through the angle β
• 2nd rotation: Z around Y' through the angle γ
• Orientation: Y' is in the original X/Z plane.
ROTS Y<β> Z<γ>
AROTS Y<β> Z<γ>
CROTS Y<β> Z<γ>
NC programming
324
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
Meaning
ROTS:
Absolute frame rotations with solid angles,
reference frame: Programmable frame $P_PFRAME
AROTS:
Additive frame rotations with solid angles,
reference frame: Programmable frame $P_PFRAME
CROTS:
Absolute frame rotations with solid angles,
reference frame: Programmed frame $P_ ...
X, Y, Z:
Geometry axis identifiers (see note above: Geometry axis identifiers)
Α, β, γ:
Solid angle in relation to the appropriate geometry axis:
• α → X
• β → Y
• γ → Z
2.12.7
Programmable scaling factor (SCALE, ASCALE)
SCALE/ASCALE can be used to program up or down scale factors for all path, synchronized, and
positioning axes in the direction of the axes specified in each case. This makes it possible,
therefore, to take geometrically similar shapes or different shrinkage allowances into account in
the programming.
Syntax
SCALE X… Y… Z…
ASCALE X… Y… Z…
Note
Each frame operation is programmed in a separate NC block.
Meaning
SCALE:
Scale up/down absolute in relation to the currently valid coordinate system set with
G54 to G57, G505 to G599.
ASCALE:
Scale up/down additive in relation to the currently valid set or programmed coor-
dinate system.
X… Y… Z…:
Scale factors in the direction of the specified geometry axes.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
325
Fundamentals
2.12 Coordinate transformations (frames)
Example
The pocket occurs twice on this workpiece, but
<
with different sizes and rotated in relation to
one another. The machining sequence is stor-
ed in the subprogram.
The required workpiece zeroes are set with
zero offset and rotation, the contour is scaled
down with scaling and the subprogram is then
called again.
r
;
Program code
Comment
N10 G17 G54
; Working plane X/Y, workpiece zero
N20 TRANS X15 Y15
; Absolute offset
N30 L10
; Machine large pocket
N40 TRANS X40 Y20
; Absolute offset
N50 AROT RPL=35
; Rotation in the plane through 35°
N60 ASCALE X0.7 Y0.7
; Scaling factor for the small pocket
N70 L10
; Machine small pocket
N80G0 X300 Y100 M30
; Retraction, end of program
Further information
SCALE X... Y... Z...
You can specify an individual scale factor for each axis, by which the shape is to be reduced or
enlarged. The scale refers to the workpiece coordinate system set with G54 to G57, G505 to
G599.
NOTICE
No original frame
The SCALE command resets all frame components of the previously activated programmable
frame.
NC programming
326
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
=
<
;
ASCALE X... Y... Z...
The ASCALE command is used to program scale changes to be added to existing frames. In this
case, the last valid scale factor is multiplied by the new one.
The currently set or last programmed coordinate system is used as the reference for the scale
change.
$527
Scaling and offset
Note
If an offset is programmed with ATRANS after SCALE, the offset values will also be scaled.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
327
Fundamentals
2.12 Coordinate transformations (frames)
Different scale factors
NOTICE
Risk of collision
Please take great care when using different scale factors! Circular interpolations can, for
example, only be scaled using identical factors.
Note
However, different scale factors can be used specifically to program distorted circles.
2.12.8
Programmable mirroring (MIRROR, AMIRROR)
MIRROR/AMIRROR can be used to mirror workpiece shapes on coordinate axes. All traversing
movements programmed after the mirror call (e.g. in the subprogram) are executed with
mirroring.
Syntax
MIRROR X... Y... Z...
AMIRROR X... Y... Z...
Note
Each frame operation is programmed in a separate NC block.
NC programming
328
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
Meaning
MIRROR:
Mirror absolute in relation to the currently valid coordinate system set with
G54 to G57, G505 to G599.
AMIRROR:
Additive mirror image with reference to the currently valid set or program-
med coordinate system.
X... Y... Z... :
Geometry axis whose direction is to be changed. The value specified here
can be chosen freely, e.g. X0 Y0 Z0.
Examples
Example 1: Milling
The contour shown here is programmed once
<
<
as a subprogram. The three other contours are
generated using mirroring. The workpiece zero
is located at the center of the contours.
;
;
;
;
<
<
Program code
Comment
N10 G17 G54
; Working plane X/Y, workpiece zero
N20 L10
; Machine first contour at top right
N30 MIRROR X0
; Mirror X axis (the direction is changed in X)
N40 L10
; Machine second contour at top left
N50 AMIRROR Y0
; Mirror Y axis (the direction is changed in Y)
N60 L10
; Machine third contour at bottom left
N70 MIRROR Y0
; MIRROR resets previous frames. Mirror Y axis (the di-
rection is changed in Y)
N80 L10
; Machine fourth contour at bottom right
N90 MIRROR
;Deactivate mirroring
N100 G0 X300 Y100 M30
; Retraction, end of program
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
329
Fundamentals
2.12 Coordinate transformations (frames)
Example 2: Turning
The actual machining is stored as a subpro-
6SLQGOH
6SLQGOH
gram and execution at the respective spindle is
;
;
implemented by means of mirroring and off-
sets.
=
=
0
:
:
0
Program code
Comment
N10 TRANS X0 Z140
; Zero offset to W
; Machining of the first side with spindle 1
N30 TRANS X0 Z600
; Zero offset to spindle 2
N40 AMIRROR Z0
; Mirroring of the Z axis
N50 ATRANS Z120
; Zero offset to W1
; Machining of the second side with spindle 2
Further information
MIRROR X... Y... Z...
The mirror is programmed by means of an axial change of direction in the selected working
plane.
Example: Working plane G17 X/Y
The mirror (on the Y axis) requires a direction change in X and, accordingly, is programmed with
MIRROR X0. The contour is then mirrored on the opposite side of the mirror axis Y.
NC programming
330
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
0,5525 ;
<
;
0,5525 <
Mirroring is implemented in relation to the currently valid coordinate system set with G54 to
G57, G505 to G599.
NOTICE
No original frame
The MIRROR command resets all frame components of the previously activated programmable
frame.
AMIRROR X... Y... Z...
A mirror image, which is to be added to an existing transformation, is programmed with
AMIRROR. The currently set or last programmed coordinate system is used as the reference.
75$16
$0,5525
Deactivate mirroring
For all axes: MIRROR (without axis parameter)
All frame components of the previously programmed frame are reset.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
331
Fundamentals
2.12 Coordinate transformations (frames)
Tool radius compensation
Note
The mirror command causes the control to automatically change the path compensation
commands (G41/G42 or G42/G41) according to the new machining direction.
<
*
*
*
*
;
0,5525 ;
The same applies to the direction of circle rotation (G2/G3 or G3/G2).
Note
If you program an additive rotation with AROT after MIRROR, you may have to work with
reversed directions of rotation (positive/negative or negative/positive). Mirrors on the geometry
axes are converted automatically by the control into rotations and, where appropriate, mirrors
on the mirror axis specified in the machine data. This also applies to settable zero offsets.
Mirror axis
The axis to be mirrored can be set in machine data:
MD10610 $MN_MIRROR_REF_AX = <value>
Value
Meaning
0
Mirroring is performed around the programmed axis (negation of values).
1
The reference axis is the X axis.
2
The reference axis is the Y axis.
3
The reference axis is the Z axis.
Interpreting the programmed values
Machine data is used to specify how the programmed values are to be interpreted:
NC programming
332
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
MD10612 $MN_MIRROR_TOGGLE = <value>
Value
Meaning
0
Programmed axis values are not evaluated.
1
Programmed axis values are evaluated:
• For programmed axis values ≠ 0, the axis is mirrored if it has not yet been mirrored.
• For a programmed axis value = 0, mirroring is deactivated.
2.12.9
Frame generation according to tool orientation (TOFRAME, TOROT, PAROT):
TOFRAME generates a rectangular frame whose Z axis coincides with the current tool
orientation. This means that the user can retract the tool in the Z direction without risk of
collision (e.g. after a tool break in a 5-axis program).
The position of the X and Y axes is determined by the setting in machine data MD21110
$MC_X_AXES_IN_OLD_X_Z_PLANE (coordinate system with automatic frame definition). The
new coordinate system is either left as generated from the machine kinematics or is turned
around the new Z axis additionally so that the new X axis lies in the old Z/X plane (see machine
manufacturer's specifications).
The resulting frame describing the orientation is written in the system variable for the
programmable frame ($P_PFRAME).
TOROT only overwrites the rotation component in the programmed frame. All other
components remain unchanged.
TOFRAME and TOROT are designed for milling operations in which G17 (working plane X/Y) is
typically active. In the case of turning operations or generally when G18 or G19 is active,
however, frames are needed where the X or Y axis matches the orientation of the tool. These
frames are programmed with the TOFRAMEX/TOROTX or TOFRAMEY/TOROTY statements.
PAROT aligns the workpiece coordinate system on the workpiece.
=%DVLV
<
=
=
r
<%DVLV
<
;
;
%DVLV
;
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
333
Fundamentals
2.12 Coordinate transformations (frames)
Syntax
TOFRAME/TOFRAMEZ/TOFRAMEY/TOFRAMEX
TOROTOF
TOROT/TOROTZ/TOROTY/TOROTX
TOROTOF
PAROT
PAROTOF
Meaning
TOFRAME:
Align Z axis of the WCS by rotating the frame parallel to the tool orientation
TOFRAMEZ:
As TOFRAME
TOFRAMEY:
Align Y axis of the WCS by rotating the frame parallel to the tool orientation
TOFRAMEX:
Align X axis of the WCS by rotating the frame parallel to the tool orientation
TOROT:
Align Z axis of the WCS by rotating the frame parallel to the tool orientation
The rotation defined with TOROT is the same as that defined with TOFRAME.
TOROTZ:
As TOROT
TOROTY:
Align Y axis of the WCS by rotating the frame parallel to the tool orientation
TOROTX:
Align X axis of the WCS by rotating the frame parallel to the tool orientation
TOROTOF:
Deactivate orientation parallel to tool orientation
PAROT:
Rotate frame to align workpiece coordinate system on workpiece
Translations, scaling and mirroring in the active frame remain valid
PAROTOF:
The workpiece-specific frame rotation activated with PAROT is deactivated
with PAROTOF.
Note
The TOROT statement ensures consistent programming with active orientable toolholders for
each kinematic type.
Just as in the situation for rotatable toolholders, PAROT can be used to activate a rotation of the
work table. This defines a frame which changes the position of the workpiece coordinate system
in such a way that no compensatory movement is performed on the machine. Language
command PAROT is not rejected if no toolholder with orientation capability is active.
NC programming
334
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
Example
Program code
Comment
N100 G0 G53 X100 Z100 D0
N120 TOFRAME
N140 G91 Z20
; TOFRAME is included in the calculation, all program-
med geometry axis movements
refer to the new coordinate system.
N160 X50
Further information
Assigning axis direction
If one of the TOFRAMEX, TOFRAMEY, TOROTX, TOROTY statements is programmed instead of
TOFRAME/TOFRAMEZ or TOROT/TOROTZ, the axis direction statements listed in this table will
apply:
Statement
Tool direction (appli-
Secondary axis
Secondary axis
cate)
(abscissa)
(ordinate)
TOFRAME / TOFRAMEZ /
Z
X
Y
TOROT / TOROTZ
TOFRAMEY / TOROTY
Y
Z
X
TOFRAMEX / TOROTX
X
Y
Z
Separate system frame for TOFRAME or TOROT
The frames resulting from TOFRAME or TOROT can be written in a separate system frame
$P_TOOLFRAME. For this purpose, bit 3 must be enabled in machine data
MD28082 $MC_MM_SYSTEM_FRAME_MASK. The programmable frame remains unchanged.
Differences occur when the programmable frame is processed further elsewhere.
2.12.10
Deselect frame (G53, G153, SUPA, G500)
When executing certain processes, such as approaching the tool change point, various frame
components have to be defined and suppressed at different times.
Settable frames can either be deactivated modally or suppressed non-modally.
Programmable frames can be suppressed or deleted non-modally.
Syntax
G53
G153
SUPA
G500
TRANS
ROT
SCALE
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
335
Fundamentals
2.12 Coordinate transformations (frames)
MIRROR
Meaning
G53:
Non-modal suppression of all programmable and settable
frames
G153:
G153 has the same effect as G53 and also suppresses the
entire basic frame ($P_ACTBFRAME).
SUPA:
SUPA has the same effect as G153 and also suppresses:
• Handwheel offsets (DRF)
• Overlaid movements
• External zero offset
• PRESET offset
G500:
Modal deactivation of all settable frames (G54 to G57,
G505 to G599) if G500 does not contain a value.
TRANS ROT SCALE MIRROR:
Without axis details, a deletion of the programmable frames
acts.
2.12.11
Programming: Deselecting overlays axis-specifically (CORROF)
The following axis-specific overlays (overrides) are deleted with the CORROF procedure:
• Additive work offsets (DRF offsets) set via handwheel traversal
• Position offsets programmed via the $AA_OFF system variable
A preprocessing stop is initiated through the deletion of an overlay (override) value and the
position component of the deselected overlaid movement is transferred to the position in the
basic coordinate system. Whereby, no axis is traversed.
The position value that can be read via the $AA_IM system variable (current MCS setpoint of the
axis) does not change in the machine coordinate system.
The position value that can be read via the $AA_IW system variable (current WCS setpoint of the
axis) changes in the workpiece coordinate system because it now contains the deselected
component of the overlaid movement.
Note
CORROF can be programmed in an NC program.
CORROF must not be programmed in a synchronized action.
Syntax
CORROF(<Axis>,"<String>"[,<Axis>,"<String>"])
NC programming
336
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
Meaning
CORROF:
Procedure for the deselection of the following offsets and overlays of an axis:
• DRF offset
• Position offsets ($AA_OFF)
Effectiveness:
Modal
<Axis>:
Axis identifier (channel, geometry or machine axis identifier)
Data type:
AXIS
<String>:
Character string for the definition of the overlay type
Data type:
BOOL
Value
Meaning
DRF
DRF offset
AA_OFF
Position offset ($AA_OFF)
Examples
Example 1: Axis-specific deselection of a DRF offset (1)
A DRF offset is generated in the X axis by DRF handwheel traversal. No DRF offsets are operative
for any other axes in the channel.
Program code
Comment
N10 CORROF(X,"DRF")
; CORROF has the same effect as DRFOF here.
Example 2: Axis-specific deselection of a DRF offset (2)
A DRF offset is generated in the X and Y axes by DRF handwheel traversal. No DRF offsets are
operative for any other axes in the channel.
Program code
Comment
; Only the DRF offset of the X axis is deselected; the DRF offset of the Y axis is
retained.
; With DRFOF, both offsets would have been deselected.
N10 CORROF(X,"DRF")
Example 3: Axis-specific deselection of a $AA_OFF position offset
Program code
Comment
; A position offset == 10 is interpolated for the X axis.
N10 WHEN TRUE DO $AA_OFF[X]=10 G4 F5
; The position offset of the X axis is deselected: $AA_OFF[X]=0
; The X axis is not traversed.
; The position offset is added to the current position of the X axis.
N80 CORROF(X,"AA_OFF")
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
337
Fundamentals
2.12 Coordinate transformations (frames)
Program code
Comment
Example 4: Axis-specific deselection of a DRF offset and a $AA_OFF position offset (1)
A DRF offset is generated in the X axis by DRF handwheel traversal. No DRF offsets are operative
for any other axes in the channel.
Program code
Comment
; A position offset of 10 is interpolated for the X axis.
N10 WHEN TRUE DO $AA_OFF[X]=10 G4 F5
; Only the DRF offset and the position offset of the X axis are deselected.
; The DRF offset of the Y axis is retained.
N70 CORROF(X,"DRF",X,"AA_OFF")
Example 5: Axis-specific deselection of a DRF offset and a $AA_OFF position offset (2)
A DRF offset is generated in the X and Y axes by DRF handwheel traversal. No DRF offsets are
operative for any other axes in the channel.
Program code
Comment
; A position offset == 10 is interpolated for the X axis.
N10 WHEN TRUE DO $AA_OFF[X]=10 G4 F5
; The DRF offset of the Y axis and the position offset of the X axis are deselected.
; The DRF offset of the X axis is retained.
N70 CORROF(Y,"DRF",X,"AA_OFF")
Further information
$AA_OFF_VAL
Once the position offset has been deselected by means of $AA_OFF, system variable
$AA_OFF_VAL (integrated distance of axis overlay) for the corresponding axis will equal zero.
$AA_OFF in JOG mode
Also in JOG mode, if $AA_OFF changes, the position offset will be interpolated as an overlaid
movement if this function has been enabled via machine data MD 36750 $MA_AA_OFF_MODE.
$AA_OFF in synchronized action
If a synchronized action which immediately resets $AA_OFF
(DO $AA_OFF[<axis>]=<value>) is active when the position offset is deselected using the
CORROF(<axis>,"AA_OFF"), then $AA_OFF will be deselected and not reset, and alarm
21660 will be displayed. However, if the synchronized action becomes active later, e.g. in the
block after CORROF, $AA_OFF will remain set and a position offset will be interpolated.
NC programming
338
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
Automatic channel axis exchange
If an axis that is active in another channel has been programmed for a CORROF, it will be fetched
into the channel with an axis exchange (requirement: MD30552 $MA_AUTO_GET_TYPE > 0) and
the position offset and/or the DRF offset deselected.
2.12.12
Deselecting additive work offsets (DRFROF)
The additive work offsets (DRF offsets) set via handwheel traversal are deselected via the DRFOF
procedure.
A preprocessing stop is initiated through the deselection and the position component of the
deselected DRF offset is transferred to the position in the basic coordinate system whereby no
axis is traversed. The value of the $AA_IM system variable (current MCS setpoint of an axis) does
not change; the value of the $AA_IW system variable (current WCS setpoint of an axis) changes
because it now contains the deselected component from the overlaid movement.
Syntax
DRFOF
Meaning
DRFOF:
Procedure for deselection of the DRF offsets for all active axes in the channel
Effectiveness:
Modal
Examples
Example 1: Axis-specific deselection of a DRF offset (1)
A DRF offset is generated in the X axis by DRF handwheel traversal. No DRF offsets are operative
for any other axes in the channel.
Program code
Comment
N10 CORROF(X,"DRF")
; CORROF has the same effect as DRFOF here.
Example 2: Axis-specific deselection of a DRF offset (2)
A DRF offset is generated in the X and Y axes by DRF handwheel traversal. No DRF offsets are
operative for any other axes in the channel.
Program code
Comment
N10 CORROF(X,"DRF")
; Only the DRF offset of the X axis is deselected; the DRF
offset of the Y axis is retained (in the case of DRFOF both
offsets would have been deselected).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
339
Fundamentals
2.12 Coordinate transformations (frames)
Example 3: Axis-specific deselection of a DRF offset and a $AA_OFF position offset (1)
A DRF offset is generated in the X axis by DRF handwheel traversal. No DRF offsets are operative
for any other axes in the channel.
Program code
Comment
N10 WHEN TRUE DO $AA_OFF[X]=10 G4 F5
; A position offset == 10 is interpo-
lated for the X axis.
N70 CORROF(X,"DRF",X,"AA_OFF")
; Only the DRF offset and the posi-
tion offset of the X axis are dese-
lected; the DRF offset of the Y axis
is retained.
Example 4: Axis-specific deselection of a DRF offset and a $AA_OFF position offset (2)
A DRF offset is generated in the X and Y axes by DRF handwheel traversal. No DRF offsets are
operative for any other axes in the channel.
Program code
Comment
N10 WHEN TRUE DO $AA_OFF[X]=10 G4 F5
; A position offset == 10 is interpo-
lated for the X axis.
N70 CORROF(Y,"DRF",X,"AA_OFF")
; The DRF offset of the Y axis and
the position offset of the X axis are
deselected; the DRF offset of the X
axis is retained.
2.12.13
Grinding-specific work offsets (GFRAME0, GFRAME1 ... GFRAME100)
Command for activating a grinding frame in the channel
The programming of the GFRAME<n> command makes the associated grinding frame of the
$P_GFR[<n>] data management active in the channel. This sets the active $P_GFRAME grinding
frame identical to the $P_GFR[<n>] grinding frame of the data management:
GFRAME<n> ⇒ $P_GFRAME = $P_GFR[<n>]
Command
Grinding frame activated in the channel
GFRAME0
$P_GFR[0] (null frame)
GFRAME1
$P_GFR[1]
GFRAME100
$P_GFR[100]
Syntax
GFRAME<n>
NC programming
340
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.12 Coordinate transformations (frames)
Meaning
GFRAME<n>:
Activation of the grinding frame <n> of the data management
G group:
64
Basic position:
MD20150 $MC_GCODE_RESET_VALUES[63]
Effectiveness:
Modal
<n>:
Number of the grinding frame
Range of values:
0, 1, 2, ... 100
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
341
Fundamentals
2.13 Auxiliary function outputs
2.13
Auxiliary function outputs
Function
The auxiliary function output sends information to the PLC indicating when the NC program
needs the PLC to perform specific switching operations on the machine tool. The auxiliary
functions are output, together with their parameters, to the PLC interface. The transferred
values and signals must be processed by the PLC user program.
Auxiliary functions
The following auxiliary functions can be transferred to the PLC:
Auxiliary Function
Address
Tool selection
T
Tool offset
D, DL
Feedrate
F/FA
Spindle speed
S
M functions
M
H functions
H
For each function group or single function, machine data is used to define whether the output
is triggered before, with or after the traversing motion.
The PLC can be programmed to acknowledge auxiliary function outputs in various ways.
Properties
Important properties of the auxiliary function are shown in the following overview table:
Function
Address extension
Value
Explanations
Maximum
number
Meaning
Range
Range
Type
Meaning
per block
M
-
0
0 ... 99
INT
Function
The address extension is 0
5
for the range between 0 and
(implicit)
99.
Mandatory without address
extension:
M0, M1, M2, M17, M30
Spindle no.
1 - 12
1 ... 99
INT
Function
M3, M4, M5, M19, M70 with
address extension spindle
no. (e.g. M2=5; spindle stop
for spindle 2).
Without spindle number, the
function applies for the mas-
ter spindle.
Any
0 - 99
100 ...
INT
Function
User M function*
2147483647
NC programming
342
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.13 Auxiliary function outputs
Function
Address extension
Value
Explanations
Maximum
number
Meaning
Range
Range
Type
Meaning
per block
S
Spindle no.
1 - 12
0 ... ± 1.8*10308
REAL
Speed
Without spindle number, the
3
function applies for the mas-
ter spindle.
H
Any
0 - 99
0 ...
Any
Functions have no effect in
3
the NC; only to be implemen-
± 2147483647
INT
ted on the PLC.*
± 1.8*10308
REAL
T
Spindle no.
1 - 12
0 - 32000
INT
Tool selec-
Tool names are not passed to
1
(for active
(or tool names
tion
the PLC interface.
tool man-
with active tool
agement)
management)
D
-
-
0 - 12
INT
Tool offset
D0: Deselection
1
selection
Default setting: D1
DL
Location-de-
1 - 6
0 ... ± 1.8*10308
REAL
Tool fine off-
Refers to previously selected
1
pendent off-
set selec-
D number.
set
tion
F
-
-
0.001 -
REAL
Path fee-
6
999 999.999
drate
FA
Axis No.
1 - 31
0.001 -
REAL
Axial fee-
999 999.999
drate
* The meaning of the functions is defined by the machine manufacturer (see machine manufacturer's specifications).
Further information
Number of function outputs per NC block
Up to 10 function outputs can be programmed in one NC block. Auxiliary functions can also be
output from the action component of synchronized actions.
Grouping
The functions described can be grouped together. Group assignment is predefined for some
M commands. The acknowledgment behavior can be defined by the grouping.
High-speed function outputs (QU)
Functions, which have not been programmed as high-speed outputs, can be defined as high-
speed outputs for individual outputs with the keyword QU. Program execution continues
without waiting for the acknowledgment of the miscellaneous function (the program waits for
the transport acknowledgment). This helps avoid unnecessary hold points and interruptions to
traversing movements.
Note
The appropriate machine data must be set for the "High-speed function outputs" function
(→ machine manufacturer).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
343
Fundamentals
2.13 Auxiliary function outputs
Function outputs for travel commands
The transfer of information as well as waiting for the appropriate response takes time and
therefore influences the traversing movements.
High-speed acknowledgment without block change delay
Block change behavior can be influenced by machine data. When the "without block change
delay" setting is selected, the system response with respect to high-speed auxiliary functions is
as follows:
Auxiliary function out-
Response
put
Before the movement
The block transition between blocks with high-speed auxiliary functions
occurs without interruption and without a reduction in velocity. The aux-
iliary function output takes place in the first interpolator clock cycle of the
block. The following block is executed with no acknowledgment delay.
During the movement
The block transition between blocks with high-speed auxiliary functions
occurs without interruption and without a reduction in velocity. The aux-
iliary function output takes place during the block. The following block is
executed with no acknowledgment delay.
After the movement
The movement stops at the end of the block. The auxiliary function output
takes place at the end of the block. The following block is executed with no
acknowledgment delay.
CAUTION
Function outputs in continuous-path mode
Function outputs before traversing motion interrupt the continuous-path mode (G64 / G641)
and generate an exact stop for the previous block.
Function outputs after the traversing movements interrupt the continuous-path mode
(G64 / G641) and generate an exact stop for the current block.
Important: Waiting for a pending acknowledgment signal from the PLC can also interrupt the
continuous-path mode, e.g. for M command sequences in blocks with extremely short path
lengths.
2.13.1
M functions
The M functions initiate switching operations, such as "Coolant ON/OFF" and other functions on
the machine.
Syntax
M<value>
M[<address extension>] = <value>
NC programming
344
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.13 Auxiliary function outputs
Meaning
M:
Address for the programming of the M functions.
<address extension>:
The extended address notation applies for some M functions (e.g.
specification of the spindle number for spindle functions).
<value>:
Assignment is made to a certain machine function through the value
assignment (M function number).
Type:
INT
Range of values:
0 ... 2147483647 (max. INT value)
Predefined M functions
Certain important M functions for program execution are supplied as standard with the control:
M function
Meaning
M0*
Programmed stop
M1*
Optional stop
M2*
End of program, main program (as M30)
M3
Spindle clockwise
M4
Spindle counter-clockwise
M5
Spindle stop
M6
Tool change (default setting)
M17*
End of subprogram
M19
Spindle positioning
M30*
End of program, main program (as M2)
M40
Automatic gear change
M41
Gear stage 1
M42
Gear stage 2
M43
Gear stage 3
M44
Gear stage 4
M45
Gear stage 5
M70
Spindle is switched to axis mode
Note
Extended address notation cannot be used for the functions marked with *.
The functions M0, M1, M2, M17 and M30 are always triggered after the traversing movement.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
345
Fundamentals
2.13 Auxiliary function outputs
M functions defined by the machine manufacturer
All free M function numbers can be used by the machine manufacturer, e.g. for switching
functions to control the clamping devices or for the activation/deactivation of further machine
functions.
Note
The functions assigned to the free M function numbers are machine-specific. A certain M
function can therefore have a different functionality on another machine.
Refer to the machine manufacturer's specifications for the M functions available on a machine
and their functions.
Examples
Example 1: Maximum number of M functions in the block
Program code
Comment
N10 S...
N20 X... M3
; M function in the block with axis movement,
; spindle accelerates prior to X axis movement.
N180 M789 M1767 M100 M102
; Maximum of five M functions in the block.
M376
Example 2: M function as high-speed output
Program code
Comment
N10 H=QU(735)
; Fast output for H735.
N10 G1 F300 X10 Y20 G64
N20 X8 Y90 M=QU(7)
; Fast output for M7.
M7 has been programmed as fast output so that the continuous-path mode (G64) is not
interrupted.
Note
Only use this function in special cases as, for example, the chronological alignment is changed
in combination with other function outputs.
Further information about the predefined M commands
Programmed stop: M0
The machining is stopped in the NC block with M0. You can now remove chips, remeasure, etc.
NC programming
346
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.13 Auxiliary function outputs
Programmed stop 1 - optional stop: M1
M1 can be set via:
• HMI / dialog box "Program Control"
or
• NC/PLC interface
The program execution of the NC is stopped by the programmed blocks.
Programmed stop 2 - an auxiliary function associated with M1 with stop in the program
execution
Programmed stop 2 can be set via the HMI / dialog box "Program Control" and allows the
technological sequences to be interrupted at any time at the end of the part to be machined. In
this way, the operator can interrupt the production, e.g. to remove chip flows.
End of program: M2, M17, M30
A program is ended with M2, M17 or M30. If the main program is called from another program (as
subprogram), M2/M30 has the same effect as M17 and vice versa, i.e. M17 has the same effect in
the main program as M2/M30.
Spindle functions: M3, M4, M5, M19, M70
The extended address notation with specification of the spindle number applies for all spindles.
Example:
Program code
Comment
M2=3
; Clockwise spindle rotation for the second spindle
If an address extension has not been programmed, the function applies for the master spindle.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
347
Fundamentals
2.14 Supplementary commands
2.14
Supplementary commands
2.14.1
Output messages (MSG)
Using the MSG() statement, any character string from the part program can be output as
message to the operator.
Syntax
MSG("<Message text>"[,<Execution>])
MSG ()
Meaning
MSG:
Predefined subprogram call for output of a message
<message text>:
Any character string to be displayed as message
Type:
STRING
Maximum length:
124 characters; the display takes up two lines (2*62
characters)
By using the link operator "<<", variables can also be output in the message text.
<Execution>:
Parameter to define the time when the message is written (optional)
Type:
INT
Value:
0 (basic set-
To write the message, a dedicated main run block
ting)
is not generated. This is realized in the next NC
block that can be executed. Active continuous-
path mode is not interrupted.
1
To write the message, a dedicated main run block
is generated. Active continuous-path mode is in-
terrupted.
MSG():
The actual message can be deleted by programming MSG() without message
text. If not deleted, the display remains until the next message is present.
Note
If the message is to be output in the language active on the user interface, then the user requires
information about the language that is currently set on the HMI. This information can be
interrogated in the part program and in synchronized actions by the the system
variable $AN_LANGUAGE_ON_HMI (Page 1346)
NC programming
348
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.14 Supplementary commands
Examples
Example 1: Output/delete message
Program code
Comment
N10 G91 G64 F100
; Continuous path mode
N20 X1 Y1
N... X... Y...
N20 MSG ("Machining part 1")
; The message is first output with
N30.
; continuous-path mode is retained.
N30 X... Y...
N... X... Y...
N400 X1 Y1
N410 MSG ("Machining part 2",1)
; The message is output with N410.
; continuous-path mode is interrup-
ted.
N420 X1 Y1
N... X... Y...
N900 MSG ()
; Delete message.
Example 2: Message text with variable
Program code
Comment
N10 R12=$AA_IW [X]
; Actual position of the X axis in
R12.
N20 MSG ("Check position of X axis"<<R12<<)
; Output message with variable R12.
N90 MSG ()
; Clear message from N20.
2.14.2
Writing string in OPI variable (WRTPR)
Using the WRTPR() function, it is possible to write any character string from the part program
into the OPI variable progProtText.
Syntax
WRTPR(<String>[,<ExecTime>])
Meaning
WRTPR:
Function call for outputting a character string.
<String>:
Any character string, which is written to the OPI variable progProtText.
Type:
STRING
Maximum length:
128 characters
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
349
Fundamentals
2.14 Supplementary commands
<ExecTime>:
Optional parameters to define the instant in time when the string is written.
Type:
INT
Range of values:
0, 1
0 (default)
No dedicated main run block is not gen-
erated to write the character string. This is
realized in the next NC block that can be
executed. Active continuous-path mode
is not interrupted.
1
A dedicated main run block is generated
to write the character string. Active con-
tinuous-path mode is interrupted.
Examples
Program code
Comment
N10 G91 G64 F100
; continuous path mode
N20 X1 Y1
N30 WRTPR("N30")
; The character string "N30" is first written to N40.
; Continuous-path mode is kept.
N40 X1 Y1
N50 WRTPR("N50",1)
; The character string "N50" is written to N50.
; Continuous-path mode is interrupted.
N60 X1 Y1
NC programming
350
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Fundamentals
2.14 Supplementary commands
2.14.3
Working area limitation
2.14.3.1
Working area limitation in BCS (G25/G26, WALIMON, WALIMOF)
G25/G26 limits the working area (working field, working space) in which the tool can traverse.
The areas outside the working area limitations defined with G25/G26 are inhibited for any tool
motion.
;
3URWHFWLRQ DUHD
:RUNLQJ DUHD
0
:
=
The coordinates for the individual axes apply in the basic coordinate system:
=
<
%DVLF
FRRUGLQDWH
V\VWHP
;
The working area limitation for all validated axes must be programmed with the WALIMON
command. The WALIMOF command deactivates the working area limitation. WALIMON is the
default setting. Therefore, it only has to be programmed if the working area limitation has been
disabled beforehand.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
351
Fundamentals
2.14 Supplementary commands
Syntax
G25 X…Y…Z…
G26 X…Y…Z…
WALIMON
WALIMOF
Meaning
G25:
Lower working area limitation
Assignment of values in channel axes in the basic coordinate system
G26:
Upper working area limitation
Assignment of values in channel axes in the basic coordinate system
X… Y… Z…:
Lower or upper working area limits for individual channel axes
The limits specified refer to the basic coordinate system.
WALIMON:
Switch working area limitation on for all axes
WALIMOF:
Switch working area limitation off for all axes
In addition to programming values using G25/G26, values can also be entered using axis-
specific setting data:
SD43420 $SA_WORKAREA_LIMIT_PLUS (Working area limitation plus)
SD43430 $SA_WORKAREA_LIMIT_MINUS (Working area limitation minus)
Activating and deactivating the working area limitation, parameterized using SD43420 and
SD43430, are carried out for a specific direction using the axis-specific setting data that becomes
immediately effective:
SD43400 $SA_WORKAREA_PLUS_ENABLE (Working area limitation active in the positive
direction)
SD43410 $SA_WORKAREA_MINUS_ENABLE (Working area limitation active in the negative
direction)
Using the direction-specific activation/deactivation, it is possible to limit the working range for
an axis in just one direction.
Note
The programmed working area limitation, programmed with G25/G26, has priority and
overwrites the values entered in SD43420 and SD43430.
Note
G25/G26 can also be used to program limits for spindle speeds at the address S. For more
information see " Programmable spindle speed limitation (G25, G26) (Page 104) ".
NC programming
352
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1

 

 

 

 

 

 

 

Content      ..     3      4      5      6     ..