Simulated Measuring; General Functionality - Siemens SINUMERIK 840D sl Function Manual

Extended functions
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

M5: Measurement

8.7 Simulated measuring

Program code
;Testing program probe connection
N05 DEF INT MTSIGNAL
N10 DEF INT ME_NR=1
N20 DEF REAL MESSWERT_IN_X
N30 G17 T1 D1
N40 _ANF: G0 G90 X0 F150
N50 MEAS=ME_NR G1 X100
N60 STOPRE
N70 MTSIGNAL=$AC_MEA[1]
N80 IF MTSIGNAL == 0 GOTOF _FEHL1
N90 MESSWERT_IN_X=$AA_MW[X]
N95 M0
N100 M02
N110 _FEHL1: MSG ("Probe not switching!")
N120 M0
N130 M02
8.7
Simulated measuring
8.7.1

General functionality

Brief description
To make measurements at real machines, probes must be connected which supply switching
signals at certain positions. Probes are not used when making measurements in simulated
environments - the switching positions are specified in a different way.
Simulated measuring supports two ways of entering switching positions:
● Position-related switch request: The switching position is derived from the axial end position
programmed in the measuring block.
● External switching request: The switching position is defined by controlling a digital output.
578
Comment
;Flag for trigger status
; measurement input number
; tool compensation for
; preselect probe
; Starting position and
; measuring velocity
; measurement at measurement input =1
; in the X axis
; read software switching signal
; at 1st measurement input
; evaluation of signal
; Read in measured value of
; workpiece coordinates
Function Manual, 10/2015, 6FC5397-1BP40-5BA3
Extended Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents