Function Test - Siemens SINUMERIK 840D sl Programming Manual

Measuring cycles
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Hardware/software

8.3 Function test

8.3
Function test
8.3
Measure command
The control has the command MEAS for generating a measuring block.
The measuring input number is set in the command parameters.
Saving measurement results
The results of the measurement command are stored in the system data of the NCK and can
be accessed from the program.
These steps include:
System data
$AC_MEA[<No.>]
$AA_MW[<axis>]
$AA_MM[<axis>]
References: /PG/, Programming Guide
PLC service display
The functional test for the probe is conducted via an NC program.
The measuring signal can be controlled via the diagnostics menu "PLC status".
Table 8-1
Probe
Probe 1 deflected
Probe 2 deflected
Example of functional check
%_N_PRUEF_MESSTASTER_MPF
;$PATH=/_N_MPF_DIR
;Testing program probe connection
N05 DEF INT MTSIGNAL
N10 DEF INT ME_NR=1
N30 G17 T1 D1
N40 G0 G90 X0 F150
N50 MEAS=ME_NR G1 X100
N60 STOPRE
N70 MTSIGNAL=$AC_MEA[ME_NR]
N80 IF MTSIGNAL == 0 GOTOF _FEHL1
N90 R1=$AA_MW[X]
N95 M0
N100 M2
N110 _FEHL1: MSG ("Probe not switching!")
N120 M0
N130 M2
8-8
Meaning
Software switching signal for the probe no. stands for measuring input
number
Measured value of the axis in workpiece coordinatesAxis stands for the
name of the measuring axis
Measured value of the axis in machine coordinates
Status display for measurement signal
Display
DB10 DB X107.0
DB10 DB X107.1
;Flag for trigger status
;Measurement input number
;Select tool offset for probe
;Starting position and meas. velocity
;Measurement at measuring input 1 in the
;X axis
; preprocessing stop
;Read software switching signal at
;1st measurement input
;Evaluation of signal
;Read in measured value in workpiece coordinates
;View measured value in R1
Programming Manual, Release 04/2006, 6FC5398-4BP10-0BA0
Measuring cycles

Advertisement

Table of Contents
loading

Table of Contents