Siemens SINUMERIK 840D sl Programming Manual page 618

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

Advertisement

Work preparation
3.7 Special motion commands
Program code
N130 R11=$AA_MM2[X]
N140, PROBE2:
N150 IF $AC_MEA[2]==FALSE GOTOF END
N160 R12=$AA_MM3[X]
N170 R13=$AA_MM4[X]
N180 END:
Example 3: Axis-specific, continuous measurement in mode 1 (evaluation in chronological
sequence)
a) Measurement of up to 100 measured values
Program code
...
N110 DEF REAL MEASVALUE[100]
N120 DEF INT loop=0
N130 MEAC[X]=(1,1,-1) G01 X1000 F100
N135 STOPRE
N140 MEAC[X]=(0)
N150 R1=$AC_FIFO1[4]
N160 FOR loop=0 TO R1-1
N170 MEASURED VALUE[loop]=$AC_FIFO1[0]
N180 ENDFOR
b) Measurement with delete distance-to-go after 10 measured values
Program code
...
N10 WHEN $AC_FIFO1[4]>=10 DO MEAC[x]=(0) DELDTG(x)
N20 MEAC[x]=(1,1,1,-1) G01 X100 F500
N30 MEAC [X]=(0)
N40 R1 = $AC_FIFO1[4]
...
618
Comment
; Save measured value acquired at the sec-
ond programmed trigger event (positive
edge of probe 1).
; Check that the measurement with probe 2
is successful.
; Save measured value acquired at the
third programmed trigger event (positive
edge of probe 2).
; Save measured value acquired at the
fourth programmed trigger event (positive
edge of probe 2).
Comment
; Measuring in mode 1 with active measur-
ing system, save measured values under
$AC_FIFO1, wait for measuring system with
negative edge from probe 1 on the travel
path to X=1000.
; 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.
Comment
; Delete distance-to-go.
; Number of measured values.
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents