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.
Status code in ”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 a page since the last edition, this is indicated by
a new edition coding in the header on that page.
EditionOrder No.Remarks
07.906ZB5 410-0EM02-0AA0A
10.916ZB5 410-0EM02-0AA1C
01.936FC5 197-0AB60-0BP0C
08.966FC5 197-0AB60-0BP1C
Siemens quality for software and training
to DIN ISO 9001, Reg. No. 2160-01
Other functions not described in this documentation might be
executable in the control. This does not, however, represent an
obligation to supply such functions with a new control or when
servicing.
This publication was produced on the Siemens 5800 Office
System.
The reproduction, transmission or use of this document or its
contents is not permitted without express written authority.
Offenders will be liable for damages. All rights, including rights
created by patent grant or registration of a utility model or
design, are reserved.
We have checked that the contents of this publication agree with the
hardware and software described herein. The information given in this
publication is reviewed at regular intervals and any corrections that might
be necessary are made in the subsequent printings. Suggestions for
improvement are welcome at all times.
Other functions not described in this documentation might be executable in the control. This
does not, however, represent an obligation to supply such functions with a new control or
when servicing.
The symbol shown on the left appears in this
documentation whenever the machine tool manufacturer
has the possibility of influencing/modifying the functional
behaviour described by changing a cycle machine data
(MDC).
Since the cycle machine data range and the cycle setting data range can be set up in different
ways, the relevant data in the examples are explained on the basis of the standard settings.
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
SINUMERIK 850/880 control as from Software Version 4,
SINUMERIK 880 GA2 as from Software Version 1,
SINUMERIK 840 as from Software Version 1,
SINUMERIK 840C as from Software Version 1,
This User's Guide applies to:
measuring cycles as from version 20!
General Preconditions 1
Hardware2
Functional Test3
Machine Data for Measuring Cycles4
Setting Data for Measuring Cycles 5
Auxiliary Cycles for Start-up6
Start-up Flowchart7
User Memory Submodule (UMS)8
Tool and Workpiece Measurement in
JOG Mode (SINUMERIK 880)
Workpiece Measurement in JOG Mode
Option:B78
Software versions: For measuring cycles Version 20 and higher, the following software
versions are required:
SINUMERIK 840software version 1 and higher
SINUMERIK 840Csoftware version 1 and higher
SINUMERIK 850software version 4 and higher
SINUMERIK 880software version 4 and higher
SINUMERIK 880 GA2 software version 1 and higher
PLC program:No PLC program is required for the measuring cycle function. The
measuring function is activated in the cycles by means of command
@720....
FB 116 (850) or FB 121 (840/880) is required when using the function
package "Tool management".
Axis arrangement: For proper operation of measuring cycles it is necessary for the machine
axes to be arranged in accordance with DIN 66217.
Siemens AG 1990 All Rights Reserved 6FC5197- AB601–1
1.1 Notes to ensure smooth running of the measuring cycles
1.1Notes to ensure smooth running of the measuring cycles
1. To ensure that the measuring cycles operate correctly it is imperative that the machine
axes are set up according to DIN 66217.
2. Reference point approach must already have been performed.
3. GRC/CRC, (coordinate rotation) and scale modification must be deselected before a
measuring cycle is called.
4. Inch/metric switchover.
Measurements must be performed in the input system defined in MD 5002 bit 4, i.e.
switchover with G70/G71 is not permitted.
5. Before the cycles are called, the axes must be positioned in such a way that they do not
change direction when they move from the current position to approach the set position.
Nor must the tool collide with the sensor or the workpiece probe collide with other machine
parts when approaching the starting position with linear interpolation.
6. The parameters of the individual cycles must be defined before the cycles are called.
7. The cycles are automatically skipped in operating modes "Block search", "Dry run" and
simulation.
8. All cycles can be exited with the following initial settings:
T version G01, G90, G95
M version G01, G90, G94
9. The cycle must be called no later than the 1st nesting depth.
10. Call cycle L965. This cycle must be started at least once after start-up and it must always
be programmed when the measuring plane is changed.
For determining tool and workpiece dimensions, a touch trigger probe is required which
supplies a constant signal (no pulse) when deflected.
The probe must switch with almost no bounce. This is generally achieved by adjusting the
probe mechanically. In addition, "Software debouncing" is carried out in the NC.
Various types of probe of different make are available on the market. Probes are therefore
classified in three groups according to the number of directions in which the probe can be
deflected (see Fig. below).
Multidirectional
probe
Types of probe
Turning machines
Tool measure-
ment
Multidirectional probeyesyesyesyes
Bidirectional probe
Monodirectional probe
—
Bidirectional
probe
Workpiece
measurement
yes
Tool
measurement
Monodirectional
probe
Milling machines and
machining centres
Workpiece
measurement
—
———
yes
yes
While on turning machines a bidirectional probe can be used, milling machines and machining
centres also permit the use of a monodirectional probe for workpiece measurement. In the
cycles for milling machines and machining centres, the probe type is to be specified by an R
parameter.
Siemens AG 1990 All Rights Reserved 6FC5197- AB602–1
With this type of probe, tool and workpiece measuring cycles can be used without restriction.
2.1.2Bidirectional probe
This type of probe can be used on turning machines for workpiece measurement. When
performing workpiece measurement on milling machines and machining centres, this probe
type is treated as a monodirectional probe.
2.1.3Monodirectional probe
This type cannot be used on turning machines. It can be used for workpiece measurement on
milling machines and machining centres with some few restrictions (more information is given
in the respective cycles).
It must be possible to position the spindle with the NC function "M19" and to transmit the
probe switching signal through 360° to the receiving station (on the machine column).
The probe must be mechanically aligned in the spindle in such a way that measurements can
be performed in the following directions with the spindle being positioned to 0 degrees.
Measurement with 0 degr. spindle position
X-Y plane (G17)Positive X direction
Z-X plane (G18)Positive Z direction
Y-Z plane (G19)Positive Y direction
Measurement takes longer with a monodirectional probe because the spindle must be
positioned in the cycle several times with M19.
Jumpering in cable distributor which is connected to X121 on the CSB
The electrical potentials P24 and MEXT can be switched to the inputs MEPUC0, MEPUC1
and MEPUS0, MEPUS1 via switches S1 ... S5 (dip fix) and can thus be used as a ”sensor
connection” or ”rapid NC input”.
Table showing state of switches S1 ... S5
Measuring pulse inputs as NC inputsS1S2S3S4S5
Measuring pulse inputs00111
Level (24 V)00000
Open collector11000
Relay to earth11000
Relay to P2400110
0: open
1: closed
Sensor connection to cable distributor 6FC5147-0AA01
The measuring signal can be checked via the diagnostics menu "PLC status".
Status display
Probe 1 deflectedF 24.7
Probe 2 deflectedF 24.6
3.2Test program
With the following example of a test program, the measuring function (repeatability of the
machine and the probe) can be checked without using the measuring cycle subroutines.
Example:
% 1
N5G00 G94 Z... F150Pre-positioning approx. 1 mm in front of measuring point
N10G01 @720 R1 K1 Z...Move onto probe;
set value approx. 1 mm behind measuring point
N15@714Stop decoding
N20R0=R1Reload actual value of measuring point in parameter R0
N25G04 F2Note value of parameter R0
N30@100 K-5Return to N5
N35M30
In addition, the program can be used to determine the scattering of measured values (repeat
accuracy) for the entire measuring system (machine-probe-signal transmission to NC). In other
words, the random dimensional deviations can be determined that follow no trend.
END OF SECTION
Siemens AG 1990 All Rights Reserved 6FC5197- AB603–1
Considering the fact that the 800 systems have just one ZO group while several users require
more than just one group, this need has been met by the use of a cycle "ZO groups L960".
When starting up the measuring cycles, MD 18 must be preset with "1", otherwise an alarm
would be issued on ZO determination.
Cycle L960 stores the current ZO group number in DB 18 to enable the ZO memory to be
transferred to the ZO group memory (R240 - R299 or MIB 200 - MIB 399) on completion of
ZO determination (by the measuring cycles).
MD 18 is a "System cell" and must not be modified manually after completion of start-up.
4.2.2MD 19P number (SINUMERIK 850 only)
The NC machine data 19 (MD 19) is only significant when the PLC function package "Tool
management" is used and if the tools are to be compensated by workpiece measuring cycles.
In MD 19 the P number (5-32) is to be stated under which the G number of the next cutting
edge is to be found.
Minimum number of P memories settable with NC MD 13
Fixed allocation by
NC software
T No.P0TypeP1Geometry
MD211 D1
TOA area 1
Dn
MD212 D1
MD216 D1
TOA area m
Dn
TOA areas are determined via NC MD210 (max. 16)
Start address of TOA areas in NC MD211-216
1) Addition to geometry values with
NC MD5007.6="0"(with standard machine data "0")
2) Addition to geometry values with
NC MD5007.3="1"
3) Depending on NC MD
P2 P3 P4
Determination by
NC MD 5007.6
Wear
P5P6P7
Quantity is determined with
NC MD 13
Determination by
1
)
NC MD 5007.32)
Add. TO
P8P9
Formula for TOA memory
W
= INT
NUMB
= Number of single-edged tools
W
NUMB
k1= Total capacity of TOA memory 8192 bytes
K2= Width of one P memory 4 bytes
P
These measuring cycles are used to check the maximum wear when performing tool offset.
When the maximum wear is exceeded, no offset is made but an alarm is output.
Siemens AG 1990 All Rights Reserved 6FC5197- AB604–5
SINUMERIK 840/850/880 (IA)
4 Machine Data for Measuring Cycles10.91
4.2.6 PLC machine data 6026 bit 2
4.2.6PLC machine data 6026 bit 2
When the measuring cycle functions
•result display selection
•tool management (840/880)
are used the above-mentioned bit must be ”0”.
FB 89 must be available.
4.3Channel-oriented values, description
Standard values can be loaded from the measuring cycle diskette.
MDC
No.
D e s i g n a t i o n
0 Start address of empirical values
Standard
value
Input
limits
Ref.
system
11 to 99——
Input
unit
in the setting data (SDC).
Start address of empirical values in the area of the channel-specific cycle setting data (SDC).
Here, the value "0" is to be input when no empirical values are required.
The input value must not overlap with the MDC 2 and MDC 3.
MDC
No.
D e s i g n a t i o n
1 Number of empirical values490 to 99——
Standard
value
Input
limits
Ref.
system
Input
unit
Here, the number of memories for empirical values in the area of the channel-specific SDC is
to be stated. Value "0" is to be input if empirical values are not required.
The input value must not overlap with the MDC 2 and MDC 3.
MDC
No.
D e s i g n a t i o n
Standard
value
Input
limits
Ref.
system
Input
unit
2 Start address of empirical values
511 to 99——
in the setting data (SDC).
Start address of the average values in the area of the channel-specific cycle setting data.
Value "0" is to be input when average values are not required.
The input value must not overlap with the MDC 0 and MDC 1.
Here, the number of memories for average values is to be stated in the area of the channelspecific SDC. Value "0" must be input when no average values are required.
The input value must not overlap with the MDC 0 and 1.
MDC
No.
4 Rapid traverse rate
Intermediate positioning
D e s i g n a t i o n
Standard
value
Input
limits
Ref.
system
1001 to 100—%
Input
unit
The intermediate positions calculated by the measuring cycles are approached at maximum
axis speed (NC MD 280*) in percent.
The machine data is only effective with the collision monitor (MDC 800 Bit 0 = 0) switched
off.
Intermediate positions calculated by measuring cycles are approached at the input speed rate.
The machine data is only effective with activated collision monitoring (MDC 800 bit = 1) and
must be > 0; otherwise alarm message 4008 is issued.
MDC
No.
6
Reserve——
D e s i g n a t i o n
.
.
13
MDC
No.
D e s i g n a t i o n
Standard
value
Standard
value
Input
limits
Input
limits
Ref.
system
Ref.
system
Input
unit
Input
unit
14 PLC number for logging11 to 4——
Here, the number of the PLC must be stated in which the function blocks for the logging
function (with CP 315) are called.
MDC
No.
D e s i g n a t i o n
15 PLC number for MDC 16-1911 to 4——
Standard
value
Input
limits
Ref.
system
Input
unit
Here, the number of the PLC must be stated in which the measurement abort signal (MDC 16
and MDC 17) or selection of a result display (MDC 18 and MDC 19) is processed.
The machining program cannot be continued when a cycle reset alarm (alarm numbers 4000-
4039) occurs. It can only be stopped by program abort (reset). Following program abort,
further measuring points or measuring or machining operations programmed in the part
program can no longer be executed.
To enable these measuring points or machining operations to be likewise executed, first of all,
the cause that has led to the reset alarm must be eliminated. Re-entry in the machining
program is then possible with block search.
Use with measurement abort signal
The function "Measurement abort signal" provides the possibility of continuing the machining
program when cycle reset alarms (4011, 4019, 4020, 4026, 4027, 4030, 4031, 4032, 4033)
have occured.
The measurement abort signal is generally released by the operator by pressing a key
arranged on the machine control panel.
The signal can be read out by the measuring cycles directly from the PLC input from a flag or
a data word.
Example:
a) Measurement abort signal on input: I 15.4
MDC 16 = 820000
MDC 17 = 15.4
b) Measurement abort signal from flag: F 200.2
MDC 16 = 840000
MDC 17 = 200.2
c) Measurement abort signal from data block: DB 200 D 10.9
MDC 16 = 870200
MDC 17 = 10.09
d) Measurement abort signal from DX data block: DX 200 D 10.9
MDC 16 = 881200
MDC 17 = 10.09
The function "Measurement abort signal" is activated as soon as MDC 16 > 0.
The cycle can perform a menu selection (insertion of a result display) on completion of a
measuring operation (see MDC 7001 bit 2).
The function "Menu selection" is performed via the PLC, i.e. the cycle enters the relevant
menu number directly in the PLC and also triggers menu selection.
The interface area must be determined via MDC 18 and 19 to avoid collision with other "Menu
selectors", otherwise alarm 4049, Display cannot be selected, is called.
The following definitions are possible:
a) Measuring Cycles use DB 40 directly
b) "use another DB (image of DB 40)
c) "use a flag area (image of DB 40)
In cases b and c, the PLC user program must take care of data transfer
(interface DB 40
assigned interface).
Special case:
If MDC 18=0, the menu selection is performed through DB 40.