Siemens SINUMERIK 840Di sl Function Manual page 96

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

Advertisement

Detailed description
2.4 Actions in synchronized actions
Program 2:
G0 X0
N0
$AC_MARKER[1]=1
N1
ID=1 WHENEVER $AC_FIFO1[4]>=1
OC2
DO $R[$AC_MARKER[1]]= $AC_FIFO1[0]
$AC_MARKER[1]=$AC_MARKER[1]+1
MEAC[X]=( 1, 1, 1, -1) POS[X]=100
N3
MEAC[X]=(0)
N4
STOPRE
N5
R0 = $AC_MARKER[1]
N6
Example 3:
Continuous measurement with explicit deletion of distance-to-go after 10 measurements
Program 3:
N1
OC2
N3
N4
96
WHEN $AC_FIFO1[4]>=10
DO MEAC[X]=(0) DELDTG(X)
MEAC[X]=( 1,1,1,-1) G01 X100 F500
MEAC[X]=(0)
R0= $AC_FIFO1[4]
;
Rapid traverse to the starting position
;
Marker 1 as index for arithmetic variable R[..]
;
Synchronized action as check:
;
when 1 or more measured values are present in FIFO variable
;
read the oldest value from FIFO and store in current R[..]
;
increment index for R by 1
;
Activate continuous measurement, motion
;
to X = 100
;
Mode = 1, simultaneous
;
No_FIFO = 1; trigger event 1= 1,
;
rising edge probe 1
;
Trigger event 2= -1, falling edge probe 1
;
Deselect measurement
;
Stop preprocessing
;
Number of values recorded in R0
;
Final condition as synchronized action:
When 10 or more measured values are present
;
in
;
FIFO variable
are present,
;
deselct continuous measurement and
;
Delete distance-to-go
;
;
continuous measurement active from the
;
part program.
Mode = 1, simultaneous
;
No_FIFO = 1, FIFO-Variable 1
;
Trigger event 1= 1, rising edge,
;
Probe 1
;
Trigger event 2= -1, falling edge
;
probe 1
;
;
Deselect continuous measurement
;
actual number of measurement values
Function Manual, 11/2006, 6FC5397-5BP10-2BA0
Synchronized actions

Advertisement

Table of Contents
loading

Table of Contents