Special Motion Commands
4.8 Extended measuring function (MEASA, MEAWA, MEAC) (option)
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
265
Examples
Example 1: Axial measurement with deletion of distance-to-go in mode 1 (evaluation in
chronological sequence)
a) with 1 measuring system
Program code Comments
...
N100 MEASA[X]=(1,1,-1) G01 X100 F100 ; Measuring in mode 1 with active
measuring system. Wait for
measuring signal with
rising/falling edge from probe 1
for travel path to X=100.
N110 STOPRE ; Preprocessing stop
N120 IF $AC_MEA[1]==FALSE GOTOF END ; Check that the measurement was
successful.
N130 R10=$AA_MM1[X] ; Save measured value acquired at
the first programmed trigger event
(rising edge).
N140 R11=$AA_MM2[X] ; Save measured value acquired at
the second programmed trigger
event (falling edge).
N150 END:
b) with 2 measuring systems
Program code Comments
...
N200 MEASA[X]=(31,1,-1) G01 X100 F100 ; Measuring in mode 1 with both
measuring systems. Wait for
measuring signal with
rising/falling edge from probe 1
for travel path to X=100.
N210 STOPRE ; Preprocessing stop
N220 IF $AC_MEA[1]==FALSE GOTOF END ; Check that the measurement was
successful.
N230 R10=$AA_MM1[X] ; Save measured value of measuring
system 1 at rising edge.
N240 R11=$AA_MM2[X] ; Save measured value of measuring
system 2 at rising edge.
N250 R12=$AA_MM3[X] ; Save measured value of measuring
system 1 at falling edge.
N260 R13=$AA_MM4[X] ; Save measured value of measuring
system 2 at falling edge.
N270 END: