FBFA
FBFA
FBFA
sinumerik
SINUMERIK 840D/840Di/810D
ISO Dialects for SINUMERIK
Brief Description 1
Programming 2
Start-Up 4
SINUMERIK 840D/840Di/810D
Boundary Conditions 5
ISO Dialects for SINUMERIK
Data Descriptions (MD, SD) 6
Example 8
Alarms 10
References A
Index
Valid for
07.2004 Edition
SINUMERIK Documentation
3ls
Printing history
Brief details of this edition and previous editions are listed below.
The status of each edition is shown by the code in the “Remarks” column.
A . . . . . New documentation.
B . . . . . Unrevised reprint with new order no.
C . . . . . Revised edition with new status.
If factual changes have been made on the page in relation to the same software
version, this is indicated by a new edition coding in the header on that page.
Trademarks
SIMATICr, SIMATIC HMIr, SIMATIC NETr, SIROTECr, SINUMERIKr and SIMODRIVEr are trademarks of
Siemens. Other product names used in this documentation may be trademarks which, if used by third
parties, could infringe the rights of their owners.
This publication was produced with Interleaf V7. We have checked that the contents of this document correspond to
the hardware and software described. Nonetheless, differences might
The reproduction, transmission or use of this document or its exist and therefore we cannot guarantee that they are completely
contents is not permitted without express written authority. Offenders identical. The information contained in this document is, however,
will be liable for damages. All rights, including those created by patent reviewed regularly and any necessary changes will be included in the
grant or registration of a utility model or design, are reserved. next edition. We welcome suggestions for improvement.
Siemens AG, 1999–2004. All rights reserved Subject to changes without prior notice.
Hotline If you have any questions about the control, please contact the hotline:
The purpose of The information in this manual makes it possible to import and use
this manual parts programs from external CNC systems.
Indexes and For your better orientation, this manual offers a list of contents and the
references following appendices:
S References
S Index
S Index of commands
Warning notes The following warning notes with graded degrees of importance are
used in this documentation:
Danger
! Indicates an imminently hazardous situation which, if not avoided, will
result in death or serious injury or in substantial property damage.
Warning
! Indicates a potentially hazardous situation which, if not avoided, could
result in death or serious injury or in substantial property damage.
Caution
! Used with the safety alert symbol indicates a potentially hazardous
situation which, if not avoided, may result in minor or moderate injury
or in property damage.
Caution
Used without safety alert symbol indicates a potentially hazardous situ-
ation which, if not avoided, may result in property damage.
Notice
Used without the safety alert symbol indicates a potential situation
which, if not avoided, may result in an undesirable result or state.
Further
information
Important
! Important indicates an important or especially relevant item of informa-
tion.
Note
The “note” symbol is displayed in this document to draw your attention
to information relevant to the subject in hand.
Machine manufacturer
The symbol shown is found in this documentation whenever the ma-
chine manufacturer can influence or amend the feature described.
Please note the machine manufacturer’s specifications.
Contents
1 Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-13
2 Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15
2.1 Activation of functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15
2.1.1 Switchover from ISO mode to Siemens mode . . . . . . . . . . . . . . . . . . . . . . . 2-17
2.2 G commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-19
2.2.1 G code display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-24
2.2.2 Display of non-modal G codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-25
2.2.3 G code output to PLC (as from SW 6.4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-25
2.2.4 Zero offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-27
2.2.5 Writing a zero offset with G10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-29
2.2.6 Decimal point programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-29
2.2.7 Rapid lift with G10.6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-31
2.2.8 Multiple threads with G33 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-33
2.2.9 Threads with variable lead (G34) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-33
2.2.10 Dwell time in spindle revolutions G04 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-34
2.2.11 Scaling and mirroring: G51, G51.1 (ISO Dialect M) . . . . . . . . . . . . . . . . . . . 2-34
2.2.12 2D/3D rotation G68 / G69 (ISO Dialect M) . . . . . . . . . . . . . . . . . . . . . . . . . . 2-37
2.2.13 Double-slide or double-turret machining G68 / G69 . . . . . . . . . . . . . . . . . . 2-39
2.2.14 Polar coordinates: G15 (ISO Dialect M) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-42
2.2.15 Polar coordinate interpolation G12.1 / G13.1 (G112/G113) . . . . . . . . . . . . 2-43
2.2.16 Cylindrical interpolation G07.1 (G107) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-44
2.2.17 Interrupt program with M96 / M97 (ASUB) . . . . . . . . . . . . . . . . . . . . . . . . . . 2-46
2.2.18 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-50
2.2.19 Block skip . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-50
2.2.20 Auxiliary function output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-51
2.2.21 Align first reference point: G28 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-52
2.2.22 Enable/disable feed-forward control using G08 P.. . . . . . . . . . . . . . . . . . . . 2-52
2.2.23 Compressor in ISO dialect mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-53
2.2.24 Automatic corner override G62 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-54
2.3 Subprogram and macro technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-57
2.3.1 Subprogram technology: M98 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-57
2.3.2 Siemens language commands in ISO Dialect mode . . . . . . . . . . . . . . . . . . 2-60
2.3.3 Extending the subprogram call for contour preparation
with CONTPRON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-61
2.3.4 Macro commands with G65, G66 and G67 . . . . . . . . . . . . . . . . . . . . . . . . . . 2-64
2.3.5 Mode changing in macro calls with G65/G66 . . . . . . . . . . . . . . . . . . . . . . . . 2-67
2.3.6 Macro call with M function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-68
2.3.7 Macro call with G function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-70
2.3.8 High-speed cycle cutting G05 P.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-72
2.3.9 Switchover modes for DryRun and skip levels . . . . . . . . . . . . . . . . . . . . . . . 2-73
2.3.10 Eight-digit program numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-74
2.3.11 System variable for level stack in ISO mode . . . . . . . . . . . . . . . . . . . . . . . . 2-76
2.4 Tool change and tool offsets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-79
2.4.1 Tool offsets: T, D, M (ISO Dialect M) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-79
2.4.2 Possible H numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-80
2.4.3 Tool offset: T (ISO dialect T) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-83
2.4.4 Tool-changing cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-88
Notes
Note
For a detailed description of the external programming functions, please refer to
the original documentation of the external CNC system.
Terms used
The following terms are defined for this manual:
S ISO Dialect M is similar to the G code of the “Fanuc16 Milling” control
S ISO Dialect T is similar to the G code of the “Fanuc16 Turning” control
System B
S ISO Dialect Original is equivalent to the original Fanuc16 control
J
Notes
Switchover
The following two G commands from Group 47 are used to switch between Sie-
mens mode and ISO Dialect mode:
S G290 Siemens NC programming language active
S G291 ISO Dialect NC programming language active
The active tool, tool offsets and zero offsets remain active here (see Subsec-
tion 2.2.4 and Section 2.4).
Siemens mode
The following conditions apply when Siemens mode is active:
S Siemens G commands are interpreted on the control by default.
S It is not possible to extend the Siemens programming system with ISO Dialect
functions because some of the G functions have different meanings.
S Downloadable MD files can be used to switch the control to ISO Dialect mode.
In this case, the user sees the ISO Dialect mode by default.
Power ON/Reset
Table 10-1 shows the possible combinations of machine data $MN_EXTERN_
CNC_SYSTEM and $MC_GCODE_RESET_VALUE. This specifies the Power ON/
Reset response.
Modal G commands
Modal G commands which have the same function in both systems (Siemens and
ISO Dialect) are treated as follows.
When these G codes are programmed in one language, the equivalent G code in
the other language is determined and activated. The following G codes are af-
fected.
Data management
ISO programs can be both read into and output from the MMC 103 in punchtape
format.
ISO programs which have been read in are stored in the NC data management
system as main programs in the default path:
_N_WKS_DIR/_N_SHOPMILL_WPD.
You can change the entry by editing the file DINO.INI in the USER directory. You
will find further information in the publication
References: /IAM/, IM3: MMC Installation and Startup Guide, Section 3.1.
G290/291
G commands 290/291 can be used from the parts program to change mode.
On switchover, the display of current G codes also changes.
G65/66
Non-modal and modal macro:
The programmed subprogram is called. Switchover to Siemens mode only takes
place when the PROC instruction is used in the first line of the subprogram.
If a program of this type is terminated with M17 or RET, when the subprogram re-
turns, the mode is switched back to ISO mode.
2.2 G commands
The G codes of ISO Dialect T refer to G code system B (see also 4.1.5).
The active G codes in ISO mode can be read using system variable
$P_EXTGG[...]. The numbers alongside the G code specify the respective value in
$P_EXTGG[...]. Machine data 20154 EXTERN_GCODE_RESET_VALUES[n]:
0, ..., 30 is used to specify the G codes that are effective on start-up when the NC
channel is not operating in Siemens mode.
Group 5
Group 6
Group 7
Group 8
Group 9
Group 10
Group 11
G51 2 Scaling ON
Group 12
Group 13
Group 14
Group 15
Group 16
G17 1 XY plane
G18 1) 2 ZX plane
G19 3 YZ plane
G68 1 Rotation ON 2D 3D
Group 17
Group 18 (non-modal)
Group 20
Group 21
G12.1 2 TRANSMIT ON
Group 22
Group 25
Group 31
Table 2-3 G commands are functionally identical in Siemens mode and in ISO Dialect mode
Note
If individual G codes of the groups in Table 2-3 cannot be mapped, the default set-
ting in machine data
20154: $MC_EXTERN_GCODE_RESET_VALUES and/or
20152: $MC_GCODE_RESET_VALUES
is activated.
In the G code display, the G codes for the currently active language are displayed.
G290/G291 also causes the G code display to switch over.
Example:
The Siemens standard cycles are called up using some of the ISO Dialect mode G
functions (e.g. G28). DISPLOF is programmed at the start of the cycle, with the
result that the ISO Dialect G commands remain active for the display.
PROC CYCLE328 SAVE DISPLOF
N10 ...
...
N99 RET
Sequence:
S External main program calls Siemens shell cycle.
Siemens mode is selected implicitly on the shell cycle call.
S DISPLOF freezes the block display at the call block;
the G code display remains in external mode. This display is refreshed while the
Siemens cycle is running.
As of SW 6.4 the external non-modal G codes (group 18) will no longer be reset on
block change if these G codes call up subprograms. The G codes remain visible on
the display until the next jump out of this subprogram.
Switching to external language mode in the subprogram and programming another
G code from group 18 overwrites the previous value and the new value is retained
until the return jump.
Example:
Main program Display group 18
N05 G00 X0 Y0 empty
N08 G27 X10 –> calls Cycle328 empty
N09 M0 empty
N40 M30 empty
Because only the G code of one language can be output in a DBB2xx, each index
(0 –7) can only be set on one of the two machine data, and the value 0 must be
entered in the other MD. Errors are signaled with Alarm 4045.
Example
$MC_GCODE_GROUPS_TO_PLC[0]=3
$MC_GCODE_GROUPS_TO_PLC[1]=0
$MC_GCODE_GROUPS_TO_PLC[2]=0
$MC_GCODE_GROUPS_TO_PLC[3]=0
$MC_GCODE_GROUPS_TO_PLC[4]=1
$MC_GCODE_GROUPS_TO_PLC[5]=2
$MC_GCODE_GROUPS_TO_PLC[6]=0
$MC_GCODE_GROUPS_TO_PLC[7]=0
$MC_EXTERN_GCODE_GROUPS_TO_PLC[0]=0
$MC_EXTERN_GCODE_GROUPS_TO_PLC[1]=3
$MC_EXTERN_GCODE_GROUPS_TO_PLC[2]=18
$MC_EXTERN_GCODE_GROUPS_TO_PLC[3]=1
$MC_EXTERN_GCODE_GROUPS_TO_PLC[4]=0
$MC_EXTERN_GCODE_GROUPS_TO_PLC[5]=0
$MC_EXTERN_GCODE_GROUPS_TO_PLC[6]=6
$MC_EXTERN_GCODE_GROUPS_TO_PLC[7]=31
The following G codes are then available on the PLC
DBB 208 = group 03 Siemens
DBB 209 = group 03 ISO dialect
DBB 210 = group 18 ISO dialect
DBB 211 = group 01 ISO dialect
DBB 212 = group 01 Siemens
DBB 213 = group 02 Siemens
DBB 214 = group 06 ISO dialect
DBB 215 = group 31 ISO dialect
The zero offsets (ZO) of Siemens mode are shown in Fig. 2-1.
Fig. 2-1 Instantaneous mapping of the ISO functions onto the Siemens frames
The zero offsets that are available in ISO mode are mapped onto the existing Sie-
mens frames. No separate frames exist for ISO mode. Active zero offsets are
incorporated in both language modes.
Changes in ISO mode have an immediate effect in Siemens mode and vice-versa.
Zero offsets exist in both ISO Dialect T and ISO Dialect M:
S G52 is a programmable, additive ZO that remains active until the end of the
program or a reset
S G54 to G59 are settable zero offsets
S G54 P1...P100 are additional settable zero offsets
S G54 P0 is an “external ZO” extOffset
G54.1
G54.1 Pxx is provided as an alternative notation to G54 Pxx. The functionality is
identical. With G54.1 the P address must always be programmed in the block. If P
is not programmed, alarm 12080 (syntax error) is produced.
G10 can be used from the parts program to write the zero offsets.
G10 L2 P1...P6 X.. Y.. ; G54.. G59
G10 L20 P1...P100 ; Additional, settable ZO
G10 L2 P0 External ZO extOffset
These zero offsets are mapped onto the same frames as the zero offsets that al-
ready exist in ISO Dialect M.
The G10 command is extended for ISO dialect T:
Writing of system data
G10 Pxx X Y Z ;writing of tool offset data
Depending on machine data $MC_EXTERN_FUNCTION_MASK, bit1, G10 Pxx is
used to write either tool geometry or tool wear.
$MC_EXTERN_FUNCTION_MASK, bit1 = 0:
P > 100 write geometry values
P < 100 write wear values
$MC_EXTERN_FUNCTION_MASK, bit 1=1:
P > 10000 write geometry values
P < 10000 write wear values
There are two notations for the interpretation of programming values without a dec-
imal point in ISO Dialect mode:
S Pocket calculator type notation
Values without decimal points are interpreted as mm, inch or degrees.
S Standard notation
Values without decimal points are multiplied by a conversion factor.
The setting is defined by MD 10884, see Chapter 4 “Startup”.
There are two different conversion factors, IS-B and IS-C. This evaluation refers to
addresses X Y Z U V W A B C I J K Q R and F.
Example of linear axis in mm:
X 100.5 corresponds to value with decimal point: 100.5 mm
X 1000 pocket calculator type notation: 1000 mm
standard notation: IS-B: 1000* 0.001= 1 mm
IS-C: 1000* 0.0001 = 0.1 mm
G10.6 <AxisPosition> is used to activate a retraction position for the rapid lifting of
a tool (e.g., in the event of a tool break). The retraction motion itself is started with
a digital signal. The second NC fast input is used as the start signal.
Machine data $MN_EXTERN_INTERRUPT_NUM_RETRAC is used to select a
different fast input (1 – 8).
In Siemens mode, the activation of the retraction motion comprises a number of
part program commands.
N10 G10.6 X19.5 Y33.3
generates internally in the NCK
N10 SETINT (2) PRIO=1 CYCLE3106 LIFTFAST ; Activate interrupt input
N30 LFPOS ; Select lift mode
N40 POLF[X]=19.5 POLF[Y]=33.3 ; Program lift positions
; for x19.5 and y33.3
N70 POLFMASK(X, Y) ; Activate retraction
; of x and y axis
G10.6 is used to group these part program commands internally in a command
set.
In order to activate an interrupt input (SETINT(2)), an interrupt program (ASUP)
must also be defined. If one has not been programmed, the part program will not
be able to continue as it will be interrupted with a reset alarm once the retraction
motion is complete. The interrupt program (ASUP) CYCLE3106.spf is always used
for fast retraction with G10.6. If the part program memory does not contain pro-
gram CYCLE3106.spf, alarm 14011 “Program CYCLE3106 not available or not en-
abled for processing” is output in a part program set with G10.6.
Siemens
To some extent, the fast retraction function with G10.6 can be achieved using func-
tion POLF[<AxisName>] = <RetractionPosition>. This function will also retract the
tool to the programmed position. However, it does not support the remainder of the
ISO dialect original functionality. If the interrupt point cannot be approached di-
rectly, obstructions must be bypassed manually.
References: /PGA/, Programming Guide Advanced,
Chapter “Extended Stop and Retract”
Restrictions
Only one axis can be programmed for fast retraction.
Syntax G33 X.. Z.. F.. Q.. is used to program multiple threads in ISO dialect T and
M mode, whereby:
X.. Z.. = Thread end position
F.. = Lead
Q.. = Initial angle
Threads with offset slides are programmed by entering starting points, which are
offset from one another, in set G33. The starting point offset is entered at address
“Q” as an absolute angular position. The corresponding setting data
($SD_THREAD_START_ANGLE) is changed accordingly.
Example: Q45000 means: Start offset 45.000 degrees
Range of values: 0.0000 to 359.999 degrees
The initial angle must always be programmed as an integer value. The input reso-
lution for angular data is 0.001 degrees.
Example:
N200 X50 Z80 G01 F.8 G95 S500 M3
N300 G33 Z40 F2 Q180000
This produces a thread with a lead of 2 mm and a starting point
offset of 180 degrees.
Note
If a factor other than “1” is programmed for parameters I, J, K or if the address is
missing (default value is active for I, J, K), the contour is also scaled.
Example
00512 (parts program)
N10 G17 G90 G00 X0 Y0 Approach start position
N30 G90 G01 G94 F6000
N32 M98 P0513 1) Contour programmed as in the
subprogram
N34 G51 X0. Y0. I-1000 J1000 2) Mirror contour around X
00513 (subprogram)
N10 G90 X10. Y10.
N20 X50
N30 Y50
N40 X10. Y10.
N50 M99
50
2) 1)
10
Starting point
0
–10
3) 4)
–50
–50 –10 0 10 50
Mirroring
G51.1 selects mirroring.
Mirroring is performed around a mirror axis that runs parallel to X, Y or Z and
whose position is programmed with X, Y or Z. G51.1 X0 is used to mirror about the
X axis and G51.1 X10 is used to mirror about an axis that runs parallel to the X
axis at a distance of 10 mm.
All axes in the channel and not just the geometry axes can be mirrored.
G51.1 functions additively, i.e. following N5 G51.1 X10 and N10 G51.1 Y10, mirror-
ing in X and V is active.
Example: G51.1 X80.
Mirroring is performed around a mirror axis that runs parallel to Y and that crosses
the X axis at position 80.
Mirrored Original
60 80 100 X
G51.1 X80
If the standard notation is active (see Subsection 2.2.6), the axis positions without
a decimal point are interpreted in internal units.
Mirroring is deselected with G50.1 X0 Y0. It can also be deselected for individual
axes. Following G50.1 X0, mirroring is only deselected for the X axis; mirroring
around all other axes remains active.
G51.1 and G50.1 must be in a block of their own.
G51.1 is mapped onto channel-specific base frame [1]. For this purpose,
MD 28081 $MC_MM_NUM_BASE_FRAMES >=2 must be set.
When base frame[1] is changed in Siemens mode, it directly affects the function in
ISO mode.
If the frame is deleted in every frame component, this corresponds to a G50.1 X0
Y0.. in all axes.
G51.1 is deselected on a Reset.
2D rotation
The coordinate system is rotated about the vertical axis of the selected plane.
Programming
G68 X.. Y.. R..
X.. Y..: Coordinates of the pivot point related to the current
workpiece zero. If a coordinate is not programmed, the
pivot point is taken from the actual value memory.
The value is always interpreted as an absolute value.
R: The angle of rotation is interpreted as an absolute or
incremental value depending on G90/G91. If an angle is not
programmed, the angle from setting data
$SA_DEFAULT_ROT_FACTOR_R is active.
G68 must be in a block of its own.
G69 Rotation Off; Additional codes can be programmed
in this block.
G68 is mapped onto channel-specific base frame 2. For this purpose, machine
data MD 28081: $MC_MM_NUM_BASE_FRAMES >= 3 must be set.
A programmed angle R is not entered in setting data
42150: $SA_DEFAULT_ROT_FACTOR_R. This setting data can only be written
manually and is effective provided that no R has been programmed in the G68
block.
3D rotation
G code G68 has been expanded for 3D rotation.
Programming
G68 X.. Y.. Z.. I.. J.. K.. R..
X.. Y.. Z..: Coordinates of the pivot point related to the current
workpiece zero. If a coordinate is not programmed
the pivot point is at the workpiece zero. The value is always
interpreted as an absolute value. The coordinates of the pivot
point act likea zero offset. A G90/91 in the block has no effect
on the G68 command.
I.. J.. K..: Vector in the pivot point. The coordinate system is rotated
about this vector by the angle R.
R: Angle of rotation, always interpreted as an absolute value.
If an angle is not programmed, the angle from setting
data 42150 $SA_DEFAULT_ROT_FACTOR_R is active.
G68 must be in a block of its own.
Function G68/G69 is used to control the two-sided machining of turned parts (both
machining with a double slide in two channels and machining in one channel with
two tools with a fixed connection at a distance x).
MD $MN_EXTERN_DOUBLE_TURRET_ON is used to define whether machining
in the two channels is synchronized (= FALSE) or if one of two fixed-connection
tools is used alternately for machining (= TRUE).
On fixed-connection tools, G68 is used to activate the distance x entered in MD
42162: $SC_EXTERN_DOUBLE_TURRET_DIST as an additive zero offset in the
X axis. As the second tool machines the opposite side of the turned part, G68 also
activates mirroring about the Z axis (directional reversal of the X axis). The next
set with axis motions activates the zero offset and mirroring for the second tool.
G69 disables zero offset and machining continues with the first tool.
G68 and G69 must only be programmed in the set.
The sign of the offset must be taken into account for tool length offset in the X axis
for the second tool. The sign must be entered as if the X axis was not mirrored or
setting data $SC_MIRROR_TOOL_LENGTH (mirror tool length offset) and
$SC_MIRROR_TOOL_WEAR (mirror tool length offset wear values) must be set.
Machine data $MN_MIRROR_REF_AX must = 0 or = 1 in order to always mirror
the X or first axis.
Programming G68 when G68 is already active will read over the G function. The
same is true of G69.
X Tool offset
Tool T1
60
80 φ
120
40 φ
Z
180
120 φ
220
Tool offset
Tool T2
Example:
N100 X40. Z180. G1 F1 G95 S1000 M3 T1
N110 G68 ; Activate mirroring about Z and additive zero offset (220 mm)
N120 X80. Z120. T2
N130 G69 ; Deactivate mirroring and additive zero offset
N140 X120. Z60 T1
Tool channel 1
40 40
10 φ Z
15 30 φ
Tool channel 2
Fig. 2-5 Synchronous machining with 2 channels
Example:
Channel 1:
N10 ....
– “ –
N1000 G68 ; Start synchronization
N1010 G01 X30 Z120 G95 F1.2 S1000 M3
Programmed angle
In the case of active polar coordinate programming, the programmed angle can be
read via the system variable $P_AP.
This variable is inserted in the shell cycle. Before the new pole is set, with incre-
mental programming, the angle must be stored because the angle will be deleted.
Polar programming is terminated by G15. The polar radius is set to 0.
G12.1 and G13.1 are used to switch on and switch off an interpolation in the proc-
essing level between an axis of rotation and a linear axis. A second linear axis
passes vertically through this plane. This function corresponds to the Transmit
function in Siemens mode. In Siemens mode, two Transmit transformations can be
parameterized. For G12.1 the first TRANSMIT data block is always the one which
must correspond to the second transformation record. For a detailed description of
the TRANSMIT function please refer to the following documentation:
Example:
Rotary axis C
N204 N203
N205
N202 N201 N200 X axis
N208
N206 N207
Z axis
00001
N010 T0101
N0100 G90 G00 X60.0 C0 Z..
N0200 G12.1 ;TRANSMIT selection
N0201 G42 G01 X20.0 F1000
N0202 C10.0 ;
N0203 G03 X10.0 C20.0 R10.0
N0204 G01 X–20.0
N0205 C–10.0
N0206 G03 X–10.0 C–20.0 I10.0 J0
N0207 G01 X20.0
N0208 C0
N0209 G40 X60.0
N0210 G13.1 ;TRANSMIT deselection
N0300 Z..
N0400 X.. C..
N0900 M30
Note
Geo axis exchange (parallel axes with G17 (g18, G19)) must not be active.
Function G07.1 (cylindrical interpolation) can be used to mill any kind of grooving
on cylindrical bodies. The path of the grooving is programmed by reference to the
developed, level surface of the cylinder barrel. Cylindrical interpolation is started in
function G07.1 by specifying the cylindrical radius G07.1 C<cylindrical radius> and
ended with G07.1 C0 (radius = 0).
The function is mapped internally onto the Siemens functionality TRACYL. In ISO
Dialect mode, G07.1 always activates the first TRACYL transformation and the first
transformation record. The second TRACYL function cannot be activated in ISO
Dialect mode. For a detailed description and the parameter setting for the first
TRACYL function, please refer to the following documentation:
/FB2/ SINUMERIK 840D/810D(CCU2)
Description of Functions, Extended Functions, Chapter M1 and
/PGA/ SINUMERIK 840D/810D
Programming Guide, Advanced, Chapter “Transformations”
Restrictions
In Siemens mode the axis of rotation for cylindrical interpolation must be defined in
machine data.
In ISO Dialect mode the axis of rotation for cylindrical interpolation is defined by
programming G07.1 <axis of rotation>... .
Example
Radius
Z
mm
N05 N80
120
N70
N10
N60
90
N20
70 N30 N40 N50
50
Degr.
0 30 270 360
60 70 150 190 230
M96
A subprogram can be defined as an interrupt routine with M96 P <program num-
ber>.
This program is started by an external signal. The first high-speed NC input of the
8 inputs available in Siemens mode is always used to start the interrupt routine.
Machine data $MN_EXTERN_INTERRUPT_NUM_ASUP lets you select an other
fast input (1 – 8).
The function is mapped onto standard syntax: SETINT(x) <CYCLE396> [PRIO=1].
In shell cycle CYCLE396, the interrupt program programmed with Pxxxx is called
in ISO mode. The program number is in $C_PI. At the end of the shell cycle, ma-
chine data
10808: $MN_EXTERN_INTERRUPT_BITS_M96 BIT1 is evaluated, resulting ei-
ther in positioning at the interruption point with REPOSA or in continuation with the
next block. The new cycle variable $C_PI contains the value programmed with “P”
without leading zeroes. These must be added to fill out to four digits in the shell
cycle before the subprogram is called.
Example: N0020 M96 P5
Call in shell cycle
progName = “000” << $C_PI
ISOCALLprogName
See treatment of 8-digit program numbers, if MD $MC_EXTERN_FUNC-
TION_MASK, bit 6 is set.
M97
M97 is used to suppress starting of the interrupt routine. The interrupt routine can
then only be started by the external signal following activation with M96.
This corresponds to Standard syntax: ENABLE(x).
x = content of $MN_EXTERN_INTERRUPT_NUM_ASUP
If the interrupt program programmed with M96 Pxx is called up directly with the
interrupt signal (without the intermediate step with CYCLE396), machine data
20734: $MC_EXTERN_FUNCTION_MASK BIT10 must be set. The subprogram
programmed with Pxx is then called on a 0 –> 1 signal transition in Siemens mode.
The M function numbers for the interrupt function are set via machine data. With
machine data 10804: $MN_EXTERN_M_NO_SET_INT, the M number is used to
activate an interrupt routine and with MD 10806: $MN_EXTERN_M_NO_DIS-
ABLE_INT the M number is used to suppress an interrupt routine.
Only non-standard M functions are permitted to be set. M functions M96 and M97
are set as defaults. To activate the function, bit 0 must be set in machine data
10808: $MN_EXTERN_INTERRUPT_BITS_M96. These M functions will not be
output to the PLC in this case. If bit 0 is not set, the M functions will be interpreted
as conventional auxiliary functions.
On completion of the “Interrupt” program, the end position of the parts program
block that follows the interruption block is approached. If processing of the parts
program has to continue starting from the interruption point, there must be a RE-
POS instruction at the end of the “Interrupt” program, e.g. REPOSA.
For this purpose the interrupt program must be written in Siemens mode.
Machine data
MD $MN_EXTERN_INTERRUPT_BITS_M96:
Bit 0: = 0: Interrupt program is not possible, M96/M97 are conventional
M functions
= 1: Activation of an interrupt program with M96/M97 permitted
Bit 1: = 0: Execution of parts program continues from the final position
of the next block after the interruption block
= 1: Continue parts program as from interruption position
(evaluated in interrupt program (ASUB), return with/without
REPOSL)
Bit 2: = 0: The interrupt signal interrupts the current block immediately and
starts the interrupt routine
= 1: The interrupt routine is not started until the block has been
completed.
Bit 3: = 0: The machining cycle is interrupted on an interrupt signal
= 1: The interrupt program is not started until the machining cycle
has been completed.
(evaluated in the shell cycles)
Bit 3 must be evaluated in the shell cycles and the cycle sequence must be
adapted accordingly.
Bit 1 must be evaluated in the interrupt program. If bit 1 = TRUE, on completion of
the program, REPOSL must be used to reposition at the interruption point.
Example:
N1000 M96 P1234 ; Activate ASUB 1234.spf in the case of a rising
; edge on the first high-speed input, program 1234.spf
; is activated
“
“
N3000 M97 ; Deactivate the ASUB
Rapid lifting (LIFTFAST) is not performed before the interrupt program is called.
On the rising flank of the interrupt signal, depending on machine data MD 10808:
$MN_EXTERN_INTERRUPT_BITS_M96, the interrupt program is started immedi-
ately.
2.2.18 Comments
The skip character “/” can be anywhere within the block, even in the middle. If the
programmed skip level is active at the moment of compiling, the block will not be
compiled from this position to the end of the block. An active skip level therefore
has the same effect as an end of block.
Example:
N5 G00 X100. /3 YY100 ––> Alarm 12080,
N5 G00 X100. /3 YY100 ––> No alarm when skip level 3 is active
Skip characters within a comment are not interpreted as skip characters.
Example:
N5 G00 X100. ( /3 part1 ) Y100 ;even when skip level 3 is active, the
;Y axis will be traversed
The skip level can be /1 to /9. Skip values <1 >9 give rise to alarm 14060
The function is mapped onto the existing Siemens skip levels. In contrast to ISO
Dialect Original, / and /1 are separate skip levels and therefore have to be acti-
vated separately.
M
ISO Dialect mode
M functions are output to the PLC as auxiliary functions. Only M98 and M99 are
exceptions. All other predefined M functions are transferred to the PLC as auxiliary
functions.
The following are predefined M functions:
M17, M40, M41, M42, M43, M44, M45, M70, M96, M97, M98, M99.
H
All H functions are output to the PLC as auxiliary functions with ISO Dialect M. In
ISO Dialect T, G code system A, H is the incremental distance of the 4th axis pro-
vided that a 4th axis exists.
T
T functions are output to the PLC as auxiliary functions. T has the additional mean-
ing of a tool selection.
D
Die The D function is output to the PLC as an auxiliary function. With ISO Dialect
M, tool length compensation is activated with address D.
B
If B is not an axis, the B function is output to the PLC as an auxiliary function with
address extension H1=.
Example: B1234 is output as H1=1234.
Note
Machine data is used to define the type of feed-forward control and which path
axes are to be traversed under pilot actuation.
Default: Speed-dependent feed-forward control.
Option: Acceleration-dependent feed-forward control.
Example:
N0010 G08 P1 ; Enable feed-forward control
N0020 G1 X10 Y50 F900
N0030 G1 X10 Y50 F900
N1000 G08 P0 ; Disable feed-forward control
At inside corners with active tool radius compensation it is often better to reduce
the feedrate.
G62 only acts at inside corners with active tool radius compensation and active
continuous-path operation. It only takes account of corners whose inside angle is
smaller than $SC_CORNER_SLOWDOWN_CRIT. The inside angle is determined
from the bend in the contour.
The feedrate is reduced by factor $SC_CORNER_SLOWDOWN_OVR:
traveled feedrate =
F * $SC_CORNER_SLOWDOWN_OVR * feedrate override.
The feedrate override is now composed of the multiplied feedrate override from the
machine control panel and the override from synchronized actions.
The feedrate reduction is started at distance 42520: $SC_CORNER_SLOW-
DOWN_START before the corner. It ends at distance 42522: $SC_COR-
NER_SLOWDOWN_END after the corner (see Fig. 2-8). An appropriate path is
used at curved contours.
X
Workpiece
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ Layer to be milled off
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ
Tool center point path
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ
$SC_CORNER_SLOWDOWN_START
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ
$SC_CORNER_SLOWDOWN_END
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ
Inside angle $SC_CORNER_SLOWDOWN_CRIT
F * $SC_CORNER_SLOWDOWN_OVR
$SC_CORNER_SLOWDOWN_START Path s
$SC_CORNER_SLOWDOWN_END
Parameterization
The override value is set in the following setting data:
42520: $SC_CORNER_SLOWDOWN_START
42522: $SC_CORNER_SLOWDOWN_END
42524: $SC_CORNER_SLOWDOWN_OVR
42526: $SC_CORNER_SLOWDOWN_CRIT
The setting data has default value 0.
S If $SC_CORNER_SLOWDOWN_CRIT == 0, the corner deceleration will only
take effect at reversing points.
S If $SC_CORNER_SLOWDOWN_START and $SC_CORNER_SLOW-
DOWN_END are equal to 0, the feedrate reduction will be approached with the
permissible dynamic response.
S If $SC_CORNER_SLOWDOWN_OVR == 0, a brief stop will be inserted.
S $SC_CORNER_SLOWDOWN_CRIT refers to geometry axes with G62. It de-
fines the maximum inside angle in the current machining plane up to which the
corner deceleration will be applied. – G62 is not active on rapid traverse.
Activation
The function is activated with G62 or G621. The G code is activated either with the
corresponding parts program command or with $MC_GCODE_RESET_VAL-
UES[56].
Examples
$TC_DP1[1,1]=120
$TC_DP3[1,1]=0. ;length offset vector
$TC_DP4[1,1]=0.
$TC_DP5[1,1]=0.
M30
Subprogram calls
Subprogram calls are programmed with M98 in ISO Dialect.
For the program syntax, see Fig. 2-9.
M98 P xxxxyyyy
The program syntax M98 Pxxxxyyyy is used to call a subprogram with the number
yyyy and repeat it xxxx times. If the xxxx is not programmed, the subprogram is
executed only once. The subprogram name always consists of 4 digits or is ex-
tended to 4 digits by adding 0’s.
For example, if M98 P21 is programmed, the parts program memory is searched
for program name 0021.spf and the subprogram is executed once. To execute the
subprogram 3 times, program M98 P30021.
SW 6 upwards
Until now the number of program executions (number of repeats) has been pro-
grammed in ISO Dialect M/T in conjunction with the subprogram number at ad-
dress “P”.
As an alternative, the number of subprogram executions can now also be pro-
grammed at address “L”. The number of the subprogram is still programmed as
Pxxxx. If the number of executions is programmed at both addresses, the number
of executions programmed at address “L” is valid. The number of subprogram exe-
cutions lies between 1 and 9999.
Example:
N20 M98 P20123 ;Subprogram 123.spf will be executed twice
N40 M98 P55 L4 ;Subprogram 55.spf will be executed four times
N60 M98 P30077 L2 ;Subprogram 77.spf will be executed twice
;The number of executions programmed
;at address “P” =3 is ignored
Subprogram termination
M99 terminates the subprogram.
If M99 Pxxxx is programmed, execution resumes at block number Nxxxx on the
return jump to the main program. The block number must always begin with “N”.
The system initially searches forwards for the block number (from the subprogram
call towards the end of the program). If a matching block number is not found, the
parts program is then scanned backwards (towards the start of the program).
If M99 appears without a block number (Pxxxx) in a subprogram, the subprogram
is terminated and the processor jumps back to the main program to the block fol-
lowing the subprogram call.
If M99 appears without a block number (Pxxxx) in a main program, the processor
jumps back to the start of the main program and runs the program again.
These M commands are not output to the PLC.
Search direction:
The search direction for <block number/label> is always forwards first (towards the
end of the program) and then backwards (towards the start of the program).
Example
N10 X10. Y20.
N20 G71 P30 Q60 U1 W1 F1000 S1500
Note
M30 in Siemens mode: is interpreted as a return jump in a subprogram.
M30 in ISO Dialect mode: is also interpreted as the end of the parts program in a
subprogram.
Certain Siemens language commands are also required in ISO Dialect mode for
Shopmill. These commands are executed in ISO Dialect mode. They include sub-
program calls with and without passed parameters (not calls with Lxx, because
address L has a different meaning for ISO Dialect), program section repetition and
control structures. All other Siemens language commands are denied with an
alarm in ISO Dialect mode.
The following Siemens language commands can be programmed when ISO Dia-
lect mode is active:
REPEAT:
REPEAT <Block number> [<Block number>] [P..]
REPEAT UNTIL
REPEATB <Block number> [P..]
Only block numbers, not labels are allowed as start and end identifiers.
IF – ELSE – ENDIF
FOR – ENDFOR
WHILE – ENDWHILE
IF<Condition> – GOTO F<Condition>
CASE
In ISO Dialect, the contour definition for stock removal cycles G70 – G73 is not
stored separately in a subprogram (as in SINUMERIK), but appears in the parts
program (main program). When the cycles are called, the contour definition section
is defined by a start and end block number. The cycles receive this block number
as a passed parameter. The indirect subprogram call has been extended for Sie-
mens adaptation cycles.
Previously, subprograms were called indirectly with CALL <program name>.
The indirect subprogram call has been extended as follows for access to the con-
tour definition in the main program:
CALL [<program name>] BLOCK <start label> TO <end label>
If no program name or an empty string is specified as the program name, i.e. CALL
BLOCK <start label> TO <end label>, the search for the program section (start/end
label) is made in the program which is currently selected. The search for the labels
is also performed in the selected program with MDA, ASUB etc. (i.e. in the case of
MDA, the search for the labels is performed not in the MDA buffer but in the pro-
gram with the selected program name). Programming this syntax directly in a main
program has the same effect as repeating a program section in a loop with RE-
PEAT <start label> <end label>, i.e. the search for the start and end label is per-
formed in the program containing the CALL BLOCK ... command.
If a program name is specified, e.g. CALL <progName> BLOCK <start label> TO
<end label>, the system searches for the program section (surrounded by the
start/end label) in subprogram “progName”.
Example
Nxx G71 Pxx Q1110 U.. W.. ;ISO Dialect G function calls
; shell cycle CYCLE395.spf
; _N_CYCLE395_SPF
N10 .......
.......
Nxxx CYCLE95(....., “N”<<$C_P, “N”<<$C_Q)
;Stock removal cycle with additional
; parameters for start and end label
Nxxx M30
Note
The actual CONTPRON and EXECUTE calls do not have to be modified.
Example
In stock removal cycle CYCLE395, the contour definition which appears between
blocks N10 – N30 in the main program is to be used (with CALL BLOCK N10
TO N30 in CYCLE395). N40 is the current program line in the main program.
The contour definition block is printed in bold lettering in the example.
N10 X10. Y20. N20 X30.
N30 Y10.
N40 G71 P10 Q30... ;Call shell cycle for stock removal cycle
... ;(In the stock removal cycle
... ;“CALL BLOCK N10 TO N30” is programmed)
... ;The contour definition is found in the
;lines printed in bold
N50 G90 G54
N60 F1000 G94
N10 X50. Y10.
N20 X33. Y11.
N30 X10.
N50 ....
N.. .....
N800 G71 P10 Q30 ;Call shell cycle for stock removal cycle
... ;(In the stock removal cycle, “CALL BLOCK N10 TO
;N30” is programmed)
... ;The contour definition is found in
... ;the lines printed in italics
N999 ....
N10 X15.
N20 Y25.
N30 X33.
N1010 ....
N1020 .....
ISO Dialect
In ISO Dialect mode, macros are called in the parts program with G65 Pxx, G66
Pxx. A macro is a set of parts program blocks that are terminated with M17.
When the subprogram is called, the mode is switched from ISO mode to Siemens
mode.
The following commands are used for selection and deselection:
S G65 Macro call, non-modal
S G66 Macro call, modal
S G67 Deselect modal macro call
Siemens
G commands G65 Pxx and G66 Pxx are used to start macro xx. G65 calls subpro-
gram Pxx once. G66 activates the Pxx subprogram call modally, and the subpro-
gram is then executed in every block containing axis movements (same as MCALL
xx). G67 deactivates the modal subprogram call again (equivalent to G80 for cycle
calls).
In a parts program block with G65 or G66, the address Pxx is interpreted as the
program number of the subprogram containing the macro functionality. Address
Lxx can be used to define the number of passes of the macro. If a number of
passes is not programmed in the calling block, the macro is executed once. All fur-
ther addresses in this parts program block are interpreted (as in ISO Dialect
“Macro B”) as passed parameters, and their programmed values are saved in sys-
tem variables $C_A–$C_Z. These system variables can be read in the subpro-
grams and evaluated for the macro functionality. If further macros are called with
parameters within a macro (subprogram), the passed parameters must be saved in
internal variables in the subprogram before the new macro call.
As in the case of the machining cycles, the language mode is switched implicitly to
Siemens mode to allow the definition of internal variables. Therefore, if a further
macro call appears in the subprogram, ISO Dialect mode must be selected again
first.
$C_J[0]=10
$C_J[1]=22
$C_J_ORDER[0]=1
$C_J_ORDER[1]=2
$C_K[0]=30
$C_K[1]=55
$C_K[2]=33
$C_K_ORDER[0]=1
$C_K_ORDER[1]=2
$C_K_ORDER[2]=3
Until now, automatic switchover to Siemens mode was performed for macro calls
with G65/G66.
The user now has the choice whether switchover to Siemens mode takes place
when the macro starts or not. Switchover to Siemens mode only takes place when
the PROC<program name> instruction is used in the first line of the macro pro-
gram. If this instruction is missing, ISO mode will remain active during execution of
the macro program.
The user can therefore decide whether to create local variables (with DEF...) for
the purpose of storing transfer variables. It is necessary to switch to Siemens
mode to do this using the PROC instruction. The user can also specify that the
macro program (e.g. an existing ISO Dialect M/T macro) is executed in ISO mode.
Example of a macro call:
_N_M10_MPF:
N10 M3 S1000 F1000
N20 X100. Y50. Z33.
N30 G65 P10 F55 X150. Y100. S2000
N40 X50.
N50....
N200 M30
A macro can be called using M numbers in the same way as G65 (see 2.3.5).
10 M function substitutions are configured with machine data
10814: $MN_EXTERN_M_NO_MAC_CYCLE and
10815: $MN_EXTERN_M_NO_MAC_CYCLE_NAME.
Parameter transfer is executed in exactly the same way as with G65. Repetitions
can be programmed with address L.
Restrictions
Only one M function substitution (and/or only one subprogram call) can be exe-
cuted in each line of a parts program. Conflicts with other subprogram calls are
output with alarm 12722. No further M function substitutions are made in the re-
placed subprogram.
Otherwise, the same restrictions apply as for G65
Conflicts with predefined and other defined M numbers are rejected with an alarm.
Configuration examples
Subprogram M101_MACRO call with M function M101
$MN_EXTERN_M_NO_MAC_CYCLE[0] = 101
$MN_EXTERN_M_NO_MAC_CYCLE_NAME[0] = “M101_MACRO”
Subprogram M6_MAKRO call with M function M6.
$MN_EXTERN_M_NO_MAC_CYCLE[1] = 6
$MN_EXTERN_M_NO_MAC_CYCLE_NAME[1] = “M6_MACRO”
Programming example for tool change with M function:
PROC MAIN
...
N10 M6 X10 V20
...
N90 M30
PROC M6_MACRO
...
N0010 R10 = R10 + 11.11
N0020 IF $C_X_PROG == 1 GOTOF N40
display($C_X_PROG)
N0030 SETAL(61000) ;programmed variable incorrectly
;transferred
N0040 IF $C_V == 20 GTOF N60
display($C_V)
N0050 SETAL(61001)
N0060 M17
A macro can be called using G numbers in the same way as G65 (see 2.3.5).
50 G function substitutions are configured with machine data
10816: $MN_EXTERN_G_NO_MAC_CYCLE and
10817: $MN_EXTERN_G_NO_MAC_CYCLE_NAME.
The parameters programmed in the block are saved in the $C_ variables. Address
L is used to define the number of times a macro is repeated. The number of the
programmed G_macro is stored in variable $C_G. All other G functions pro-
grammed in the block are treated like normal G functions. The sequence in which
addresses and G functions are programmed in the block is irrelevant and has no
effect on the functionality.
All ISO G codes, even G codes with a decimal point (= real value) can be replaced
by a macro call.
G functions that are replaced by a macro do not exist in the control and can be re-
defined with
10822: $MN_NC_USER_EXTERN_GCODES_TAB[ ].
Restrictions
Only one G/M function substitution (and/or only one subprogram call) can be exe-
cuted in each line of a parts program. Conflicts with other subprogram calls, e.g.
when a modal subprogram call is active, are signaled with alarm 12722.
If a G macro is active no more G/M macros or M subprograms are called. M mac-
ros/subprograms are then executed as M functions, and G macros as G functions
if the relevant G function exists. Otherwise alarm 12470 is output.
Otherwise, the same restrictions apply as for G65
Configuration examples
Subprogram G21_MAKRO call with G function G21
$MN_EXTERN_G_NO_MAC_CYCLE[0] = 21
$MN_EXTERN_G_NO_MAC_CYCLE_NAME[0] = “G21_MACRO”
$MN_EXTERN_G_NO_MAC_CYCLE[1] = 123
$MN_EXTERN_G_NO_MAC_CYCLE_NAME[1] = “G123_MACRO”
$MN_EXTERN_G_NO_MAC_CYCLE[2] = 421
$MN_EXTERN_G_NO_MAC_CYCLE_NAME[2] = “G123_MACRO”
Programming example:
PROC MAIN
...
N0090 G291 ;ISO mode
N0100 G1 G21 X10 V20 F1000 G90 ;G21_MACRO.spf, G1, and
;G90 calls activated
;before G21_MACRO.spf
;is called
...
N0500 G90 X20 Y30 G123 G1 G54 ;G123_MACRO.spf, G1,
;G54, and G90 calls
;activated before
:G123_MACRO.spf
;is called
...
N0800 G90 X20 Y30 G421 G1 G54 ;G421_MACRO.spf, G1,
;G54, and G90 calls
;activated before
;G123_MACRO.spf is called
...
N0900 M30
PROC G21_MACRO
...
N0010 R10 = R10 + 11.11
N0020 IF $C_X_PROG == 0
N0030 SETAL(61000) ;programmed variable incorrectly
;transferred
N0040 ENDIF
N0050 IF $C_V_PROG == 0
N0060 SETAL(61001)
N0070 ENDIF
N0080 IF $C_F_PROG == 0
N0090 SETAL(61002
N0100 ENDIF
N0110 G90 X=$C_X V=$C_V
N0120 G291
N0130 G21 M6 X100 ;G21–>activates metric system of
;units (no macro call)
N0140 G290
...
N0150 M17
PROC G123_MACRO
...
N0010 R10 = R10 + 11.11
N0020 IF $C_G == 421 GOTOF label_G421
;macro functionality for G123
N0040 G91 X=$C_X Y=$C_Y F500
...
...
N1990 GOTOF label_end
N2000 label_G421: ;macro functionality for G421N2010 G90 X=$C_X
Y=$C_Y F1000
N2020
...
...
N3000 G291
N2010 G123 ;alarm 12470 because G123 is not a G function
;and a macro cannot be called when a macro is
;active. Exception: the macro was called as
;a subprogram with CALL G123_MACRO.
N4000 label_end: G290
N4010 M17
G05 P.. high-speed cycle cutting takes the form of a subprogram call.
Programming G05 P.. L..
Pxxxxx Subprogram number, max. 10 characters
When called it is not necessary to fill with zeros as is the case
with M98.
Lxxxx Number of passes. If L is not programmed, L1 is assumed.
Example:
G05 P10123 L3 10123.mpf is passed through three times.
This call can be used to fetch any subprogram. This subprogram can be a precom-
piled program, but does not have to be. However, only a Siemens parts program
can be precompiled.
There is not equivalent of ISO Dialect function G05 in Siemens mode. CYCLE305
enables users to program their own functionality in the context of the Siemens
functionality.
CYCLE305.spf is called when programming G05 in the following cases:
S G05 without P in the block is skipped without an alarm.
S G05.1 with and without P is skipped without an alarm.
S G05 P0 or P01 are reserved for high-speed remote buffer B. This function is not
supported.
In the cases mentioned, all addresses programmed in the block are defined in
cycle parameter $C_xx. When CYCLE305 is called there is no automatic change
of mode from ISO to Siemens. If it is intended to process CYCLE305.spf in Sie-
mens mode, the first program line must contain a PROC instruction as in the case
of macro calls with G65/G66.
Switching over the skip levels (DB21 DBB2) always meant intervening in the pro-
gram run which until now resulted in a momentary drop in velocity along the path.
The same applies when the dry run mode DryRunOff (DryRun = dry-run feedrate
DB21.DBB0.BIT6) it switched to DryRunOn and vice versa.
This drop in voltage can now be avoided with a new switchover mode which has a
restricted functionality.
With machine data assignment $MN_SLASH_MASK==2 a drop in voltage is no
longer necessary when switching skip levels (i.e. a new value in PLC–>NCK-Chan
interface DB21.DBB2).
Note
The NCK processes blocks in two stages, preliminary or preprocessing and main
processing. The result of preprocessing is put into the preprocessing memory. The
main processing stage takes the oldest block from the pre–processing memory
and traverses its geometry.
Attention
With machine data assignment $MN_SLASH_MASK==2, preprocessing is
switched over when the skip levels are switched! All blocks in the preprocessing
memory are executed with the old skip level. As a rule, the user has no influence
over the level of the preprocessing memory. The user observes the following: The
new skip level can take effect at any time after switchover!
Note
The parts program command STOPRE empties the preprocessing memory. If the
skip level is switched over before STOPRE, it is certain that all blocks after
STOPRE will be switched over. The same applies to an implicit STOPRE.
Interrupt M96
$MC_EXTERN_FUNCTION_MASK, bit6 = 0
M96 Pxxxx
Extension of program number always to four digits with 0
$MC_EXTERN_FUNCTION_MASK, bit6 = 1
M96 Pxxxx
No extension with 0 even if the program number is less than four digits long. Pro-
gram number with more than eight digits triggers an alarm.
Example:
Siemens program ISO Dialect program
N5 T1 N5 T1
N10 G41 D3 N10 G41 H12 or G41 D12
When the H value is programmed in the ISO dialect M program, the system
searches for and activates the matching $TC_DPH in the active T after the correc-
tion block.
If the correction block does not contain an H number, the compensation cannot be
activated in ISO Dialect mode.
If an H is programmed but a correction block with the corresponding H number is
not found or the associated tool T is not selected, an alarm is output.
H=0
All data of the tool edges with H number 0 are not linked. Every tool edge has its
own parameters.
H = unique
An H number in a TO unit must exist only once otherwise clear addressing of the
compensation block is not possible. In case an H number has been allocated for a
second time, alarm “17183 channel %1 block %2 H number already exists in
T= %3 with D=%4” is given when writing from the program,. The alarm is com-
pensation block compatible with NC Start clear.
Example:
N5 $TC_DPH[1,1] = 5
N10 $TC_DPH[2,1] = 5
An attempt to allocate an H number twice via OPI (HMI, PLC) will lead to a nega-
tive acknowledgement when writing.
Active plane
Setting data $SC_TOOL_LENGTH_CONST must be assigned value 17 if the as-
signment of tool length offsets to geometry axes is to be independent of plane
selection. Length 1 is then always assigned to the Z axis.
Example:
ISO Dialect M:
T2
G43 H4 or D4 ;Length selection
G42 D4 or H4 ;Radius selection
The offset value must be entered twice for ISO Dialect M programs which are pro-
grammed with different D and H numbers.
Example:
ISO Dialect M:
T2
G43 H4 ;Length offset from T2 D3
G42 D5 ;Radius and length offset from T2 D4
Flat D number
If flat D numbers are active, the T is programmed independently of the H number.
The H number is no longer checked for compatibility with the selected tool.
An H number must be assigned to every offset memory, even with flat D numbers.
Tool management
If tool management is active, replacement tools have the same H number. Duplo
numbers are used in order to differentiate.
Offset D1 is activated for the currently selected tool on H99 with active tool man-
agement.
In ISO Dialect M, only numerical expressions are permitted as tool identifiers.
Strings are no longer permitted as identifiers.
Example: T = “2”, selection with T2.
G291
N30 T2 ;Tool 2
N33 G43 H7 Z0 ;H number 7
N35 G41 X0 Y0 Z0 D7
N40 X50.
N45 Y50.
N48 Z10.
N50 X0
N55 Y0
N60 G40 X-10 Y-10
N65 T3
N68 G43 H3 Z0
N70 G42 X0 Y0 Z0 D3
N75 X50.
N77 Y50.
N78 Z10.
N80 X0
N85 Y0
N90 G40 X-10 Y-10
N95 T4
N98 G43 H8 Z0
N100 G41 X0 Y0 Z0 D8
N105 X50.
N110 Y50.
N112 Z10.
N115 X0
N120 Y0
N125 G40 X-10 Y-10
M30
The offset is addressed either with the Siemens cut number D or with the H num-
ber from $TC_DPH. Addressing with D is only possible for “flat D numbers”. If tool
management is used, H is always used for addressing.
Txxxxyyyy: xxxx=Tool number, yyyy=offset number
Machine data 10890: $MN_EXTERN_TOOLPROG_MODE, bit 0 defines how the
T value is interpreted.
The number of digits in the tool number is defined in machine data 10888:
$MN_EXTERN_DIGITS_TOOL_NO. The digits are counted from left to right. Sub-
sequent digits indicate the offset number.
Bit 0=1 in MD 10890 sets the offset number to the same value as the tool number.
Example:
$MN_EXTERN_TOOLPROG_MODE=0
$MN_EXTERN_DIGITS_TOOL_NO=2
T1234 ;Auxiliary function T1234 on PLC
;Tool number 12
;Offset selection D34/H34
$MN_EXTERN_TOOLPROG_MODE, Bit0=1
T12 ;Auxiliary function T12 on PLC
;Tool number 12
;Offset selection 12
Machine data 20382: $MC_TOOL_CORR_MOVE_MODE is used to select when
the offset is applied: immediately when the set is selected or not until the axis is
programmed.
MD 20110: $MC_RESET_MODE_MASK, bit 6 is used to define whether the offset
is maintained in the event of a rest or deselected.
MD 20360: $MC_TOOL_PARAMETER_DEF_MASK, Bit 0 is used to activate the
calculation of the wear value for the transverse axis as a diameter value. The ge-
ometry offset is always applied as a radius.
Example: Tool selection, ISO dialect T:
G290
N5000 ;Definition of tool offset memory D1:
N5000 $TC_DP1[1,1]=10 ;Type
N5000 $TC_DP2[1,1]=9 ;Cutting edge position
N5000 $TC_DP6[1,1]=5 ;Radius
G291
;Write tool offset data
N3 G10 P1 X10 Z20 Y30
N5 G10 P2 X20 Y20 Z100
G291
N650 G10 P2 X10 ; Write geometry cut 2
N655 G10 P102 X1 ; Write wear cut 2
G291
N840 G10 P22 X10 ; Write geometry T1 cut 2.
N845 G10 P122 X1 ; Write wear T1 cut 2.
N847 G10 P55 X1 ; Alarm 12550, because cut is
; not available with H55
General description
The functionality of the ISO Dialect cycles is implemented in the standard
Siemens cycles:
A shell cycle is called from the ISO Dialect program. All addresses programmed in
the block are passed to this shell cycle in the form of system variables. The shell
cycle matches the data to the standard Siemens cycle and calls it by name.
Machine manufacturers can replace these shell cycles with their own cycles.
Cycle parameters
Various cycle parameters in channel-specific GUD (Global User Data) must be ini-
tialized for the machining cycles. The names and meanings of the GUD are listed
in Section 3.2.
N10 G...
Shell cycle
N20 X.. Y..
N30 ...
N40 ...
Siemens standard cycle
Shell cycle
The modifications required due to the ISO Dialect programming syntax are made in
the shell cycle. This means that the existing SINUMERIK cycles do not have to be
changed. The name of the shell cycle is permanently defined.
Procedure:
4. The cycle (e.g. G81) is programmed in ISO Dialect mode
5. Siemens mode is activated automatically and the associated shell cycle is
called (see Fig. 3-2)
6. The shell cycle calls the associated Siemens standard cycle
It is not necessary to program G290. The external CNC system is automatically
activated on the return jump.
Important
The cycles must only be called with G commands.
This ensures that the appropriate cycle parameters are passed to the shell cycle.
The shell cycle must not be activated directly with CALL CYCLE3xx!
Modal cycles
If a modal cycle is active, the shell cycle is called in every NC block. If no axis posi-
tions (X, Y or Z) are programmed in the NC block, the Siemens standard cycle is
not called.
Addresses programmed in the block (F etc.) are activated via the shell cycle. If no
feedrate was programmed, for example, the current feedrate is used as the path
feed.
Cycle parameters can be programmed in the following blocks while a modal cycle
is active. These parameters are copied into the system variables so that the shell
cycle uses the modified parameters.
Modal cycles are, in contrast to modal macros, already executed in the calling
block (e.g. block with G81 etc.).
Deselecting the cycle:
Deselection is performed with G80 or with a function of the 1st G group.
Example:
N10 G81 X10. Y20. Z–15. R5 F1000
Drilling position X10mm, Y20mm
Drilling depth Z-15mm
Reference plane 5mm
Drilling feed F.. (mm/min or mm/rev)
N20 X50. Y30. R10 Drilling position X50mm, Y30mm,
New reference plane 10mm
N30 G80 Delete cycle G81
Table 3-1 GUD7 for programmed cycle values (ISO Dialect program data)
Table 3-1 GUD7 for programmed cycle values (ISO Dialect program data)
Table 3-2 GUD7 for cycle setting data (ISO Dialect setting data)
GUD Description/use
Real values
_ZSFR[0] Safety clearance to reference plane 381M, 383M
_ZSFR[1] Retraction amount for chipbreaking (G73) 383M
_ZSFR[2] Angle offset for oriented spindle stop, tool must be oriented in +X 387M
direction (G76)
Retraction direction:
–X G17 plane XY
–Z G18 plane ZX
–Y G19 plane YZ
_ZSFR[20] Safety clearance to reference plane 383T, 384T
_ZSFR[21] Safety clearance to chip break 383T, 385T
Integer values
_ZSFI[0] 0=Drilling axis is perpendicular to plane (default) 381M, 383M,
1=Drilling axis always “Z” 384M, 387M
_ZSFI[1] 0= Rigid tapping 384M,387M
1= Tapping with compensating chuck
2= Deep hole tapping with chipbreaking
3= Deep hole tapping with swarf removal
_ZSFI[2] Retraction speed factor (1–200%) for tapping (G74/G84) 384M
_ZSFI[3] Polar coordinates 0 = OFF 1 = ON 381M, 383M,
384M, 387M
_ZSFI[20] Deep hole drilling with chip breaking/removal 383T, 385T
_ZSFI[22] Factor for retraction speed 384T
_ZSFI[23] Dwell time with G95, 0=seconds, 1=revolution 383T
_ZSFI[24] Number of noncuts 376T
_ZSFI[25] Cutting edge angle 376T
_ZSFI[26] Thread run-out distance (n*pitch) 376T
_ZSFI[27] Min. infeed depth 376T
_ZSFI[28] Final machining allowance 376T
_ZSFI[29] Distance traversed for grooving cycle 374T
_ZSFI[30] Cutting depth for stock removal cycle 371T, 372T
_ZSFI[31] Distance traversed for stock removal cycle 371T, 372T
Table 3-2 GUD7 for cycle setting data (ISO Dialect setting data)
GUD Description/use
_ZSFI[32] X axis infeed value for contour repetition 373T
_ZSFI[33] Z axis infeed value for contour repetition 373T
_ZSFI[34] Number of divisions for contour repetition 373T
_ZSFI[39] G code system 2=B, 1=A, 3=C 300, 328,
330, 370T,
371T, 372T,
373T, 374T,
376T
The drilling cycles are modal. While a drilling mode is active, you only have to pro-
gram the new parameters in order to make parameter modifications.
There is no traversing movement if:
S No value is programmed in the NC block for X, Y and Z
S The number of repetitions K=0 was programmed
The retraction position is valid for all drilling cycles
S G98 Retraction to initial plane
S G99 Retraction to reference plane
Overview
G81
G82 CYCLE82
G85 CYCLE85
CYCLE381M
G86 CYCLE88
G89
Fig. 3-2 Assignment of the cycle call in ISO Dialect M mode via shell cycle for Siemens
standard cycle
Parameter description
G7V or
G8V X.. Y.. Z.. R.. P.. Q.. F.. K..
Number of repetitions
If K was not programmed, the cycle is
executed once
Machining feed
Drill-hole
position Const. single drilling depth for G73, G83
Lift-off distance for G76
Dwell time at drill-hole depth
for G82, G84, G76, G89
Reference plane
Drill-hole depth
Plane
Z Drilling tool
R incr.
R (abs.)
Reference plane (G99)
Workpiece surface Q
Q Z (incr.)
Z (abs.)
Q
Fig. 3-4 Example of deep hole drilling cycle G83 with defined plane G17
Representation of initial plane, reference plane and parameters
In ISO Dialect M mode, the call is performed with G commands G81, G82, G85.
Notes
The drilling axis must be defined via GUD _ZSFI[0] (see Section 3.2).
The direction from initial plane to reference plane must be identical to the direction
from reference plane to final depth.
GUD _ZSFR[0] can be used to enter a safety clearance. If the safety clearance
was already allowed for when programming the reference plane, the value 0 must
be entered in _ZSFR[0].
If no reference plane was programmed, the drilling is performed starting on the ini-
tial plane (current position).
The final drilling depth must be programmed. Otherwise, an alarm is displayed.
If no feedrate is programmed, the current feedrate is used as the drilling feed.
Note
Alarms are listed with their alarm number and description in Chapter “Alarms”.
In ISO Dialect M mode, the call is performed with G commands G73, G83.
Notes
The drilling axis must be defined via GUD _ZSFI[0] (see Section 3.2).
The direction from initial plane to reference plane must be identical to the direction
from reference plane to final depth.
GUD _ZSFR[0] can be used to enter a safety clearance. If the safety clearance
was already allowed for when programming the reference plane, the value 0 must
be entered in _ZSFR[0].
If no reference plane was programmed, the drilling is performed (in steps) starting
on the initial plane (current position).
The final drilling depth and the single drilling depth Q must be programmed. Other-
wise, an alarm is displayed.
If no feedrate is programmed, the current feedrate is used as the drilling feed.
Note
Alarms are listed with their alarm number and description in Chapter “Alarms”.
In ISO Dialect M mode, the call is performed with G commands G74, G84.
Notes
The drilling axis must be defined via GUD _ZSFI[0] (see Section 3.2).
The direction from initial plane to reference plane must be identical to the direction
from reference plane to final depth.
GUD _ZSFR[0] can be used to enter a safety clearance. If the safety clearance
was already allowed for when programming the reference plane, the value 0 must
be entered in _ZSFR[0].
The speed of rotation during retraction can be controlled via GUD _ZSFI[2].
Example: _ZSFI[2]=80, the retraction takes place with 80 % of the drilling speed.
If no reference plane was programmed, the drilling is performed starting on the ini-
tial plane (current position).
The final drilling depth must be programmed. Otherwise, an alarm is displayed.
If no feedrate is programmed, the current feedrate is used as the drilling feed.
If the drilling feed is specified in mm/min (inch/min), the programmed feed value is
converted to the appropriate revolutional feedrate, depending on the speed last
programmed, and passed to the standard tapping cycle CYCLE84 as a lead value.
Note
Alarms are listed with their alarm number and description in Chapter “Alarms”.
In ISO Dialect M mode, the call is performed with G commands G76 and G87.
Notes
The drilling axis must be defined via GUD _ZSFI[0] (see Section 3.2).
The direction from initial plane to reference plane must be identical to the direction
from reference plane to final depth.
GUD _ZSFR[0] can be used to enter a safety clearance. If the safety clearance
was already allowed for when programming the reference plane, the value 0 must
be entered in _ZSFR[0].
The lift-off path is always with reference to the negative direction of the first geom-
etry axis
For plane G17 Lift-off path in –X
For plane G18 Lift-off path in –Z
For plane G19 Lift-off path in –Y
The angle must be therefore be entered such that the tool tip points in the positive
direction (+) in the defined plane after the spindle stop.
Example: If plane G17 is active, the tool tip must point in the +X direction.
If no reference plane was programmed, the drilling is performed starting on the ini-
tial plane (current position).
The final drilling depth must be programmed. Otherwise, an alarm is displayed.
If no feedrate is programmed, the current feedrate is used as the drilling feed.
If no lift-off amount is programmed, Q = 0 is set. In this case, the cycle is executed
without lift-off.
After retracting to the return plane, the tool is moved back to the center of the drill-
hole and the spindle is started in the direction of rotation for machining.
Note
Alarms are listed with their alarm number and description in Chapter “Alarms”.
G command Description
G70 Finishing cycle
G71 Stock removal cycle longitudinal axis
G72 Stock removal cycle transverse axis
G73 Repeat contour
G74 Deep hole drilling and recessing in longitudinal axis (Z)
G75 Deep hole drilling and recessing in facing axis (X)
G76 Multiple thread cutting cycle
The cycle parameters for G71 to G76 can comprise two G commands. Depending
on the addresses programmed in the block, the values of the addresses pro-
grammed in the NC block are only saved for use in a subsequent cycle call, or the
actual cycle is started. The evaluation of the two cases is performed within the
shell cycle.
running without
G70 CYCLE 370T standard cycle
G73 CYCLE395
CYCLE 373T
G74
G75 CYCLE 374T CYCLE375T
Fig. 3-5 Assignment of the cycle call in ISO Dialect T mode via shell cycle for Siemens
standard cycle
In ISO Dialect mode, the contour in the main program is not skipped with G70. The
program is always resumed at the next parts program block following the cycle call.
Example:
When the cycle is called, the contour in N20–N50 is traversed; the parts program
continues running at N20 after the end of the cycle. G70 is naturally always called
up after the contour definition.
N10 G70 P20 Q50
N20 X100. Z50.
N30 X200.
N40 Z100.
N50 X250. Z111.
N60 M30
Blocks N20–N50 are executed once by the finishing cycle and again by the normal
program run.
With G71 in ISO Dialect T, the contour is followed with the final machining allow-
ance in the main program after stock removal (to remove any remaining straight
edges). The program is always resumed at the parts program block following the
last block of the contour definition. parts program blocks between the cycle call and
the first block of the contour description are not executed.
N10 G71 P50 Q80 U4 W3 F1000 ...
N20 G1 F0.5 G95 S1000
N30 X30. Z10.
N40 M30
N50 X100. Z50.
N60 X200.
N70 Z100.
N80 X250. Z111.
N90 M30
Blocks N20–N40 are skipped and are not executed. If G71 is called in the parts
program after the contour definition, the program goes into an infinite loop. Allow-
ance must be made for the different continuation patterns of the parts program in
the shell cycles.
Example: G71 U6 R5 Saving values in GUD
In the example, the values programmed in the shell cycle are read from the
system variables ($C_xx) and stored in channel-specific GUD.
Separate GUD are available for each cycle (G71–G76); the programmed
values therefore remain valid until the next time they are programmed (in an
NC block with G71–G76). Case 1 does not have to be programmed, there-
fore it is advisable to initialize the assigned GUD.
Example: G71 P30 Q50 U3 Starting cycle execution
In the example, the programmed values are only saved in system variables
($C_xx). The system variables are overwritten in every NC block containing
a G function for a cycle call. With G71–G73, the cycle always starts running
on the G command after which the “P” and “Q” are programmed. With
G74–G76, the cycle starts running on the G command after which the X/U
or Z/W addresses are programmed. The F, S and T commands in the call
line of the cycle are also stored in system variables. A cycle-specific distinc-
tion does not therefore have to be made between the addresses. The shell
cycle assigns the meaning to the parameters (e.g. for G76, the address F
means pitch and not feed). For G70, the feed, speed and tool selection com-
mands (F, S, T) from the program section of the contour definition are rele-
vant.
The same shell cycle is always called in both cases.
G74 R..
Retraction path for chipbreaking
Note
The cycle can be used as a drilling or recessing cycle. If the cycle is used for dril-
ling, addresses X/U and P must not be used.
G75 R..
Retraction path for chipbreaking
Fig. 3-14 Description of parameters allowed; saving values in GUD
Note
The cycle can be used as a drilling or recessing cycle. If the cycle is used for dril-
ling, addresses Z/W and Q must not be used.
Lead
Amount of first infeed
Thread depth/total infeed in X axis
Radius difference for taper thread
Thread end point in Z axis
Z=absolute position
W=incremental position
Thread end point in X axis
X=absolute position or
U=incremental position
G command Description
G77 Longitudinal stock removal
G78 Thread cutting
G79 Transverse stock removal
These cycle calls are modal and are called in every NC block containing axis
movements. The machining movements are defined in the call parameters after
the G function. The following parameters are allowed in NC blocks with cycle calls
via G77–G79:
X Z W
Machining feed
Incremental offset of end position
in X axis for taper turning
Cylinder turning: R not programmed or R=0
Position in Z axis
Z=absolute position
W=incremental position
Position in X axis
X=absolute position
U=incremental position
Lead
Incremental offset of end position
in X axis for taper turning
Cylinder turning: R not programmed or R=0
Position in Z axis
Z=absolute position
W=incremental position
Position in X axis
X=absolute position
U=incremental position
Machining feed
Incremental offset of end position
in Z axis for taper turning
Cylinder turning: R not programmed or R=0
Position in Z axis
Z=absolute position
W=incremental position
Position in X axis
X=absolute position
U=incremental position
G command Description
G80 Drilling cycle off
G83 Face deep hole drilling
G84 Face tapping
G85 Face drilling
G87 Side deep hole drilling
G88 Side tapping
G89 Side drilling
G84
CYCLE 384T CYCLE84
G88
G85
CYCLE 385T CYCLE375T
G89
G83
CYCLE 383T CYCLE375T
G87
Switchover to Siemens
mode
Fig. 3-22 Assignment of the drilling cycle in ISO Dialect T mode via shell cycle for
Siemens standard cycle
G83 X(U).. C(H).. Z(W).. R.. P.. Q.. F.. K.. M..
G84
G85 M code for clamping C axis
Number of repetitions
If K was not programmed,
the cycle is executed once;
Drill-hole position K=0 The cycle is not executed
Machining feed
Infeed
Dwell time at drill-hole depth
G87 Z(W).. C(H).. X(U).. R.. P.. Q.. F.. K.. M..
G88
G89 Set M code for C axis
Number of repetitions
If K was not programmed,
the cycle is executed once;
Drill-hole position K=0 The cycle is not executed
Machining feed
Infeed
Dwell time at drill-hole depth
The drilling cycles are modal and are executed in every NC block in which axis
movements for axes X, Y, and Z are programmed. While a drilling mode is active,
you only have to program the new parameters in order to make parameter modifi-
cations. The parameters are stored in system variables $C_xx (xx = Nc address)
which are read by the cycles.
The cycle is not executed if a G function of the first G group appears after the
cycle G function in the same NC block. Only the axes programmed in the NC block
are moved. Addresses R, Q, P, K are not copied into the system variables. The
feed programmed in this block is activated.
Q Z (X)
Q
Z
Modal cycles
All modal cycles are deselected in ISO Dialect mode with G80 or with a G function
of the first G group (G00 – G03, G33, G34, except for G77 – G79).
Cycle parameters can be programmed in the following blocks while a modal cycle
is active. These parameters are copied into the system variables so that the shell
cycle uses the modified parameters.
Example:
N10 G81 X10. Z15. R5 Q4 P10 F1000
N20 X50. ;Drilling cycle at position X50
In ISO Dialect T mode, the call is performed with G commands G83 and G87.
Notes
The direction from initial plane to reference plane must be identical to the direction
from reference plane to final depth. Otherwise this results in an error message
from the Siemens drilling cycle.
In ISO Dialect T, the programmer must take into account the safety clearance
when defining the reference plane. In Siemens mode, the safety clearance to the R
plane can be specified independently.
This possibility has also been implemented for the ISO cycles. GUD _ZSFR[20]
can be used if necessary to enter a safety clearance. If the safety clearance was
already allowed for when programming the R plane, the value “NULL” must be en-
tered in GUD_ZSFR[20].
GUD_ZSFR[23] is used to specify whether the dwell time for G95 (only in the case
of deep hole drilling) must be executed in seconds or revolutions.
A shell cycle is only permitted to be called from the external G code (G83/G87). A
call in Siemens mode (after switching over with G290 and calling CYCLE383T) is
not permitted.
If the G83/G87 block contains axis names other than X/Z (U/W), this results in the
alarm (61811) “ISO axis name is not permitted”.
GUD_ZSFR[2] is used to determine whether the cycle is executed with chip break-
ing or chip removal.
In ISO Dialect, the constant individual depth is maintained until the remainder is
removed on the floor of the drilled hole with an infeed. In Siemens mode, the re-
mainder (less 2*individual depth) on the floor of the drilled hole is subdivided into
two equal infeeds.
Note
Alarms are listed with their alarm number and description in Chapter “Alarms”.
In ISO Dialect T mode, the call is performed with G commands G84 and G88.
Notes
The direction from initial plane to reference plane must be identical to the direction
from reference plane to final depth. Otherwise this results in an error message
from the Siemens drilling cycle. ISO Dialect does not monitor this.
In ISO Dialect T, the programmer must take into account the safety clearance
when defining the reference plane. In Siemens mode, the safety clearance to the R
plane can be specified independently.
This possibility has also been implemented for the ISO cycles. GUD _ZSFR[20]
can be used if necessary to enter a safety clearance. If the safety clearance was
already allowed for when programming the R plane, the value “NULL” must be en-
tered in GUD_ZSFR[20].
A shell cycle is only permitted to be called from the external G code (G84/G88). A
call in Siemens mode (after switching over with G290 and calling CYCLE384T) is
not permitted.
If the G84/G88 block contains axis names other than X/Z (U/W), this results in the
alarm (61811) “ISO axis name is not permitted”.
The drilling speed during retraction can be controlled via GUD _ZSFI[22] (value in
%).
Example: _ZSFI[22]=95, the retraction takes place with 95% of the drilling depth.
Note
Alarms are listed with their alarm number and description in Chapter “Alarms”.
In ISO Dialect T mode, the call is performed with G commands G85 and G89.
Notes
The direction from initial plane to reference plane must be identical to the direction
from reference plane to final depth. Otherwise this results in an error message
from the Siemens drilling cycle. ISO Dialect does not monitor this.
In ISO Dialect T, the programmer must take into account the safety clearance
when defining the reference plane. In Siemens mode, the safety clearance to the R
plane can be specified independently.
This possibility has also been implemented for the ISO cycles. GUD _ZSFR[20]
can be used if necessary to enter a safety clearance. If the safety clearance was
already allowed for when programming the R plane, the value “NULL” must be en-
tered in GUD_ZSFR[20].
A shell cycle is only permitted to be called from the external G code (G85/G89). A
call in Siemens mode (after switching over with G290 and calling CYCLE385T) is
not permitted.
If the G85/G89 block contains axis names other than X/Z (U/W), this results in the
alarm (61811) “ISO axis name is not permitted”.
If the G84 block contains axis names other than X/Z (U/W), this results in the
alarm (61811) “ISO axis name is not permitted”.
Note
Alarms are listed with their alarm number and description in Chapter “Alarms”.
Shell cycle CYCLE381M for G81 is called automatically. The calculations are per-
formed in the shell cycle and the Siemens standard drilling cycle CYCLE82 is then
called. The G01 command is not required.
The values of the programmed addresses are written into the following system
variables:
Address X is written to system variable $C_X;
Address Z is written to system variable $C_Z;
Address R is written to system variable $C_R;
Address F is written to system variable $C_F;
Example 2:
Axis Z is programmed in incremental dimensions (G91) $C_Z_PROG=3
Axis Z is programmed in absolute dimensions (G90) $C_Z_PROG =1
Example 3: Siemens shell cycle for Gxy
N10 PROC CYCLE377 DISPLOF ;Block display remains at G77 block,
;Freeze G code display
N20 DEF REAL DELTA_X, pos_X, pos_Z, FEED
N30 DEF BOOL R_prog, X_prog, Z_prog
N50 DELTA_X = 0
N60 IF $C_R_PROG ;Only load DELTA_X if address R
N70 DELTA_X = $C_R ;was programmed
N75 ENDIF
Siemens mode
The identifiers for angle, radius and chamfer are defined by machine data in Sie-
mens mode. This prevents the occurrence of name conflicts. A comma must not
be programmed before the identifier for radius or chamfer.
Note
MD 10652 for angle: $MN_CONTEUR_DEF_ANGLE_NAME
MD 10654 for radius: $MN_RADIUS_NAME
MD 10656 for chamfer: $MN_CHAMFER_NAME
(applies in Siemens mode only)
The end point is defined by specifying the angle A and one of the two coordinates
X2 or Z2.
Programming syntax:
X2.. A.. or
Z2.. A..
(X2, Z2)
(X1, Z1)
(X88.8, Z39.5)
110 degrees
(X5, 70)
Z
Fig. 3-27 Straight line with angle
The end point of the first straight line can be programmed either by specifying the
Cartesian coordinates or by specifying the angle of the two straight lines relative to
the abscissa.
Programming syntax:
N10 A1.. (Q..)
N20 X3.. Z3.. A2..
or
(X3, Z3)
A2
C
A1
(X2, Z2)
(X1, Z1)
X
(X85, Z40)
100 degrees
Chamfer =
5.5
148.64 degrees
(X28,3, Z50)
(X10, Z80)
The end point of the third straight line must be programmed with Cartesian coordi-
nates. Either a chamfer or a radius can be used for the transition from the second
to the third coordinate.
This type of programming can be used for any number of further blocks, i.e. a dis-
tinction does not have to be made between contours with two or more blocks.
Programming syntax:
N10 X2.. Z2.. (Q1..)
N20 X3.. Z3.. (Q2..)
N30 X4.. Z4..
or
N10 A1.. (Q1..)
N20 X3.. Z3.. A2.. (Q2..)
N30 X4.. Z4..
X
C2
(X3, Z3)
(X4, Z4)
R2 A2
R1
C1
A1
(X2, Z2)
(X1, Z1)
X
(X80, Z70)
(X70, Z50)
95.824 degrees
Radius = 10
R1
Chamfer = 7.5
140 degrees
(X31, Z75)
(X10, Z100)
Function G51.2 allows two spindles to be linked so that multi-edge workpieces can
be made. This corresponds to the synchronous spindle function in Siemens mode
with a speed ratio other than 1 : 1.
Programming syntax G51.2 Q.. P.. R.. enables synchronous spindle coupling. The
speed ratio for leading spindle to following spindle is defined in parameters “Q” and
“P”. If it is intended that linking should be activated using an angular offset for the
following spindle and leading axis, the angular difference needs to be programmed
using the address “R”.
When mapping the function into Siemens language, two parts program commands
must always be drawn up in order to activate the synchronous spindle function,
and these commands must not be in the same block.
One parts program command is used to define the assignment of leading and fol-
lowing spindles together with the speed ratio and coupling type (COUPDEF(..) ).
The second parts program command activates coupling complete with the pro-
grammed angular offset (COUPON(..) ). To execute both these program com-
mands, G51.2 is used to call a cycle (CYCLE3512). The programmed values are
transferred in cycle parameters $C_P, $C_Q and $C_R. G50.2 is used to turn cou-
pling off again (also using CYCLE3512).
When programming G51.2 the first spindle in the channel is always defined as the
leading spindle and the second spindle is defined as the following spindle. Setpoint
linkage is selected as the coupling type.
Example
N10 T1234
N20 G0 X10 Z100 M3 S1000
N30 G51.2 P1 Q3 ; Start synchronous spindle using speed ratio 1 : 3 and
; angular offset 0 degrees
Nxx ....
N1000 G51.2 R180 ; Angular offset between leading and following spindle
; to be 180 degrees
Please refer to the following documentation for a detailed description of the syn-
chronous spindle function:
A subprogram programmed under the address P.. is called when code G72.x is
used. Address L.. is used to define the number of times this subprogram is re-
peated. If address L is not programmed, the subprogram is executed once. Before
each subprogram call, and depending which G code is used, either a coordinate
rotation is executed (G72.1) or an incremental path is traversed by reference to the
starting point of the contour (G72.2).
G72.1
G72.1 repeatedly calls a subprogram in which the contour to be repeated is pro-
grammed. Before each subprogram call the coordinate system is rotated through a
defined angle.
This function is performed by calling a cycle (CYCLE3721). The programmed val-
ues are transferred to the cycle in the $C_.. cycle parameters. The G function
number is held in $C_G. The value 721 is entered in $C_G for G72.1 and the value
722 is entered in $C_G for G72.2. The cycle executes coordinate rotation n times
and calls the subprogram n times. The coordinate system is rotated about the ver-
tical axis of the selected plane.
X.. Y.. (Z..) Reference point for coordinate rotation
P.. Subprogram number
20
40
10 10
Starting point
90
X
Main program
N10 G92 X40.0 Y50.0 ;
N20 G01 G90 G17 G41 20 Y20 D01 F1000
N30 G72.1 P1234 L4 X0 Y0 R90.0
N40 G40 G01 X100 Y50 Z0
N50 G00 X40.0 Y50.0 ;
N60 M30 ;
Subprogram 1234.spf
N100 G01 X10
N200 Y50
N300 X–10
N400 Y10
N500 X–20
N600 M99
G72.2
G72.2 repeatedly calls a subprogram in which the contour to be repeated is pro-
grammed. Before each subprogram call, the axes programmed using I, J, K are
incrementally traversed. The programmed G function within CYCLE3721 detects
whether the contour subprogram will be repeated after a rotation or a linear move-
ment.
This function is performed by calling a cycle. The programmed values are trans-
ferred to the cycle in the $C_.. cycle parameters. The cycle calls the subprogram n
times. Before each subprogram call, a path programmed using I, J, K is traversed
incrementally by reference to the starting point.
I.. J.. K.. Position to which the X, Y, Z axes will traverse before the
subprogram is called. The position is calculated by reference
to the starting point of the subprogram.
P.. Subprogram number
L.. Number of times the subprogram is repeated
Example:
40 10
10
20
Note
Switchover to an external programming language is an option.
Axis interpolation
All programmable axes interpolate with each other by default in ISO Dialect.
This is equivalent to FGROUP for ISO Dialect M: X, Y, Z (A, B, C, U, V, W).
This is equivalent to FGROUP for ISO Dialect T: X, Z, Y (C).
This behavior is achieved with machine data
$MC_FGROUP_DEFAULT_AXES[0] if the machine has 4 axes:
$MC_FGROUP_DEFAULT_AXES[0] = 1
$MC_FGROUP_DEFAULT_AXES[1] = 2
$MC_FGROUP_DEFAULT_AXES[2] = 3
$MC_FGROUP_DEFAULT_AXES[3] = 4
Metric/inch switchover
The handwheel and increment weighting are not switched over with G20 and G21.
This switchover must be initiated from the PLC: see MD
$MA_JOG_INCR_WEIGHT
In ISO Dialect mode, the zero offsets are converted on switchover. In ISO Dialect
Original, only a decimal point shift is performed.
Scaling
22910: $MC_WEIGHTING_FACTOR_FOR_SCALE=0 0.001
22910: $MC_WEIGHTING_FACTOR_FOR_SCALE=1 0.00001
Axial scale factor: 43120: $MA_DEFAULT_SCALE_FACTOR_AXIS
Scale factor P: 42140: $MC_DEFAULT_SCALE_FACTOR_P
Enable axial scaling: 22914: $MC_AXES_SCALE_ENABLE = 1
(axial scaling is not possible when = 0)
Delete distance to go
In ISO Dialect Original, delete distance to go is enabled with G31. The distance to
go is only deleted in this block if the PLC signal is active on the channel. The signal
is not evaluated without G31.
In ISO Dialect mode, the PLC signals are evaluated in every block, irrespective of
G31. G31 activates probe1.
In ISO Dialect, the deleted distance to go can be calculated via the PLC Var selec-
tor.
The function G31 P1 (..P4) only differs from G31 by the fact that different inputs
can be selected for the measurement signal with P1 – P4. That way it is also pos-
sible to monitor several inputs simultaneously for a rising edge of a measurement
signal. Assignment of inputs to addresses P1 –P4 is defined in machine data
10810: $MN_EXTERN_MEAS_G31_P_SIGNAL[0 .. 3].
Note
On 840D only two measurement inputs are available.
Spindle position
The spindle position for M19 is set via setting data 43240: $SC_M19_SPOS.
Protection zone
A protection zone must exist if G commands G22 and G23 are used:
18190: $MN_NUM_PROTECT_AREA_NCK = 1
28210: $MC_NUM_PROTECT_AREA_ACTIVE = 1
Auxiliary functionoutput
If the H value is to be output as an integer value to the PLC,
MD 22110: $MC_AUXFU_H_TYPE_INT must be set to 1.
The timing of auxiliary function output (M, S, T, H) to the PLC can be set in MD:
0 = Auxiliary function output before motion
1 = Auxiliary function output during motion
2 = Auxiliary function output after motion
3 = No output of motion to PLC
22200: $MC_AUXFU_M_SYNC_TYPE for M functions
22210: $MC_AUXFU_S_SYNC_TYPE for S functions
22220: $MC_AUXFU_T_SYNC_TYPE for T functions
22230: $MC_AUXFU_H_SYNC_TYPE for H functions
The user can select the G groups of an external language with MD 22512:
$MC_EXTERN_GCODE_GROUPS_TO_PLC; the active G command is then sig-
naled to the PLC for these groups.
$MC_EXTERN_GCODE_GROUPS_TO_PLC[0..7]=0
At high velocities when contouring is active in G00 mode, collisions can occur due
to approximate positioning. Machine data 20734: $MC_EXTERN_FUNC-
TION_MASK, bit 4 is used to specify the exact stop response for G00.
20734: $MC_EXTERN_FUNCTION_MASK, bit 4=0, G00 traverses with the cur-
rently active exact stop function. If G64 is active, the G00 blocks will also be tra-
versed with G64.
20734: $MC_EXTERN_FUNCTION_MASK, bit 4=1, every G00 block with a tra-
versing motion will be traversed with G09 (non-modal exact stop). Even if G64 is
active, non-modal exact stop will be effective in every G00 block.
Example
20734: $MC_EXTERN_FUNCTION_MASK, bit3==0
N5 G291 ;ISO mode
N10 WAIT ;Alarm 12080 “WAIT unknown”
N15 G91 G500 ;Alarm 12080 “G500 unknown”
20734: $MC_EXTERN_FUNCTION_MASK, bit3==1
N5 G291 ;ISO mode
N10 WAIT ;Block will be processed by the Siemens
;translator
N15 G91 G500 ;Block will be processed by the Siemens
;translator
N20 X Y ;Block will be processed by the ISO translator
;due to G291 G91 from N15 is active
Note
Programming mistakes in ISO mode can result in undesirable reactions.
Example for ISO M:
Programming required G90 G76 ;modal cycle call
But G90 G75 ;is entered instead
G75 does not exist in ISO M mode, so the block is transferred to the Siemens
translator where it causes G75 “Traverse to fixed point” without any prompt or
alarm being output.
Software 6
The default G code system continues to be G code system B.
Machine data 10881: $MN_MM_EXTERN_GCODE_SYSTEM is used to select
code system A, B or C. The function “Rename G codes” is no longer used by this
function so the user is now able to apply this function without any restrictions.
Switching over using a cycle as before is still possible.
$MN_MM_EXTERN_CNC_SYSTEM = 1: ISO Dialect M
$MN_MM_EXTERN_CNC_SYSTEM = 2: ISO Dialect T
Inch/metric switchover
In ISO Dialect Original there is an MD that defines how inch/metr. switchover is
programmed; either with G20/21 or G70/71. This MD is not available for ISO
Dialect mode and it cannot be selected by means of
$MN_MM_EXTERN_GCODE_SYSTEM.
G20/G21 is active by default. Switchover to G70/71 can be implemented with the
machine data 10712: $MN_USER_CODE_CONF_NAME_TAB.
$MN_USER_CODE_CONF_NAME_TAB[0]= G20
$MN_USER_CODE_CONF_NAME_TAB[1]= G70
$MN_USER_CODE_CONF_NAME_TAB[2]= G21
$MN_USER_CODE_CONF_NAME_TAB[3]= G71
Whether G20/21 or G70/71 is used, a 1 will be read into system variable $P_GG[6]
for G20/G70 and a 2 will be read in for G21/G71.
Example
$SC_FIXED_FEEDRATE_F1_F9[0] = 5000
$SC_FIXED_FEEDRATE_F1_F9[1] = 1000
$SC_FIXED_FEEDRATE_F1_F9[2] = 500
N10 X10 Y10 Z10 F0 G94 ;Approach position with 5000 mm/min
N20 G01 X150 Y30 F1 ;Feedrate 1000mm/min. active
N30 Z0 F2 ;Position is approached at 500 mm/min
N40 Z10 F0 ;Position is approached at 5000 mm/min
If the function is activated using machine data
$MC_FIXED_FEEDRATE_F1_F9_ON and the feedrate value from the setting data
must not become active with F1–F9, the feedrate value must be programmed as a
real value. If a feedrate value of, for example, 1 mm/min is to be programmed, the
must be programmed with F1.0 instead of F1.
Note
In the case of macro programming with G65/66, for address F, the programmed
value is always stored in the cycle system variable. For F1–F9, value 1 – 9 is en-
tered, for example, in the cycle system $C_F. In this case, the address is handled
as a transferred parameter and has no direct connection with the feedrate.
The same applies to programming the thread pitch for G33 – G34 with the address
F. In this case, a feedrate is not programmed with F, but instead the distance be-
tween 2 thread starts with one spindle revolution.
In the case of cycle programming (e.g. G81 X.. Y.. Z.. R.. P.. Q.. F..), the feed-rate
is always programmed under address F. In a parts program block with a cycle call
via a G function (G81–G87 etc.) therefore when F1 – F9 is programmed, the ap-
propriate feedrate value from the corresponding setting data is written in the vari-
able $C_F.
Restriction
In ISO Dialect mode, the feedrate values in the setting data are changed using a
handwheel. In Siemens mode, the feedrates can only be influenced in the same
manner as a directly programmed feedrate, e.g. using the override switch.
Function G17 (G18, G19)<axis name>.. can be used to activate an axis that is par-
allel to the basic axis in the coordinate system.
The basic axes are, for example, X, Y and Z. With the programming
G17 U0 Y0 ;Activation of the parallel axis U
instead of the basic axis X, axis U is active in the G17 plane.
This function can be simulated with the 840D function GEOAX (..,..). GEOAX() can
be used to replace a geometry axis with any channel axis. In this case, all frames
(with the exception of handwheel offset and external offset), working area limitation
and the protection zones are deleted. Deletion of the frames can be prevented with
machine data 10602: $MN_FRAME_GEOAX_CHANGE_MODE; deletion of the
protection zones can be prevented with machine data
$MC_PROTAREA_GEOAX_CHANGE_MODE; and deactivation of working area
limitation can be prevented with the new machine data
10604: $MN_WALIM_GEOAX_CHANGE_MODE.
For each of the 3 geometry axes, one parallel axis can be defined with machine
data 22930: $MC_EXTERN_PARALLEL_GEOAX[ ]. When the G function for plane
selection (G17–G19) is programmed as well as the axis name of the parallel axis,
geometry axis replacement will be performed in a similar manner to the function
GEOAX().
On plane selection, the axes (geometry axis replaced with parallel axis) will be tra-
versed to their programmed position.
In a plane selection record, if a basic axis of the coordinate system is programmed
in combination with its parallel axis, alarm 12726 “Illegal plane selection with paral-
lel axes” is output.
The insertion of chamfers and radii is mapped onto the corresponding Siemens
functionality. The two blocks between which a radius or a chamfer is to be inserted
must always be programmed. If more than one address is programmed in a block,
the radius programmed last is always effective.
In ISO Dialect mode, the name of the radius is always “R” and for the chamfer it is
always “C”. As soon as a comma is programmed into a block, addresses R and C
to the right of the comma are always interpreted as the radius and chamfer respec-
tively. If a circle with radius R or the axis C is to be programmed, the two ad-
dresses must be to the left of the comma. A radius or a chamfer can be inserted
between linear blocks, circular blocks or a mixture of the two.
In ISO Dialect T mode, the name for the radius is always “R”, but addresses “C”,
“I” and “K” can be used for the chamfer. Address C is only permitted to be used
when it is not defined as an axis name. Radii and chamfers can only be inserted
between linear blocks. The linear blocks must not be vertically one above the
other. A sign programmed in front of the radius or chamfer is of no significance
here because the direction of the radius or chamfer is defined by the second linear
block.
S Example: N5 G90 B0
N10 B370 ; Axis travels 370 degrees
N15 B–10 ; Axis travels –10 degrees
N20 G91 B–20 ; Axis travels –20 degrees
S The axis traverses the shortest path
Modulo conversion is active
Values <0 and > modulo value can be programmed
30300: $MA_IS_ROT_AX = TRUE
30310: $MA_ROT_IS_MODULO = TRUE
20754: $MC_EXTERN_FUNCTION_MASK, bit5 = 0
Restriction
Only 10 M functions (WAIT marks) can be set per channel. The difference between
$MN_EXTERN_CHAN_SYNC_M_NO_MAX and
$MN_EXTERN_CHAN_SYNC_M_NO_MIN must therefore not exceed 20 in a
2-channel system. In the case of ISO Dialect Original, 99999899 M numbers can
be defined as wait marks.
ISO Dialect M
Default settings of MD $MC_EXTERN_GCODE_RESET_VALUES[ ]:
$MC_EXTERN_GCODE_RESET_VALUES[0]=1 G00
$MC_EXTERN_GCODE_RESET_VALUES[1]=1 G17
$MC_EXTERN_GCODE_RESET_VALUES[2]=1 G90
$MC_EXTERN_GCODE_RESET_VALUES[3]=2 G23
$MC_EXTERN_GCODE_RESET_VALUES[4]=1 G94
$MC_EXTERN_GCODE_RESET_VALUES[5]=1 G20
$MC_EXTERN_GCODE_RESET_VALUES[6]=1 G40
$MC_EXTERN_GCODE_RESET_VALUES[7]=3 G49
$MC_EXTERN_GCODE_RESET_VALUES[8]=4 G80
$MC_EXTERN_GCODE_RESET_VALUES[9]=1 G98
$MC_EXTERN_GCODE_RESET_VALUES[10]=1 G50
$MC_EXTERN_GCODE_RESET_VALUES[11]=2 G67
$MC_EXTERN_GCODE_RESET_VALUES[12]=2 G97
$MC_EXTERN_GCODE_RESET_VALUES[13]=1 G54
$MC_EXTERN_GCODE_RESET_VALUES[14]=3 G64
$MC_EXTERN_GCODE_RESET_VALUES[15]=2 G69
$MC_EXTERN_GCODE_RESET_VALUES[16]=1 G15
$MC_EXTERN_GCODE_RESET_VALUES[17]=0 Modal
$MC_EXTERN_GCODE_RESET_VALUES[21]=1 G50.1
$MC_EXTERN_GCODE_RESET_VALUES[24]=1 G12.1
$MC_EXTERN_GCODE_RESET_VALUES[30]=1 G290
ISO Dialect T
Default settings of MD $MC_EXTERN_GCODE_RESET_VALUES[ ]:
Several optional G code systems are available for ISO Dialect T. The same func-
tion is called up via different G commands. G code system B is implemented by
default. Machine data 10882: §MN_NC_USER_EXTERN_GCODES_TAB is
introduced to use another G code system (see 4.2.1)
$MC_EXTERN_GCODE_RESET_VALUES[0]=1 G00
$MC_EXTERN_GCODE_RESET_VALUES[1]=2 G97
$MC_EXTERN_GCODE_RESET_VALUES[2]=1 G90
$MC_EXTERN_GCODE_RESET_VALUES[3]=2 G69
$MC_EXTERN_GCODE_RESET_VALUES[4]=2 G95
$MC_EXTERN_GCODE_RESET_VALUES[5]=1 G21
$MC_EXTERN_GCODE_RESET_VALUES[6]=1 G40
$MC_EXTERN_GCODE_RESET_VALUES[8]=2 G23
$MC_EXTERN_GCODE_RESET_VALUES[9]=1 G80
$MC_EXTERN_GCODE_RESET_VALUES[10]=1 G98
$MC_EXTERN_GCODE_RESET_VALUES[11]=2 G67
$MC_EXTERN_GCODE_RESET_VALUES[15]=2 G18
$MC_EXTERN_GCODE_RESET_VALUES[17]=0 Modal
$MC_EXTERN_GCODE_RESET_VALUES[19]=1 G50.2
$MC_EXTERN_GCODE_RESET_VALUES[20]=1 G12.1
$MC_EXTERN_GCODE_RESET_VALUES[31]=1 G290
J
5.1 Restrictions
The following section describes functions for which the SINUMERIK 840D exhibits
non-compatibility with the ISO Dialect Original when in ISO Dialect mode.
Mode switchover
The standard set of machine data implements “Siemens” mode only. No external
NC language is generated as a 2nd G code table.
Machine data 10712: $MN_NC_USER_CODE_CONF_NAME_TAB is only valid for
NC language commands in Siemens mode.
For compatibility with Siemens mode (with reference to machine data input, OPI
interface: “data array”[0] = 1st G group), the zero G groups defined in ISO Dialect
Original are converted as follows in ISO Dialect mode:
ISO Dialect M: G group 0 G group 18
ISO Dialect T: G group 0 G group 17
F value
ISO Dialect M has fixed F values which can be selected with F1 to F9. These fixed
values are not available in ISO Dialect mode. F1 to F9 are interpreted as value F1
to F9.
G02/G03
Programming G02/G03 without a radius parameter results in G01 in ISO Dialect T
Original, and in a full circle with an undefined radius in ISO Dialect M Original. In
both cases, an NC alarm is output in ISO Dialect mode.
G04 X..
With ISO Dialect Original, the dwell time in the X axis is displayed as the distance
to go. This dwell time is not displayed in ISO Dialect mode; the message “dwell
time running” is displayed.
G16
Polar coordinate programming is terminated with G15.
In ISO Dialect Original, the polar radius and polar angle are retained. The next time
G16 is programmed, an incremental movement can be superimposed on the
angle. The result is a traversing movement which cannot be evaluated. The angle
and the radius are deleted on a reset or M30.
In ISO Dialect mode, the polar radius and polar angle are deleted with G15. With
G16, the traversing movement is always performed with an angle and a radius
of 0.
Example: Axis U is parallel to axis X
G17 U Y ; Plane U Y is selected instead of X Y.
In ISO Dialect mode, a parallel axis cannot be programmed with G17/G18/G19.
G20/G21
In ISO Dialect Original mode, the zero offsets are not converted on switchover.
The decimal point is merely shifted by one decimal place. In ISO Dialect mode, the
zero offset values are converted completely.
G22
Protection zone 4 is activated with G22 in ISO Dialect M Original. This is not
available in phase 1. Protection zones 1/2 and 3 are implemented. Protection zone
4 is entered permanently in the machine data settings for ISO Dialect. This is not
possible with the 840D. In ISO Dialect mode there is only one protection zone.
G40
In ISO Dialect T mode, a vector can be programmed in a linear block with I, J, K;
the vector controls the behavior at the end of the block. This function is not
possible in ISO Dialect Original mode. An alarm is output if I, J and K are
programmed with G40.
G41/G42
The cutter radius compensation functions are not compatible between ISO Dialect
Original and 840D.
G53
If G53 (position in machine coordinate system approached) is called while
G41/G42 is active, the axes are not traversed separately, but interpolated instead.
G63
With ISO Dialect, G63 can appear in every block. The override is disabled in that
block. Override 0 also triggers a stop at the start of a G53 block. This function is
practical in combination with rigid tapping in G01 interpolation. In ISO Dialect
mode, G63 is only effective in a G01 block. If G63 is selected in a G00 block, this
has no effect on the block.
G94/G95
Each time you switch from revolutional feedrate (G95) to linear feedrate (G94) or
vice versa, feed F must be programmed again. If the feed is missing, alarm 10860
“No feedrate programmed” is output. ISO Dialect Original mode interprets the
feedrate which has been programmed once as either a revolutional or a linear
feedrate when the feedtype is changed.
G96
With ISO Dialect M the axis to which G96 refers can be programmed with P. This
generates an alarm in ISO mode. Only P0 transverse axis is possible from
machine data.
M06
Tool-changing cycle: If an M function is assigned to a cycle via 10715:
MD $MN_M_NO_FCT_CYCLE and 10716: $MN_M_NO_FCT_CYCLE_NAME, not
all of the parameters programmed in the block can be accessed in the cycle. Only
the programmed T number can be read with $C_T/$C_T_PROG. Traversing
movements in the M block are executed before the call.
Syntax-governing G functions
With ISO Dialect Original, several syntax-governing G functions can be
programmed in the same block. A distinction is made between the following:
syntax governing → non-modal
syntax governing → modal
non syntax governing → modal
non syntax governing → non-modal
In Siemens mode, more than one syntax-governing G function in a block causes
an NC alarm.
Tool management, tool life and workpiece count monitoring can be reproduced with
the Siemens tool management system.
Tool data
Milling: Only tool compensation memory C is supported, i.e. multi-column structure
of the tool compensation memory (D == H applies).
The variant whereby the tool and offset number are generated from the same
value for milling is not supported.
Read-out/archiving of the current tool data in ISO Dialect mode (G10) is not pos-
sible. It is not possible to modify the tool data via G10 until the tool offsets have
been set up by an operator action.
5.1.3 Control system response to Power ON, Reset and block search
Power On
On Power ON, the Siemens G code list is created for all NC channels with the
possible code changes from MD 10712:
$MN_NC_USER_CODE_CONF_NAME_TAB.
Startup, Reset
MD 20150: $MC_GCODE_RESET_VALUES[46] defines the startup and reset
behavior depending on MD 10880: $MN_EXTERN_CNC_SYSTEM.
This decides between the G codes of ISO Dialect M and ISO Dialect T.
The change between Siemens and ISO Dialect mode has no effect on the modal G
functions while the program is running.
Block search
The “search to end of block” block search type available in Siemens mode is the
equivalent of the search behavior with ISO Dialect.
In “block search without calculation” mode, the user must provide an appropriate
search target, especially in NC programs with a mode switchover (e.g. an NC block
with a command from G group 47).
J
Notes
10604 WALIM_GEOAX_CHANGE_MODE
MD number Working area limitation on changeover from geometry axes
Default setting: 0 Minimum input limit: 0 Maximum input limit: 1
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: BYTE Applies with effect from SW version: 6.2
Meaning: This machine data is used to specify whether a working area limitation that is active should
stay active or be deactivated on geometry axis changeover.
The MD is bit-coded as follows:
Bit 0= =0: Working area limitation deactivated on geometry axis changeover
=1: Active working area limitation remains activated on geometry
axis changeover
10615 NCBFRAME_POWERON_MASK
MD number Delete global base frames on Power ON
Default setting: 0 Minimum input limit: 0 Maximum input limit: 0
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: DWORD Applies with effect from SW version: 5.2
Meaning: This machine data defines whether global base frames are deleted on a Power ON reset.
The selection can be made separately for the individual base frames.
Bit 0 corresponds to base frame 0, bit 1 to base frame 1, etc.
10652 CONTOUR_DEF_ANGLE_NAME
MD number Definable name for angle in the contour short description
Default setting: “ANG” Minimum input limit: – Maximum input limit: –
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: STRING Applies with effect from SW version: 5
Meaning: The setting is effective for Siemens G code programming only, i.e. G290.
The name used to program the angle in the contour short description is definable. This
allows, for example, identical programming in different language modes:
If the angle is named “A”, it is programmed in the same way with Siemens and ISO Dialect.
The name must be unique, i.e. axes, variables, macros, etc. must not exist with the same
name.
10654 RADIUS_NAME
MD number Definable name for radius non-modally in the contour short description
Default setting: “RND” Minimum input limit: – Maximum input limit: –
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: STRING Applies with effect from SW version: 5
Meaning: The name used to program the radius in the contour short description is definable. This
allows, for example, identical programming in different language modes:
If the radius is named “R”, it is programmed in the same way with Siemens and ISO
Dialect.
The name must be unique, i.e. axes, variables, macros, etc. must not exist with the same
name.
The setting is effective for Siemens G code programming, i.e. G290.
10656 CHAMFER_NAME
MD number Definable name for chamfer in the contour short description
Default setting: “CHR” Minimum input limit: – Maximum input limit: –
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: STRING Applies with effect from SW version: 5
Meaning: The name used to program the chamfer in the contour short description is definable. This
allows, for example, identical programming in different language modes:
If the chamfer is named “C”, it is programmed in the same way with Siemens and ISO
Dialect.
The name must be unique, i.e. axes, variables, macros, etc. must not exist with the same
name.
The setting is effective for Siemens G code programming, i.e. G290.
The chamfer in the original direction of movement. Alternatively, the chamfer length can be
programmed with the name CHF.
10704 DRYRUN_MASK
MD number Activating dry run feed
Default setting: Minimum input limit: – Maximum input limit: –
Changes effective after: Protection level: Unit: –
Data type: BYTE Applies with effect from SW version:
Meaning: DRYRUN_MASK == 0
Dry run must only be activated or deactivated at the end of a block.
DRYRUN_MASK == 1
Dry run feed may be activated or deactivated even during program execution
Note: Once dry run feed has been activated, the axes are stopped for the duration of
the reorganization.
DRYRUN_MASK == 2
Dry run can be activated or deactivated in any phase and the axes are not stopped.
Note: However, the function is only effective upon using a block which comes “later”
in the program run. The function takes effect on the next (implicit) Stop Reset.
10706 SLASH_MASK
MD number Activating the block skip function
Default setting: 0 Minimum input limit: 0 Maximum input limit: 2
Changes effective after: Protection level: Unit: –
Data type: BYTE Applies with effect from SW version:
Meaning: SLASH_MASK == 0
The block skip function can only be switched over at the end of a block.
SLASH_MASK == 1
When SLASH_MASK == 1 the block skip function may be activated even during program
execution.
Note: Once block skip has been activated, the axes are stopped for the duration of
the reorganization.
SLASH_MASK == 2
Block switchover is possible in any phase.
Note: However, the function is only effective upon using a block which comes “later”
in the program run. The function takes effect on the next (implicit) Stop Reset.
10715 M_NO_FCT_CYCLE[0]
MD number M function number for cycle call
Default setting: –1 Minimum input limit: –1 Maximum input limit: –
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: DWORD Applies with effect from SW version: 5.2
Meaning: M number with which a subprogram is called.
If the M function is programmed again in the subprogram, the substitution no longer takes
place by means of a subprogram call.
10716 M_NO_FCT_CYCLE_NAME[0]
MD number Name of tool-changing cycle for M functions from MD $MN_MFCT_CYCLE
Default setting: – Minimum input limit: – Maximum input limit: –
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: STRING Applies with effect from SW version: 5.2
Meaning: The name of the cycle is stored in the machine data. This cycle is called when
the M function from machine data $MN_M_NO_FCT_CYCLE is programmed.
If the M function is programmed in a motion block, the cycle is executed after the
movement.
PROC MAIN
...
N100 M[2]=6 ;address expansion 2
...
M30
PROC MSUB
...
N200 M[$C_ME]=$C_M
...
You can query the address expansion of the T number to be programmed during the cycle
using the system variable $C_TE.
Example:
$MN_T_NO_FCT_CYCLE_NAME = “TSUB”
PROC MAIN
...
N100 T[1]=6 ;address expansion 1
...
M30
PROC TSUB
...
N200 T[$C_ME]=$C_M
...
System variable $C_T or $C_T_PROG can be used in the cycle to scan the
programmed T no. as a decimal value, and $C_TS or $C_TS_PROG
as a string (only with tool management).
If a T number is programmed with the D number, it can also be scanned in the cycle in
system variable $C_D or $C_D_PROG.
10716 M_NO_FCT_CYCLE_NAME[0]
MD number Name of tool-changing cycle for M functions from MD $MN_MFCT_CYCLE
Meaning: System variable $C_DL_PROG can be used to scan the cycle to ascertain whether
address DL (additive offset) has also been programmed with the T function. The
programmed value can then be read in via system variable $C_DL.
Example:
$MN_T_NO_FCT_CYCLE_NAME = “TSUB”
PROC MAIN
... ;Tool change with
N100 T5 D1 DL=2 ;cutting edge selection and additive offset
...
M30
PROC TSUB
...
N190 IF $SC_DL_PROG == 1
N200 DL=$SC_DL
N210 ENDIF
10717 T_NO_FCT_CYCLE_NAME
MD number Name for tool-changing cycle with T number
Default setting: – Minimum input limit: – Maximum input limit: –
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: STRING Applies with effect from SW version: 5.2
Meaning: Cycle name for tool-changing routine when called via T function.
If a T function is programmed in a parts program block, the subprogram defined in
T_NO_FCT_CYCLE_NAME is called at the end of the block.
System variable $C_T / $C_T_PROG can be used in the cycle to scan the programmed
T no. as a decimal value, and $C_TS / $C_TS_PROG as a string (only with tool
management).
If a T number is programmed with the D number, it can be scanned in the cycle in system
variable $C_D/$C_D_PROG.
System variable $C_T_PROG or $C_D_PROG can be used in the subprogram to check
whether the T or D command was programmed. The values can be read out with system
variable $C_T or $C_D. If another T command is programmed in the subprogram, no
substitution takes place, but the T word is output to the PLC.
$MN_M_NO_FCT_CYCLE_NAME and
$MN_T_NO_FCT_CYCLE_NAME may not be active in the same block,
i.e. only one M/T function substitution can be active per block.
Neither an M98 call nor a modal subprogram call can be programmed in the block with the
T function substitution. A subprogram return jump or end of parts program is not allowed.
Alarm 14016 is output in the event of a conflict.
You can query the address expansion of the T number to be programmed during the cycle
using the system variable $C_TE.
Example:
$MN_T_NO_FCT_CYCLE_NAME = “TSUB”
PROC MAIN
...
N100 T[1]=5 ;address expansion 2
...
M30
PROC TSUB
...
N200 M[$C_TE]=$C_T
...
10718 M_NO_FCT_CYCLE_PAR
MD number M function substitution with parameters
Default setting: –1 Minimum input limit: – Maximum input limit: –
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: DWORD Applies with effect from SW version: 6.3
Meaning: If an M function substitution has been configured with MD 10715: M_NO_FCT_CYCLE[n] /
MD 10716: M_NO_FCT_CYCLE_NAME[n], a parameter transfer for each system variable
as for the T function substitution can be specified for one of these M functions with
MD 10718: M_NO_FCT_CYCLE_PAR.
The parameters stored in the system variables always refer to the parts program line in
which the M function to be substituted was programmed. The following system variables
are available:
10719 T_NO_FCT_CYCLE_MODE
MD number Parameterization of T function substitution
Default setting: 0 Minimum input limit: – Maximum input limit: –
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: DWORD Applies with effect from SW version: 6.4
Meaning: This machine data is used to set whether D or DL is transferred as a parameter to the T
substitution cycle when D or DL and T are programmed in a single block (default) or
whether it is to be executed before the T substitution cycle is called.
This function is only active if tool change has been configured with the M function
(MD 22550: TOOL_CHANGE_MODE = 1), otherwise the D or DL values are always
transferred.
10760 G53_TOOLCORR
MD number Method of operation of G53, G153 and SUPA
Default setting: 2 Minimum input limit: 2 Maximum input limit: 4
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: BYTE Applies with effect from SW version: 5.2
Meaning: The MD is effective in both Siemens mode and in external language mode.
This machine data defines whether tool length compensation and tool radius compensation
are suppressed with language commands G53, G153 and SUPA.
10800 EXTERN_CHAN_SYNC_M_NO_MIN
MD number First M number for channel synchronization
Default setting: –1 Minimum input limit: 100 Maximum input limit:
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: DWORD Applies with effect from SW version: 6.2
Meaning: Lowest M number of the M number range that is reserved for channel synchronization.
10802 EXTERN_CHAN_SYNC_M_NO_MAX
MD number Last M number for channel synchronization
Default setting: –1 Minimum input limit: 100 Maximum input limit:
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: DWORD Applies with effect from SW version: 6.2
Meaning: Highest M number of the M number range that is reserved for channel synchronization.
The M number range is permitted to be up to 10 times the channel number (2 channels =
20 M numbers). If a wider range is specified, alarm 4170 is output.
10804 EXTERN_M_NO_SET_INT
MD number M function for activating asynchronous subprogram
Default setting: 96 Minimum input limit: 0 Maximum input limit:
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: DWORD Applies with effect from SW version: 6.2
Meaning: M function number that is used to activate an interrupt program in ISO_T/M mode
(asynchronous subprogram, ASUB).
10806 EXTERN_M_NO_DISABLE_INT
MD number M function for deactivating asynchronous subprogram
Default setting: 97 Minimum input limit: 0 Maximum input limit:
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: DWORD Applies with effect from SW version: 6.2
Meaning: M function number that is used to deactivate an interrupt program in ISO_T/M mode
(asynchronous subprogram, ASUB).
10808 EXTERN_INTERRUPT_BITS_M96
MD number Interrupt program processing (M96)
Default setting: 0 Minimum input limit: 0 Maximum input limit: 8
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: WORD Applies with effect from SW version: 6.2
Meaning: When the various bits are set, the execution of the interrupt routine activated with M96 P..
can be influenced.
Bit 0: =0, interrupt program not possible, M96/M97 are normal M functions
=1, activation of interrupt program with M96/M97 is permitted
Bit 1: =0, execution of parts program continues from the final position of the block following
the interrupted block
=1, execution of the parts program continues from the point of interruption
Bit 2: =0, the interrupt signal interrupts the current block immediately and starts the
interrupt routine
=1, the interrupt routine is not started until the block has been completed
Bit 3: =0, the machining cycle is interrupted on an interrupt signal
=1, the interrupt program is not started until the machining cycle has been completed
10810 EXTERN_MEAS_G31_P_SIGNAL
MD number Assignment of measuring inputs for G31 P..
Default setting: 1 Minimum input limit: 0 Maximum input limit: 3
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: BYTE Applies with effect from SW version: 6.2
Meaning: This machine data is used to assign measuring inputs 1 and 2 to the P numbers
programmed with G31 P1 (–P4). The MD is bit-coded. Only bit 0 and bit 1 are evaluated. If,
for example, bit 0=1 in $MN_EXTERN_MEAS_G31_P_SIGNAL[1], the first measuring
input will be activated with G31 P2. If $MN_EXTERN_MEAS_G31_P_SIGNAL[3] = 2, the
second measuring input will be activated with G31 P4.
Bit 0: =0: Measuring input 1 is not evaluated for G31 P1 (–P4)
=1 Measuring input is activated for G31 P1 (–P4)
Bit 1: =0 Measuring input 2 is not evaluated for G31 P1 (–P4)
=1 Measuring input 2 is activated for G31 P1 (–P4)
10812 EXTERN_DOUBLE_TURRET_ON
MD number Double turret with G68
Default setting: Minimum input limit: Maximum input limit:
Changes effective after: Protection level: Unit: –
Data type: BOOLEAN Applies with effect from SW version: 6.2
Meaning: The machine data is only effective with $MN_EXTER_CNC_SYSTEM = 2.
This MD defines whether G68 should activate double slide machining (channel
synchronization for the first and second channel) or whether the second tool of a double
revolver should be activated (= 2, with the spacing defined in setting data
$SC_EXTERN_DOUBLE_TURRET_DIST, fully interconnected tool).
FALSE: Channel synchronization for double slide machining
TRUE: Load the second tool of a double turret
(=$SC_EXTERN_DOUBLE_TURRET_DISTANCE as an additive zero offset
and activate mirroring about the Z axis)
10814 EXTERN_M_NO_MAC_CYCLE
MD number Macro call with M function
Default setting: Minimum input limit: Maximum input limit:
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: DWORD Applies with effect from SW version:
Meaning: M number with which a macro is called.
The name of the subprogram is specified in
$MN_EXTERN_M_NO_MAC_CYCLE_NAME[n]. If the M function defined with
$MN_EXTERN_M_NO_MAC_CYCLE[n] is programmed in a parts program block, the
subprogram defined in EXTERN_M_NO_MAC_CYCLE_NAME[n] is started, all the
addresses programmed in the block are written to the associated variables. If the M
function is programmed again in the subprogram, the substitution no longer takes place by
means of a subprogram call.
$MN_EXTERN_M_NO_MAC_CYCLE_NAME[n] is only effective in external language
mode G291.
A subprogram call may not be superimposed on M functions with fixed meanings. In the
event of a conflict, alarm 4150 is output:
– M0 to M5,
– M17, M30,
– M19,
– M40 to M45,
– M function for spindle mode/axis mode switchover according to
$MC_SPIND_RIGID_TAPPING_M_NR (default: M70),
– M functions for nibbling/punching according to configuration with
$MC_NIBBLE_PUNCH_CODE if activated with $MC_PUNCHNIB_ACTIVATION.
– with external language ($MN_MM_EXTERN_LANGUAGE) applied additionally M96
to M99
– M functions defined with $MN_M_NO_FCT_CYCLE.
Exception: The M function defined with $MC_TOOL_CHANGE_M_CODE for
tool change.
The subprograms activated with $MN_EXTERN_M_NO_MAC_CYCLE_NAME[n] may not
be active in the same block (parts program line), i.e. only one M function substitution can be
active per block. Neither an M98 call nor a modal subprogram call can be programmed in
the block with the T function substitution. A subprogram return jump or end of parts
program is not allowed. Alarm 14016 is output in the event of a conflict.
10815 EXTERN_M_NO_MAC_CYCLE_NAME
MD number Subprogram name for M function macro call
Default setting: Minimum input limit: Maximum input limit:
Changes effective after Power ON Protection level: Unit: –
Data type: STRING Applies with effect from SW version:
Meaning: Cycle name if called with M function defined with $MN_EXTERN_M_NO_MAC_CYCLE[n].
10816 EXTERN_G_NO_MAC_CYCLE
MD number Macro call with G function
Default setting: Minimum input limit: Maximum input limit:
Changes effective after Power ON Protection level: Unit: –
Data type: DOUBLE Applies with effect from SW version: 6.3
Meaning: G number with which a macro is called.
The name of the subprogram is specified in
$MN_EXTERN_G_NO_MAC_CYCLE_NAME[n].
If the G function defined with $MN_EXTERN_G_NO_MAC_CYCLE[n] is programmed in a
parts program block, the subprogram defined in EXTERN_M_NO_MAC_CYCLE_NAME[n]
is started, all the addresses programmed in the block are written to the associated $C_xx
variables.
If a subprogram call is already active via a M/G macro or an M substitution, no subprogram
call will be executed. If a standard G function is programmed in this case, it will be
executed, otherwise alarm 12470 is output.
$MN_EXTERN_G_NO_MAC_CYCLE[n] is only effective in external language mode G291.
A block can only contain one subprogram call, i.e. only one M/G function substitution may
be programmed in a block and the block must not contain any additional subprogram (M98)
or cycle call.
A subprogram return jump or end of parts program is not allowed in the same block. Alarm
14016 is output in the event of a conflict.
10817 EXTERN_G_NO_MAC_CYCLE_NAME
MD number Subprogram name for G function macro call
Default setting: Minimum input limit: Maximum input limit:
Changes effective after Power ON Protection level: Unit: –
Data type: STRING Applies with effect from SW version: 6.3
Meaning: Cycle name if called with G function defined with $MN_EXTERN_G_NO_MAC_CYCLE[n].
10818 EXTERN_INTERRUPT_NUM_ASUP
MD number Interrupt number for ASUP start (M96)
Default setting: Minimum input limit: Maximum input limit:
Changes effective after Power ON Protection level: Unit: –
Data type: BYTE Applies with effect from SW version: 6
Meaning: Number of the interrupt input with which an asynchronous subprogram activated in ISO
mode is started. (M96< program number>)
10820 EXTERN_INTERRUPT_NUM_RETRAC
MD number Interrupt number for rapid retraction (G10.6)
Default setting: Minimum input limit: Maximum input limit:
Changes effective after Power ON Protection level: Unit: –
Data type: BYTE Applies with effect from SW version: 6
Meaning: Number of the interrupt input with which a rapid retraction to the position programmed with
G10.6 is triggered in ISO mode.
10880 MM_EXTERN_CNC_SYSTEM
MD number External control system whose programs are executed
Default setting: 0 Minimum input limit: 0 Maximum input limit: 2
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: WORD Applies with effect from SW version: 5
Meaning: Selection of the external language
1 = ISO–2: System Fanuc0 Millling (5.1 and higher)
2 = ISO–3: System Fanuc0 Turning (5.2 and higher)
10881 MM_EXTERN_GCODE_SYSTEM
MD number ISO mode T: G code system
Default setting: 0 Minimum input limit: 0 Maximum input limit: 2
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: DWORD Applies with effect from SW version: 6.2
Meaning: Definition of the G code system that is to be actively executed in ISO Dialect T mode:
Value = 0: ISO_T: Code system B
Value = 1: ISO_T: Code system A
Value = 2: ISO_T: Code system C
To make sure that the shell cycles are executed in the correct G code system, the relevant
system must be entered in the GUD variable _ZSFI[39].
10884 EXTERN_FLOATINGPOINT_PROG
MD number Evaluation of programmed values without a decimal point
Default setting: 1 Minimum input limit: 0 Maximum input limit: 1
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: BOOLEAN Applies with effect from SW version: 5.2
Meaning: This machine data is effective for external programming languages, i.e. if
MD 18800: MM_EXTERN_LANGUAGE = 1.
The machine data defines how programmed values without decimal points are evaluated.
0: Standard notation: Values without decimal points are interpreted in internal units
IS-B, IS–C (see MD EXTERN_INCREMENT_SYSTEM).
Values without decimal points are interpreted in internal units
e.g. X1000 = 1mm (for 0.001mm input resolution)
X1000.0 = 1000mm
1: Pocket calculator notation: Values without decimal points are interpreted as mm,
inch or degrees.
Values without decimal points are interpreted as mm, inch or degrees
e.g. X1000 = 1000mm
X1000.0 = 1000mm
10886 EXTERN_INCREMENT_SYSTEM
MD number Increment system
Default setting: 0 Minimum input limit: 0 Maximum input limit: 1
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: BOOLEAN Applies with effect from SW version: 5.2
Meaning: This machine data is effective for external programming languages, i.e. if
MD 18800: MM_EXTERN_LANGUAGE = 1.
10888 EXTERN_DIGITS_TOOL_NO
MD number Number of digits for T number in external language mode
Default setting: 2 Minimum input limit: 2 Maximum input limit: 4
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: BYTE Applies with effect from SW version: 5.2
Meaning: The machine data is only effective with $MN_EXTERN_CNC_SYSTEM = 2. Number of
digits for tool number in programmed T value.
10890 EXTERN_TOOLPROG_MODE
MD number Tool change programming with external programming language
Default setting: 0 Minimum input limit: 0 Maximum input limit: 1
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: BYTE Applies with effect from SW version: 5.2
Meaning: Configuration of tool change programming for external programming language:
Bit0 = 0: Effective only with $MN_MM_EXTERN_CNC_LANGUAGE = 2:
The tool number and offset number are programmed in the T value.
$MN_DIGITS_TOOLNO determines the number of leading digits
representing the tool number.
Example:
$MN_DIGITS_TOOL_NO = 2
T = 1234 ; tool number 12,
; offset number 34
Example:
T = 12 ; tool number 12
; offset number 12
18800 MM_EXTERN_LANGUAGE
MD number External language active in the PLC
Default setting: 0 Minimum input limit: 0 Maximum input limit: 1
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: DWORD Applies with effect from SW version: 5
Meaning: To execute parts programs generated by controller manufacturers other than Siemens, the
appropriate NC language must be activated. Only one external language can be selected.
The available instruction set will be described in the applicable documentation.
Bit 0 (LSB): Execution of parts programs ISO_2 or ISO_3. For codes, see
$MN_MM_EXTERN_CNC_SYSTEM (10880)
20094 SPIND_RIGID_TAPPING_M_NR
MD number M number for switchover to controlled spindle mode (Siemens mode)
Default setting: 70 Minimum input limit: 0 Maximum input limit: 0xFF
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: BYTE Applies with effect from SW version: 5.2
Meaning: The machine data is effective in Siemens mode and external language mode. This machine
data defines the M function number used to switch the spindle to controlled spindle mode
(axis mode). This number replaces M70 in Siemens mode and M29 in external language
mode. Only M numbers which have not already been defined as defaults are allowed.
M<NBS>numbers M1, M2, M3, M4, M5 M30 etc. are not allowed, for example.
20095 EXTERN_RIGID_TAPPING_M_NR
MD number M number for switchover to controlled spindle mode (external language mode)
Default setting: 29 Minimum input limit: 6 Maximum input limit: 0xFF
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: BYTE Applies with effect from SW version:
Meaning: This machine data defines the M function number used to switch the spindle to controlled
spindle mode (axis mode) in external language mode. This number can be used in external
language mode to substitute M29 with another M function.
Only M numbers which have not already been defined as defaults are allowed.
M numbers M0, M1, M3, M4, M5, M30, M99 etc. are not allowed, for example.
20152 GCODE_RESET_MODE
MD number Reset response in the G groups
Default setting: Minimum input limit: 0 Maximum input limit: 1
Changes effective after Reset Protection level: 2/7 Unit: –
Data type: BYTE Applies with effect from SW version:
Meaning: This machine data is only evaluated if bit 0 is set in $MC_RESET_MODE_MASK. For
every entry in machine data $MN_GCODE_RESET_VALUES (and thus for every G group)
this MD defines whether the setting corresponding to $MC_GCODE_RESET_VALUES will
be resumed upon the occurrence of a reset/parts program end (MD = 0), or if the setting
valid at that moment will be retained (MD = 1).
Example:
In this case whenever there is a reset/parts program end, the initial setting for the sixth G
group (current plane) will be read from machine data $MC_GCODE_RESET_VALUES:
$MC_GCODE_RESET_VALUE(5)=1; Reset value of sixth G group is M17
$MC_GCODE_RESET_MODE(5)=0; Initial setting for sixth G group after a
reset/parts program end is as in
$MC_GCODE_RESET_VALUES(5)
If it is required that the current setting for the sixth G group (current plane) be retained in
the event of a reset/parts program end, the setting is as follows:
$MC_GCODE_RESET_VALUE(5)=1; Reset value of sixth G group is M17
$MC_GCODE_RESET_MODE(5)=1; Current setting for the sixth G group
is retained even after a reset/part
program end
20380 TOOL_CORR_MODE_G43/G44
MD number Handling for tool length offset G43/G44
Default setting: 0 Minimum input limit: 1 Maximum input limit: 2
Changes effective after Reset Protection level: 2/7 Unit: –
Data type: BYTE Applies with effect from SW version: 5.2
Meaning: The machine data is only effective with $MN_MM_EXTERN_CNC_LANGUAGE = 1;
When G43/G44 is active, it determines how length offsets programmed with H are
processed.
0: Mode A
The tool length H always acts on the Z axis,
independent of the current plane
1: Mode B
Depending on the active plane, tool length H acts on one of
the three geometry axes, namely with
G17 on the third geometry axis (usually Z)
with G18 on the second geometry axis (usually Y)
with G19 on the first geometry axis (usually X)
In this mode, offsets can be programmed for all three geometry axes, i.e. the activation of a
component in one axis does not cancel a length offset which is already active in another
axis.
2: Mode C
The tool length is applied independent of the active plane
to the axis programmed simultaneously with H. In all other respects
the behavior is the same as variant B
20382 TOOL_CORR_MOVE_MODE
MD number Traversing the tool length offset
Default setting: FALSE Minimum input limit: – Maximum input limit: –
Changes effective after Reset Protection level: 2/7 Unit: –
Data type: BOOLEAN Applies with effect from SW version: 5.2
Meaning: The machine data determines how the tool length offsets are applied.
FALSE: A tool length component is only applied if the
associated axis was programmed.
(same behavior as previous software versions)
20732 EXTERN_G0_LINEAR_MODE
MD number Interpolation behavior for G00
Default setting: 1 Minimum input limit: 0 Maximum input limit: 1
Changes effective after Power ON Protection level: 2/4 Unit: –
Data type: BOOLEAN Applies with effect from SW version:
Meaning: This MD defines the interpolation behavior for G00.
0: Axes traverse as positioning axes
1: Axes interpolate with each other
20734 EXTERN_FUNCTION_MASK
MD number Function mask for external language
Default setting: Minimum input limit: 0 Maximum input limit: 16
Changes effective after Reset Protection level: 2/7 Unit: –
Data type: DWORD Applies with effect from SW version: 6.2
Meaning: This machine data is used to influence functions in ISO mode.
Bit 0 =0: ISO mode T: “A” and “C” are interpreted as axes. If contour definition
is programmed, a comma must precede “A” or “C”.
=1: “A” and “C” in the parts program are always interpreted
as contour definition.
Neither axis A nor axis C is permitted to exist.
Bit 1 =0: ISO mode T G10 P<100 tool geometry
>100 tool wear
=1: G10 P<10 000 tool geometry
>10 000 tool wear
Bit 2 =0: G04 dwell time: always either [s] or [ms]
=1: if G95 is active, dwell time in spindle revolutions
Bit 3 =0 ISO scanner errors result in an alarm
Example: N5 G291 ; ISO Dialect mode
N10 WAIT ; Alarm 12080 “WAIT unknown”
N15 G91 G500 ; Alarm 12080 “G500 unknown”
=1: ISO scanner errors are not output. The block will be transferred to the
Siemens translator
Example: N5 G291 ; ISO Dialect mode
N10 WAIT ; The Siemens translator will process
; the block
N15 G91 G500 ; The Siemens translator will process
; the block
N20 X Y ; Block processed by ISO translator due to
; G291, G91 off N15 is active
Bit 4 =0: G00 is traversed into the exact stop function.
Example: In G64, G00 blocks are also traversed with G64
=1 G00 blocks are always traversed with G09, even when G64 is active
Bit 5 =0: Movements of the rotary axis are carried out along the shortest path
=1: Depending on the sign, movements of the rotary axis are carried out
in the positive or negative direction of rotation
Bit 6 =0: Only 4-digit program number allowed
Bit 6 =1: 8-digit program number allowed. Numbers shorter than 4 digits are expanded to
4 digits .
Bit 7 =0: Axis programming with geo axis replacement/parallel axes is compatible in ISO
mode
=1: Axis programming with geo axis replacement/parallel axes is compatible with
Siemens mode in ISO mode
Bit8 =0: In cycles, the F value is always interpreted as a feedrate for transfer
=1: In thread cycles, the F value is interpreted as a pitch for transfer
Bit9 =0: In ISO Mode T for G84, G88 and in standard mode F for G95, multiplication is
by 0.01 mm or 0.0001 inch
=1: In ISO Mode T for G84, G88 and in standard mode F for G95, multiplication is
by 0.01 mm or 0.0001 inch
Bit 10 = 0: In M96 Pxx the Pxx program is called when interrupted.
= 1: In M96 Pxx CYCLE396.spf is always called when interrupted.
Bit 11 = 0: When G54 Pxx is programmed, G54.1 is displayed.
= 1: When G54 Pxx or G54.1 Px is programmed, G54Px is always displayed.
Bit 12 = 0: When the UP defined by M96 Pxx is called, $P_ISO_STACK is not changed.
=1: When the UP defined by M96 Pxx is called, $P_ISO_STACK is incremented.
Example: The first 4 axes in the channel are relevant for the path feed:
$MC_FGROUP_DEFAULT_AXES[0] = 1
$MC_FGROUP_DEFAULT_AXES[2] = 2
$MC_FGROUP_DEFAULT_AXES[3] = 3
$MC_FGROUP_DEFAULT_AXES[4] = 4
Default 0: No output
The NCK/PLC interface is updated on every block change and after a Reset.
A block-synchronous relationship does not always exist between the NC block and the
signaled G functions (e.g. if very short blocks are used in continuous-path mode).
The same applies to $MC_GCODE_GROUPS_TO_PLC.
22515 GCODE_GROUPS_TO_PLC_MODE
MD number Behavior of G group to PLC
Default setting: – Minimum input limit: – Maximum input limit: –
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: DWORD Applies with effect from SW version: 6.3
Meaning: For setting how the G groups are to be interpreted in the PLC as data. The current behavior
(bit 0=0) was for the G group to be the array index of a 64 byte field (DBB 208 – DBB 271).
That way, up to the 64th G group can be reached.
The new behavior (bit 0=1) ) is for the data storage in the PLC to be up to 8 bytes (DBB
208 – DBB 215). With this behavior, the array index of this byte array is identical with the
index of the MD $MC_GCODE_GROUPS_TO_PLC[Index] and
$MC_EXTERN_GCODE_GROUPS_TO_PLC[Index]. Each index (0–7) must only be
entered in one of the two machine data, the other must contain the value 0.
Bit 0(LSB = 0: Behavior as before, the 64 byte array is used for the G code.
Bit 0(LSB = 1: The user sets for which G groups the first 8 bytes will be used
22900 STROKE_CHECK_INSIDE
MD number Direction (internal/external) in which the protection zone acts
Default setting: 0 Minimum input limit: 0 Maximum input limit: 1
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: BYTE Applies with effect from SW version: 5.2
Meaning: This machine data applies in combination with external programming languages.
It is effective with $MN_MM_EXTERN_LANGUAGE = 1.
Meaning:
0: Protection zone 3 is an internal protection zone, i.e. the protection zone must not be
overtraveled in the internal direction
1: Protection zone 3 is an external protection zone
22910 WEIGHTING_FACTOR_FOR_SCALE
MD number Input resolution for scaling factor
Default setting: 0 Minimum input limit: 0 Maximum input limit: 1
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: BOOLEAN Applies with effect from SW version: 5.2
Meaning: This machine data applies in combination with external programming languages. It is active
with $MN_MM_EXTERN_LANGUAGE = 1.
It defines the unit for the scale factor P and the axial scale factors I, J, K
Meaning:
0: Scale factor in 0.001
1: Scale factor in 0.00001
22914 AXES_SCALE_ENABLE
MD number Activation for axial scaling factor (G51)
Default setting: 0 Minimum input limit: 0 Maximum input limit: 1
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: BOOLEAN Applies with effect from SW version: 5.2
Meaning: This MD enables axial scaling.
Meaning:
0: Axial scaling not possible
1: Axial scaling is possible, i.e. MD DEFAULT_SCALE_FACTOR_AXIS is active
22920 EXTERN_FIXED_FEEDRATE_F1_ON
MD number Activation of fixed feedrates F1 – F9
Default setting: FALSE Minimum input limit: Maximum input limit:
Changes effective after Power ON Protection level: 2/7 Unit:
Data type: BOOLEAN Applies with effect from SW version: 6.2
Meaning: This MD enables the fixed feedrates from the setting data
$SC_EXTERN_FIXED_FEEDRATE_F1_F9 [ ].
0: no fixed feedrates with F1 – F9
1: the feedrates from the setting data $SC_EXTERN_FIXED_FEEDRATE_F1_F9 are
activated by programming F1 –F9
22930 EXTERN_PARALLEL_GEOAX
MD number Assignment of parallel channel geometry
Default setting: 0 Minimum input limit: 0 Maximum input limit: 3
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: BYTE Applies with effect from SW version: 6.2
Meaning: Assignment table for the axes that run parallel to the geometry axes. This table can be
used to assign the channel axes that run parallel to the geometry axes. The parallel axes
can then be activated in ISO Dialect with the G functions for plane selection (G17–G19)
and the axis names for the parallel axis as a geometry axis. An axis replacement is then
performed with the axis defined by means of $MC_AXCONF_GEOAX_ASSIGN_TAB[ ].
Prerequisite: The channel axes used must be active (with an occupied list slot in
AXCONF_MACHAX_USED).
If a zero is entered, the corresponding parallel geometry axis is deactivated.
24004 CHBFRAME_POWERON_MASK
MD number Reset channel-specific base frame following Power ON
Default setting: 0 Minimum input limit: 0 Maximum input limit: 0xFF
Changes effective after Power ON Protection level: 2/7 Unit: –
Data type: DWORD Applies with effect from SW version: 5.2
Meaning: This machine data is used to specify whether channel-specific base frames should be reset
in the data management on Power ON Reset. This means that displacements and rotations
are set to 0 and scaling will be set to 1. Mirroring will be disabled. The selection can be
made separately for the individual base frames.
Bit 0 corresponds to base frame 0, bit 1 to base frame 1, etc.
43120 DEFAULT_SCALE_FACTOR_AXIS
MD number Axial default scaling factor with active G51
Default setting: 1 Minimum input limit: –99999999 Maximum input limit: 99999999
Changes effective immediately Protection level: 7/7 Unit: –
Data type: DWORD Applies with effect from SW version: 5.2
Meaning: This machine data applies in combination with external programming languages. It is
effective with $MN_MM_EXTERN_LANGUAGE = 1.
43240 M19_SPOS
MD number Spindle position in degrees for spindle positions with M19
Default setting: 0 Minimum input limit: –359.999 Maximum input limit: 359.999
Changes effective immediately Protection level: 7/7 Unit: –
Data type: DOUBLE Applies with effect from SW version: 5.2
Meaning: The setting data is also effective in Siemens mode.
42110 DEFAULT_FEED
MD number Default value for path feed
Default setting: 0 Minimum input limit: 0 Maximum input limit: –
Changes effective immediately Protection level: 7/7 Unit: –
Data type: DOUBLE Applies with effect from SW version: 5.2
Meaning: If no path feed is programmed in the parts program, the value stored in
$SC_DEFAULT_FEED is used.
The setting data is evaluated at the start of the parts program allowing for the feed type
active at the time (see $MC_GCODE_RESET_VALUES and/or
$MC_EXTERN_GCODE_RESET_VALUES).
42140 DEFAULT_SCALE_FACTOR_P
MD number Default scaling factor for address P
Default setting: 0 Minimum input limit: –99999999 Maximum input limit: 99999999
Changes effective immediately Protection level: 7/7 Unit: –
42140 DEFAULT_SCALE_FACTOR_P
MD number Default scaling factor for address P
Data type: DWORD Applies with effect from SW version: 5.2
Meaning: This machine data applies in combination with external programming languages. It is
effective with $MN_MM_EXTERN_LANGUAGE = 1.
If no scale factor P is programmed in the block, the value in this machine data is applied.
42150 DEFAULT_ROT_FACTOR_R
MD number Default selection for rotation angle R
Default setting: 0 Minimum input limit: 0 Maximum input limit: 360
Changes effective immediately Protection level: 2/7 Unit: Degrees
Data type: DOUBLE Applies with effect from SW version:
Meaning: If a factor has not been programmed for rotation R during selection of rotation G68, the
value from this setting data becomes effective.
42160 EXTERN_FIXED_FEEDRATE_F1_F9
MD number Allow fixed feedrates with F1–F9
Default setting: 0 Minimum input limit: 0 Maximum input limit:
Changes effective immediately Protection level: 2/7 Unit: VELO
Data type: DOUBLE Applies with effect from SW version:
Meaning: Fixed feedrates that are selected by programming F1–F9 when G01 is active.
42162 EXTERN_DOUBLE_TURRET_DIST
MD number Tool spacing on the double turret
Default setting: Minimum input limit: Maximum input limit:
Changes effective Protection level: Unit:
Data type: DOUBLE Applies with effect from SW version:
Meaning: The machine data is only effective with $MN_EXTER_CNC_SYSTEM = 2. Turning
Spacing of both the tools on a double slide turret. The spacing is activated as an additive
zero offset when code G68 is used, if $MN_EXTERN_DOUBLE_TURRET_ON = TRUE is
set.
42520 CORNER_SLOWDOWWN_START
MD number Beginning of feedrate reduction with G62
Default setting: 0 Minimum input limit: 0 Maximum input limit: any
Changes effective immediately Protection level: 7/7 Unit: POSN_LIN
42520 CORNER_SLOWDOWWN_START
MD number Beginning of feedrate reduction with G62
Data type: DOUBLE Applies with effect from SW version: 6
Meaning: Path length from which the feedrate is reduced before the corner with G62
42522 CORNER_SLOWDOWN_END
MD number End of feedrate reduction with G62
Default setting: 0 Minimum input limit: 0 Maximum input limit: any
Changes effective immediately Protection level: 7/7 Unit: POSN_LIN
Data type: DOUBLE Applies with effect from SW version: 6
Meaning: Path length up to which the feedrate will remain reduced after a corner for G62.
42524 CORNER_SLOWDOWN_OVR
MD number Override for feedrate reduction with G62
Default setting: 0 Minimum input limit: 0 Maximum input limit: any
Changes effective immediately Protection level: 7/7 Unit: PERCENT
Data type: DOUBLE Applies with effect from SW version: 6
Meaning: Override with which the feedrate is multiplied at the corner for G62.
42526 CORNER_SLOWDOWN_CRIT
MD number Corner recognition in G62, G21
Default setting: 0 Minimum input limit: 0 Maximum input limit: any
Changes effective immediately Protection level: 7/7 Unit: POSN_ROT
Data type: DOUBLE Applies with effect from SW version: 6
Meaning: Angle from which a corner is considered to be a corner for the purposes of feedrate
reduction with G62, G21.
43340 EXTERN_REF_POSITION_G30_1
MD number Reference point position for G30.1
Default setting: Minimum input limit: Maximum input limit:
Changes effective immediately Protection level: Unit:
Data type: DOUBLE Applies with effect from SW version:
Meaning: Setting data
Reference point position for G30.1.
This setting data is evaluated in CYCLE328.
8
Example
None
J
Notes
Channel-specific
42526 CORNER_SLOWDOWN_CRIT Corner recognition in G62, G21
43340 EXTERN_REF_POSITION_G30_1 Reference point position for G30.1
Notes
/ST7/ SIMATIC
Products for Totally Integrated Automation and Micro Automation
Catalog ST 70
Order No.: E86060–K4670–A111–A8–7600
/Z/ MOTION-CONNECT
Connection Systems & System Components for SIMATIC, SINUMERIK,
MASTERDRIVES and SIMOTION
Catalog NC Z
Order No.: E86060–K4490–A001–B1–7600
Electronic Documentation
User Documentation
Manufacturer/Service Documentation
a) Lists
b) Hardware
Please enter the ID no. 15257461 in the “Search” field (top right) and click “go”.
c) Software
d) Start-up
Notes
Index
CONTPRON, 2-61
Corner override, 2-54
CYCLE383T, 3-114
CYCLE384T, 3-115
Characters CYCLE385T, 3-116
$P_STACK, 2-76 Cycles
$TC_DPH, 2-85 Drilling cycles, 3-95
General description, 3-89
Modal, 3-90
Procedure, 3-89
Numbers Shell cycle, 3-90
1st reference point approach G28, 4-136 Shell cycle CYCLE381M, 3-98
2D/3D rotation G68/69, ISO-M, 2-37 Shell cycle CYCLE383M, 3-98
Shell cycle CYCLE384M, 3-100
Shell cycle CYCLE387M, 3-101
Cylindrical interpolation, 2-44
A
Activating ISO-Dialect mode, 4-131
Activation, 2-15
Address expansion of the M function, 6-159
D
Address expansion of the T number to be D function, 2-51
programmed, 6-161 D numbers, 2-81
Alarms, 10-187 Data management, 2-17
Align first reference point, 2-52 Decimal point, 2-29
Auxiliary function output, 2-51 Decimal point programming, 4-133
Axis interpolation, 4-132 Display of non-modal G codes, 2-25
Axis names in ISO Dialect M, 4-132 DryRun mode, 2-73
Axis names in ISO Dialect T, 4-131 Dwell time, 2-34
B E
B function, 2-52 End point programming with angles, 3-121
Block number, 2-62 Error messages, 10-187
Block skip, 2-50
F
C F value, 5-150
Chamfers, 4-143 Feed-forward control, enable/disable, 2-52
Code system A, B, C, ISO-T, 4-140 Feedrates, 4-141
Comments, 2-50 Floating reference position, G30.1, 4-137
Compressor, 2-53
Compressor function, 2-53
Conditions
Implicit mode change, 5-149
G
Mode switchover, 5-149 G code display, 2-24
Power ON, Reset, block search, 5-153 G commands, 2-19
Program commands, 5-150 Modal, 2-16
Tool management, 5-152 G00, 2-19
Contour definitions ISO-T, Programming, 3-120 G04, 2-34
Contour preparation, 2-61 G07.1, 2-44
Contour repetition, G72.1/G72.2, 3-128 G08 P.., 2-52
G290/291, 2-17 P
G54.1, 2-28
G65/66, 2-17 Parallel axes, 4-142
G72.1/G72.2, 3-128 Polar coordinates, 2-42
Global user data, 3-92 Polygon turning, G51.2, 3-127
GUD, 3-92 Power ON/Reset, 2-16
Programmed angle, 2-43
H
R
H function, 2-51
Radii, 4-143
Rapid lift, 2-31
References, A-191
I RET, 2-58
Inch/metric switchover, 4-141 Rotary axis function, 4-144
Insertion of chamfers and radii, 4-143
Interrupt program with M96/M97, 2-46
ISO Dialect M or T, Selection, 4-131 S
ISO Dialect mode, 2-16
Scaling, 2-34, 4-133
Selection of code system A, B, C, 4-140
Setting data
L Channel-specific, 6-178
Level stack, 2-76 List, 9-185
Shell cycle CYCLE383T, 3-114
Shell cycle CYCLE384T, 3-115
Shell cycle CYCLE385T, 3-116
M Siemens language commands in ISO Dialect
M29, 2-51 mode, 2-60
M96, 2-46 Siemens mode, 2-15
M97, 2-46 Siemens subprogram call in ISO mode, 2-18
Machine data, 6-155 Skip level, 2-50, 2-73
Axis-specific, 6-178 Spindle axis changeover, 2-51
Channel-specific, 6-171 Spindle revolution, 2-34
General, 6-155 Start label, 2-62
List, 9-183 Startup
Machining cycle, Interrupt program, 2-48 Active G command to PLC, 4-138
Macro call, modal, 2-66 Default assignment of MD, 4-147
Macro call with G function, 2-70 Tool change, 4-138
Macro commands Straight line with angle, Programming, 3-122
ISO Dialect, 2-64 Subprogram technology, 2-57
Siemens, 2-64 System variables, 3-117
Macro commands, 2-64
Mirroring, 2-34
Mode switchover, 2-15 T
T function, 2-51
Thread, Variable lead, 2-33
N Tool length offset, 2-82
Non-modal G codes, 2-25 Tool management, 2-79
Number of program executions, 2-57 Tool offset: T (ISO dialect T), 2-83
Tool offsets, 2-79
Too-changing cycle, 2-88
Transmit, 2-43
O
Overview of the G commands, 2-19
Z
Zero offset, 2-27
Notes
Commands
G02, 2-19
G02.2, ISO-M, 2-19
G02/G03, 5-150
G03, 2-19
Characters G03.2, ISO-M, 2-19
$P_STACK, 2-76 G04, 2-22, 2-34, 5-150
$TC_DPH, 2-85 G05, 2-22
G05 P.., 2-72
G05.1, 2-22
G07.1, 2-22, 2-44
Numbers G08, ISO-M, 2-22
2nd/3rd/4th Reference point approach, G30, G08 P, 2-52
4-137 G09, ISO-M, 2-22
G10, 2-22, 2-29
G10.6, 2-31
ISO-T, 2-22
B G11, ISO-M, 2-22
B, 2-52 G12.1, 2-43
ISO-M, 2-23
ISO-T, 2-23
G13.1, 2-43
C ISO-M, 2-23
Contour repetition G73, 3-105 ISO-T, 2-23
Cylindrical interpolation, 2-44 G15, ISO-M, 2-22, 2-42
G16, 5-150
ISO-M, 2-22
G17, 2-21, 4-142
D
G17, ISO-M, 2-19
D, 2-51 G18, 4-142
ISO-M, 2-79 ISO-M, 2-19
Deep hole drilling, 3-99 G18, 2-21
Deep hole drilling and recessing in longitudinal G19, 2-21, 4-142
axis G74, 3-106 ISO-M, 2-19
Deep hole drilling and recessing in the transverse G20, 2-20
axis G75, 3-107 G20/G21, 5-150
Double-turret machining, 2-39 G21, 2-20
Drilling cycles, G80-G89, 3-111 G22, 4-135, 5-151
ISO-M, 2-19
ISO-T, 2-20
E G23, 4-135
ISO-T, 2-20
Exact stop, 4-138 G23, ISO-M, 2-19
G27, 2-22
G28, 2-22, 2-52, 4-136
F G290, 2-23
G291, 2-23
Finishing cycle, 3-103 G30, 2-22, 4-137
G30.1, 2-22, 4-137
G31, 2-22, 4-135
G G33, 2-19, 2-33
G34, 2-33
G00, 2-19, 4-138 ISO-T, 2-19
G01, 2-19
S
M
Stock removal cycle, longitudinal axis, 3-103
M, 2-51 Stock removal cycle, transverse axis, 3-105
ISO-M, 2-79
M06, 5-152
M96, 2-46
M97, 2-46 T
M98, 2-57 T, 2-51
Macro calls, Mode changing, 2-67 ISO-M, 2-79
Multiple thread cutting cycle, G76, 3-108 ISO-T, 2-83
Thread cutting, G78, 3-110
Transverse stock removal, G79, 3-111
P Turning cycles, 3-102
G77–G79, 3-109
Polar coordinate interpolation, 2-43
Safety
SINUMERIK SINUMERIK Integrated SINUMERIK SINUMERIK SINUMERIK SINUMERIK
840D/810D 840D/840Di/ Application 840D/810D/ 840D/840Di 840D/840Di/ 840D/840Di/
810D/ Manual FM-NC 810D 810D 810D
Program. Guide Operator ’s Guide System Overview Lists Configuring (HW) *) Operator Description of
– Short Guide – ManualTurn System Variables – 810D Components Functions
– Fundamentals *) – Short Guide ManualTurn – 840D (HW) *) – ManualTurn
– Advanced *) – ShopMill – ShopMill
– Cycles – Short Guide ShopMill – ShopTurn
– Measuring Cycles – ShopTurn
– ISO Turning/Milling – Short Guide ShopTurn
Manufacturer/Service Documentation
SINUMERIK
SIMODRIVE SINUMERIK SINUMERIK SINUMERIK SINUMERIK SINUMERIK SINUMERIK
611D 840D/840Di/ 840D/840Di/ 840D/810D 840D/810D 840D/810D 840D/810D
840D/810D 810D 810D
Manufacturer/Service Documentation
MOTION
SINUMERIK SINUMERIK SINUMERIK SINUMERIK SINUMERIK CONTROL
SIMODRIVE SINUMERIK SIMODRIVE SIMODRIVE SIMODRIVE SIMODRIVE SYSTEMS
840D 840D/840Di 840D 840D
810D 611D 611D
611D