Siemens SINUMERIK 840D sl Function Manual page 319

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

Advertisement

Identifying the segment associated with master value X
Example of reading the segment starting and end values for determining the curve segment
associated with master value X = 30 using CTABSSV and CTABSEV:
Program code
N10 DEF REAL STARTPOS
N20 DEF REAL ENDPOS
N30 DEF REAL GRADIENT
N100 CTABDEF(Y,X,1,0)
N110 X0 Y0
N120 X20 Y10
N130 X40 Y40
N140 X60 Y10
N150 X80 Y0
N160 CTABEND
N200 STARTPOS=CTABSSV(30.0,1,GRADIENT)
N210 ENDPOS=
CTABSEV(30.0,1,GRADIENT)
Figure 8-2
Reading values at start and end
The values of the following axes and of the master axis at the start and end of a curve table
can be read with the following calls:
R10 =CTABTSV(n, degrees, F axis), following value at the beginning of the curve table
R10 =CTABTEV(n, degrees, F axis), following value at the beginning of the curve table
R10 =CTABTSP(n, degrees, F axis), following value at the beginning of the curve table
Special functions
Function Manual, 01/2015, 6FC5397-2BP40-5BA2
Determining the curve segment associated with master value X = 30
8.2 Curve tables - 840D sl only
Comment
; Beginning of the definition for the
start position of the curve table
; Start of table definition
; Start position, 1st table segment
; End position, 1st table segment =
; Start position 2nd table segment
; 3. Curve segment
; 4. Curve segment
; End of table definition
; Start position Y in segment 2 = 10.
; End position Y in segment 2 = 40
; Segment 2 belongs to LW X = 30.0
M3: Coupled axes
319

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents