M5: Measurement
7.6 Measurement accuracy and functional testing
Extended Functions
524 Function Manual, 03/2013, 6FC5397-1BP40-3BA1
7.6.2 Probe function test
Example of function test
Table 7- 7
Program code Comment
%_N_PRUEF_MESSTASTER_MPF
;$PATH=/_N_MPF_DIR
;Testing program probe connection
N05 DEF INT MTSIGNAL ;Flag for trigger status
N10 DEF INT ME_NR=1 ; measurement input number
N20 DEF REAL MESSWERT_IN_X
N30 G17 T1 D1 ; tool compensation for
; preselect probe
N40 _ANF: G0 G90 X0 F150 ; Starting position and
; measuring velocity
N50 MEAS=ME_NR G1 X100 ; measurement at measurement input =1
; in the X axis
N60 STOPRE
N70 MTSIGNAL=$AC_MEA[1] ; read software switching signal
; at 1st measurement input
N80 IF MTSIGNAL == 0 GOTOF _FEHL1 ; evaluation of signal
N90 MESSWERT_IN_X=$AA_MW[X] ; Read in measured value of
; workpiece coordinates
N95 M0
N100 M02
N110 _FEHL1: MSG ("Probe not switching!")
N120 M0
N130 M02