Siemens SINUMERIK 840D sl Programming Manual page 619

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

c) Measurement of a positive/negative tooth flank with 2 probes
Program code
...
N110 DEF REAL MEASVALUE[16]
N120 DEF INT loop=0
N130 MEAC[X]=(1,1,-1,2) G01 X100 F100
N140 STOPRE
N150 MEAC[X]=(0)
N160 R1=$AC_FIFO1[4]
N170 FOR loop=0 TO R1-1
N180 MEASURED VALUE[loop]=$AC_FIFO1[0]
N190 ENDFOR
Further information
Measuring job
A measuring job can be programmed in the part program or from a synchronized action. Please
note that only one measuring job can be active at any given time for each axis.
Note
The feed must be adjusted to suit the particular measuring task
In the case of MEASA and MEAWA, the correctness of results can be only guaranteed for
feedrates at which no more than one trigger event of the same type and no more than 4 trigger
events of different types occur in each position control cycle.
In the case of continuous measurement with MEAC, the ratio between interpolator cycle and
the position control cycle must not exceed 1:8.
Trigger event
A trigger event comprises the number of the probe and the trigger criterion (positive or negative
edge) of the measuring signal.
Up to 4 trigger events of the addressed probe can be processed for each measurement; in other
words, up to two probes each with two measuring signal edges. The processing sequence and
the maximum number of trigger events depend on the selected mode.
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
3.7 Special motion commands
Comment
; Measurement in mode 1 with active meas-
uring system, save measured values under
$AC_FIFO1, wait for measuring signal in
the sequence negative edge of probe 1,
positive edge of probe 2 while traversing
the travel path to X=100.
; Preprocessing stop.
; Terminate measurement when axis posi-
tion is reached.
; Save number of accumulated measured val-
ues in parameter R1.
; Read-out measured values from $AC_FIFO1
and save.
Work preparation
619

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents