|
|
Preface
Fundamental safety
1
instructions
2
Description
SINUMERIK
3
Measuring variants
SINUMERIK 840D sl
Measuring cycles
4
Parameter lists
Changes from cycle version
A
SW4.4 and higher
Programming Manual
B
Appendix
Valid for:
Control
SINUMERIK 840D sl / 840DE sl
Software
CNC software version 4.94
10/2020
6FC5398-4BP40-6BA4
Description
2
2.1
Basics
General information
Measuring cycles are general subroutines designed to solve specific measurement tasks. They
can be adapted to specific problems via parameter settings.
When taking general measurements, a distinction is made between
• Tool measurement and
• Workpiece measurement.
Workpiece measurement
;
)
=
<
:
0
=
;
Workpiece measurement, turning example
Workpiece measurement, milling example
In workpiece measurement, a probe is moved up to the clamped workpiece in the same way as
a tool and the measured values are acquired. The flexibility of measuring cycles makes it possible
to perform nearly all measurements required on a milling or turning machine.
The result of the workpiece measurement can be optionally used as follows:
• Compensation in the work offset
• Automatic tool offset
• Measurement without offset
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
13
Description
2.1 Basics
Tool measurement
;
=
<
=
;
Tool measurement, turning tool example
Tool measurement, drill example
In tool measurement, the selected tool is moved up to the probe and the measured values are
acquired. The probe is either in a fixed position or is swung into the working area with a
mechanism. The tool geometry measured is entered in the appropriate tool offset data set.
Measuring cycles
14
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.2 General prerequisites
2.2
General prerequisites
Requirements
Certain requirements must be met before measuring cycles can be used. Further information
on these requirements can be found in the Commissioning Manual SINUMERIK 840D sl Basic
Software and Operating Software.
Check the requirements using the following checklist:
• Machine
- All machine axes are designed in accordance with DIN 66217.
- Machine data has been adapted.
• Starting position
- The reference points have been approached.
- The starting position can be reached by linear interpolation without collision.
• Machining channel
Measuring cycles and JOG measuring functions can only be performed in one machining
channel. They are not executable in a handling channel.
(Only valid for 828D control systems as of SW 4.94)
• Display functions of the measuring cycles
A HMI/PCU or HMI/TCU is required for showing the measuring result displays and for
measuring cycle support.
• Please observe the following when programming:
- Tool radius compensation is deselected before it is called (G40).
- The cycle is called no later than at the 5th program level.
- The measurement is also possible in a system of units that differs from the basic system
(with technology data that has been switched over).
For metric dimension system with active G70, G700.
For inch dimension system with active G71, G710.
Further information
Further information for this documentation is provided in the following manuals:
• Commissioning Manual SINUMERIK 840D sl Basic Software and Operating Software
- SINUMERIK Operate
• Programming Manual NC Programming
• Function Manual Basic Functions
• Function Manual Transformations
• Function Manual Tools
• Function Manual Technologies
• Function Manual Tool Management
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
15
Description
2.3 Behavior on block search, dry run, program testing, simulation
2.3
Behavior on block search, dry run, program testing, simulation
Function
The measuring cycles are skipped during execution if one of the following execution modes is
active:
• "Trial run"
($P_DRYRUN=1)
• "Program test"
($P_ISTEST=1)
• "Block search"
($P_SEARCH=1),
only if $A_PROTO=0.
Simulation and simultaneous recording
Setting the measuring cycles under a simulated environment
Setting data SD55618 $SCS_MEA_SIM_ENABLE
= 0:
The measuring cycles are exited without any function.
= 1:
The measuring cycles are executed.
A distinction is made between the following simulation versions:
- Simulation in the HMI Operate editor
Traversing motion is visualized.
Measurement results and measurement result display are not available.
- SinuTrain
Measurement results and measurement result display are available.
Traversing motion can be visualized using the simultaneous recording function.
- For systems that exclusively operate with simulated axes (e.g. virtual machines,
NCU in a test rack application)
Measurement results and measurement result display are available.
Traversing motion can be visualized using the simultaneous recording function.
The following parameters should be observed for simulation in SinuTrain and
systems with simulated axes:
If MD13230 $MN_MEAS_PROBE_SOURCE = 1 to 8,
then set MD10360 $MN_FASTIO_DIG_NUM_OUTPUTS >= 1!
SD55619 $SCS_MEA_SIM_MEASURE_DIFF = input of simulated measurement
difference
Measuring cycles and measurement results under a simulated environment (SinuTrain) are used
for programming for training purposes if a real machine is not available. The measurement
results also involve "simulated" values, which can also deviate from the setting in MD13231
MEAS_PROBE_OFFSET, but which are influenced by these.
Measuring cycles
16
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.3 Behavior on block search, dry run, program testing, simulation
Figure 2-1
Measuring - simulation
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
17
Description
2.4 Reference points on the machine and workpiece
2.4
Reference points on the machine and workpiece
General information
Depending on the measuring task, measured values may be required in the machine coordinate
system (MCS) or in the workpiece coordinate system (WCS).
For example: It may be easier to ascertain the tool length in the machine coordinate system.
Workpiece dimensions are measured in the workpiece coordinate system.
Where:
• M = machine zero in the machine coordinate system
• W = workpiece zero in the workpiece coordinate system
• F = tool reference point
Reference points
/
)
;
)
=
<
;
=
<
=
=
0
:
19 LQ =
;
;
① Spindle chuck
② Workpiece
The position of tool reference point F in the machine coordinate system is defined with machine
zero M as the machine actual value.
The position of the tip/cutting edge of the active tool in the workpiece coordinate system is
displayed with the workpiece zero W as workpiece actual value. For a workpiece probe, the
center or the end of the probe ball can be defined as the tool tip.
The work offset (WO) characterizes the position of the workpiece zero W in the machine
coordinate system.
Work offsets (WO) comprise the components offset, rotation, mirroring and scaling factor (only
the global basic work offset does not contain any rotation).
A distinction is made between the basic, work offset (G54 ... G599) and programmable work
offset. The basic area contains further subsections - such as the basic work offset, channel-
Measuring cycles
18
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.4 Reference points on the machine and workpiece
specific basic work offset and configuration-dependent work offsets (e.g. rotary table reference
or basic reference).
The specified work offsets are effective together as a chain and result in the workpiece coordinate
system.
For "Correction in a work offset", in conjunction with measuring cycles, a distinction is made
between two different cases.
• Correction to the coarse offset:
An absolute offset value is determined between the machine zero and the measured
workpieces zero. This offset is written into the coarse component of the selected work offset
and deleted in the fine component.
• Correction to the fine offset:
The measured difference is written as offset to the fine component of the selected work
offset and is added to the course component.
The input window work offset coarse/fine in the automatic measuring cycle screens is activated
using SD54760 $SNS_MEA_FUNCTION_MASK_PIECE, bit 10 = 1.
Note
Scale factors with a scaling value unequal to "1" are not supported by the measuring cycles.
Mirroring functions are only permitted in conjunction with counterspindles on turning
machines.
The machine and workpiece coordinate system can be set and programmed separately in the
"inch" or "metric" measuring system.
Note
Transformation
• Measure workpiece
Workpiece measurements are always performed in the workpiece coordinate system. All
descriptions relating to workpiece measurement refer to it!
• Measure tool
When measuring tools with kinematic transformation active, a distinction is made
between basic coordinate system and machine coordinate system.
If kinematic transformation is deactivated, this distinction is made.
All subsequent descriptions relating to tool measurement assume that kinematic
transformation is disabled and therefore refer to the machine coordinate system.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
19
Description
2.5 Definition of the planes, tool types
2.5
Definition of the planes, tool types
When measuring under milling, machining planes G17, G18 or G19 can be selected.
When measuring under turning, machining plane G18 must be selected.
For tool measurement, the following tool types are permitted:
• Milling, type 1..
• Drill, type 2 ...
• Turning tools, type 5 ...
For workpiece measurement, the following tool types are permitted:
• Workpiece probe, milling: Probe types 710, 712, 713, 714
• Workpiece probe, turning: Probe type 580 for turning machines without extended milling
technology, otherwise 710
See "Measuring the workpiece on a machine with combined technologies (Page 249)".
Milling
=
*
<
*
*
;
Depending on the tool type, the tool lengths are assigned to the axes as follows:
Acts in ...
G17 plane
G18 plane
G19 plane
Tool type:
1xy / 2xy / 710
Length 1
1st axis of the plane:
Z
Y
X
Length 2
2nd axis of the plane:
Y
X
Z
Length 3
3rd axis of the plane:
X
Z
Y
Measuring cycles
20
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.5 Definition of the planes, tool types
Note
In the assignment of the tool lengths, note the settings in the following setting data
• SD42940 $SC_TOOL_LENGTH_CONST
• SD42942 $SC_TOOL_LENGTH_CONST_T
• SD42950 $SC_TOOL_LENGTH_TYPE
Example of plane definition for milling
)
=
<
:
;
Figure 2-2
Example: Milling machine with G17
Turning
<
*
;
*
*
=
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
21
Description
2.5 Definition of the planes, tool types
Turning machines generally only use axes Z and X and therefore:
G18 plane
Tool type
5xy (turning tool, workpiece probe)
Length 1
Acts in X (2nd axis of the plane)
Length 2
Acts in Z (1st axis of the plane)
G17 and G19 are used for milling on a turning machine. If there is no machine axis Y, milling can
be implemented with the following kinematic transformations:
• TRANSMIT
• TRACYL
In principle, measuring cycles support kinematic transformations. This is stated more clearly in
the individual cycles and measuring variants. Information about kinematic transformation can
be found in the Programming Manual NC Programming or in the documentation of the machine
manufacturer.
Note
If a drill or milling cutter is measured on a lathe, in most cases, the channel-specific SD42950
$SC_TOOL_LENGTH_TYPE = 2 is set. These tools are then length-compensated like a turning tool.
SINUMERIK controls have other machine and setting data that can influence the calculation of
a tool.
Further information:
• Function Manual Basic Functions
• Function Manual Transformations
• Function Manual Tools
• Function Manual Technologies
• Function Manual Tool Management
Measuring cycles
22
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.5 Definition of the planes, tool types
Example of plane definition for turning
;
)
/
/
=
Figure 2-3
Example: Lathe with G18
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
23
Description
2.6 Probes that can be used
2.6
Probes that can be used
General information
To measure tool and workpiece dimensions, an electronic touch-trigger probe is required that
provides a signal change (edge) when deflected with the required repeat accuracy.
The probe must operate virtually bounce-free.
Different types of probe are offered by different manufacturers.
Note
Please observe the information provided by the manufacturers of electronic probes and/or the
machine manufacturer's instructions on the following points:
• Electrical connection
• Mechanical calibration of the probe
• If a workpiece probe is used, both the direction of deflection and transmission of switching
signal to the machine column (radio, infrared or cable) must be taken into account. In some
versions, transmission is only possible in particular spindle positions or in particular ranges.
This can restrict the use of the probe.
Probes are distinguished according to the number of measuring directions.
• Multi-directional (multi probe)
• Mono-directional (mono probe)
Workpiece probe
Tool probe
Multi-directional (3D)
Mono-directional
Milling machines
Lathes
<
;
;
<
=
The probes also differ in the form of the stylus tip:
The measuring cycles support pin, L and star probes as autonomous tool types. The use of the
probe types is referenced in the individual measuring cycles. The multi probe is universally
applicable.
For a mono probe, the switching direction is tracked for each measurement by turning the
spindle. This can lead to a longer program runtime.
Measuring cycles
24
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.6 Probes that can be used
Workpiece probe types
The following workpiece measuring probe types - as well as a calibration tool for calibrating tool
probes - are provided in the tool management:
Figure 2-4
Probe types in the tool management
Tool data from probes
The probes differ as a result of the tool type and their special attributes, e.g. switching directions.
A probe can encompass several tool types. For this purpose, several cutting edges (D1, D2, ...)
should be created for the probe.
Example: Multi probe with a boom
D1
3D_PROBE
Type 710
D2
L_PROBE
Type 713
The user must take into account the geometry of the probe when pre-positioning. To do this, you
can read out individual tool data in the user program:
Example:
IF (($P_TOOLNO>0) AND ($P_TOOL>0))
R1= ($P_AD[6]) ; Reading: tool radius of the current tool
ENDIF
Correction angle
"The probe is aligned in the +X direction using tool parameter "correction angle" .
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
25
Description
2.6 Probes that can be used
3D probe (multi probe)
Display
Properties
Characteristic
Application:
Universal
;
<
Type:
$TC_DP1 = 710
Tool length:
in Z (for G17) 1)
Radius of the probe sphere
$TC_DP6
<
;
=
1) Workpiece measurement, length reference of the 3D probe
The tool length in the direction of the infeed axis (for G17: Z axis) is defined as the distance between the
tool reference point in the tool adapter and a parameterized reference point on the probe sphere. The
reference point can be set to the center of the sphere or the surface of the sphere using the following
machine data: MD51740 $MN_MEA_FUNCTION_MASK, bit 1
Mono probe
Display
Properties
Characteristic
Application:
Alignment of the switching direction when
measuring
Type:
$TC_DP1 = 712
Tool length:
in Z (for G17) 1)
Correction angle:
$TC_DP10 = 0.0° to 359.9°
Radius of the probe sphere
$TC_DP6
;
=
1) Workpiece measurement, length reference of mono probe
The tool length in the direction of the infeed axis (for G17: Z axis) is defined as the distance between the
tool reference point in the tool adapter and a parameterized reference point on the probe sphere. The
reference point can be set to the center of the sphere or the surface of the sphere using the following
machine data: MD51740 $MN_MEA_FUNCTION_MASK, bit 1
As initial state for the measuring cycles it is defined that at spindle position 0° the switching
direction of the mono probe in the machining plane is aligned in the axis direction +X. If an
angular offset is required, then the value should be entered into tool parameter "Correction
angle" ($TC_DP10).
Measuring cycles
26
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.6 Probes that can be used
L probe
Display
Properties
Characteristic
Application:
Towing measurement in +Z
=
Type:
$TC_DP1 = 713
Tool length:
in Z (for G17) 1)
Correction angle:
$TC_DP10 = 0.0° to 359.9°
Radius of the probe sphere:
$TC_DP6
Length L of the boom:
$TC_DP7
/
1) Workpiece measurement, length reference
The tool length is defined as the distance between the tool reference point in the tool adapter and the
probing point of the probe sphere in the +Z direction.
The initial position of the L probe referred to the measuring cycles is defined so that at spindle
position 0°, the boom and therefore the switching direction in the machining plane, are aligned
in the axis direction +X.
If an angular offset of the tool spindle is required, then the value should be entered into tool
parameter "Correction angle" ($TC_DP10).
Star probe
Display
Properties
Characteristic
Application:
Measure: Hole parallel to the axis 1)
;
<
Type:
$TC_DP1 = 714
Tool length:
in Z (for G17) 2)
5
Correction angle:
$TC_DP10 = 0.0° to 359.9°
External radius R of the
$TC_DP6
<
;
star element:
Radius of a probe sphere:
$TC_DP7
1) The application only refers to measurements in the plane (for G17: XY plane). Measurement in the tool
direction (for G17: Z direction) is not permitted using a star probe. If a measurement is to be made in the
tool direction, a star element (boom) must be parameterized as an L probe ($TC_DP1 = 713).
2) Workpiece measurement, length reference of star probe
The tool length is defined as the distance between the tool reference point in the tool adapter and the
center point of one of the probe spheres.
The booms of the star probe should be aligned parallel to the geometry axes of the machining
plane. If an angular offset is required, then the value should be entered into tool parameter
"Correction angle" ($TC_DP10).
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
27
Description
2.7 Probe, calibration body, calibration tool
2.7
Probe, calibration body, calibration tool
2.7.1
Measuring workpieces on milling machines, machining centers
Probe calibration
All probes must be mechanically correctly adjusted before use. The switching directions must be
calibrated before they are used in the measuring cycles for first-time. This also applies when
changing the stylus tip of the probe.
During calibration, the trigger points (switching points), position deviation (skew), and active
ball radius of the workpiece probe are determined and entered into the data fields of the general
setting data SD54600 $SNS_MEA_WP_BALL_DIAM . There are 40 data fields.
Calibration can be realized in a calibration ring (known bore), on a calibration ball or on
workpiece surfaces, which have an appropriate geometrical precision and low surface
roughness.
Use the same measuring velocity for calibrating and measuring. This applies in particular to the
feedrate override. If, in MD51740 $MNS_MEA_FUNCTION_MASK, bit 6 is set =1, then 100% feed
rate override traversing velocity is used for the measuring blocks (MEAS) in the measuring cycles
if the feedrate override is set > 0. If calibration is performed more than once on a calibration data
set, the same measuring velocity must be set, otherwise the previous calibration will be declared
as being invalid.
Measuring cycle CYCLE976 with different measuring variants is available to calibrate the probe.
Measuring
All probe types can be used in conjunction with a spindle capable of positioning. This ensures
that all milling measuring variants can be applied.
When positioning the probe, the measuring cycles always refer to the active master spindle. If
several spindles exist, then this condition must be satisfied by the user. During the program
runtime, this is possible using the SETMS NC command.
Example: SETMS(3); the third spindle is defined as master spindle.
If probes are used in conjunction with spindles that are not capable of positioning, restrictions
are obtained regarding the measuring variants and probe types. For illegal measuring variants,
alarms can be displayed during the cycle time.
At the calibration and measurement instant, the user must guarantee an identical orientation
(spindle position) of the probe, for example by clamping or indexing.
If probes are fixed in a system, restrictions are obtained regarding the measuring variants and
probe types. For illegal measuring variants, alarms can be displayed during the cycle time.
When the probe is mounted in the machine at a fixed position, a mechanical offset can exist in
the three geometry axes between the center point of the probe ball (tool tip) and the tool
reference point.
This offset should be entered in the adapter dimension (basis dimension) of the tool data of the
workpiece probe.
Measuring cycles
28
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.7 Probe, calibration body, calibration tool
See also
Calibrate probe - radius in ring (CYCLE976) (Page 118)
Calibrate probe - radius on edge (CYCLE976) (Page 123)
Calibrate probe - calibrate on ball (CYCLE976) (Page 132)
2.7.2
Measuring tools on milling machines, machining centers
Tool probe
=
<
;
Figure 2-5
Measuring a milling cutter
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
29
Description
2.7 Probe, calibration body, calibration tool
Parameters of the tool probe
Setting data
• For machine-related measurement/calibration:
- SD54625 $SNS_MEA_TP_TRIG_MINUS_DIR_AX1
- SD54626 $SNS_MEA_TP_TRIG_PLUS_DIR_AX1
- SD54627 $SNS_MEA_TP_TRIG_MINUS_DIR_AX2
- SD54628 $SNS_MEA_TP_TRIG_PLUS_DIR_AX2
- SD54629 $SNS_MEA_TP_TRIG_MINUS_DIR_AX3
- SD54630 $SNS_MEA_TP_TRIG_PLUS_DIR_AX3
• For machine-related measurement/calibration:
- SD54640 $SNS_MEA_TPW_TRIG_MINUS_DIR_AX1
- SD54641 $SNS_MEA_TPW_TRIG_PLUS_DIR_AX1
- SD54642 $SNS_MEA_TPW_TRIG_MINUS_DIR_AX2
- SD54643 $SNS_MEA_TPW_TRIG_PLUS_DIR_AX2
- SD54644 $SNS_MEA_TPW_TRIG_MINUS_DIR_AX3
- SD54645 $SNS_MEA_TPW_TRIG_PLUS_DIR_AX3
The default setting has data fields for 6 probes.
Calibration, calibration tool
A probe must be calibrated before it can be used. To do this, when using measuring cycles in the
AUTOMATIC mode, before calibration, the approximate values must be entered into the setting
data listed above for the corresponding probe. Only then can the approximate position of the
probe be identified in the measuring cycle.
Calibration involves precisely determining the trigger points (switching points) of the tool
probe, and entering them in the corresponding parameters.
Calibration tool (type 725), milling (type 1xy) or drilling tool (2xy) can be used for calibration.
The precise dimensions of the tool are known.
Measurement version Calibrate probe (CYCLE971) (Page 281) is provided for calibration.
Note
Measuring velocities
The measuring process automatically uses the speed saved in the calibration record during
calibration.
Measuring cycles
30
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.7 Probe, calibration body, calibration tool
Tool parameters
Calibrating tool probes
Tool type ($TC_DP1[ ]):
725, 1xy or 2xy
)
Length 1 - geometry
L1
&DOLEUDWLRQ WRRO
($TC_DP3[ ]):
Radius ($TC_DP6[ ]):
r
U
Length 1 - basic dimension
only if required
($TC_DP21[ ]):
=
<
;
7RRO SUREH
All other tool parameters, such as wear, must be assigned a value of zero.
2.7.3
Measuring workpieces at the turning machines
Workpiece probe
On turning machines, the workpiece probes are treated as tool type 580 with permissible cutting
edge positions (SL) 5 to 8 and must be entered in the tool memory accordingly.
Lengths specified for turning tools always refer to the tool tip, except in the case of workpiece
probes on turning machines where they refer to the probe center.
Probes are classified according to their position:
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
31
Description
2.7 Probe, calibration body, calibration tool
Workpiece probe SL 7
Entry in tool memory
Workpiece probe for a turning machine
Tool type ($TC_DP1[ ]):
580
/
7101)
)
Cutting edge ($TC_DP2[ ]):
7
Length 1 - geometry:
L1
U
Length 2 - geometry:
L2
Radius ($TC_DP6[ ]):
r
;
Length 1 - basic dimension
only if required
($TC_DP21[ ]):
Length 2 - basic dimension
only if required
($TC_DP22[ ]):
=
1)
For turning-milling combination technology (1st technology is turning, 2nd technology is milling) with
the preconditions, setting data SD42940 $SC_TOOL_LENGTH_CONST = 18 (or -18) and setting data
SD42950 $SC_TOOL_LENGTH_TYPE = 2
The wear and other tool parameters must be assigned the value 0.
Workpiece probe SL 8
Entry in tool memory
Workpiece probe for a turning machine
Tool type ($TC_DP1[ ]):
580
)
7101)
Cutting edge ($TC_DP2[ ]):
8
Length 1 - geometry:
L1
Length 2 - geometry:
L2
Radius ($TC_DP6[ ]):
r
Length 1 - basic dimension
only if required
($TC_DP21[ ]):
;
Length 2 - basic dimension
only if required
U
/
($TC_DP22[ ]):
=
1)
For turning-milling combination technology (1st technology is turning, 2nd technology is milling) with
the preconditions, setting data SD42940 $SC_TOOL_LENGTH_CONST = 18 (or -18) and setting data
SD42950 $SC_TOOL_LENGTH_TYPE = 2
The wear and other tool parameters must be assigned the value 0.
Measuring cycles
32
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.7 Probe, calibration body, calibration tool
Workpiece probe SL 5 or SL 6
Entry in tool memory
Workpiece probe for a turning machine
Tool type ($TC_DP1[ ]):
580
6/
6/
7101)
/
/
Cutting edge ($TC_DP2[ ]):
5 or 6
)
Length 1 - geometry:
L1
Length 2 - geometry:
L2
U
Radius ($TC_DP6[ ]):
r
U
Length 1 - basic dimension
only if required
($TC_DP21[ ]):
Length 2 - basic dimension
only if required
;
($TC_DP22[ ]):
)
=
1)
For turning-milling combination technology (1st technology is turning, 2nd technology is milling) with
the preconditions, setting data SD42940 $SC_TOOL_LENGTH_CONST = 18 (or -18) and setting data
SD42950 $SC_TOOL_LENGTH_TYPE = 2
The wear and other tool parameters must be assigned the value 0.
Calibration, gauging block
;
)
;
=
=
:
0
Figure 2-6
Calibrating a workpiece probe, example: Calibrating in the reference groove
A probe must be calibrated before it can be used. During calibration, the trigger points
(switching points), position deviation (skew), and precise ball radius of the workpiece probe are
determined and entered into the corresponding data fields of the general setting data SD54600
$SNS_MEA_WP_BALL_DIAM .
The default setting has data fields for 40 probes.
Calibration of the workpiece probe on turning machines is usually performed with gauging
blocks (reference grooves). The precise dimensions of the reference groove are known and
entered in the associated data fields of the following general setting data:
• SD54615 $SNS_MEA_CAL_EDGE_BASE_AX1
• SD54616 $SNS_MEA_CAL_EDGE_UPPER_AX1
• SD54617 $SNS_MEA_CAL_EDGE_PLUS_DIR_AX1
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
33
Description
2.7 Probe, calibration body, calibration tool
• SD54618 $SNS_MEA_CAL_EDGE_MINUS_DIR_AX1
• SD54619 $SNS_MEA_CAL_EDGE_BASE_AX2
• SD54620 $SNS_MEA_CAL_EDGE_UPPER_AX2
• SD54621 $SNS_MEA_CAL_EDGE_PLUS_DIR_AX2
• SD54622 $SNS_MEA_CAL_EDGE_MINUS_DIR_AX2
The default setting has data fields for three gauging blocks. In the measuring cycle program, the
selection is made using the number of the gauging block (S_CALNUM).
It is also possible to calibrate on a known surface.
Measuring cycle CYCLE973 with various measuring variants is ready for calibration.
See also
Calibrate probe - length (CYCLE973) (Page 86)
Calibrate probe - radius on surface (CYCLE973) (Page 89)
Calibrate probe - calibrate in groove (CYCLE973) (Page 92)
2.7.4
Measuring tools at lathes
Tool probe
;
=
① Measure length 1
② Measure length 2
Figure 2-7
Measuring a turning tool
Measuring cycles
34
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.7 Probe, calibration body, calibration tool
Parameters of the tool probe
Setting data:
• For machine-related measurement/calibration:
- SD54626 $SNS_MEA_TP_TRIG_PLUS_DIR_AX1
- SD54625 $SNS_MEA_TP_TRIG_MINUS_DIR_AX1
- SD54627 $SNS_MEA_TP_TRIG_MINUS_DIR_AX2
- SD54628 $SNS_MEA_TP_TRIG_PLUS_DIR_AX2
• For workpiece-related measurement/calibration:
- SD54641 $SNS_MEA_TPW_TRIG_PLUS_DIR_AX1
- SD54640 $SNS_MEA_TPW_TRIG_MINUS_DIR_AX1
- SD54642 $SNS_MEA_TPW_TRIG_MINUS_DIR_AX2
- SD54643 $SNS_MEA_TPW_TRIG_PLUS_DIR_AX2
The default setting has data fields for 6 probes.
In addition to turning tools, drills and mills can also be measured.
Calibration, gauging block
;
=
① Calibration tool
A probe must be calibrated before it can be used. To do this, when using measuring cycles in the
AUTOMATIC mode, before calibration, the approximate values must be entered into the setting
data listed above for the corresponding probe. Only then can the approximate position of the
probe be identified in the measuring cycle.
Calibration involves precisely determining the trigger points (switching points) of the tool
probe, and entering them in the corresponding parameters.
Calibration tool (type 585 or type 725) or turning tool (type 5xy) can be used for calibration. The
precise dimensions of the tool are known.
Measurement version Calibrate probe (CYCLE982) (Page 254) is provided for calibration.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
35
Description
2.7 Probe, calibration body, calibration tool
For lathes, the calibration tool is treated like a turning tool. Cutting edge positions 1 - 4 can be
used for calibration. The length specifications refer to the ball equator, not to the ball center.
Entry in tool memory
Calibration tool for a tool probe on a lathe
Tool type ($TC_DP1[ ]):
585, 725 or 5xy
/
Cutting edge ($TC_DP2[ ]):
3
)
Length 1 - geometry:
L1
Length 2 - geometry:
L2
U
Radius ($TC_DP6[ ]):
r
Length 1 - basic dimension
only if required
($TC_DP21[ ]):
;
Length 2 - basic dimension
only if required
($TC_DP22[ ]):
=
All other parameters, such as wear, must be assigned a value of zero.
Measuring cycles
36
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.8 Measurement principle
2.8
Measurement principle
1&
0HDVXULQJ F\FOH
'HOHWH
$FWXDO YDOXH
GLVWDQFH
WR JR
$FWXDO YDOXH VHQVLQJ
3UREH VLJQDO
3RVLWLRQ FRQWURO
Triggered by the pulse of the probe, the axis actual position is measured during the axis motion
and stored in the CNC. When the probe signal is detected, the axes are braked in the defined
manner, the distance-to-go of the measuring block is deleted, and changed to the next NC block
within the cycle. The program sequence is continued.
Connecting probes
Two inputs for connecting touch trigger probes are provided on the I/O device interface of the
SINUMERIK control systems.
Machine manufacturer
Please observe the information provided by the machine manufacturer.
Measurement operation sequence using the example set edge (CYCLE978)
Figure 2-8
Measurement operation sequence, example set edge (CYCLE978)
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
37
Description
2.8 Measurement principle
The sequence is described using the measuring variant, set edge (CYCLE978). The sequence is
essentially the same for the other measuring cycles.
The starting position for the measuring procedure is the position DFA in front of the specified
set position (expected contour).
Figure 2-9
Starting position
The starting position is calculated in the cycle based on parameter entries and probe data. The
traversing distance from the pre-position, defined by the user program, to the starting position
of the measuring distance is either traversed with rapid traverse G0 or with positioning speed G1
(depending on the parameter). From the starting position, the measuring velocity is effective,
which is saved in the calibration data.
The switching signal is expected along path 2 · DFA as from the starting position. Otherwise, an
alarm will be triggered or the measurement repeated.
The resulting maximum measuring position is available in the result parameters _OVR[ ] and
_OVI[ ] of the measuring cycle.
At the instant the switching signal is output by the probe, the current actual position is stored
internally "on-the-fly" as the actual value, the measuring axis is stopped and then the "Delete
distance-to-go" function is executed.
The distance-to-go is the path not yet covered in the measuring block. After deletion, the next
block in the cycle can be processed. The measuring axis travels back to the starting position. Any
measurement repetitions selected are restarted from this point.
Measurement path DFA
The length of the measurement path before the stated setpoint is defined by the parameter DFA.
Within the cycle, this distance is traversed again after the set position. This ensures that an actual
position deviating from the setpoint value is measured.
Measuring velocity
As measuring feedrate, all of the measuring cycles use the value saved in the general setting
data SD54611 after the calibration of the workpiece probe. A different measuring feedrate can
be assigned for each calibration field [n].
Measuring cycles
38
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.8 Measurement principle
To calibrate the measuring probe, either the measuring feedrate from the channel-specific
setting data SD55630 $SCS_MEA_FEED_MEASURE is used (default value: 300 mm/min) or the
measuring feedrate can be overridden in the input screen form at the calibration instant. To do
this, bit 4 must be set to 1 in the general setting data SD54760
$SNS_MEA_FUNCTION_MASK_PIECE .
The maximum permissible measuring velocity is derived from:
• The deceleration behavior of the axis.
• The permissible deflection of the probe.
• The signal processing delay.
Deceleration distance, deflection of probe
NOTICE
Safe braking of the measuring axis
Safe deceleration of the measuring axis to standstill within the permissible deflection path of
the probe must always be ensured. Otherwise damage will occur!
A delay t, typical for the control, is taken into account in signal processing for the time between
detection of the switching signal and output of the deceleration command to the measuring axis
(IPO cycle: general machine data MD10050 $MN_SYSCLOCK_CYCLE_TIME and MD10070
$MN_IPO_SYSCLOCK_TIME_RATIO). This gives the braking distance component.
The following error of the measuring axis is reduced. The following error is velocity dependent
and at the same time dependent on the control factor of the measuring axis (servo gain of the
associated machine axis: servo gain factor).
The deceleration rate of the axis must also be taken into account.
Together they produce an axis-specific velocity-dependent deceleration distance.
The Kv factor is the axis MD 32200 $MA_POSCTRL_GAIN.
The maximum axis acceleration / deceleration rate a is saved in axis MD 32300
$MA_MAX_AX_ACCEL . It may have a lesser effect due to other influences.
Always use the lowest values of the axes involved in the measurement.
Measuring accuracy
A delay occurs between detection of the switching signal from the probe and transfer of the
measured value to the control. This is caused by signal transmission from the probe and is
defined by the control hardware. In this time a path is traversed that falsifies the measured value.
This influence can be minimized by reducing the measuring speed.
The rotation when measuring a milling tool on a rotating spindle has an additional influence.
This can be compensated using compensation tables.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
39
Description
2.8 Measurement principle
The measurement accuracy that can be obtained is dependent on the following factors:
• Repeat accuracy of the machine
• Repeat accuracy of the probe
• Resolution of the measuring system
Note
Precise measurement is only possible with a probe calibrated under the measurement
conditions, i.e. working plane, orientation of the spindle in the plane and measuring velocity are
the same for both measurement and calibration. Deviations result in measurement errors. If, in
MD51740 $MNS_MEA_FUNCTION_MASK, bit 6 is set =1, then 100% feed rate override
traversing velocity is used for the measuring blocks (MEAS) in the measuring cycles if the
feedrate override is set > 0.
Calculating the deceleration distance
V >PP@
Y
P PLQ
Y
P PLQ
Y
P PLQ
W >PV@
① Axis standstill
② Standstill
③ Delay signal processing
Figure 2-10
Distance-time diagram at different measuring velocities according to the calculation
example
The deceleration path to be considered is calculated as follows:
Y
VE Y y W
˂V
D
˂V
˂V
sb
Braking distance
in mm
v
Measuring velocity
in m/s
t
Delay signal
in s
a
Deceleration
in m/s2
Measuring cycles
40
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.8 Measurement principle
Δs
Following error
in mm
Δs = v / Kv
v here in m/min
Kv
Servo gain
in (m/min)/mm
Example of calculation:
• v = 6 m/min = 0.1 m/s measuring velocity
• a = 1 m/s2 deceleration
• t = 16 ms signal delay
• Kv = 1 in (m/min)/mm
Intermediate steps:
Δs = v / Kv
= 6[m/min] / 1[(m/min)/mm]
= 6 mm
Following error
Δs2 = v²/2a
= 0,1 [m/s]² / 2 · 1 [m/s²]
= 5 mm
Axis-specific component
Δs1 = v · t
= 0,1 [m/s] · 0,016 [s]
= 1,6 mm
Percentage due to signal
delay
Overall result:
sb = Δs1 + Δs2 + Δs
= 6 mm + 5 mm + 1,6 mm
= 12,6 mm Braking distance
The deflection of the probe = braking distance to zero speed of the axis is 12.6 mm.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
41
Description
2.9 Measuring strategy for measuring workpieces with tool offset
2.9
Measuring strategy for measuring workpieces with tool offset
The actual workpiece dimensions must be measured exactly and compared with the setpoint
values to be able to determine and compensate the actual dimensional deviations on the
workpiece. An offset value can then be ascertained for the tool used for machining.
Function
When taking measurements on the machine, the actual dimensions are derived from the path
measuring systems of the position-controlled feed axes. For each dimensional deviation
determined from the set and actual workpiece dimensions there are many causes which
essentially fall into three categories:
• Dimensional deviations with causes that are n o t subject to a particular trend, e.g.
positioning scatter of the feed axes or differences in measurement between the internal
measurement (probe) and the external measuring device (micrometer, measuring machine,
etc.).
In this case, it is possible to apply empirical values, which are stored in separate memories.
The set/actual difference determined is automatically compensated by the empirical value.
• Dimensional deviations with causes that are subject to a particular trend, e.g. tool wear
or thermal expansion of the leadscrew.
• Accidental dimensional deviations, e.g. due to temperature fluctuations, coolant or
slightly soiled measuring points.
Assuming the ideal case, only those dimensional deviations that are subject to a trend can be
taken into account for compensation value calculation. Since, however, it is hardly ever
known to what extent and in which direction accidental dimensional deviations influence
the measurement result, a strategy (sliding averaging) is needed that derives a
compensation value from the actual/set difference measured.
Mean value calculation
Mean value calculation in conjunction with measurement weighting has proven a suitable
method.
When correcting a tool, it can be selected whether a correction is made based on the actual
measurement, or whether an average value of the measurement differences should be
generated over several measurements which is then used to make the correction.
The formula of the mean value generation chosen is:
Mv
-
D
Mv
=Mv
-
old
i
new
old
k
Mvnew
Mean value new = amount of compensation
Mvold
Mean value prior to last measurement
k
Weighting factor for mean value calculation
Di
Actual/set difference measured (minus any empirical value)
The mean value calculation takes account of the trend of the dimensional deviations of a
machining series. The weighting factor k from which the mean value is derived is selectable.
Measuring cycles
42
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.9 Measuring strategy for measuring workpieces with tool offset
A new measurement result affected by accidental dimensional deviations only influences the
new tool offset to some extent, depending on the weighting factor.
Computational characteristic of the mean value with different weightings k
0HDQ YDOXH
/RZHU OLPLW
:RUN RIIVHW
ZRUN RIIVHW
6B7=/
N
N
N
&DOFXODWHG
PHDQ
YDOXHV
N
6HWSRLQW
0
1
2
3
4
5
6
L
1XPEHU RI DYHUDJLQJV QXPEHU
RI ZRUNSLHFHV
Figure 2-11
Mean value generation with influence of weighting k
• The greater the value of k, the slower the formula will respond when major deviations occur
in computation or counter compensation. At the same time, however, accidental scatter will
be reduced as k increases.
• The lower the value of k, the faster the formula will react when major deviations occur in
computation or counter compensation. However, the effect of accidental variations will be
that much greater.
• The mean value Mv is calculated starting at 0 over the number of workpieces i, until the
calculated mean value exceeds the work offset range (S_TZL). From this limit on, the
calculated mean value is applied as an offset.
• Once the mean value has been used for the offset, it is deleted from the memory. The next
measurement then starts again with Mvold = 0.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
43
Description
2.9 Measuring strategy for measuring workpieces with tool offset
Table 2-1
Example of mean value calculation and offset
Lower limit = 40 µm
Characteristic of the mean value for two different weighting factors
(S_TZL = 0.04)
i
Di
Mv
Mv
k = 3
k = 2
[µm]
[µm]
[µm]
1st
30
10
15
0HDQ YDOXH
0
HDQ
YDOXHV
! 6B7=/ H[HFXWHG DV
meas-
FRUUH
FWLRQ
urement
:RUN RIIVHW
2nd
50
23.3
32.5
6B7=/
meas-
urement
3rd
60
35.5
46.2 ③
meas-
urement
4th
20
30.3
10
meas-
urement
0
1
2
3
4
5
6
7
8
9
10
L
5th
40
32.6
25
1XPEHU RI DYHUDJLQJV
N
meas-
N
QXPEHU RI ZRUNSLHFHV
urement
6th
50
38.4
37.5
meas-
urement
7th
50
42.3 ①
43.75 ④
meas-
urement
8th
30
10
15
meas-
urement
9th
70
30
42.5 ⑤
meas-
urement
10th
70
43.3 ②
35
meas-
urement
For the measurements with marked fields, tool offset is performed with the mean value
(calculated mean value >S_TZL):
• If k = 3 in the 7th and 10th measurements (① and ②),
• if k = 2 in the 3rd, 7th and 9th measurements (③, ④ and ⑤).
Measuring cycles
44
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.10 Parameters for checking the measurement result and offset
2.10
Parameters for checking the measurement result and offset
For constant deviations not subject to a trend, the dimensional deviation measured can be
compensated by an empirical value in certain measuring variants.
For other compensations resulting from dimensional deviations, symmetrical tolerance bands
are assigned to the set dimension which result in different responses.
Empirical value / mean value EVN (S_EVNUM)
The empirical values are used to suppress dimensional deviations that are not subject to a
trend.
Note
If empirical values are not to be applied, then S_EVNUM = 0 must be set.
The empirical values themselves are saved in channel-specific SD55623
$SCS_MEA_EMPIRIC_VALUE .
EVN specifies the number of the empirical value memory. The actual/set difference determined
by the measuring cycle is corrected by this value before any further correction measures are
taken.
This is the case:
• For workpiece measurement with automatic tool offset.
• For single-point measurement with automatic work offset.
• For tool measurement.
The mean value only refers to the workpiece measurement with automatic tool offset.
For an automatic tool offset, the mean value is generated from the measured difference of the
previous and the actual measurement. This functionality has special significance within a
machining series with measurements performed at the same measuring location.
The function does not have to be activated.
The mean values are stored in the channel-specific SD55625 $SCS_MEA_AVERAGE_VALUE . The
number of the mean value memory is transferred in the measuring cycle using variable
S_EVNUM.
Safe area TSA (S_TSA)
The safe area is effective for almost all measuring variants and does not affect the offset value;
it is used for diagnostics.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
45
Description
2.10 Parameters for checking the measurement result and offset
If this limit is reached then the following can be assumed:
• A probe defect, or
• An incorrect setpoint position, or
• An illegal deviation from the setpoint position.
Note
AUTOMATIC mode
AUTOMATIC operation is interrupted and the program cannot continue. An alarm text
appears to warn the user.
Dimensional difference check DIF (S_TDIF)
DIF is active only for workpiece measurement with automatic tool offset and for tool
measurement.
This limit has no effect on generation of the compensation value either. When it is reached, the
tool is probably worn and needs to be replaced.
Note
An alarm text is displayed to warn the operator and the program can be continued by means of
an NC start.
This tolerance limit is generally used by the PLC for tool management purposes (twin tools, wear
monitoring).
Tolerance of workpiece: Lower limit TLL (S_TLL), upper limit TUL (S_TUL)
When measuring workpieces, both parameters are only effective regarding tool offsets.
If, for tolerance parameters TLL, TUL, asymmetrical values are selected, then in the cycles,
setpoint ∅S is adapted so that it lies at the center of a new internally generated symmetrical
tolerance bandwidth. These modified values are saved to the following result parameters:
• _OVR[0] - setpoint
• _OVR[8] - upper tolerance limit
• _OVR[12] - lower tolerance limit
Parameters entered by the user TLL,TUL, ∅S remain unchanged.
Example: TUL= 0.0, TLL= -0.004, ∅S= 10
The following is obtained in the result: _OVR[8] = 0.002, _OVR[12] = -0.002, _OVR[0] = 9.998
If, mean value generation is used for the tool offset, and the measurement difference lies in the
range between "2/3 tolerance of the workpiece" (S_TMV) and the "dimensional difference
monitoring" (S_TDIF), then 100 % of the measurement difference is incorporated as tool offset
Measuring cycles
46
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.10 Parameters for checking the measurement result and offset
and the previous mean value is deleted. This enables a fast response to major dimensional
deviations.
Note
If the measurement difference exceeds one of the tolerance limits of the workpiece, then this is
displayed depending on the tolerance position "oversize" or "undersize". In CYCLE995, TUL
stands for the upper tolerance limit of the angular deviation.
2/3 tolerance of workpiece TMV (S_TMV)
TMV is active only for workpiece measurement with automatic tool offset.
Within the range of "Lower limit" and "2/3 workpiece tolerance" the mean value is calculated
according to the formula described in Section "Measuring strategy".
Note
Mvnew is compared with the work offset range:
• If Mvnew is greater than this range, compensation is corrected by Mvnew and the associated
mean value memory is cleared.
• If Mvnew is less than this range, no compensation is carried out. This prevents excessively
abrupt compensations.
Weighting factor for mean value generation FW (S_K)
FW is active only for workpiece measurement with automatic tool offset. The weighting factor
can be used to give a different weighting for each measurement.
A new measurement result thus has only a limited effect on the new tool offset as a function of
FW.
Work offset range TZL (S_TZL)
TZL active for
• Workpiece measurement with automatic tool offset
• Tool measurement and calibration for milling tools and workpiece probes.
This tolerance range corresponds to the amount of maximum accidental dimensional
deviations. It has to be determined for each machine.
No tool compensation is made within these limits.
In workpiece measurement with automatic tool offset, however, the mean value of this
measuring point is updated and re-stored with the measured actual/set difference, possibly
compensated by an empirical value.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
47
Description
2.10 Parameters for checking the measurement result and offset
The tolerance bands (range of permissible dimensional tolerance) and the responses derived
from them are as follows:
• For workpiece measurement with automatic tool offset
$ODUP %H\RQG VDIH DUHD
76$
6DIH DUHD
$ODUP 3HUPLVVLEOH GLPHQVLRQDO GLIIHUHQFH
H[FHHGHG
7',)
'LPHQVLRQDO GLIIHUHQFH FKHFN
&RUUHFWLRQ RI WKH FXUUHQW GHYLDWLRQ
$ODUP $OORZDQFH XQGHUVL]H
7// 78/
:RUNSLHFH WROHUDQFH
&RUUHFWLRQ RI WKH FXUUHQW GHYLDWLRQ
709
ZRUNSLHFH WROHUDQFH
$YHUDJLQJ ( 91 ): DQG FRUUHFWLRQ E\
PHDQ YDOXH
7=/
:RUN RIIVHW ORZHU OLPLW
$YHUDJLQJ LV EHLQJ VDYHG
6HWSRLQW
Note
In measuring cycles, the workpiece setpoint dimension is placed in the middle of the permitted
± tolerance limit for reasons associated with symmetry.
• For tool measurement
$ODUP %H\RQG VDIH DUHD
76$
6DIH DUHD
$ODUP 3HUPLVVLEOH GLPHQVLRQDO GLIIHUHQFH
H[FHHGHG
7',)
'LPHQVLRQDO GLIIHUHQFH FKHFN
7RRO PHPRU\ EHLQJ FRUUHFWHG
7=/
:RUN RIIVHW ORZHU OLPLW
7RRO PHPRU\ XQFKDQJHG
6HWSRLQW
Measuring cycles
48
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.10 Parameters for checking the measurement result and offset
• For workpiece measurement with WO correction
$ODUP %H\RQG VDIH DUHD
76$
6DIH DUHD
&RUUHFWLRQ RI WKH :2 PHPRU\
6HWSRLQW
• For workpiece probe calibration
$ODUP %H\RQG VDIH DUHD
76$
6DIH DUHD
:RUNSLHFH SUREH GDWD EHLQJ FRUUHFWHG
:RUN RIIVHW ORZHU OLPLW
7=/
:RUNSLHFH SUREH GDWD XQFKDQJHG
6HWSRLQW
• For tool probe calibration
$ODUP %H\RQG VDIH DUHD
76$
6DIH DUHD
:RUNSLHFH SUREH GDWD EHLQJ FRUUHFWHG
7=/
:RUN RIIVHW ORZHU OLPLW
:RUNSLHFH SUREH GDWD XQFKDQJHG
6HWSRLQW
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
49
Description
2.11 Effect of empirical value, mean value, and tolerance parameters
2.11
Effect of empirical value, mean value, and tolerance parameters
The following flowchart shows the effect of empirical value, mean value, and tolerance
parameters on workpiece measurement with automatic tool offset.
Measuring cycles
50
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.11 Effect of empirical value, mean value, and tolerance parameters
0HDVXULQJ F\FOH
0HDVXULQJ
&DOFXODWH DFWXDO VHW GLIIHUHQFH
'LIIHUHQFH PLQXV
HPSLULFDO YDOXH
'LIIHUHQFH
1R
<HV
VDIH DUHD 6B76$
'LIIHUHQFH !
1R
GLPHQVLRQDO GLIIHUHQFH
FKHFN B7',)
'LIIHUHQFH !
1R
7RO RI WKH ZRUNSLHFH
<HV
6B78/ 6B
7//
'LVSOD\
'LVSOD\
'LVSOD\
$OORZDQFH RU XQGHUVL]H
3HUPLVVLEOH GLPHQVLR
%H\RQG VDIH DUHD
QDO GLIIHUHQFH H[FHHGHG
,QWHUQDO
1R
SDUDPHWHU FXUUHQWO\
DOZD\V
'LIIHUHQFH !
'LIIHUHQFH !
<HV
<HV
RI ZRUNSLHFH WROHUDQFH
RI ZRUNSLHFH WROHUDQFH
6B709
6B709
1R
1R
&DOFXODWH FRUUHFWLRQ YDOXH
&DOFXODWH PHDQ YDOXH
WDNLQJ WKH ZHLJKWLQJ IDFWRU
FRUUHFWLRQ WDNLQJ WKH ZHLJKWLQJ
6B. LQWR DFFRXQW
IDFWRU 6B. LQWR DFFRXQW
&RUUHFWLRQ YDOXH
0HDQ FRUUHFWLRQ
1R
1R
! /RZHU OLPLW
YDOXH ! /RZHU OLPLW
6B7=/
6B7=/
<HV
<HV
&RUUHFWLRQ E\ FRUUHFWLRQ
&RUUHFWLRQ E\
6DYH PHDQ
&RUUHFWLRQ E\ PHDQ
&RUUHFWLRQ E\
<HV
YDOXH GLPLQLVKHG
GLIIHUHQFH
FRUUHFWLRQ YDOXH
FRUUHFWLRQ YDOXH
GLIIHUHQFH
5HSHDW
FRUUHFWLRQ
FRUUHFWLRQ
GLPLQLVKHG FRUUHFWLRQ
FRUUHFWLRQ
PHDVXUHPHQW
'HOHWH PHDQ
'HOHWH PHDQ
'HOHWH PHDQ
'HOHWH PHDQ
YDOXH FRUUHFWLRQ
YDOXH FRUUHFWLRQ
YDOXH FRUUHFWLRQ
YDOXH FRUUHFWLRQ
+DV WKH VDIH DUHD
EHHQ H[FHHGHG"
6B76$
<HV
([LW SURJUDP RQO\ ZLWK
(QG
5(6(7
①
SD54740 $SNS_MEA_FUNCTION_MASK, bit 0
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
51
Description
2.12 Tool offset strategy
2.12
Tool offset strategy
2.12.1
Correction strategy for tool offsets when measuring tools regarding tool
groups (replacement tools)
For tool offset after measuring the workpiece, the measuring cycles always check the following
status of the tool:
• "Tool active" and
• "Tool has been in use"
Only tools with this status will be corrected, assuming that they are not locked.
Individual behavior of the measuring cycles
State
Correction behavior
Precisely one tool of a tool group has the status
This tool is corrected. If the tool has the "locked" status, cycle
alarm 61404 "Tool correction not executed" is output.
• "Tool active" and
• "Tool has been in use"
No tool was found associated with the tool name.
A correction is not made, instead cycle alarm 61343 "Tool does
not exist" is output.
No tool with the status mentioned above was found in the tool
The tool is not corrected, but instead, cycle alarm 61404 "Tool
group.
correction not executed" is output.
Several tools with the status mentioned above were found in
A correction is not made, instead cycle alarm 61344 "Several
the tool group.
tools are active" is output.
Measuring cycles
52
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.13 Measuring cycle utility programs
2.13
Measuring cycle utility programs
2.13.1
CYCLE116: Calculation of center point and radius of a circle
Function
This cycle calculates from three or four points positioned on one plane the circle they inscribe
with center point and radius.
To allow this cycle to be used as universally as possible, its data is transferred via a parameter list.
An array of REAL variables of length 13 must be transferred as the parameter.
=
3
3
5
03
3
3
;
Figure 2-12
Calculation of circle data from 4 points
Programming
CYCLE116 (_CAL[ ], _MODE)
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
53
Description
2.13 Measuring cycle utility programs
Transfer parameters
• Input data
Parameter
Data type
Meaning
_CAL [0]
REAL
Number of points for calculation (3 or 4)
_CAL [1]
REAL
1st axis of the plane of the first point
_CAL [2]
REAL
2nd axis of the plane of the first point
_CAL [3]
REAL
1st axis of the plane of the second point
_CAL [4]
REAL
2nd axis of the plane of the second point
_CAL [5]
REAL
1st axis of the plane of the third point
_CAL [6]
REAL
2nd axis of the plane of the third point
_CAL [7]
REAL
1st axis of the plane of the fourth point
_CAL [8]
REAL
2nd axis of the plane of the fourth point
• Output data
Parameter
Data type
Meaning
_CAL [9]
REAL
1st axis of the plane of the circle center point
_CAL [10]
REAL
2nd axis of the plane of the circle center point
_CAL [11]
REAL
Circle radius
_CAL [12]
REAL
Status for the calculation
0 = Calculation in progress
1 = Error occurred
_MODE
INTEGER
Error number (61316 or 61317 possible)
Note
This cycle is called as a subroutine by, for example, measuring cycle CYCLE979.
Example
%_N_Circle_MPF
DEF INT _MODE
DEF REAL _CAL[13]= (3,0,10,-10,0,0,-10,0,0,0,0,0,0)
;3 points specified
P1: 0.10
P2: -10.0
P3: 0,-10
Measuring cycles
54
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.13 Measuring cycle utility programs
CYCLE116(_CAL, _MODE)
;Result:
_CAL[9]=0
_CAL[10]=0
_CAL[11]=10
_CAL[12]=0
_ALM=0
M0
STOPRE
M30
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
55
Description
2.13 Measuring cycle utility programs
2.13.2
CYCLE119: Arithmetic cycle for determining position in space
Function
This help cycle calculates, from three spatial setpoint positions (reference triangle), three spatial
actual positions as well as the positional and angular deviation to the active frame. The offset is
applied in the direction of the selected frame.
=
3 ಿ
3 ಿ
3 ಿ
:ಿ
3
3
3
:
;
0
3 ಿ
<
3
3 ಿ
3 ಿ
3
3
:ಿ
:
;
0
① Actual position
② Workpiece
3 connected points P1 to P3 (triangle) are spatially offset and rotated: P1', P2', P3'
Cycle119 is separately called from measuring cycle CYCLE997 as subprogram or from a user
program.
To universally use this cycle, its data are transferred via a parameter interface.
Programming
CYCLE119 (_SETPOINT, _MEASPOINT, _ALARM, _RES, _REFRAME,_COR,
_RESLIM)
Measuring cycles
56
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.13 Measuring cycle utility programs
Parameters
Input data
Data type
Meaning
_SETPOINT[3,
REAL
Field for 3 setpoint positions in the order 1st, 2nd, 3rd. geometry axes (X, Y, Z).
3]
These points are the reference triangle.
_MEASPOINT[3
REAL
Field for 3 measured positions in the order 1st, 2nd, 3rd. geometry axes (X, Y, Z). This is
,3]
really the spatial position of the defined triangle.
_COR
INTEGER
Compensation
Values:
0: No compensation
1 ... 99: WO compensation in G54...G57, G505..G599
1000: WO compensation in last active channel basic frame according to MD
28081
1011 to 1026: WO compensation in channel basic frame
2000: WO compensation in system frame for scratching and setting actual
value ($P_SETFR).
9999: WO compensation in active frame, settable frame G54 to G57,
G505...G599 and/or with G500 in last active basic frame according to
$P_CHBFRMASK
_RESLIM
REAL
Limit value for distortion (only relevant, if _COR >0). If _RES is below this value, then WO
is compensated, otherwise an alarm is output.
The results of the calculation are stored in these transfer parameters.
Output data
Data type
Meaning
_ALARM
INTEGER
Cycle alarm number for feedback signal.
(for cycle call, transfer value must be = 0.)
_RES
REAL
Calculation result
Val-
< 0: No frame was able to be calculated. Alarm (_ALARM > 0) is returned
ues:
>=0: The calculation was successful. The size of the value a measure of the distortion
of the triangle, for example, due to measurement inaccuracies. It is the sum of the
deviations of the individual points in mm.
_REFRAME
FRAME
Result frame, difference to the active frame. If this result frame is linked with the active frame,
the measured triangle position is given the desired setpoint position (workpiece coordinates).
Note
For correction
The frame to be corrected must not include any mirroring or scale factors. If there is no channel
basic frame for G500, then a cyclic alarm (_ALARM>0) is output.
If cycle 119 is called by cycle 997, then the corrected frame is automatically activated.
If cycle 119 is separately called in a user program, the new data of the frame are activated
outside the cycle when the G command of the associated adjustable frame (G500, G54 up to ...)
is reprogrammed.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
57
Description
2.13 Measuring cycle utility programs
2.13.3
CUST_MEACYC: User program before/after measurements are performed
Function
The CUST_MEACYC cycle is called in every measuring cycle before and after the measurement.
It can be used by users to program sequences necessary before starting a measurement (e.g. to
activate the probe).
In the as-delivered state, this cycle contains a CASE statement that executes a jump to a label
with subsequent M17 (end of subprogram) for each measuring cycle.
Example
_M977:
;before workpiece probe with CYCLE977 (measure hole/shaft/groove/spigot)
GOTOF _AM_WP_MES
;
;
_AM_WP_M ;before workpiece general
ES:
;
;
M17
;end of cycle
From the jump labels, actions can be programmed, which should be executed at each CYCLE977
call (label _M977) or for general workpiece measurements (label _AM_WP_MES).
Further information
Further information can be found in the Commissioning Manual SINUMERIK 840D sl Basic
Software and Operating Software.
Measuring cycles
58
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.14 Miscellaneous functions
2.14
Miscellaneous functions
2.14.1
Measuring cycle support in the program editor
The program editor offers extended measuring cycle support for inserting measuring cycle calls
into the program.
Function
This measuring cycle support provides the following functionality:
• Measuring cycle selection via softkeys
• Input screens for parameter assignment with help displays
• Recompilable program code is generated from the individual screen forms.
2.14.2
Measuring result screens
Function
Measurement result displays can be shown automatically during a measuring cycle. The
measuring result display can be turned on/off and configured in the program using cycle
CYCLE150, which also controls the logging function. The decimal places of the measurement
results in the measuring result image depend on the respective display accuracies set in the
control system.
Note
CYCLE150 must be programmed before the first relevant measuring cycle call. For compatibility
reasons, the previous option of controlling the measuring result display using the setting data
SD55613 $SCS_MEA_RESULT_DISPLAY has been retained.
Measuring result screens
Procedure
The part program or ShopMill program to be processed has been created and is opened in the
editor.
1. Press the "Meas. workpiece" or "Meas. tool" softkey.
2. Press the "Meas. result" softkey. The "Measurement result"
input window opens.
3. Make the required selection in the toggle fields.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
59
Description
2.14 Miscellaneous functions
The display mode can be selected as follows in the screen for the measurement result display
"on":
-
"automatically 8 s" ...
The measurement result screen remains for a fixed time of 8 s
-
"NC Start" ...
With the measurement result screen, the cycle is stopped using
M0, the measuring cycle is continued with NC Start and the
measurement result screen deselected.
-
"for alarm" ...
The measuring results screen is only displayed for cycle alarms
61303, 61304, 61305 and 61306.
These selection options correspond to the options that were previously available via the
SD55613 $SCS_MEA_RESULT_DISPLAY .
Measuring result display and logging function can be separately activated and deactivated. An
additional CYCLE150 call should be programmed.
At the end of the program (channel RESET), the function is deactivated automatically, explicit
programming is not required.
Note
For compatibility reasons, the previous option of controlling the measuring result display using
the setting data SD55613 $SCS_MEA_RESULT_DISPLAY has been retained.
The measuring cycles can display different measuring result screens depending on the
measuring variant:
• Calibrating tool probes
• Tool measurement
• Calibrating workpiece probes
• Workpiece measurement
Content of measuring result screens
The measuring results screens contain the following data:
Calibrating tool probes
• Measuring cycle, measuring variant and channel number
• Trigger values of axis directions and differences
• Probe number
• Safe area
Tool measurement
• Measuring cycle and measuring variant
• Actual values and differences for tool offsets
• Safe area and permissible dimensional difference
• T name, D number
Measuring cycles
60
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.14 Miscellaneous functions
Calibrating workpiece probes
• Measuring cycle and measuring variant
• Trigger values of axis directions and differences
• Position deviation (probe skew) when calibrating in the plane
• Probe number
• Safe area
Workpiece measurement
• Measuring cycle and measuring variant
• Setpoints, actual values and their differences
• Tolerance upper and lower limits (for tool offset)
• Offset value
• Probe number
• Safe area and permissible dimensional difference
• T name, D number and DL number or WO memory number for automatic offset
Example of measurement result display
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
61
Description
2.14 Miscellaneous functions
Program control for displaying and shutting down the measuring result displays
Using the program control MRD "Display measurement result", programmed measuring result
display calls can be simply activated or deactivated. To do this, the program does not have to be
changed!
The program control MRD acts on all measuring result display calls, irrespective of whether these
are implemented using CYCLE150 calls or by programming the setting data SD55613
$SCS_MEA_RESULT_DISPLAY in the program.
2.14.3
Logging
2.14.3.1
General
Function
• Standard log
Output of the measurement results from the automatic measuring cycles in a log file.
Each measuring method of the standard measuring cycles is assigned a fixed standard log
with regard to the contents. The contents correspond to the measurement result display on
the screen. User entries for the log contents are not required.
• User log
Output of user-relevant data as a separate log or supplement to the measurement log.
The contents and format are the sole responsibility of the user. A predefined variable field is
available which can take the contents of the log.
It is possible to log to external media, if they are available, on local drives, USB or in the part
program memory. The log output can be in text format or in tabular format (column separator
";") for further processing in spreadsheet programs.
The decimal places of the measurement results in the protocol depend on the respective display
accuracies set in the control system.
Requirements
If the data is to be saved to external media, such as USB or network drives, then the "EES" option
is required (see "Commissioning Manual Sinumerik Operate (IM9)").
Contents of a standard log
• Date/time (when the log was written), log name with path
• Measuring method
• The most important input values (that were entered in the screen form before measuring)
• Correction target
• Setpoints, measured values and differences
Measuring cycles
62
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.14 Miscellaneous functions
As many decimal places are logged as displayed on the screen. The terms and axis identifiers also
correspond to those displayed on the screen - but are written out (without abbreviations). The
measurement unit mm/inch depends on the system of units active during the measurement.
2.14.3.2
Control cycle CYCLE150
Function
The activation of the logging function is performed by simply programming the CYCLE150 call.
The result display and logging can be selected separately and can be controlled independently.
Parameters in CYCLE150 have a modal effect until the end of the program or reset, or until the
cycle is called again.
Procedure
The logging is activated and deactivated via the program through the appropriate
parameterization of CYCLE150. This must be programmed once at the start of the measuring
program. Only when the input parameters are changed must the programming be performed
again before the respective measuring cycle call. At the end of the program (channel RESET), the
functions are deactivated automatically, explicit programming is not required.
The part program or ShopMill program to be processed has been created and you are in the
editor.
1. Press the "Meas. workpiece" or "Meas. tool" softkey.
2. Press the "Meas. result" softkey. The "Measurement Result"
input window opens
3. Make the required selection in the toggle fields (see follow-
ing table)
The screen form contains a selection field for activating and deactivating the measurement
result display with the toggle states "Off"/"On". It also contains a selection field for activating and
deactivating the logging with the toggle states "Off"/"On"/"Last measurement".
If both selections fields have the toggle state "Off", all the following input fields for the respective
function are hidden.
Parameter
Parameter
Description
Measurement result dis-
Off/On
play
Display mode
autom. 8 s / NC start / for alarm
Log
Log type
Standard log / User log
Log format
Text format / Tabular format
(for standard)
(file extension TXT/CSV)
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
63
Description
2.14 Miscellaneous functions
Parameter
Description
Log data
New/Append
Log storage
Directory / As part program / Variable
Name of log file
File type set according to selection of log format
Log type
The existing infrastructure for the logging of the measurement results should also be made
accessible to users for their own purposes - output of user logs. A distinction is therefore made
between the standard log and the user log.
Log format
Standard logs can be output in two log formats, in text format and in tabular format. The text
format is based on the display of the measurement results on the screen. The tabular format is
a format that can be imported by Excel (or other spreadsheet programs). This allows the
measurement result logs to be statistically processed.
The Text format / Tabular format selection is only available for standard logs. With user logs, the
user is responsible for the formatting, i.e. the selection field is hidden for the user log.
Log data
A new log file can be created or an existing file appended. This is selected via Log data "New" or
"Append". With "New", the existing file with the same name is deleted and a new file created
during logging.
Log storage
The path can be specified explicitly or implicitly for the log storage, i.e. "Directory", "As part
program" or "Variable" can be selected.
With "As part program", the path of the higher-level NC program is automatically determined by
the logging cycles and the log file is stored there. The following input field for the path is hidden.
With "Directory", there is an additional input field in which the path is entered. The path does not
have to be entered, it can be selected via a dialog which is opened via the additional VSK1 "Select
directory".
The name of the variable is entered for "Variable" in the following field. The name of the log file
is then programmed via this variable. It is possible, but not necessary, to specify a path. The log
file is then located in the same path as the higher-level NC program.
This softkey "Select directory" only appears when "Directory" is set in the Log storage selection
field.
Measuring cycles
64
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.14 Miscellaneous functions
Figure 2-13
Entry in the selection dialog for log storage
Figure 2-14
Selection dialog for log storage
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
65
Description
2.14 Miscellaneous functions
All drives and paths available in the program manager can be selected.
• Local drive
• NC data (part program memory)
• Network drive(s), if connected
• USB (if available)
Only a path or an available file can be selected in the dialog.
If only a path is selected, the selection with the complete path is transferred to the screen form
with the Accept softkey, but can be changed. The name of the log file is entered. If a file is
selected, the full path and file name are transferred to the screen form, but can be changed.
Alternatively, the storage location can be entered.
Examples of the selected storage location:
1. NC data -> Workpiece -> Workpiece "Logs"
//NC:/WKS.DIR/PROTOKOLLE.WPD
2. Network drive logs
//d:/Logs
3. USB -> measuring_cycle_logs
//USB:/01/measuring_cycle_logs
Name of log file
The log file name can be freely selected. It must comply with the rules for program names in the
NC, or for program names when writing to external drives.
File type
The following file types are supported:
• Text file - type TXT
• Tabular format - type CSV
These file types depend on the selected log format.
The file type cannot be changed, it is only displayed.
2.14.3.3
Log "Last measurement"
Function
The "Log last measurement" function is programmed by calling the logging CYCLE150 once.
Measuring is not performed, instead the values of the last measurement which are still available
in the result parameters of the measuring cycles (GUD variables) are used, and only a subcycle
is called for the logging. This function only makes sense when log "Off" was selected during the
measurement.
Measuring cycles
66
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.14 Miscellaneous functions
Requirement
A standard log can only be output when a measuring cycle was previously active in automatic
mode.
Procedure
A part program for logging "Last measurement" is created and is in the editor.
1. Select Log "Last measurement" in the input field.
2. Supply additional parameters as described above.
3. Press the "Accept" softkey. The generated cycle call appears
in the editor.
Programming example:
CYCLE150(30,11012,"//NC/MPF.DIR/LAST_MEASURE.TXT")
M30
2.14.3.4
Standard log
Function
Standard logs display the results from measuring cycles in a clear log structure. The output is
possible in text or tabular format. Contents and structure are predefined.
Requirement
Standard logs are only possible in conjunction with measuring cycle calls.
Log contents
The logs are generally created with fixed English texts. (The measurement result displays appear
in the language that has been set for Operate.)
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
67
Description
2.14 Miscellaneous functions
Logs of the measuring cycles have the following structures and contents:
• Header block - log header
- Date/time (when the log was created)
- Name and path of the log file
- Name of the part program from which the measuring function was called
- Workpiece number
• Value block - results per measuring point
- Number of the measuring point, measuring variant as programmed, time of the
measurement
Measuring variant as text (e.g. "1 hole")
- Specification of the correction target, either
measure only - no correction - or
for measuring variants with WO correction: Specification of the corrected WO, correction
target (WO / fine offset) - or
for measuring variants with tool offset: Tool name, D number, tool type, correction target
(length/radius, geometry/wear)
- Setpoints, measured values, differences with specification of the respective axis name or
measurement objects (e.g. "Diameter") and the measurement unit
Procedure
The call of the control CYCLE150 is always at the start of the program. The respective measuring
cycle calls are then programmed. If a different parameterization of CYCLE150 is required, it must
be called again at the appropriate program position.
Programming example
N10 G54
N20 T710 D1 M6
; Probe call
; Positioning, etc.
N50 CYCLE150(10,1001,"MESSPROT.TXT")
; Activate logging
N60
; 1st measurement
CYCLE997(109,1,1,10,1,5,0,45,0,0,0,5,5,5,10,10,10
,0,1,,0,)
; Positioning, etc.
N90
; 2nd measurement
CYCLE978(200,,4000001,1,77,2,8,1,1,1,"END_MILL_D8
",,0,1.01,0.1,0.1,0.34,1,10001,,1,0)
; Positioning, etc.
N120
; 3. measurement
CYCLE998(100105,10004,0,1,1,1,,1,5,201,1,10,,,,,1
,,1,)
N140 M30
Measuring cycles
68
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.14 Miscellaneous functions
Log in tabular format
"Tabular format" must be selected at "Log format" in the CYCLE150 screen form. This format can
be imported into spreadsheet programs and processed further.
The "Tabular format" is defined by the following default settings:
Separation of the data fields:
Semicolon
Decimal character:
Point
Date format:
yyyy-MM-dd
Number of decimal places:
As on the screen
Time format:
hh:mm:ss
A log in tabular format contains the same information as in text format. For the statistical
evaluation of measurement series, these logs require post processing in the respective
spreadsheet programs.
2.14.3.5
User log
Function
With this function, the user freely defines the contents of the log lines and stores them in an array
of string variables (string length 200).
The contents of the string array are logged when a new CYCLE160 is called. The logging always
begins with array index 0 and continues until an empty string (i.e. string length 0) is found.
For simple applications, an NCK-global array of string variables is predefined in the PGUD block:
DEF NCK STRING[200] S_LOGTXT[10]
This means that 10 lines can be immediately logged.
If this is not sufficient, the user can alternatively create a second string array of any length with
the predefined name S_USERTXT[n] in a separate GUD block (e.g. MGUD or UGUD):
DEF NCK STRING[200] S_USERTXT[n]
The logging function checks whether the S_USERTXT array is available. If it is available, the
contents of this array are logged, if not, the contents of S_LOGTXT.
At the program position where CYCLE160 is called, the logging is performed according to the
logging destination set by the CYCLE150 call - exactly the same as the logging of measurement
results.
This function can be used to output a complete user-specific log (without any reference to the
measuring) or to insert additional lines in standard logs.
If additional lines are to be written in standard logs in tabular format, the user must ensure the
column formatting in these strings (insert separators ";").
Procedure
"User log" is selected in the CYCLE150 screen form for the log control.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
69
Description
2.14 Miscellaneous functions
There is no difference between text format and tabular format - the user determines the
contents. The corresponding selection field is hidden for the user log.
If the path is entered, it is performed with the same dialog as for the standard log.
Figure 2-15
User log screen form
The following must be written in the part program:
• CYCLE150 call to activate the user log
• Assignment of the log contents to the predefined string variables
• CYCLE160 for the output of the log contents
CYCLE160 has no transfer parameters. The user must program it without a screen form.
Freely-definable user log
Programming example:
N50 CYCLE150(10,1111,
; Logging ON
“MY_PROT.TXT“)
N51 S_USERTXT[0]=REP("")
; Delete old data array
N52 S_USERTXT[0]="MACHINE:
; Compile log contents
ABC_12345"
N53 S_USERTXT[1]="LOGFILE COMPENSATION DATA"
N54 S_USERTXT[2]=" "
; Programming of empty line: 1 x blank
N55 S_USERTXT[3]="VALUE1 = "<<R101
Measuring cycles
70
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.14 Miscellaneous functions
N56 S_USERTXT[4]="VALUE2 = "<<R102
N60 CYCLE160
; Write user log
M30
Log extract:
MACHINE: ABC_12345
LOGFILE COMPENSATION DATA
VALUE1 = 123.456
VALUE2 = 789.333
Explanations:
• N50 … Logging is switched on
- Destination: In the same path as the calling program
- The log is appended
- Log type: User log
- Logging "on"
• N52 - N56 log content
• N60 … CYCLE160 call: Data is now written
• Value 1 and value 2 mirror the contents of the R-parameters R101 and R102 at the time of the
log output.
Standard log with additional user data
Programming example:
---
N50 CYCLE150(10,1001,…)
; Logging ON, write header
N51 S_LOGTXT[0]=REP("")
; Delete old data array
N52 S_LOGTXT[0]="HOLE DM 20H7"
; Write user data
N53
S_LOGTXT[1]="LARGESTDIMENSION:20.
021"
N54
S_LOGTXT[2]="SMALLESTDIMENSION:20
.000"
N55 S_LOGTXT[3]="SPINDLETEMPERATURE:"<<R99<<" DEG"
N60 CYCLE160
; Write user data to log
T="3D_PROBE_FR" D1 M6
G0 X0 Y0 Z5
N70 CYCLE977(201,,4000001,1,24,,,2,8,0,1,1,,,1,"
",,0,1.01,1.01,-1.01,0.34,1,0,,1,1)
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
71
Description
2.14 Miscellaneous functions
M30
Log extract:
**********************************************************************
****************************
Date
:
2013-08-05
Time:
11:59:10
Protocol: /_N_WKS_DIR/_N_WP1_WPD/_PROT_TE_977_BOHR_TXT
Program : _N_TE_977_BOHR_MPF
Workpiece no.: 123
**********************************************************************
***************************
HOLE DM 20H7
LARGESTDIMENSION:20.021
SMALLESTDIMENSION:20.000
SPINDLETEMPERATURE:68.7 DEG
----------------------------------------------------------------------------------------------------------------
1
: 977 / 101
Time: 11:58:10
Results measure: 1 Hole / CYCLE977
----------------------------------------------------------------------------------------------------------------
Correction into: Work offset, coarse
G508
Coarse [mm]
Rotation [deg]
--------------------------------------------------------------------------
X
-0.0200
0.0000
Y
0.0300
45.0000
Z
-0.0128
0.0000
--------------------------------------------------------------------------
Results:
Setpoint
Measured
Difference
X
12.9900
12.9700
-0.0200 mm
Y
7.5000
7.5300
0.0300 mm
Diameter
24.0000
23.8400
-0.1600 mm
---------------------------------------------------------------------------------------------------------------
Measuring cycles
72
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.14 Miscellaneous functions
2.14.3.6
Displaying a user log in the form of a measurement results screen
A user log is displayed on the screen in the form of a measurement results screen if the following
conditions are fulfilled:
• CYCE150: Measurement result screen "on"
- "User log" log type OR
- log "off"
• Calling CYCLE160
When selecting "last measurement" log, CYCLE160 should not be called!
If "MRD" is activated using the program control, the content of variable field "S_PROTTXT" or
"S_USERTXT" is displayed in the form of a measurement results screen. The content of the results
screen corresponds to that of the log. The program is continued with "Start" or "Automatic"
depending on the selection in CYCLE150. For log "off", only the result screen is displayed. The
"For alarm" display mode is only active in measuring cycles.
Programming example 1
If user log lines with the same column distribution are to be output just like a standard log in the
text format, then the format definition can be taken from GUD variables _PROTVAL[35],[36]. The
program should be written as follows, using the keyword "SPRINT":
%_N_TEST_3.MPF
CYCLE150(31,11,"MEAS_PROTOCOL.TXT")
S_PROTTXT[0]=REP("",10)
S_PROTTXT[0]="SPRINT(_PROTVAL[35],'"'Axis'"','"'Setpoint'"','"'Measu
rd'"','"'Difference'"','"'Unit'"')"
S_PROTTXT[1]="SPRINT(_PROTVAL[36],'"'Z'"',R11,R12,R13,S_TXT[3])"
CYCLE160
M30
Explanation
The measured values are output line by line in the standard measurement log, subdivided into
5 standard columns. The format string is the formatting rule to be applied to the values for each
of these columns, separated by a comma.
_PROTVAL[35] = format string to display the column headers (only text)
_PROTVAL[36] = format string to display the column content (only text, values)
S_TXT[3] = length dimension in the active system (mm or inch)
The start and end of the string should be identified with " ("…") - including keyword SPRINT. If
the particular column only contains text, then the string identifier should be placed in inverted
commas (e.g.: ‘ “ ‘NAME‘ “ ‘).
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
73
Description
2.14 Miscellaneous functions
Programming example 2
When calling CYCLE150 with the "Last measurement" function, the actual content of the
variable field is logged and displayed (if MRD is active).
%_N_LASTMEAS_MPF
CYCLE150(31,12,"MEAS_PROTOCOL_LAST.TXT")
M30
2.14.3.7
Behavior during block search, simulation and for several channels
Block search
If during the block search, a cycle call for logging "On" is executed, this state is saved. The
following measuring cycle calls that are run through in the block search mode do not log
anything (because there are no measuring results). Logging is started as of the program start
when the search target is reached.
Similarly, the state is also saved for a cycle call for logging "Off" during the block search, and then
nothing logged as of the program start.
Simulation
The following behavior applies in the simulation of Operate:
Programs with calls for the logging function can be executed, but no logs are created.
During simulation, measuring cycles do not return any measurement results, they only show the
traversing to the measuring points - and therefore there is nothing to log.
Several channels
In principle, measuring programs with logging can run in two channels.
However, the user must ensure that the measuring and logging functions run in succession from
channel to channel and do not overlap. This also applies to user logs.
2.14.4
Expanded error reaction during tool measurement
For unmanned mode, it can be advantageous to act on specific alarms with additional responses
or to suppress the output of the alarms. The "Expanded error reaction" function has been
implemented for tool measuring (CYCLE971 and CYCLE982).
The following alarms are supported:
•
61301 - "Probe not switching"
•
61303 - "Beyond safe area"
•
61306 - "Permissible dimensional difference exceeded"
•
62320 - "Individual cutting edges are situated outside of the dimensional difference"
Measuring cycles
74
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Description
2.14 Miscellaneous functions
The following GUD parameters are also described:
• _OVI[2] - cycle number (971 or 982)
• _OVI[9] - alarm number
2.14.4.1
Additional CUST_MEACYC jump before alarm is output
With the SD54750 $SNS_MEA_ALARM_MASK bit 16=1, there is a jump to the label
"_MEACYC_ERROR" for the above-mentioned alarms before the alarm is output in the
CUST_MEACYC. In accordance with this label, additional responses can be programmed, such as
the run-in of the tool probe. It is possible to differentiate between the individual cycles and alarm
numbers via a query of the GUD parameters _OVI[2] and _OVI[9].
Example
IF _OVI[2]==971
IF _OVI[9] == 61303 ; Beyond safe area
ENDIF
…
ENDIF
…
2.14.4.2
Suppressing the alarm output
With the SD54750 $SNS_MEA_ALARM_MASK bit 17=1, the above-mentioned alarms are not
output. Bit 17 only works in connection with SD54750 bit 16.
Note
Alarm 61301 "Probe not switching" does not necessarily mean that there is a tool break. It
indicates that there is no switching signal from the probe. There could also be a connection
problem between the probe and the controller.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
75
Description
2.14 Miscellaneous functions
Measuring cycles
76
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Measuring variants
3
3.1
General requirements
3.1.1
Overview of the measuring cycles
Function of the measuring cycles
The following table describes all the measuring cycle functions for the turning and milling
technologies.
Table 3-1
Measuring cycles
Measuring
Description
Measuring versions
cycle
CYCLE973 2)
This measuring cycle can be used to calibrate a workpiece
• Calibrate probe - length
probe on a surface on the workpiece or in a groove.
• Calibrate probe - radius on surface
• Calibrate probe - probe in groove
CYCLE974 2)
This measuring cycle can be used to determine the work-
• Turning measurement - front edge
piece zero in the selected measuring axis or a tool offset with
• Turning measurement - inside diameter
1-point measurement.
• Turning measurement - outside diameter
CYCLE994 2)
This measuring cycle can be used to determine the work-
• Turning measurement - inside diameter
piece zero in the selected measuring axis with 2-point meas-
• Turning measurement - outside diameter
urement. To do this, two opposite measuring points on the
diameter are approached automatically in succession
CYCLE976
Using this measuring cycle, a workpiece probe can be cali-
• Calibrate probe - length on surface
brated in a calibration ring or on a calibration ball completely
• Calibrate probe - radius in ring
in the working plane or at an edge for a particular axis and
• Calibrate probe - radius on edge
direction.
• Calibrate probe - calibration on sphere
CYCLE961
This measuring cycle can be used to determine the position
• Corner - right-angled corner
of a workpiece corner (inner or outer) and use this as work
• Corner - any corner
offset.
CYCLE977
This measuring cycle can be used to determine the center
• Edge distance - groove
point in the plane as well as the width or the diameter.
• Edge distance - rib
• Hole - rectangular pocket
• Hole - 1 hole
• Spigot - rectangular spigot
• Spigot - 1 circular spigot
CYCLE978
This measuring cycle can be used to measure the position of
• Edge distance - set edge
an edge in the workpiece coordinate system.
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
77
Measuring variants
3.1 General requirements
Measuring
Description
Measuring versions
cycle
CYCLE979
This measuring cycle can be used to measure the center
•
Hole - inner circle segment
point in the plane and the radius of circle segments.
•
Spigot - outer circle segment
CYCLE995
With this measuring cycle the angularity of the spindle on a
•
3D - angular deviation spindle
machine tool can be measured.
CYCLE996
This measuring cycle can be used to determine transforma-
•
3D - kinematics
tion-relevant data for kinematic transformations with con-
tained rotary axes.
CYCLE9960
Transformation-relevant data for kinematic transformations
•
3D - kinematics
that contain rotary axes can be determined with this meas-
uring cycle.
CYCLE997
This measuring cycle can be used to determine the center
•
3D - sphere
point and diameter of a ball. Furthermore, the center points
•
3D - 3 spheres
of three distributed balls can be measured. The plane formed
through the three ball center points, regarding its angular
position, is determined referred to the working plane in the
workpiece coordinate system.
CYCLE998
This measuring cycle can be used to determine the angular
•
Edge distance - align edge
position of a surface (plane) referred to the working plane
•
3D - align plane
and the angle of edges in the workpiece coordinate system.
CYCLE971 1)
This measuring cycle can be used to calibrate a tool probe
•
Calibrate probe
and measure the tool length and/or tool radius for milling
•
Measure tool
tools.
CYCLE982 2)
This measuring cycle can be used to calibrate a tool probe
•
Calibrate probe
and measure turning, drilling and milling tools on turning
•
Turning tool
machines.
•
Milling tool
•
Drill
1)
Only for milling technology
2)
Only for turning technology
Measuring cycles
78
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
Measuring variants
3.1 General requirements
3.1.2
Selection of the measuring variants via softkeys (turning)
The following shows the measuring variants of the turning technology as a menu tree in the
program editor. All of the measuring variants available in the control are shown in the display.
However, on a specific system, only those steps can be selected that are possible for the set
extended technology.
Turning technology menu tree
→
→
Length (CYCLE973)
Radius on face (CYCLE973)
(Page 89)
Calibrate in slot (CYCLE973)
(Page 92)
Front edge (CYCLE974) (Page 96)
Inner diameter (CYCLE974, CY-
CLE994) (Page 99)
Outer diameter (CYCLE974, CY-
CLE994) (Page 104)
→
Calibrate probe (CYCLE982)
(Page 254)
Turning tool (CYCLE982)
(Page 260)
Drill (CYCLE982) (Page 271)
The following softkeys are only displayed if the "Milling" extended technology is set (channel-
specific MD52201 $MCS_TECHNOLOGY_EXTENSION = 2).
→
→
Length at edge (CYCLE976)
(Page 118)
Radius in ring (CYCLE976)
(Page 118)
Radius at edge (CYCLE976)
(Page 123)
Calibrate on sphere (CYCLE976)
(Page 132)
Inner diameter (CYCLE974, CY-
CLE994) (Page 99)
Measuring cycles
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
79
Measuring variants
3.1 General requirements
→
Set edge (CYCLE978) (Page 135)
Align edge (CYCLE998) (Page 141)
Groove (CYCLE977) (Page 148)
Rib (CYCLE977) (Page 154)
→
Right-angled corner (CYCLE961)
(Page 160)
Any corner (CYCLE961) (Page 165)
→
Rectangular pocket (CYCLE977)
(Page 170)
1 hole (CYCLE977) (Page 176)
Inner circle segment (CYCLE979)
(Page 182)
→
Rectangular spigot (CYCLE977)
(Page 188)
1 circular spigot (CYCLE977)
(Page 193)
Outer circle segment (CYCLE979)
(Page 199)
→
Align plane (CYCLE998)
(Page 204)
The "3D" softkey is displayed if bit
1 = 1 is set in the general SD54760
$SNS_MEA_FUNC-
TION_MASK_PIECE.
Sphere (CYCLE997) (Page 209)
3 spheres (CYCLE997) (Page 215)
Spindle angular displacement (CY-
CLE995) (Page 220)
The "Angular deviation spindle"
softkey is only displayed in the G
code program.
Measuring cycles
80
Programming Manual, 10/2020, 6FC5398-4BP40-6BA4
|