M5: Measurement
7.8 Channels - only 840D sl
Extended Functions
Function Manual, 03/2013, 6FC5397-1BP40-3BA1
529
Measurement with two encoders - actual values for two encoders
Program code
N2 MEASA[X] = (31, 1, -1) G01 X100 F100
N3 STOPRE
N4 IF $AC_MEA[1]==FALSE gotof ENDE
N5 R10=$AA_MM1[X]
N6 R11=$AA_MM2[X]
N7 R12=$AA_MM3[X]
N8 R13=$AA_MM4[X]
N9 END
7.8.2 Measuring mode 2
Supplementary conditions
● Two probes
● Trigger signals are the rising and falling edges
● Actual value from the current encoder
Program code
N2 MEASA[X] = (2, 1, -1, 2, -2) G01 X100 F100
N3 STOPRE
N4 IF $AC_MEA[1]==FALSE gotof MESSTASTER2
N5 R10=$AA_MM1[X]
N6 R11=$AA_MM2[X]
N7 PROBE2
N8 IF $AC_MEA[2]==FALSE gotof ENDE
N9 R12=$AA_MM3[X]
N10 R13=$AA_MM4[X]
N11 END:
7.8.3 Continuous measurement
Supplementary conditions
● The measurement is done in measuring mode 1:
● Measurement with 100 values
● One probe
● Trigger signal is the falling edge
● Actual value from the current encoder