Siemens SINUMERIK 840Di sl Function Manual page 142

Synchronized actions, ncu system software
Hide thumbs Also See for SINUMERIK 840Di sl:
Table of Contents

Advertisement

Examples
5.6 "Centering" with continuous measurement
; Measure sequentially, store in FIFO 1, MT2 neg, MT2 pos edge
;the distance between two teeth is measured
;falling edge-...-rising edge, probe 2
N310 ID=5 WHEN $R7==1 DO MEAC[BACH]=(2, 1, -2, 2)
N320 ID=6 WHEN (Z_MW>=M_ZAEHNE) DO
MEAC[BACH]=(0)
M00
STOPRE
;*** FIFO Fetch and save values ***
N400 R3=$AC_PARAM[0]
N500 $AC_FIFO1[4]=0
;*** Calculate difference between the individual teeth ***
N510 R4=R2/(ZAEHNEZAHL)/1000
;*** Calculate center position ***
N520 R3=R3/1000
N530 R3=R3 MOD 360
N540 R5=(R3-R14)+(R4/2)
M00
stopre
R6=0
gotob start
M30
142
;
Cancel measuring job
;
Contents of the first element read
;
;Reset the FIFO1[4] variable
;
;and ensure a defined measuring trace
;for the next measurement job
;
R4 corresponds to an average
;
tooth distance
;
Division "/1000" removed in later SW versions
;
First measurement position converted to degree
;
first measurement point modulo
;
calculate gap position
;
Disable axis rotation from BACH
Function Manual, 11/2006, 6FC5397-5BP10-2BA0
Synchronized actions

Advertisement

Table of Contents
loading

Table of Contents