Siemens SINUMERIK 840D sl Programming Manual page 194

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Special Motion Commands
5.8 Extended measuring function (MEASA, MEAWA, MEAC) (option)
Example of continuous measuring in mode 1
(evaluation in chronological sequence)
a) Measurement of up to 100 measured values
...
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 MEASVALUE[loop] = $AC_FIFO1[0]
N180 ENDFOR
Example of continuous measuring in mode 1
(evaluation in chronological sequence)
b) Measuring with deletion of distance-to-go after 10 measured values
...
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]
...
Description
The measurements can be programmed in the parts program or from a synchronized action
(see "Motion-synchronous action" section). Please note that only one measuring job can be
active at any given time for each axis.
5-30
;Measure in mode 1 with active
;measuring system, store measured
;values under $AC_FIFO1, wait for
;measuring signal with falling edge
;from probe 1 on travel path to
;X = 1000.
;Terminate measurement when
;axis position is reached.
;Store number of accumulated measured
;values in parameter R1.
;Read measured values from $AC_FIFO1
;and store.
;Delete distance to go
;Number of measured values
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents