Program Example - Siemens SINUMERIK 840D sl Function Manual

Sinumerik integrate amb, amc, amm
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

03/2013
Description of the return parameters
You can influence the measurement via the return parameters. The return values
are always queried after call with doProlog = True and testType = " ", i.e. after the
prolog is called for each measurement series. The process then continues
according to the returned values.
ePS_error
ePS_errMsg

2.3.4 Program example

Description
Here is a commented example program to illustrate how the prolog and epilog
program can be used to prepare the machine specifically for a certain test. The
structure of the program is as follows:
Prolog for the test series:
This section of the program is only executed once at the beginning of a test series
and also on each single measurement outside a test series. This block contains
everything that has to be executed irrespective of the type of test or the axis that is
to be measured. For example, G codes that are preset on the machine via machine
data (G95, DIAMON, ....) can be deactivated, the tool can be unloaded, the
workpiece can be removed from the working space, and all axis can be moved to a
safe initial position.
Prolog for each measurement:
This section of the program is executed before each measurement, irrespective of
whether the measurement is part of a test series or is performed individually. This
block can be used with call parameters to check which axis is to be tested, which
test type is to be conducted, and with which parameters the measurement will be
performed. For example, when testing certain axes, it may be necessary to move
other axes to another position than the basic position, or the starting point for the
measurement cannot be approached directly (circularity test). Certain actions could
also be performed depending on the position range in which the measurement is
performed.
When programming axis movements, it is important to ensure that the parameters
of a measurement always refer to the machine coordinate system if they represent
positions. The example program shows how the axis movement can be offset into
the machine coordinate system using the command SUPA.
It is possible to test the name of the measurement series in the program and to
execute special functions for a certain measurement series. However, that should
be limited to special cases because the parameters of a measurement series can
be changed at any time without its name having to be changed.
© Siemens AG 2006-2013 All Rights Reserved
SINUMERIK Integrate AMB, AMC, AMM, Function Manual (FH) - 03/2013
Equability test
0 = (default setting) execute measurement
1 = Suppress execution of measurement, continue with the next
measurement series. Errors are not displayed.
Reserved for future expansions
2.3 Test series on the machine
Circularity test
2 Machine information
Universal axis test
2-65

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents