Special Motion Commands
5.8 Extended measuring function (MEASA, MEAWA, MEAC) (option)
Job planning
5-30 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
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
;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.
N135 STOPRE
N140 MEAC[X] = (0) ;Terminate measurement when
;axis position is reached.
N150 R1 = $AC_FIFO1[4] ;Store number of accumulated measured
;values in parameter R1.
N160 FOR loop = 0 TO R1-1
N170 MEASVALUE[loop] = $AC_FIFO1[0] ;Read measured values from $AC_FIFO1
;and store.
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)
;Delete distance to go
N20 MEAC[x]=(1,1,1,-1) G01 X100 F500
N30 MEAC [X]=(0)
N40 R1 = $AC_FIFO1[4] ;Number of measured values
...
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.